Иконка ресурса

Скрипт Баффер с сервера Reborn-World

kick

Предвестник
Administrator
За веру и верность форуму
Отец-основатель
Сообщения
6 970
Розыгрыши
22
Решения
1
Репутация
6 046
Реакции
6 829
Баллы
2 688
Баффер с сервера Reborn-World
АИ код бафера:

Код:
class 1 reborn_buffer : merchant_for_chaoticparameter_define_begin
string fnHi "buffer_reborn.htm"
string buffs "buffer_reborn_b.htm"
string songs "buffer_reborn_s.htm"
string dances "buffer_reborn_d.htm"
string pbuffs "buffer_reborn_b1.htm"
string psongs "buffer_reborn_s1.htm"
string pdances "buffer_reborn_d1.htm"
string others "buffer_reborn_o.htm"
parameter_define_end
handler 32 838 // 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 101
negate
equal
branch_false L2
L1
push_event // myself
push_const 704
add
fetch_i
push_event // talker
push_const 40
add
fetch_i
push_event // reply
push_const 164
add
fetch_i4
push_const 0
push_const 0
push_const 1
func_call 184877074 // func[AddUseSkillDesire]
shift_sp -5
shift_sp -1
push_event // myself
push_const 704
add
fetch_i
push_event // talker
push_const 40
add
fetch_i
push_parameter fnHi
func_call 184680516 // func[ShowPage]
shift_sp -2
shift_sp -1
L2
push_event // ask
push_const 160
add
fetch_i4
push_const 201
negate
equal
branch_false L4
L3
push_event // myself
push_const 704
add
fetch_i
push_event // talker
push_const 40
add
fetch_i
push_event // reply
push_const 164
add
fetch_i4
push_const 0
push_const 0
push_const 1
func_call 184877074 // func[AddUseSkillDesire]
shift_sp -5
shift_sp -1
push_event // myself
push_const 704
add
fetch_i
push_event // talker
push_const 40
add
fetch_i
push_parameter buffs
func_call 184680516 // func[ShowPage]
shift_sp -2
shift_sp -1
L4
push_event // ask
push_const 160
add
fetch_i4
push_const 301
negate
equal
branch_false L6
L5
push_event // myself
push_const 704
add
fetch_i
push_event // talker
push_const 40
add
fetch_i
push_event // reply
push_const 164
add
fetch_i4
push_const 0
push_const 0
push_const 1
func_call 184877074 // func[AddUseSkillDesire]
shift_sp -5
shift_sp -1
push_event // myself
push_const 704
add
fetch_i
push_event // talker
push_const 40
add
fetch_i
push_parameter dances
func_call 184680516 // func[ShowPage]
shift_sp -2
shift_sp -1
L6
push_event // ask
push_const 160
add
fetch_i4
push_const 401
negate
equal
branch_false L8
L7
push_event // myself
push_const 704
add
fetch_i
push_event // talker
push_const 40
add
fetch_i
push_event // reply
push_const 164
add
fetch_i4
push_const 0
push_const 0
push_const 1
func_call 184877074 // func[AddUseSkillDesire]
shift_sp -5
shift_sp -1
push_event // myself
push_const 704
add
fetch_i
push_event // talker
push_const 40
add
fetch_i
push_parameter songs
func_call 184680516 // func[ShowPage]
shift_sp -2
shift_sp -1
L8
push_event // ask
push_const 160
add
fetch_i4
push_const 501
negate
equal
branch_false L10
L9
push_event // reply
push_const 164
add
fetch_i4
push_const 1
equal
branch_false L12
L11
push_event // myself
push_const 704
add
fetch_i
push_event // talker
push_const 40
add
fetch_i
push_const 308354
push_const 0
push_const 0
push_const 1
func_call 184877074 // func[AddUseSkillDesire]
shift_sp -5
shift_sp -1
push_event // myself
push_const 704
add
fetch_i
push_event // talker
push_const 40
add
fetch_i
push_const 273538
push_const 0
push_const 0
push_const 1
func_call 184877074 // func[AddUseSkillDesire]
shift_sp -5
shift_sp -1
push_event // myself
push_const 704
add
fetch_i
push_event // talker
push_const 40
add
fetch_i
push_const 278146
push_const 0
push_const 0
push_const 1
func_call 184877074 // func[AddUseSkillDesire]
shift_sp -5
shift_sp -1
push_event // myself
push_const 704
add
fetch_i
push_event // talker
push_const 40
add
fetch_i
push_const 318082
push_const 0
push_const 0
push_const 1
func_call 184877074 // func[AddUseSkillDesire]
shift_sp -5
shift_sp -1
push_event // myself
push_const 704
add
fetch_i
push_event // talker
push_const 40
add
fetch_i
push_const 317570
push_const 0
push_const 0
push_const 1
func_call 184877074 // func[AddUseSkillDesire]
shift_sp -5
shift_sp -1
push_event // myself
push_const 704
add
fetch_i
push_event // talker
push_const 40
add
fetch_i
push_const 275842
push_const 0
push_const 0
push_const 1
func_call 184877074 // func[AddUseSkillDesire]
shift_sp -5
shift_sp -1
push_event // myself
push_const 704
add
fetch_i
push_event // talker
push_const 40
add
fetch_i
push_const 1202958
push_const 0
push_const 0
push_const 1
func_call 184877074 // func[AddUseSkillDesire]
shift_sp -5
shift_sp -1
push_event // myself
push_const 704
add
fetch_i
push_event // talker
push_const 40
add
fetch_i
push_const 70402
push_const 0
push_const 0
push_const 1
func_call 184877074 // func[AddUseSkillDesire]
shift_sp -5
shift_sp -1
push_event // myself
push_const 704
add
fetch_i
push_event // talker
push_const 40
add
fetch_i
push_const 70146
push_const 0
push_const 0
push_const 1
func_call 184877074 // func[AddUseSkillDesire]
shift_sp -5
shift_sp -1
push_event // myself
push_const 704
add
fetch_i
push_event // talker
push_const 40
add
fetch_i
push_const 69378
push_const 0
push_const 0
push_const 1
func_call 184877074 // func[AddUseSkillDesire]
shift_sp -5
shift_sp -1
push_event // myself
push_const 704
add
fetch_i
push_event // talker
push_const 40
add
fetch_i
push_const 68866
push_const 0
push_const 0
push_const 1
func_call 184877074 // func[AddUseSkillDesire]
shift_sp -5
shift_sp -1
push_event // myself
push_const 704
add
fetch_i
push_event // talker
push_const 40
add
fetch_i
push_const 348930
push_const 0
push_const 0
push_const 1
func_call 184877074 // func[AddUseSkillDesire]
shift_sp -5
shift_sp -1
push_event // myself
push_const 704
add
fetch_i
push_event // talker
push_const 40
add
fetch_i
push_parameter fnHi
func_call 184680516 // func[ShowPage]
shift_sp -2
shift_sp -1
L12
push_event // reply
push_const 164
add
fetch_i4
push_const 2
equal
branch_false L14
L13
push_event // myself
push_const 704
add
fetch_i
push_event // talker
push_const 40
add
fetch_i
push_const 308354
push_const 0
push_const 0
push_const 1
func_call 184877074 // func[AddUseSkillDesire]
shift_sp -5
shift_sp -1
push_event // myself
push_const 704
add
fetch_i
push_event // talker
push_const 40
add
fetch_i
push_const 333698
push_const 0
push_const 0
push_const 1
func_call 184877074 // func[AddUseSkillDesire]
shift_sp -5
shift_sp -1
push_event // myself
push_const 704
add
fetch_i
push_event // talker
push_const 40
add
fetch_i
push_const 277890
push_const 0
push_const 0
push_const 1
func_call 184877074 // func[AddUseSkillDesire]
shift_sp -5
shift_sp -1
push_event // myself
push_const 704
add
fetch_i
push_event // talker
push_const 40
add
fetch_i
push_const 272002
push_const 0
push_const 0
push_const 1
func_call 184877074 // func[AddUseSkillDesire]
shift_sp -5
shift_sp -1
push_event // myself
push_const 704
add
fetch_i
push_event // talker
push_const 40
add
fetch_i
push_const 271234
push_const 0
push_const 0
push_const 1
func_call 184877074 // func[AddUseSkillDesire]
shift_sp -5
shift_sp -1
push_event // myself
push_const 704
add
fetch_i
push_event // talker
push_const 40
add
fetch_i
push_const 276098
push_const 0
push_const 0
push_const 1
func_call 184877074 // func[AddUseSkillDesire]
shift_sp -5
shift_sp -1
push_event // myself
push_const 704
add
fetch_i
push_event // talker
push_const 40
add
fetch_i
push_const 89346
push_const 0
push_const 0
push_const 1
func_call 184877074 // func[AddUseSkillDesire]
shift_sp -5
shift_sp -1
push_event // myself
push_const 704
add
fetch_i
push_event // talker
push_const 40
add
fetch_i
push_const 346882
push_const 0
push_const 0
push_const 1
func_call 184877074 // func[AddUseSkillDesire]
shift_sp -5
shift_sp -1
push_event // myself
push_const 704
add
fetch_i
push_event // talker
push_const 40
add
fetch_i
push_const 1165828
push_const 0
push_const 0
push_const 1
func_call 184877074 // func[AddUseSkillDesire]
shift_sp -5
shift_sp -1
push_event // myself
push_const 704
add
fetch_i
push_event // talker
push_const 40
add
fetch_i
push_const 70658
push_const 0
push_const 0
push_const 1
func_call 184877074 // func[AddUseSkillDesire]
shift_sp -5
shift_sp -1
push_event // myself
push_const 704
add
fetch_i
push_event // talker
push_const 40
add
fetch_i
push_const 69890
push_const 0
push_const 0
push_const 1
func_call 184877074 // func[AddUseSkillDesire]
shift_sp -5
shift_sp -1
push_event // myself
push_const 704
add
fetch_i
push_event // talker
push_const 40
add
fetch_i
push_const 93442
push_const 0
push_const 0
push_const 1
func_call 184877074 // func[AddUseSkillDesire]
shift_sp -5
shift_sp -1
push_event // myself
push_const 704
add
fetch_i
push_event // talker
push_const 40
add
fetch_i
push_parameter fnHi
func_call 184680516 // func[ShowPage]
shift_sp -2
shift_sp -1
L14
L10
push_event // ask
push_const 160
add
fetch_i4
push_const 601
negate
equal
branch_false L16
L15
push_event // myself
push_const 704
add
fetch_i
push_event // talker
push_const 40
add
fetch_i
push_event // reply
push_const 164
add
fetch_i4
push_const 0
push_const 0
push_const 1
func_call 184877074 // func[AddUseSkillDesire]
shift_sp -5
shift_sp -1
push_event // myself
push_const 704
add
fetch_i
push_event // talker
push_const 40
add
fetch_i
push_parameter others
func_call 184680516 // func[ShowPage]
shift_sp -2
shift_sp -1
L16
push_event // ask
push_const 160
add
fetch_i4
push_const 701
negate
equal
branch_false L18
L17
push_event // myself
push_const 704
add
fetch_i
push_event // talker
push_const 40
add
fetch_i
push_event // reply
push_const 164
add
fetch_i4
push_const 0
push_const 0
push_const 1
func_call 184877074 // func[AddUseSkillDesire]
shift_sp -5
shift_sp -1
push_event // myself
push_const 704
add
fetch_i
push_event // talker
push_const 40
add
fetch_i
S881. "buffer_reborn_old.htm"
push_string S881
func_call 184680516 // func[ShowPage]
shift_sp -2
shift_sp -1
L18
push_event // ask
push_const 160
add
fetch_i4
push_const 202
negate
equal
branch_false L20
L19
push_event // myself
push_const 704
add
fetch_i
push_event // myself
push_const 704
add
fetch_i
push_event // talker
push_const 40
add
fetch_i
func_call 184614963 // func[GetSummon]
shift_sp -1
push_event // reply
push_const 164
add
fetch_i4
push_const 0
push_const 0
push_const 1
func_call 184877074 // func[AddUseSkillDesire]
shift_sp -5
shift_sp -1
push_event // myself
push_const 704
add
fetch_i
push_event // talker
push_const 40
add
fetch_i
push_parameter pbuffs
func_call 184680516 // func[ShowPage]
shift_sp -2
shift_sp -1
L20
push_event // ask
push_const 160
add
fetch_i4
push_const 302
negate
equal
branch_false L22
L21
push_event // myself
push_const 704
add
fetch_i
push_event // myself
push_const 704
add
fetch_i
push_event // talker
push_const 40
add
fetch_i
func_call 184614963 // func[GetSummon]
shift_sp -1
push_event // reply
push_const 164
add
fetch_i4
push_const 0
push_const 0
push_const 1
func_call 184877074 // func[AddUseSkillDesire]
shift_sp -5
shift_sp -1
push_event // myself
push_const 704
add
fetch_i
push_event // talker
push_const 40
add
fetch_i
push_parameter pdances
func_call 184680516 // func[ShowPage]
shift_sp -2
shift_sp -1
L22
push_event // ask
push_const 160
add
fetch_i4
push_const 402
negate
equal
branch_false L24
L23
push_event // myself
push_const 704
add
fetch_i
push_event // myself
push_const 704
add
fetch_i
push_event // talker
push_const 40
add
fetch_i
func_call 184614963 // func[GetSummon]
shift_sp -1
push_event // reply
push_const 164
add
fetch_i4
push_const 0
push_const 0
push_const 1
func_call 184877074 // func[AddUseSkillDesire]
shift_sp -5
shift_sp -1
push_event // myself
push_const 704
add
fetch_i
push_event // talker
push_const 40
add
fetch_i
push_parameter psongs
func_call 184680516 // func[ShowPage]
shift_sp -2
shift_sp -1
L24
push_event // ask
push_const 160
add
fetch_i4
push_const 702
negate
equal
branch_false L26
L25
push_event // myself
push_const 704
add
fetch_i
push_event // myself
push_const 704
add
fetch_i
push_event // talker
push_const 40
add
fetch_i
func_call 184614963 // func[GetSummon]
shift_sp -1
push_event // reply
push_const 164
add
fetch_i4
push_const 0
push_const 0
push_const 1
func_call 184877074 // func[AddUseSkillDesire]
shift_sp -5
shift_sp -1
push_event // myself
push_const 704
add
fetch_i
push_event // talker
push_const 40
add
fetch_i
S882. "buffer_reborn_old1.htm"
push_string S882
func_call 184680516 // func[ShowPage]
shift_sp -2
shift_sp -1
L26
handler_end


class_end
NASC:
Код:
class 1 reborn_buffer : merchant_for_chaotic{
parameter:
string fnHi = "buffer_reborn.htm";
string buffs = "buffer_reborn_b.htm";
string songs = "buffer_reborn_s.htm";
string dances = "buffer_reborn_d.htm";
string pbuffs = "buffer_reborn_b1.htm";
string psongs = "buffer_reborn_s1.htm";
string pdances = "buffer_reborn_d1.htm";
string others = "buffer_reborn_o.htm";


handler:
EventHandler MENU_SELECTED(talker,ask,reply)
{
if ( ask == -101 ) {
myself::AddUseSkillDesire(talker, reply, 0, 0, 1);
myself::ShowPage(talker,fnHi);
}
if ( ask == -201 ) {
myself::AddUseSkillDesire(talker, reply, 0, 0, 1);
myself::ShowPage(talker,buffs);
}
if ( ask == -301 ) {
myself::AddUseSkillDesire(talker, reply, 0, 0, 1);
myself::ShowPage(talker,dances);
}
if ( ask == -401 ) {
myself::AddUseSkillDesire(talker, reply, 0, 0, 1);
myself::ShowPage(talker,songs);
}
if ( ask == -501 ) {
if ( reply == 1 ) { /*Fighter*/
myself::AddUseSkillDesire(talker, 308354, 0, 0, 1);
myself::AddUseSkillDesire(talker, 273538, 0, 0, 1);
myself::AddUseSkillDesire(talker, 278146, 0, 0, 1);
myself::AddUseSkillDesire(talker, 318082, 0, 0, 1);
myself::AddUseSkillDesire(talker, 317570, 0, 0, 1);
myself::AddUseSkillDesire(talker, 275842, 0, 0, 1);
myself::AddUseSkillDesire(talker, 1202958, 0, 0, 1);
myself::AddUseSkillDesire(talker, 70402, 0, 0, 1);
myself::AddUseSkillDesire(talker, 70146, 0, 0, 1);
myself::AddUseSkillDesire(talker, 69378, 0, 0, 1);
myself::AddUseSkillDesire(talker, 68866, 0, 0, 1);
myself::AddUseSkillDesire(talker, 348930, 0, 0, 1);
myself::ShowPage(talker,fnHi);
}
if ( reply == 2 ) { /*Mage*/
myself::AddUseSkillDesire(talker, 308354, 0, 0, 1);
myself::AddUseSkillDesire(talker, 333698, 0, 0, 1);
myself::AddUseSkillDesire(talker, 277890, 0, 0, 1);
myself::AddUseSkillDesire(talker, 272002, 0, 0, 1);
myself::AddUseSkillDesire(talker, 271234, 0, 0, 1);
myself::AddUseSkillDesire(talker, 276098, 0, 0, 1);
myself::AddUseSkillDesire(talker, 89346, 0, 0, 1);
myself::AddUseSkillDesire(talker, 346882, 0, 0, 1);
myself::AddUseSkillDesire(talker, 1165828, 0, 0, 1);
myself::AddUseSkillDesire(talker, 70658, 0, 0, 1);
myself::AddUseSkillDesire(talker, 69890, 0, 0, 1);
myself::AddUseSkillDesire(talker, 93442, 0, 0, 1);
myself::ShowPage(talker,fnHi);
}
}
if ( ask == -601 ) {
myself::AddUseSkillDesire(talker, reply, 0, 0, 1);
myself::ShowPage(talker,others);
}
if ( ask == -701 ) {
myself::AddUseSkillDesire(talker, reply, 0, 0, 1);
myself::ShowPage(talker,"buffer_reborn_old.htm");
}
if ( ask == -202 ) {
myself::AddUseSkillDesire(myself::GetSummon(talker), reply, 0, 0, 1);
myself::ShowPage(talker,pbuffs);
}
if ( ask == -302 ) {
myself::AddUseSkillDesire(myself::GetSummon(talker), reply, 0, 0, 1);
myself::ShowPage(talker,pdances);
}
if ( ask == -402 ) {
myself::AddUseSkillDesire(myself::GetSummon(talker), reply, 0, 0, 1);
myself::ShowPage(talker,psongs);
}
if ( ask == -702 ) {
myself::AddUseSkillDesire(myself::GetSummon(talker), reply, 0, 0, 1);
myself::ShowPage(talker,"buffer_reborn_old1.htm");
}
}
}
 

Назад
Сверху Снизу