Post Pacific  

Go Back   Post Pacific > Lineage 2 > Lineage 2 Help
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 24.04.2007, 21:57   #1
rodier
Архивный участник
 
Join Date: May 2005
Posts: 979
Default Wyvern in C4

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?
rodier is offline  
Old 24.04.2007, 23:56   #2
FidoW
Архивный участник
 
Join Date: Sep 2005
Posts: 1,014
Default

func[RideWyvern]

I will code an AI and i will make some test and share if it works.
FidoW is offline  
Old 25.04.2007, 00:01   #3
alysia
Архивный участник
 
Join Date: Apr 2005
Posts: 151
Default

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
alysia is offline  
Old 25.04.2007, 06:37   #4
testdude
Архивный участник
 
Join Date: Nov 2005
Posts: 504
Default

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
testdude is offline  
Old 25.04.2007, 13:00   #5
alysia
Архивный участник
 
Join Date: Apr 2005
Posts: 151
Default

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
alysia is offline  
Old 26.04.2007, 20:32   #6
dirkr
Архивный участник
 
Join Date: Nov 2006
Posts: 204
Default

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
dirkr is offline  
Old 27.04.2007, 01:18   #7
FidoW
Архивный участник
 
Join Date: Sep 2005
Posts: 1,014
Default

Quote:
Originally Posted by dirkr View Post
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
I already try that before the share of yesterday, i have the wyvern into an item, i summon the wyvern but i cant ride it. I try with /ride /mount etc etc, nothing works.

NASC
Code:
if (ask == -203) myself->CreatePet(talker,19101,1012621,70);
Compiled
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
FidoW is offline  
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 22:48.