![]() |
|
|
#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
|
|
|
|
|
#2 |
|
Архивный участник
Join Date: Jul 2005
Posts: 242
|
really sorry but whats "anti train"? :P
|
|
|
|
|
#3 |
|
Архивный участник
Join Date: Oct 2005
Posts: 153
|
omg if this really works is a great add !! testing it , ill get back to you once i finish test.
thanks for the share =) |
|
|
|
|
#4 |
|
Архивный участник
Join Date: Mar 2005
Posts: 475
|
yes awesome
got to test that |
|
|
|
|
#5 |
|
Архивный участник
Join Date: May 2005
Posts: 463
|
omg very nice
![]() in test... |
|
|
|
|
#6 | |
|
Архивный участник
Join Date: May 2005
Posts: 115
|
Quote:
|
|
|
|
|
|
#7 |
|
Архивный участник
Join Date: Nov 2005
Posts: 85
|
а можно исходничек поглядеть?
post please sources... i wont to see how its work :P |
|
|
|
|
#8 |
|
Архивный участник
Join Date: Feb 2005
Posts: 177
|
it must be added after warrior : default_npc ?
|
|
|
|
|
#9 |
|
Архивный участник
Join Date: Jun 2005
Posts: 364
|
what exactly does it do?
|
|
|
|
|
#10 |
|
Архивный участник
Join Date: Aug 2005
Posts: 180
|
Hm, 100% work?)
|
|
|
|
|
#11 |
|
Архивный участник
Join Date: Nov 2005
Posts: 85
|
please share sources...
|
|
|
|
|
#12 |
|
Архивный участник
Join Date: Aug 2005
Posts: 180
|
<rus> да не стоит заморачиваться, косячит данный фикс не по детски, без него даж лучше. В лучшем случае портнет только моба которого атакуешь, да и то если очень не повезет, у меня при тесте уткнувшись в стену не портнуло ни разу, уткнувшись в забор периодически портило, но например за то время пока моб соображал портнуться, он врядли бы выжил.<rus>
|
|
|
|
|
#13 |
|
Архивный участник
Join Date: Nov 2005
Posts: 85
|
<rus>Ну может можно доработать скрипт, тока не по стековому варианту а по исходникам....<rus>
|
|
|
|
|
#14 |
|
Архивный участник
Join Date: May 2005
Posts: 117
|
dar55, try to do same thing with mass magic.
<rus>Короче можно сделать так чтобы к лучникам телепортились. Тока тогда они будут ещё и не во время паровоза телепортиться.</rus> If you can make better - just do it. |
|
|
|
|
#15 |
|
Архивный участник
Join Date: Mar 2005
Posts: 6
|
<rus>А что бы под стенами не стояли и не тупили можно ?</rus>
|
|
|
|
|
#16 |
|
Архивный участник
Join Date: Aug 2005
Posts: 180
|
<rus> можно, есть даже такой вариант, но вроде говорят немного не доделан<rus>
|
|
|
|
|
#17 |
|
Архивный участник
Join Date: Aug 2005
Posts: 44
|
Tnx for share, mate. Btw is this Russian forum :?
|
|
|
|
|
#18 |
|
Архивный участник
Join Date: Aug 2005
Posts: 605
|
thanks for sharing. How can I use it?
|
|
|
|
|
#19 |
|
Архивный участник
Join Date: May 2005
Posts: 117
|
You must set this ai to mobs.
Example: replace class gremlin : warrior_passive with class gremlin : stock_teleport |
|
|
|
|
#20 | |
|
Архивный участник
Join Date: Sep 2005
Posts: 408
|
Quote:
Also.. if the same AI is used for all mobs, they will no longer be agressive.. or they will all be aggressive...? |
|
|
|
|
|
#21 |
|
Архивный участник
Join Date: May 2005
Posts: 117
|
No. If you need agressive mob made it class xxx : warrior_aggressive.
|
|
|
|
|
#22 |
|
Архивный участник
Join Date: Sep 2005
Posts: 408
|
But that just negates the need for the anti-train function. So only non-aggressive mobs will be affected by the anti-train function? Pointless in my honest opinion.
|
|
|
|
|
#23 |
|
Архивный участник
Join Date: May 2005
Posts: 117
|
You just need to use your brain to make it really usable.
|
|
|
|
|
#24 |
|
Архивный участник
Join Date: Aug 2005
Posts: 605
|
what is the effect on users then?
|
|
|
|
|
#25 | |
|
Архивный участник
Join Date: May 2005
Posts: 118
|
Quote:
|
|
|
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|