![]() |
|
|
|
|
#1 |
|
Архивный участник
Join Date: Feb 2005
Posts: 100
|
alright, I've been trying for quite some time and now it just crashes the server quite often :[
This is what I've got at this very moment: handler 17 // OUT_OF_TERRITORY variable_begin "myself" "_choiceN" "_code" "_from_choice" variable_end push_event // myself push_const 28 add fetch_i // sm push_const 2400 add fetch_i // hp push_const 344 add fetch_d push_event // myself push_const 28 add fetch_i // sm push_const 2400 add fetch_i // max_hp push_const 1000 add fetch_d push_const 1xx.xx0000 div push_const xx.xx0000 mul greater branch_false L75002 L75001 shift_sp 1 push_event // myself push_const 28 add fetch_i // start_x push_const 2428 add fetch_i push_event // myself push_const 28 add fetch_i // start_y push_const 2432 add fetch_i push_event // myself push_const 28 add fetch_i // start_z push_const 2436 add fetch_i func_call 46 // func[InstantTeleport] shift_sp -4 shift_sp -1 L75002 handler_end The idea is that the mobs, that get dragged out of spawn area get teleported back if their amount of remaining health points is greater than 95% of total health. |
|
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|