View Single Post
Old 06.02.2007, 12:46   #6
isit
Архивный участник
 
Join Date: Feb 2007
Posts: 4
Default

how to add new functions in l2server.exe?

in the AI i have this:

class 1 summon_physicalattack : default_npc
handler 13 8 // CREATED
variable_begin
"myself"
"_choiceN"
"_code"
"_from_choice"
variable_end

push_event // myself
push_const 704
add
fetch_i
push_const xx.xx0000
func_call 184614934 // func[AddPetDefaultDesire_Follow]
shift_sp -1
shift_sp -1
handler_end

handler 0 8 // NO_DESIRE
variable_begin
"myself"
"_choiceN"
"_code"
"_from_choice"
variable_end

push_event // myself
push_const 704
add
fetch_i
push_const xx.xx0000
func_call 184614934 // func[AddPetDefaultDesire_Follow]
shift_sp -1
shift_sp -1
handler_end

handler 32 9 // MENU_SELECTED
variable_begin
"talker"
"ask"
"reply"
"myself"
"_choiceN"
"_code"
"_from_choice"
variable_end

push_event // ask
push_const 160
add
fetch_i4
push_const 1
equal
branch_false L10787
L10786
L10787
handler_end

class_end

i don't know where and what edit in this code for sending sysmsg about damage...

help please

sorry for my bad english again
isit is offline