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
thats all, if u need determine levels