![]() |
|
|||||||
|
|
Thread Tools | Search this Thread | Display Modes |
|
|
#1 |
|
Архивный участник
Join Date: Aug 2005
Posts: 42
|
Hi, ppl...
Im building an event for Christmas. I would like to know how to determine the difference of leves between the mob and the last attacker... I dont know If there is a function to retrieve the level of the monster, or a variable that maintain the monster level and the last attacker level.... Thanks in advance. |
|
|
|
|
#2 |
|
Архивный участник
Join Date: Oct 2005
Posts: 102
|
PC_level=GetLastAttacker().level;
NPC_level=myself.sm.level; AI code: Code:
//PC level
//c0=GetLastAttacker()
push_event // c0
push_const 272
add
push_reg_sp
fetch_i
shift_sp 1
func_call 83 // func[GetLastAttacker]
assign
shift_sp -1
// PC_level <=> c0.level
push_event // c0
push_const 272
add
fetch_i
push_const 888 //level
add
fetch_i
....
// NPC level
push_event // myself
push_const 28
add
fetch_i // sm
push_const 2400
add
fetch_i // level
push_const 888
add
fetch_i
|
|
|
|
|
#3 |
|
Архивный участник
Join Date: Aug 2005
Posts: 42
|
Thank you very much, this will be very useful for me
...I will try it soon
|
|
|
|
|