![]() |
|
|
#1 |
|
Архивный участник
Join Date: Oct 2005
Posts: 175
|
Hola everybody,
here what i tested today: Code:
class rabbit : warrior_flee
{
handler:
EventHandler MY_DYING(c1)
{
c1 = GetLastAttacker();
if (OwnItemCount(c1, @red_soul_crystal_0) >= 1) {
DeleteItem1(c1, @red_soul_crystal_0, 1);
GiveItem1(c1, @red_soul_crystal_1,1);
}
if (OwnItemCount(c1, @red_soul_crystal_1) >= 1) {
DeleteItem1(c1, @red_soul_crystal_1, 1);
GiveItem1(c1, @red_soul_crystal_2,1);
}
if (OwnItemCount(c1, @red_soul_crystal_2) >= 1) {
DeleteItem1(c1, @red_soul_crystal_2, 1);
GiveItem1(c1, @red_soul_crystal_3,1);
}
if (OwnItemCount(c1, @red_soul_crystal_3) >= 1) {
DeleteItem1(c1, @red_soul_crystal_3, 1);
GiveItem1(c1, @red_soul_crystal_4,1);
}
if (OwnItemCount(c1, @red_soul_crystal_4) >= 1) {
DeleteItem1(c1, @red_soul_crystal_4, 1);
GiveItem1(c1, @red_soul_crystal_5,1);
}
if (OwnItemCount(c1, @red_soul_crystal_5) >= 1) {
DeleteItem1(c1, @red_soul_crystal_5, 1);
GiveItem1(c1, @red_soul_crystal_6,1);
}
if (OwnItemCount(c1, @red_soul_crystal_6) >= 1) {
DeleteItem1(c1, @red_soul_crystal_6, 1);
GiveItem1(c1, @red_soul_crystal_7,1);
}
if (OwnItemCount(c1, @red_soul_crystal_7) >= 1) {
DeleteItem1(c1, @red_soul_crystal_7, 1);
GiveItem1(c1, @red_soul_crystal_8,1);
}
if (OwnItemCount(c1, @red_soul_crystal_8) >= 1) {
DeleteItem1(c1, @red_soul_crystal_8, 1);
GiveItem1(c1, @red_soul_crystal_9,1);
}
if (OwnItemCount(c1, @red_soul_crystal_9) >= 1) {
DeleteItem1(c1, @red_soul_crystal_9, 1);
GiveItem1(c1, @red_soul_crystal_10,1);
}
}
}
Code:
class rabbit : warrior_flee handler 10 // MY_DYING variable_begin "c1" "myself" "_choiceN" "_code" "_from_choice" variable_end push_event // c1 push_const 260 add push_reg_sp fetch_i shift_sp 1 func_call 61 // func[GetLastAttacker] assign shift_sp -1 shift_sp 1 push_event // c1 push_const 260 add fetch_i push_const 4629 func_call 59 // func[OwnItemCount] shift_sp -2 push_const 1 greater_equal branch_false L1 L0 shift_sp 1 push_event // c1 push_const 260 add fetch_i push_const 4629 push_const 1 func_call 58 // func[DeleteItem1] shift_sp -3 shift_sp -1 shift_sp 1 push_event // c1 push_const 260 add fetch_i push_const 4630 push_const 1 func_call 55 // func[GiveItem1] shift_sp -3 shift_sp -1 L1 shift_sp 1 push_event // c1 push_const 260 add fetch_i push_const 4630 func_call 59 // func[OwnItemCount] shift_sp -2 push_const 1 greater_equal branch_false L3 L2 shift_sp 1 push_event // c1 push_const 260 add fetch_i push_const 4630 push_const 1 func_call 58 // func[DeleteItem1] shift_sp -3 shift_sp -1 shift_sp 1 push_event // c1 push_const 260 add fetch_i push_const 4631 push_const 1 func_call 55 // func[GiveItem1] shift_sp -3 shift_sp -1 L3 shift_sp 1 push_event // c1 push_const 260 add fetch_i push_const 4631 func_call 59 // func[OwnItemCount] shift_sp -2 push_const 1 greater_equal branch_false L5 L4 shift_sp 1 push_event // c1 push_const 260 add fetch_i push_const 4631 push_const 1 func_call 58 // func[DeleteItem1] shift_sp -3 shift_sp -1 shift_sp 1 push_event // c1 push_const 260 add fetch_i push_const 4632 push_const 1 func_call 55 // func[GiveItem1] shift_sp -3 shift_sp -1 L5 shift_sp 1 push_event // c1 push_const 260 add fetch_i push_const 4632 func_call 59 // func[OwnItemCount] shift_sp -2 push_const 1 greater_equal branch_false L7 L6 shift_sp 1 push_event // c1 push_const 260 add fetch_i push_const 4632 push_const 1 func_call 58 // func[DeleteItem1] shift_sp -3 shift_sp -1 shift_sp 1 push_event // c1 push_const 260 add fetch_i push_const 4633 push_const 1 func_call 55 // func[GiveItem1] shift_sp -3 shift_sp -1 L7 shift_sp 1 push_event // c1 push_const 260 add fetch_i push_const 4633 func_call 59 // func[OwnItemCount] shift_sp -2 push_const 1 greater_equal branch_false L9 L8 shift_sp 1 push_event // c1 push_const 260 add fetch_i push_const 4633 push_const 1 func_call 58 // func[DeleteItem1] shift_sp -3 shift_sp -1 shift_sp 1 push_event // c1 push_const 260 add fetch_i push_const 4634 push_const 1 func_call 55 // func[GiveItem1] shift_sp -3 shift_sp -1 L9 shift_sp 1 push_event // c1 push_const 260 add fetch_i push_const 4634 func_call 59 // func[OwnItemCount] shift_sp -2 push_const 1 greater_equal branch_false L11 L10 shift_sp 1 push_event // c1 push_const 260 add fetch_i push_const 4634 push_const 1 func_call 58 // func[DeleteItem1] shift_sp -3 shift_sp -1 shift_sp 1 push_event // c1 push_const 260 add fetch_i push_const 4635 push_const 1 func_call 55 // func[GiveItem1] shift_sp -3 shift_sp -1 L11 shift_sp 1 push_event // c1 push_const 260 add fetch_i push_const 4635 func_call 59 // func[OwnItemCount] shift_sp -2 push_const 1 greater_equal branch_false L13 L12 shift_sp 1 push_event // c1 push_const 260 add fetch_i push_const 4635 push_const 1 func_call 58 // func[DeleteItem1] shift_sp -3 shift_sp -1 shift_sp 1 push_event // c1 push_const 260 add fetch_i push_const 4636 push_const 1 func_call 55 // func[GiveItem1] shift_sp -3 shift_sp -1 L13 shift_sp 1 push_event // c1 push_const 260 add fetch_i push_const 4636 func_call 59 // func[OwnItemCount] shift_sp -2 push_const 1 greater_equal branch_false L15 L14 shift_sp 1 push_event // c1 push_const 260 add fetch_i push_const 4636 push_const 1 func_call 58 // func[DeleteItem1] shift_sp -3 shift_sp -1 shift_sp 1 push_event // c1 push_const 260 add fetch_i push_const 4637 push_const 1 func_call 55 // func[GiveItem1] shift_sp -3 shift_sp -1 L15 shift_sp 1 push_event // c1 push_const 260 add fetch_i push_const 4637 func_call 59 // func[OwnItemCount] shift_sp -2 push_const 1 greater_equal branch_false L17 L16 shift_sp 1 push_event // c1 push_const 260 add fetch_i push_const 4637 push_const 1 func_call 58 // func[DeleteItem1] shift_sp -3 shift_sp -1 shift_sp 1 push_event // c1 push_const 260 add fetch_i push_const 4638 push_const 1 func_call 55 // func[GiveItem1] shift_sp -3 shift_sp -1 L17 shift_sp 1 push_event // c1 push_const 260 add fetch_i push_const 4638 func_call 59 // func[OwnItemCount] shift_sp -2 push_const 1 greater_equal branch_false L19 L18 shift_sp 1 push_event // c1 push_const 260 add fetch_i push_const 4638 push_const 1 func_call 58 // func[DeleteItem1] shift_sp -3 shift_sp -1 shift_sp 1 push_event // c1 push_const 260 add fetch_i push_const 4639 push_const 1 func_call 55 // func[GiveItem1] shift_sp -3 shift_sp -1 L19 handler_end class_end |
|
|
|
|
#2 |
|
Архивный участник
Join Date: Nov 2005
Posts: 85
|
потому что nasac старой версии, и надо править hendlers и все функции, тоесть менять номера хендлеров и функций
|
|
|
|
|
#3 |
|
Архивный участник
Join Date: Nov 2005
Posts: 85
|
fixed
[php:1:d6c4caebd3] class rabbit : warrior_flee handler 10 // MY_DYING variable_begin "c1" "myself" "_choiceN" "_code" "_from_choice" variable_end push_event // c1 push_const 276 add push_reg_sp fetch_i shift_sp 1 func_call 83 // func[GetLastAttacker] assign shift_sp -1 shift_sp 1 push_event // c1 push_const 276 add fetch_i push_const 4629 func_call 81 // func[OwnItemCount] shift_sp -2 push_const 1 greater_equal branch_false L1 L0 shift_sp 1 push_event // c1 push_const 276 add fetch_i push_const 4629 push_const 1 func_call 80 // func[DeleteItem1] shift_sp -3 shift_sp -1 shift_sp 1 push_event // c1 push_const 276 add fetch_i push_const 4630 push_const 1 func_call 77 // func[GiveItem1] shift_sp -3 shift_sp -1 L1 shift_sp 1 push_event // c1 push_const 276 add fetch_i push_const 4630 func_call 81 // func[OwnItemCount] shift_sp -2 push_const 1 greater_equal branch_false L3 L2 shift_sp 1 push_event // c1 push_const 276 add fetch_i push_const 4630 push_const 1 func_call 80 // func[DeleteItem1] shift_sp -3 shift_sp -1 shift_sp 1 push_event // c1 push_const 276 add fetch_i push_const 4631 push_const 1 func_call 77 // func[GiveItem1] shift_sp -3 shift_sp -1 L3 shift_sp 1 push_event // c1 push_const 276 add fetch_i push_const 4631 func_call 81 // func[OwnItemCount] shift_sp -2 push_const 1 greater_equal branch_false L5 L4 shift_sp 1 push_event // c1 push_const 276 add fetch_i push_const 4631 push_const 1 func_call 80 // func[DeleteItem1] shift_sp -3 shift_sp -1 shift_sp 1 push_event // c1 push_const 276 add fetch_i push_const 4632 push_const 1 func_call 77 // func[GiveItem1] shift_sp -3 shift_sp -1 L5 shift_sp 1 push_event // c1 push_const 276 add fetch_i push_const 4632 func_call 81 // func[OwnItemCount] shift_sp -2 push_const 1 greater_equal branch_false L7 L6 shift_sp 1 push_event // c1 push_const 276 add fetch_i push_const 4632 push_const 1 func_call 80 // func[DeleteItem1] shift_sp -3 shift_sp -1 shift_sp 1 push_event // c1 push_const 276 add fetch_i push_const 4633 push_const 1 func_call 77 // func[GiveItem1] shift_sp -3 shift_sp -1 L7 shift_sp 1 push_event // c1 push_const 276 add fetch_i push_const 4633 func_call 81 // func[OwnItemCount] shift_sp -2 push_const 1 greater_equal branch_false L9 L8 shift_sp 1 push_event // c1 push_const 276 add fetch_i push_const 4633 push_const 1 func_call 80 // func[DeleteItem1] shift_sp -3 shift_sp -1 shift_sp 1 push_event // c1 push_const 276 add fetch_i push_const 4634 push_const 1 func_call 77 // func[GiveItem1] shift_sp -3 shift_sp -1 L9 shift_sp 1 push_event // c1 push_const 276 add fetch_i push_const 4634 func_call 81 // func[OwnItemCount] shift_sp -2 push_const 1 greater_equal branch_false L11 L10 shift_sp 1 push_event // c1 push_const 276 add fetch_i push_const 4634 push_const 1 func_call 80 // func[DeleteItem1] shift_sp -3 shift_sp -1 shift_sp 1 push_event // c1 push_const 276 add fetch_i push_const 4635 push_const 1 func_call 77 // func[GiveItem1] shift_sp -3 shift_sp -1 L11 shift_sp 1 push_event // c1 push_const 276 add fetch_i push_const 4635 func_call 81 // func[OwnItemCount] shift_sp -2 push_const 1 greater_equal branch_false L13 L12 shift_sp 1 push_event // c1 push_const 276 add fetch_i push_const 4635 push_const 1 func_call 80 // func[DeleteItem1] shift_sp -3 shift_sp -1 shift_sp 1 push_event // c1 push_const 276 add fetch_i push_const 4636 push_const 1 func_call 77 // func[GiveItem1] shift_sp -3 shift_sp -1 L13 shift_sp 1 push_event // c1 push_const 276 add fetch_i push_const 4636 func_call 81 // func[OwnItemCount] shift_sp -2 push_const 1 greater_equal branch_false L15 L14 shift_sp 1 push_event // c1 push_const 276 add fetch_i push_const 4636 push_const 1 func_call 80 // func[DeleteItem1] shift_sp -3 shift_sp -1 shift_sp 1 push_event // c1 push_const 276 add fetch_i push_const 4637 push_const 1 func_call 77 // func[GiveItem1] shift_sp -3 shift_sp -1 L15 shift_sp 1 push_event // c1 push_const 276 add fetch_i push_const 4637 func_call 81 // func[OwnItemCount] shift_sp -2 push_const 1 greater_equal branch_false L17 L16 shift_sp 1 push_event // c1 push_const 276 add fetch_i push_const 4637 push_const 1 func_call 80 // func[DeleteItem1] shift_sp -3 shift_sp -1 shift_sp 1 push_event // c1 push_const 276 add fetch_i push_const 4638 push_const 1 func_call 77 // func[GiveItem1] shift_sp -3 shift_sp -1 L17 shift_sp 1 push_event // c1 push_const 276 add fetch_i push_const 4638 func_call 81 // func[OwnItemCount] shift_sp -2 push_const 1 greater_equal branch_false L19 L18 shift_sp 1 push_event // c1 push_const 276 add fetch_i push_const 4638 push_const 1 func_call 80 // func[DeleteItem1] shift_sp -3 shift_sp -1 shift_sp 1 push_event // c1 push_const 276 add fetch_i push_const 4639 push_const 1 func_call 77 // func[GiveItem1] shift_sp -3 shift_sp -1 L19 handler_end class_end [/php:1:d6c4caebd3] |
|
|
|
|
#4 |
|
Архивный участник
Join Date: Oct 2005
Posts: 175
|
я используют NASC от L2Tool 1.6, более лучший вариант? вы
|
|
|
|
|
#5 |
|
Архивный участник
Join Date: Nov 2005
Posts: 85
|
я так думаю он у всех одинаковый... и не совпадает с версией нпс сервера надо править хендлеры... посмотрите отличия
|
|
|
|
|
#6 |
|
Архивный участник
Join Date: Oct 2005
Posts: 175
|
mmmh but i can see mine gave me:
Code:
push_event // c1 push_const 260 Code:
push_event // c1 push_const 276 |
|
|
|
|
#7 |
|
Архивный участник
Join Date: Nov 2005
Posts: 85
|
i did that by script in php
|
|
|
|
|
#8 |
|
Архивный участник
Join Date: Mar 2005
Posts: 475
|
Code:
class rabbit : warrior_flee
{
handler:
EventHandler MY_DYING(c1)
{
c1 = GetLastAttacker();
if (OwnItemCount(c1, @red_soul_crystal_0) >= 1) {
DeleteItem1(c1, @red_soul_crystal_0, 1);
GiveItem1(c1, @red_soul_crystal_1,1);
}
else if (OwnItemCount(c1, @red_soul_crystal_1) >= 1) {
DeleteItem1(c1, @red_soul_crystal_1, 1);
GiveItem1(c1, @red_soul_crystal_2,1);
}
else if (OwnItemCount(c1, @red_soul_crystal_2) >= 1) {
DeleteItem1(c1, @red_soul_crystal_2, 1);
GiveItem1(c1, @red_soul_crystal_3,1);
}
else if (OwnItemCount(c1, @red_soul_crystal_3) >= 1) {
DeleteItem1(c1, @red_soul_crystal_3, 1);
GiveItem1(c1, @red_soul_crystal_4,1);
}
else if (OwnItemCount(c1, @red_soul_crystal_4) >= 1) {
DeleteItem1(c1, @red_soul_crystal_4, 1);
GiveItem1(c1, @red_soul_crystal_5,1);
}
else if (OwnItemCount(c1, @red_soul_crystal_5) >= 1) {
DeleteItem1(c1, @red_soul_crystal_5, 1);
GiveItem1(c1, @red_soul_crystal_6,1);
}
else if (OwnItemCount(c1, @red_soul_crystal_6) >= 1) {
DeleteItem1(c1, @red_soul_crystal_6, 1);
GiveItem1(c1, @red_soul_crystal_7,1);
}
else if (OwnItemCount(c1, @red_soul_crystal_7) >= 1) {
DeleteItem1(c1, @red_soul_crystal_7, 1);
GiveItem1(c1, @red_soul_crystal_8,1);
}
else if (OwnItemCount(c1, @red_soul_crystal_8) >= 1) {
DeleteItem1(c1, @red_soul_crystal_8, 1);
GiveItem1(c1, @red_soul_crystal_9,1);
}
else if (OwnItemCount(c1, @red_soul_crystal_9) >= 1) {
DeleteItem1(c1, @red_soul_crystal_9, 1);
GiveItem1(c1, @red_soul_crystal_10,1);
}
}
}
this one should work |
|
|
|
|
#9 |
|
Архивный участник
Join Date: Apr 2005
Posts: 599
|
He - can you share you php compiller?
|
|
|
|
|
#10 |
|
Архивный участник
Join Date: Nov 2005
Posts: 85
|
конечно могу, тока немного попозжа)
|
|
|
|
|
#11 |
|
Архивный участник
Join Date: Oct 2005
Posts: 175
|
do you mean you updated nasc results in that way ?
Code:
push_const 260 -> push_const 276 (260 + 16 = 176) func_call 61 -> func_call 83 (61 + 22 = 83) func_call 59 -> func_call 81 (59 + 22 = 81) func_call 58 -> func_call 80 (58 + 22 = 80) |
|
|
|
|
#12 |
|
Архивный участник
Join Date: Nov 2005
Posts: 85
|
may be thet`s right, may be not.... i dont know... никогда нидумал о таком варианте решения проблемы) я использовал простое сравнение и исправление...
|
|
|
|
|
#13 |
|
Архивный участник
Join Date: Nov 2005
Posts: 85
|
у тебя есть l2tools??? там есть прога для испраления функций.. поищи в разделе AI Tools...
|
|
|
|
|
#14 |
|
Архивный участник
Join Date: May 2005
Posts: 944
|
Would you mind talking in english so everyone can understand ? :|
|
|
|
|
|
#15 |
|
Архивный участник
Join Date: Apr 2005
Posts: 599
|
rus А вот такой вопрос в нутри хендлера L0 - L1 ... строки они как бы в другом хендлере могут быть такие же или они должны быть уникальными?
Так посмотрел ai свой - понял что уникальные - тоесть нельзя внутри разных хеедлеров повторять (((
|
|
|
|
|
#16 |
|
Архивный участник
Join Date: Nov 2005
Posts: 85
|
rus: Работая с аи я так понял, что ссылки или метки должны быть уникальными в пределах класса, тоесть не должны повторятся в течении всего класса... Я думаю что в разных классах метки можно повторять.. хотя точный ответ могут дать только ребята из нксофта)
|
|
|
|
|
#17 | |
|
Архивный участник
Join Date: Feb 2006
Posts: 2
|
Quote:
Huh? |
|
|
|
|
|
#18 |
|
Архивный участник
Join Date: Apr 2005
Posts: 599
|
We disscuss ai.obj - shold we use unic id's for L0 L1 L2 in 1 handler, cool_santino has asked to ask it at NCSOFT
)
|
|
|
|
|
#19 |
|
Архивный участник
Join Date: Nov 2005
Posts: 85
|
)
|
|
|
|
|
#20 |
|
Архивный участник
Join Date: Oct 2005
Posts: 175
|
благодарит много для вашей помощи, я перезарядить сервера NPC для того чтобы испытать все я написал теперь ^^
|
|
|
|
|
#21 | ||
|
Архивный участник
Join Date: Oct 2005
Posts: 102
|
Quote:
Quote:
|
||
|
|
|
|
#22 |
|
Архивный участник
Join Date: Apr 2005
Posts: 599
|
kvoxi thx.
kvoxi - answer my question, we should use unic id's in 1 handler and should't use in other handlers. |
|
|
|
|
#23 |
|
Архивный участник
Join Date: Apr 2005
Posts: 357
|
labels and strings may be unical in whole class
|
|
|
|
|
#24 |
|
Архивный участник
Join Date: Oct 2005
Posts: 175
|
hello,
i tried to write something like that: Code:
class warrior_sa : warrior
{
parameter:
int MaxLevel = 2;
int PerGet01 = 100;
int PerGet12 = 90;
int PerBreak0 = 0;
int PerBreak1 = 5;
handler:
EventHandler SPELLED(speller, skill_name_id)
{
if(skill_name_id == @s_soul_crystal)
{
//---------- BLUE SOUL CRYSTAL
if ((OwnItemCount(speller, @blue_soul_crystal_0) >= 1) && (MaxLevel >= 1)) {
if (Rand(100) >= PerGet01) {
DeleteItem1(speller, @blue_soul_crystal_0, 1);
GiveItem1(speller, @blue_soul_crystal_1,1);
SoundEffect(speller, "ItemSound.quest_itemget"); Despawn();
} else if (Rand(100) < PerBreak0) {
DeleteItem1(speller, @blue_soul_crystal_0, 1);
SoundEffect(speller, "ItemSound.quest_middle"); Despawn();
}
} else if ((OwnItemCount(speller, @blue_soul_crystal_1) >= 1) && (MaxLevel >= 2)) {
if (Rand(100) >= PerGet12) {
DeleteItem1(speller, @blue_soul_crystal_1, 1);
GiveItem1(speller, @blue_soul_crystal_2,1);
SoundEffect(speller, "ItemSound.quest_itemget"); Despawn();
} else if (Rand(100) < PerBreak1) {
DeleteItem1(speller, @blue_soul_crystal_1, 1);
SoundEffect(speller, "ItemSound.quest_middle"); Despawn();
}
}
}
}
}
Code:
class warrior_sa : warrior parameter_define_begin int MaxLevel 2 int PerGet01 100 int PerGet12 90 int PerBreak0 0 int PerBreak1 5 parameter_define_end handler 2 // SPELLED variable_begin "speller" "skill_name_id" "myself" "_choiceN" "_code" "_from_choice" variable_end push_event // skill_name_id push_const 120 add fetch_i push_const 536577 equal branch_false L1 L0 shift_sp 1 push_event // speller push_const 56 add fetch_i push_const 4651 func_call 81 // func[OwnItemCount] shift_sp -2 push_const 1 greater_equal push_reg_sp fetch_i branch_false L2 push_parameter MaxLevel push_const 1 greater_equal and L2 branch_false L4 L3 shift_sp 1 push_const 100 func_call 55 // func[Rand] shift_sp -1 push_parameter PerGet01 greater_equal branch_false L6 L5 shift_sp 1 push_event // speller push_const 56 add fetch_i push_const 4651 push_const 1 func_call 80 // func[DeleteItem1] shift_sp -3 shift_sp -1 shift_sp 1 push_event // speller push_const 56 add fetch_i push_const 4652 push_const 1 func_call 77 // func[GiveItem1] shift_sp -3 shift_sp -1 shift_sp 1 push_event // speller push_const 56 add fetch_i S1. "ItemSound.quest_itemget" push_string S1 func_call 173 // func[SoundEffect] shift_sp -2 shift_sp -1 shift_sp 1 func_call 175 // func[Despawn] shift_sp -1 jump L7 L6 shift_sp 1 push_const 100 func_call 55 // func[Rand] shift_sp -1 push_parameter PerBreak0 less branch_false L9 L8 shift_sp 1 push_event // speller push_const 56 add fetch_i push_const 4651 push_const 1 func_call 80 // func[DeleteItem1] shift_sp -3 shift_sp -1 shift_sp 1 push_event // speller push_const 56 add fetch_i S2. "ItemSound.quest_middle" push_string S2 func_call 173 // func[SoundEffect] shift_sp -2 shift_sp -1 shift_sp 1 func_call 175 // func[Despawn] shift_sp -1 L9 L7 jump L10 L4 shift_sp 1 push_event // speller push_const 56 add fetch_i push_const 4652 func_call 81 // func[OwnItemCount] shift_sp -2 push_const 1 greater_equal push_reg_sp fetch_i branch_false L11 push_parameter MaxLevel push_const 2 greater_equal and L11 branch_false L13 L12 shift_sp 1 push_const 100 func_call 55 // func[Rand] shift_sp -1 push_parameter PerGet12 greater_equal branch_false L15 L14 shift_sp 1 push_event // speller push_const 56 add fetch_i push_const 4652 push_const 1 func_call 80 // func[DeleteItem1] shift_sp -3 shift_sp -1 shift_sp 1 push_event // speller push_const 56 add fetch_i push_const 4653 push_const 1 func_call 77 // func[GiveItem1] shift_sp -3 shift_sp -1 shift_sp 1 push_event // speller push_const 56 add fetch_i S3. "ItemSound.quest_itemget" push_string S3 func_call 173 // func[SoundEffect] shift_sp -2 shift_sp -1 shift_sp 1 func_call 175 // func[Despawn] shift_sp -1 jump L16 L15 shift_sp 1 push_const 100 func_call 55 // func[Rand] shift_sp -1 push_parameter PerBreak1 less branch_false L18 L17 shift_sp 1 push_event // speller push_const 56 add fetch_i push_const 4652 push_const 1 func_call 80 // func[DeleteItem1] shift_sp -3 shift_sp -1 shift_sp 1 push_event // speller push_const 56 add fetch_i S4. "ItemSound.quest_middle" push_string S4 func_call 173 // func[SoundEffect] shift_sp -2 shift_sp -1 shift_sp 1 func_call 175 // func[Despawn] shift_sp -1 L18 L16 L13 L10 L1 handler_end class_end |
|
|
|
|
#25 |
|
Архивный участник
Join Date: Oct 2005
Posts: 175
|
damn of course i know why lol sorry i found my error, i ll test it later with some updates
if (Rand(100) >= PerGet01) must be if (Rand(100) <= PerGet01) |
|
|
|
|