View Single Post
Old 11.01.2007, 01:34   #58
nnightmare
Архивный участник
 
Join Date: Jun 2006
Posts: 153
Default

Quote:
Originally Posted by andreagighi View Post
For Erase found solution with AI code to add on summon:

handler 1 352 // ATTACKED
variable_begin
"skill_name_id"
"myself"
variable_end

push_event // skill_name_id
push_const 180
add
fetch_i4
push_const 256
div
push_const 1395 //<--- id skill ERASE
equal
push_reg_sp
fetch_i
branch_false L64129

push_event // gg
push_const 632
add
fetch_i
push_const 100
func_call 218169344 // func[Rand]
shift_sp -1
push_const 30 //<--- % of landing skill
less
branch_false L64129

push_event // myself
push_const 704
add
fetch_i
func_call 184549616 // func[Despawn]
shift_sp -1
L64129
handler_end

I can do it better by checking lvl of skill and modify %
where does this AI go? in each of the summon classes? sorry nub in AI here
nnightmare is offline