![]() |
|
|
#3 |
|
Архивный участник
Join Date: Apr 2005
Posts: 151
|
the idea is simple
when you call a Star Strider you will get a wyvern coin and it will appear a Wyvern Manager for atleast 60seconds. When you talk to the Wyvern manager you can ride the wyvern (after you started to ride the strider) to prevent abusing there is a additional protection that when you call a wind strider or twilight strider your inventory will be checked for the coin and when there is a join it will be deleted thats all simply or?here the AI-Code Code:
class 1 star_strider : pet_use_one_skill parameter_define_begin parameter_define_end handler 13 48 // CREATED variable_begin "myself" "_choiceN" "_code" "_from_choice" variable_end push_event // myself push_const 704 add fetch_i push_event // myself push_const 704 add fetch_i // master push_const 552 add fetch_i push_const XXXX <--- your item_id here func_call 184680579 // func[OwnItemCount] shift_sp -2 push_const 1 greater_equal branch_true L140102 L140101 push_event // myself push_const 704 add fetch_i push_event // myself push_const 704 add fetch_i // master push_const 552 add fetch_i push_const XXXX <--- your item_id here push_const 1 func_call 184746111 // func[GiveItem1] shift_sp -3 shift_sp -1 L140102 push_event // myself push_const 704 add fetch_i push_const 1014056 S56751. "wyvern_joe" push_string S56751 push_const 0 push_const 1 func_call 184811750 // func[CreateOnePrivate] shift_sp -4 shift_sp -1 L140900 handler_end class_end class 1 wyvern_joe : (null) parameter_define_begin string fnHi "wyvern_joe_1.htm" parameter_define_end handler 13 8 // CREATED variable_begin "myself" "_choiceN" "_code" "_from_choice" variable_end push_event // myself push_const 704 add fetch_i push_const 60 func_call 184614999 // func[SetTimerPeriod] shift_sp -1 shift_sp -1 handler_end handler 11 6 // TIMER_FIRED variable_begin "i6" "myself" "_choiceN" "_code" "_from_choice" variable_end push_event // myself push_const 704 add fetch_i func_call 184549616 // func[Despawn] shift_sp -1 handler_end handler 3 13 // TALKED variable_begin "talker" "myself" "_choiceN" "_code" "_from_choice" variable_end 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 L150030 handler_end handler 32 85 // MENU_SELECTED variable_begin "ask" "fhtml0" "quest_id" "reply" "talker" "myself" "_choiceN" "_code" "_from_choice" variable_end push_event // ask push_const 160 add fetch_i4 push_const 401 equal branch_false L151000 L150050 push_event // myself push_const 704 add fetch_i push_event // reply push_const 164 add fetch_i4 push_const 176 equal branch_false L151000 L150080 push_event // myself push_const 704 add fetch_i push_event // talker push_const 40 add fetch_i push_const XXXX <--- your item_id here func_call 184680579 // func[OwnItemCount] shift_sp -2 push_const 1 equal branch_false L150900 L150081 push_event // myself push_const 704 add fetch_i push_event // talker push_const 40 add fetch_i push_const XXXX <--- your item_id here push_const 1 func_call 184746114 // func[DeleteItem1] shift_sp -3 L150082 L150083 push_event // myself push_const 704 add fetch_i push_event // talker push_const 40 add fetch_i push_const 1012621 func_call 184680717 // func[RideWyvern] shift_sp -2 shift_sp -1 jump L150910 L150900 push_event // myself push_const 704 add fetch_i push_event // talker push_const 40 add fetch_i S937320. "wyvern_joe_2_02077693.htm" push_string S937320 func_call 184680516 // func[ShowPage] shift_sp -2 shift_sp -1 jump L151000 L150910 push_event // myself push_const 704 add fetch_i func_call 184549616 // func[Despawn] shift_sp -1 L151000 handler_end class_end class 1 aecgh_wind_strider : aecgh_pet_use_one_skill handler 13 42 // CREATED variable_begin "myself" "_choiceN" "_code" "_from_choice" variable_end push_event // myself push_const 704 add fetch_i push_event // myself push_const 704 add fetch_i // master push_const 552 add fetch_i push_const XXXX <--- your item_id here func_call 184680579 // func[OwnItemCount] shift_sp -2 push_const 1 greater_equal branch_false L150900 L150800 push_event // myself push_const 704 add fetch_i push_event // myself push_const 704 add fetch_i // master push_const 552 add fetch_i push_const XXXX <--- your item_id here push_const 1 func_call 184746114 // func[DeleteItem1] shift_sp -3 jump L150900 L150801 push_event // myself push_const 704 add fetch_i func_call 184549616 // func[Despawn] shift_sp -1 L150900 handler_end class_end don't forget to add your own NPC-ID for the wyvern manager and create an item for the wyvern coin otherwise when you want you can implement it in every strider so you can delete the wyvern coin and maybe added a fee for ride a wyvern like 1kkk adena or something like this ![]() just think about hope it helps cya |
|
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|