Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 02.09.2005, 18:00   #1
rodier
Архивный участник
 
Join Date: May 2005
Posts: 979
Default It is possible to make whole new pet?

heh ;-)
I want make 2nd class for wolfs.. there is no problem about NPC ..

but I study the pet collar and dragon bugle item . and can't find the way how this item is bind on pet?
I here see this item use skill that summon. but summon what? there is nothing concrete.. I think it is possible to make new WITHOUT hexaediting .exe - make it clean way.. not like striders via hexaediting and then //create_pet = that is bady messy way ..
I think about way like cubic? Do you think it is possible?
rodier is offline  
Old 02.09.2005, 21:29   #2
Metalmurphy
Архивный участник
 
Join Date: Feb 2005
Posts: 766
Default

unless you want to edit the db manually everytime a player gets ur new pet you'll have to do something like the wolf quest or hex l2server.exe
Metalmurphy is offline  
Old 03.09.2005, 09:58   #3
rawrz
Архивный участник
 
Join Date: Sep 2005
Posts: 33
Default

why not just use ai.obj? no need to manually add the pet to the DB...
Code:
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_const 2375 //Item ID of collar
	push_const 1012077 //NPC id of pet (npc_pch)
	func_call 196	//  func[CreatePet]
	shift_sp -3
	shift_sp -1
rawrz is offline  
Old 03.09.2005, 10:03   #4
wton
Архивный участник
 
Join Date: May 2005
Posts: 463
Default

like call to wolf? create_pet 9? 10?
wton is offline  
Old 03.09.2005, 12:14   #5
Metalmurphy
Архивный участник
 
Join Date: Feb 2005
Posts: 766
Default

Quote:
Originally Posted by rawrz
why not just use ai.obj? no need to manually add the pet to the DB...
Code:
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_const 2375 //Item ID of collar
	push_const 1012077 //NPC id of pet (npc_pch)
	func_call 196	//  func[CreatePet]
	shift_sp -3
	shift_sp -1
what do you think i meant by "something like the wolf quest". how can u do that if not by ai.obj
Metalmurphy is offline  
Old 04.09.2005, 08:43   #6
Fulminus
Архивный участник
 
Join Date: Jul 2005
Posts: 23
Default

I may be wrong, but what I found (for l2off) is this:
In the MS-SQL database there is an id for the item a user has (user_item table). In the pet_data table, there is also an id field. While there is no apparent linkage between these fields in the DB structure, you will see that the pet's id matches exactly the id of the colar/flute for that pet!
I am not aware of the insides of this and if it will work by just changing the pet's npc_id, or how to do any of that, but since you were looking for a link between item and pet, this is one Perhaps the code looks at more things than just that, though. I recommend you use caution.
Fulminus is offline  
Old 05.09.2005, 20:12   #7
rodier
Архивный участник
 
Join Date: May 2005
Posts: 979
Default

hmm this is too tought for me ;-(
I simply think about how to make any item clikable.. and when I clickn on it.. it spawn any summon.
I want use pet_wolf_a cloned to _B with another look (ID of any other wolf..)
its same AI .. but only better dmg/hp and another look
rodier is offline  
Old 05.09.2005, 20:20   #8
rodier
Архивный участник
 
Join Date: May 2005
Posts: 979
Default

Quote:
Originally Posted by rawrz
why not just use ai.obj? no need to manually add the pet to the DB...
Code:
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_const 2375 //Item ID of collar
	push_const 1012077 //NPC id of pet (npc_pch)
	func_call 196	//  func[CreatePet]
	shift_sp -3
	shift_sp -1
Thanks for this cool example.. this help me alot.. I look on ai code for pet wolf
rodier is offline  
Old 05.09.2005, 20:59   #9
rodier
Архивный участник
 
Join Date: May 2005
Posts: 979
Default

hmm I simply dont know where to start.. how start write code to ai.obj
I look in ai for your code.. its part of quest.. I dont need any quest..
I simply need ai for item that summon pet.. maybe this will work?
Code:
class pet_wolf_b : pet_physicalattack
shift_sp 1
   push_event   //  talker
   push_const 32
   add
   fetch_i
   push_const 5592 //Item ID of collar
   push_const 1001121 //NPC id of pet (npc_pch)
   func_call 196   //  func[CreatePet]
   shift_sp -3
   shift_sp -1 
class_end
I simply dont know where to paste in my ai.obj code about new wolf collar (I used advanced cp potion) .. function about summoning that pet
rodier is offline  
Old 05.09.2005, 22:37   #10
rodier
Архивный участник
 
Join Date: May 2005
Posts: 979
Default

can anybody explain me what is
Code:
org_hp=2400	org_mp=1300	physical_hit_modify=3.75	physical_avoid_modify=0	base_critical=4
how can I count how much HP that pet get in game?? its org_hp * phys modify? or what is phys modify?
rodier is offline  
Old 05.09.2005, 22:59   #11
Enishi
Архивный участник
 
Join Date: Apr 2005
Posts: 354
Default

It would be org_hp and I guess whatever the monsters CON is would raise it more
Enishi is offline  
Old 05.09.2005, 23:15   #12
rawrz
Архивный участник
 
Join Date: Sep 2005
Posts: 33
Default

ok let me give u better code....
Code:
class wolf_maker : default_npc
handler 32
	push_event	//  ask
	push_const 100
	add
	fetch_i
	push_const 1
	equal
	branch_false L133371
	push_event	//  reply
	push_const 104
	add
	fetch_i
	push_const 0
	equal
	branch_false L133371
	shift_sp 1
	push_event   //  talker
	push_const 32
	add
	fetch_i
	push_const 2375 //Item ID of collar
	push_const 1012077 //NPC id of pet (npc_pch)
	func_call 196   //  func[CreatePet]
	shift_sp -3
	shift_sp -1
	jump L133371
L133371
	call_super //does anyone know wtf this does? is it even needed? O.o im not exactly a pro with ai coding ;p
handler_end

class_end
ok now if i did that right it should work, i not tested it so

basically create a new npc like a trader or something, set its npc_ai to wolf_maker, then make a html to bypass -h menu_select?ask=0&reply=1, and it will make a pet with the collar id and the npc pet id and make it so when u summon it, it actually comes out, and u wont need to manually add the pet to the DB....
rawrz is offline  
Old 06.09.2005, 00:44   #13
rodier
Архивный участник
 
Join Date: May 2005
Posts: 979
Default

woot..thanks..

but I dont understand 1 thing.. why there must be trader? for what?

I only need item that summon my own pet. This must be attached on NPC?
rodier is offline  
Old 06.09.2005, 00:51   #14
rawrz
Архивный участник
 
Join Date: Sep 2005
Posts: 33
Default

basically it doesnt have to be a trader, u can manually add it to the database, or telnet the cached and do it that way, but using an npc to create the pet i find to be the easyest way as i dont really know how to hex it into the l2server or anything like that, and its just a pain in the ass to manually add it to the database...
rawrz is offline  
Old 07.09.2005, 16:45   #15
rodier
Архивный участник
 
Join Date: May 2005
Posts: 979
Default

hmm that ai code is not working ;-( parsing AI failed..
rawrz I now understand why npc :-) .. but as I said not working.. I past here log
Code:
09/06/2005 14:02:xx.xx2, Fail to load. Reset the AI.

09/06/2005 14:02:xx.xx1, Cannot find AI class[partisan_ordery_brakel]
09/06/2005 14:02:xx.xx1, Npc[partisan_ordery_brakel] doesn't have ai handler. cannot set the ai parameter[fnHi]
... flood with almost all AI in ai.obj ;]
rodier is offline  
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 19:40.