![]() |
|
|
#1 |
|
Архивный участник
Join Date: May 2005
Posts: 117
|
Code:
class stock_teleport : warrior handler 1 // ATTACKED variable_begin "attacker" "damage" "myself" "_choiceN" "_code" "_from_choice" variable_end push_event // attacker push_const 36 add fetch_i // is_pc push_const 108 add fetch_i push_const 0 not_equal push_reg_sp fetch_i branch_true L69 shift_sp 1 push_const 9 push_event // attacker push_const 36 add fetch_i // npc_class_id push_const 1620 add fetch_i func_call 143 // func[IsInCategory] shift_sp -2 or L69 branch_false L71 L70 shift_sp 1 push_event // attacker push_const 36 add fetch_i push_const 1 push_event // damage push_const 84 add fetch_i push_event // myself push_const 28 add fetch_i // sm push_const 2400 add fetch_i // max_hp push_const 1000 add fetch_d div push_const 0.050000 div push_const 100 mul func_call 2 // func[AddAttackDesire] shift_sp -3 shift_sp -1 L71 push_event // myself push_const 28 add fetch_i // i_ai1 push_const 2340 add fetch_i push_const 11 not_equal push_reg_sp fetch_i branch_false L72 push_event // myself push_const 28 add fetch_i // top_desire_target push_const 2412 add fetch_i push_event // attacker push_const 36 add fetch_i equal and push_reg_sp fetch_i branch_false L72 shift_sp 1 push_event // attacker push_const 36 add fetch_i func_call 51 // func[DistFromMe] shift_sp -1 push_const 150 greater and L72 branch_false L74 L73 push_event // myself push_const 28 add fetch_i // i_ai1 push_const 2340 add push_reg_sp fetch_i push_const 11 assign shift_sp -1 push_event // myself push_const 28 add fetch_i // c_ai0 push_const 2380 add push_reg_sp fetch_i push_event // attacker push_const 36 add fetch_i assign shift_sp -1 push_event // myself push_const 28 add fetch_i // i_ai0 push_const 2336 add push_reg_sp fetch_i shift_sp 1 push_event // attacker push_const 36 add fetch_i // hp push_const 344 add fetch_d func_call 57 // func[FloatToInt] shift_sp -1 assign shift_sp -1 push_event // myself push_const 28 add fetch_i // i_ai3 push_const 2348 add push_reg_sp fetch_i shift_sp 1 push_event // attacker push_const 36 add fetch_i // x push_const 8 add fetch_d func_call 57 // func[FloatToInt] shift_sp -1 assign shift_sp -1 push_event // myself push_const 28 add fetch_i // i_ai4 push_const 2352 add push_reg_sp fetch_i shift_sp 1 push_event // attacker push_const 36 add fetch_i // y push_const 16 add fetch_d func_call 57 // func[FloatToInt] shift_sp -1 assign shift_sp -1 push_event // myself push_const 28 add fetch_i // i_quest0 push_const 2316 add push_reg_sp fetch_i push_event // damage push_const 84 add fetch_i assign shift_sp -1 push_event // myself push_const 28 add fetch_i // i_quest3 push_const 2328 add push_reg_sp fetch_i shift_sp 1 shift_sp 1 push_event // attacker push_const 36 add fetch_i func_call 51 // func[DistFromMe] shift_sp -1 func_call 57 // func[FloatToInt] shift_sp -1 assign shift_sp -1 shift_sp 1 push_const 5001 push_const 15000 func_call 28 // func[AddTimerEx] shift_sp -2 shift_sp -1 L74 handler_end handler 23 // CLAN_ATTACKED variable_begin "attacker" "damage" "myself" "_choiceN" "_code" "_from_choice" variable_end push_event // attacker push_const 36 add fetch_i // is_pc push_const 108 add fetch_i push_const 0 not_equal push_reg_sp fetch_i branch_true L75 shift_sp 1 push_const 9 push_event // attacker push_const 36 add fetch_i // npc_class_id push_const 1620 add fetch_i func_call 143 // func[IsInCategory] shift_sp -2 or L75 branch_false L77 L76 shift_sp 1 push_event // attacker push_const 36 add fetch_i push_const 1 push_event // damage push_const 84 add fetch_i push_event // myself push_const 28 add fetch_i // sm push_const 2400 add fetch_i // max_hp push_const 1000 add fetch_d div push_const 0.050000 div push_const 30 mul func_call 2 // func[AddAttackDesire] shift_sp -3 shift_sp -1 L77 push_event // attacker push_const 36 add fetch_i push_event // myself push_const 28 add fetch_i // c_ai0 push_const 2380 add fetch_i equal branch_false L79 L78 push_event // myself push_const 28 add fetch_i // i_quest0 push_const 2316 add fetch_i push_event // damage push_const 84 add fetch_i equal branch_false L81 L80 push_event // myself push_const 28 add fetch_i // i_quest1 push_const 2320 add push_reg_sp fetch_i push_const 3 assign shift_sp -1 jump L82 L81 push_event // myself push_const 28 add fetch_i // i_quest1 push_const 2320 add push_reg_sp fetch_i push_const 1 assign shift_sp -1 L82 L79 handler_end handler 12 // TIMER_FIRED_EX variable_begin "timer_id" "myself" "_choiceN" "_code" "_from_choice" variable_end push_event // timer_id push_const 176 add fetch_i push_const 5001 equal branch_false L84 L83 push_event // myself push_const 28 add fetch_i // i_ai2 push_const 2344 add push_reg_sp fetch_i push_const 0 assign shift_sp -1 shift_sp 1 push_event // myself push_const 28 add fetch_i // c_ai0 push_const 2380 add fetch_i func_call 51 // func[DistFromMe] shift_sp -1 push_const 400 greater push_reg_sp fetch_i branch_false L85 shift_sp 1 push_event // myself push_const 28 add fetch_i // c_ai0 push_const 2380 add fetch_i func_call 51 // func[DistFromMe] shift_sp -1 push_const 650 less and L85 branch_false L87 L86 push_event // myself push_const 28 add fetch_i // i_ai2 push_const 2344 add push_reg_sp fetch_i push_event // myself push_const 28 add fetch_i // i_ai2 push_const 2344 add fetch_i push_const 1 add assign shift_sp -1 L87 push_event // myself push_const 28 add fetch_i // c_ai0 push_const 2380 add fetch_i // z push_const 24 add fetch_d push_event // myself push_const 28 add fetch_i // sm push_const 2400 add fetch_i // z push_const 24 add fetch_d push_const 100 sub greater branch_false L89 L88 push_event // myself push_const 28 add fetch_i // i_ai2 push_const 2344 add push_reg_sp fetch_i push_event // myself push_const 28 add fetch_i // i_ai2 push_const 2344 add fetch_i push_const 3 add assign shift_sp -1 L89 push_event // myself push_const 28 add fetch_i // c_ai0 push_const 2380 add fetch_i // hp push_const 344 add fetch_d push_const 0.950000 push_event // myself push_const 28 add fetch_i // i_ai0 push_const 2336 add fetch_i mul greater_equal branch_false L91 L90 push_event // myself push_const 28 add fetch_i // i_ai2 push_const 2344 add push_reg_sp fetch_i push_event // myself push_const 28 add fetch_i // i_ai2 push_const 2344 add fetch_i push_const 2 add assign shift_sp -1 L91 push_event // myself push_const 28 add fetch_i // i_ai3 push_const 2348 add fetch_i shift_sp 1 push_event // myself push_const 28 add fetch_i // c_ai0 push_const 2380 add fetch_i // x push_const 8 add fetch_d func_call 57 // func[FloatToInt] shift_sp -1 equal push_reg_sp fetch_i branch_false L92 push_event // myself push_const 28 add fetch_i // i_ai4 push_const 2352 add fetch_i shift_sp 1 push_event // myself push_const 28 add fetch_i // c_ai0 push_const 2380 add fetch_i // y push_const 16 add fetch_d func_call 57 // func[FloatToInt] shift_sp -1 equal and L92 branch_false L94 L93 push_event // myself push_const 28 add fetch_i // i_ai2 push_const 2344 add push_reg_sp fetch_i push_event // myself push_const 28 add fetch_i // i_ai2 push_const 2344 add fetch_i push_const 3 add assign shift_sp -1 L94 push_event // myself push_const 28 add fetch_i // i_ai2 push_const 2344 add push_reg_sp fetch_i push_event // myself push_const 28 add fetch_i // i_ai2 push_const 2344 add fetch_i push_event // myself push_const 28 add fetch_i // i_quest1 push_const 2320 add fetch_i add assign shift_sp -1 push_event // myself push_const 28 add fetch_i // i_quest1 push_const 2320 add push_reg_sp fetch_i push_const 0 assign shift_sp -1 shift_sp 1 shift_sp 1 push_event // myself push_const 28 add fetch_i // c_ai0 push_const 2380 add fetch_i func_call 51 // func[DistFromMe] shift_sp -1 func_call 57 // func[FloatToInt] shift_sp -1 push_event // myself push_const 28 add fetch_i // i_quest3 push_const 2328 add fetch_i equal branch_false L96 L95 push_event // myself push_const 28 add fetch_i // i_quest1 push_const 2320 add fetch_i push_const 3 equal branch_false L98 L97 jump L99 L98 push_event // myself push_const 28 add fetch_i // i_quest1 push_const 2320 add fetch_i push_const 1 equal branch_false L101 L100 push_event // myself push_const 28 add fetch_i // i_ai2 push_const 2344 add push_reg_sp fetch_i push_event // myself push_const 28 add fetch_i // i_ai2 push_const 2344 add fetch_i push_const 1 sub assign shift_sp -1 jump L102 L101 push_event // myself push_const 28 add fetch_i // i_ai2 push_const 2344 add push_reg_sp fetch_i push_event // myself push_const 28 add fetch_i // i_ai2 push_const 2344 add fetch_i push_const 1 sub assign shift_sp -1 L102 L99 L96 push_event // myself push_const 28 add fetch_i // i_ai1 push_const 2340 add fetch_i push_const 99 not_equal push_reg_sp fetch_i branch_false L103 push_event // myself push_const 28 add fetch_i // c_ai0 push_const 2380 add fetch_i push_event // myself push_const 28 add fetch_i // top_desire_target push_const 2412 add fetch_i equal and push_reg_sp fetch_i branch_false L103 push_event // myself push_const 28 add fetch_i // i_ai2 push_const 2344 add fetch_i push_const 8 greater_equal and push_reg_sp fetch_i branch_false L103 shift_sp 1 push_event // myself push_const 28 add fetch_i // c_ai0 push_const 2380 add fetch_i func_call 51 // func[DistFromMe] shift_sp -1 push_const 100 greater and push_reg_sp fetch_i branch_false L103 shift_sp 1 push_event // myself push_const 28 add fetch_i // c_ai0 push_const 2380 add fetch_i func_call 51 // func[DistFromMe] shift_sp -1 push_const 750 less and L103 branch_false L105 L104 push_event // myself push_const 28 add fetch_i // i_ai1 push_const 2340 add push_reg_sp fetch_i push_const 99 assign shift_sp -1 shift_sp 1 func_call 15 // func[RemoveAllAttackDesire] shift_sp -1 shift_sp 1 push_event // myself push_const 28 add fetch_i // sm push_const 2400 add fetch_i shift_sp 1 push_event // myself push_const 28 add fetch_i // c_ai0 push_const 2380 add fetch_i // x push_const 8 add fetch_d func_call 57 // func[FloatToInt] shift_sp -1 shift_sp 1 push_event // myself push_const 28 add fetch_i // c_ai0 push_const 2380 add fetch_i // y push_const 16 add fetch_d func_call 57 // func[FloatToInt] shift_sp -1 shift_sp 1 push_event // myself push_const 28 add fetch_i // c_ai0 push_const 2380 add fetch_i // z push_const 24 add fetch_d func_call 57 // func[FloatToInt] shift_sp -1 push_const 10 add func_call 46 // func[InstantTeleport] shift_sp -4 shift_sp -1 shift_sp 1 push_event // myself push_const 28 add fetch_i // c_ai0 push_const 2380 add fetch_i push_const 1 push_const 10 push_const 500 mul func_call 2 // func[AddAttackDesire] shift_sp -3 shift_sp -1 L105 push_event // myself push_const 28 add fetch_i // i_ai1 push_const 2340 add push_reg_sp fetch_i push_const 50 assign shift_sp -1 jump L106 L84 call_super L106 handler_end class_end Leachers, please don't change something and write here that code doesn't work
|
|
|
|
|