![]() |
|
|
#1 |
|
Архивный участник
Join Date: May 2005
Posts: 979
|
Hi all
Anyone tried import gold old C1@C2@C3 wyvern to C4? I mean everyone can have any item that activate rideable wyvern? It is possible ? Or at least make code to ai.obj - npc that send on player command //ride_wyvern for for some adena? if this is possible can anyone make it for me? maybe for some $$ via paypal? thanks btw i know in aden clanhall there is npc that give player wyvern.. maybe extract that ai to dont check for clan? |
|
|
|
|
#2 |
|
Архивный участник
Join Date: Sep 2005
Posts: 1,014
|
func[RideWyvern]
I will code an AI and i will make some test and share if it works. |
|
|
|
|
#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 |
|
|
|
|
#4 |
|
Архивный участник
Join Date: Nov 2005
Posts: 504
|
wyvern manager is cool and all but it would be cool to have the good old wyvern in a flute thing like the old days, i tried it once, made the AI mount u on a wyvern (RideWyvern function) when you summon it, at first it errored because "you must be mounted on a strider to ride a wyvern" blah blah but i hexed that so it would continue anyway, it works, except it set my speed to 0... got bored after that and didnt feel like trying anything else but im sure its not that difficult xD
|
|
|
|
|
#5 |
|
Архивный участник
Join Date: Apr 2005
Posts: 151
|
it is nearly like a wyvern in the flute:
call the star strider ride it talk to the manager ride wyvern ![]() and you can do it wherever you are I mean when you want it automatic you can also do the wyvern manager over a see_creature event and check if he ride a strider so he will be automatic on a wyvern |
|
|
|
|
#6 |
|
Архивный участник
Join Date: Nov 2006
Posts: 204
|
sprocket made the flute thing for his server.. i'm not gonna share his code ( cause its his code ) but i suggest you look at the ai function for createpet for a strider or even a hatchling or a wolf.. and try and adapt that to a wyvernpet
|
|
|
|
|
#7 | |
|
Архивный участник
Join Date: Sep 2005
Posts: 1,014
|
Quote:
NASC Code:
if (ask == -203) myself->CreatePet(talker,19101,1012621,70); Code:
push_event // ask push_const 160 add fetch_i4 push_const 203 negate 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 19101 push_const 1012621 push_const 70 func_call 184811786 // func[CreatePet] shift_sp -4 shift_sp -1 L14 |
|
|
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|