Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 06.09.2006, 10:25   #1
TheOrder
Архивный участник
 
Join Date: Sep 2005
Posts: 731
Default Wyvern item summon !!!

Hi ! Okay Il explain what my problem is , i saw that a Wyvern can't be summoned no more in C4 . I tried to modify DB and make another item summon Wyvern but I only get a Wyvern that follows you . Anyway I’m trying now by ai.obj and it still does not work . It tries to summon it , it loads the summon but when it finishes nothing happens !!! .

Here is the Ai.obj code !!!

PHP Code:

class 1 wyvern_maker : default_npc
handler 32 1234    
//  MENU_SELECTED
    
variable_begin
        
"talker"
        "ask"
        "reply"
        "myself"
        "_choiceN"
        "_code"
        "_from_choice"
    
variable_end

    shift_sp 1
    push_event    
//  talker
    
push_const 40
    add
    fetch_i
    push_const 69999
    push_const 1012621
    push_const 35
    func_call 184811786    
//  func[CreatePet]
    
shift_sp -4
    shift_sp 
-1
    call_super
handler_end

class_end 
I'm using Item 69999 !!!

Code:
 item_begin	etcitem	69999	[wyvern_fang]	item_type=etcitem	slot_bit_type={none}	armor_type=none	etcitem_type=pet_collar	recipe_id=0	blessed=0	weight=20	default_action=action_skill_maintain	consume_type=consume_type_normal	initial_count=1	maximum_count=1	soulshot_count=0	spiritshot_count=0	reduced_soulshot={}	reduced_spiritshot={}	reduced_mp_consume={}	immediate_effect=0	price=0	default_price=1000	item_skill=[s_wolf_collar]	critical_attack_skill=[none]	attack_skill=[none]	magic_skill=[none]	item_skill_enchanted_four=[none]	material_type=steel	crystal_type=none	crystal_count=0	is_trade=1	is_drop=1	is_destruct=1	physical_damage=0	random_damage=0	weapon_type=none	can_penetrate=0	critical=0	hit_modify=0	avoid_modify=0	dual_fhit_rate=0	shield_defense=0	shield_defense_rate=0	attack_range=0	damage_range={}	attack_speed=0	reuse_delay=0	mp_consume=0	magical_damage=0	durability=0	damaged=0	physical_defense=0	magical_defense=0	mp_bonus=0	category={}	enchanted=0	html=[item_default.htm]	equip_pet={0}	magic_weapon=0	enchant_enable=0	can_equip_sex=-1	can_equip_race={}	can_equip_change_class=-1	can_equip_class={}	can_equip_agit=-1	can_equip_castle=-1	can_equip_castle_num={}	can_equip_clan_leader=-1	can_equip_clan_level=-1	can_equip_hero=-1	can_equip_nobless=-1	can_equip_chaotic=-1	item_end
Any Help or Ideas would be very appreciated !!!
TheOrder is offline  
Old 06.09.2006, 10:30   #2
Sakumi
Архивный участник
 
Join Date: Apr 2005
Posts: 555
Default

//ride_wyvern
Sakumi is offline  
Old 06.09.2006, 10:34   #3
TheOrder
Архивный участник
 
Join Date: Sep 2005
Posts: 731
Default

Quote:
Originally Posted by Sakumi View Post
//ride_wyvern
i don't want a Builder command

like

//ride 2

or any GM commands

I want an item !!!
TheOrder is offline  
Old 06.09.2006, 13:18   #4
TheOrder
Архивный участник
 
Join Date: Sep 2005
Posts: 731
Default

bump*bump*

Calling Sauron for help
or Aikeeler from Vacation

Anyone can help me plox !

Tnx in advance !!!
TheOrder is offline  
Old 06.09.2006, 18:46   #5
Phantom2005
Архивный участник
 
Join Date: Aug 2005
Posts: 394
Default

Try this one.. and use this in html:
<a action="menu_select?ask=-2&reply=0">Gimme wyvern lvl 70</a>
PHP Code:
class 1 wyvern_maker : default_npc 
handler 32 33    
//  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 2
    negate
    equal
    branch_false L1
L2
    push_event    
//  reply
    
push_const 164
    add
    fetch_i4
    push_reg_sp
    fetch_i
    push_const 0
    equal
    branch_false L1
L3
    shift_sp 1 
    push_event    
//  talker 
    
push_const 40 
    add 
    fetch_i 
    push_const 69999 
    push_const 1012621 
    push_const 70 
    func_call 184811786    
//  func[CreatePet] 
    
shift_sp -4 
    shift_sp 
-1
L1 
    call_super
handler_end 

class_end 
Phantom2005 is offline  
Old 06.09.2006, 18:56   #6
TheOrder
Архивный участник
 
Join Date: Sep 2005
Posts: 731
Default

If this works !!!
Im going to fall in love
Thnx Phantom il try it in a sec much hugs

If anyone wonders im not gay =)
And i can back up my words
TheOrder is offline  
Old 06.09.2006, 22:04   #7
kgptzac
Архивный участник
 
Join Date: Jan 2006
Posts: 363
Default

Quote:
If anyone wonders im not gay =)
And i can back up my words :icon_smile:
the way you talk sure have a lot of superflorous elements
kgptzac is offline  
Old 06.09.2006, 22:54   #8
Sakumi
Архивный участник
 
Join Date: Apr 2005
Posts: 555
Default

Quote:
Originally Posted by TheOrder View Post
If this works !!!
Im going to fall in love
Thnx Phantom il try it in a sec much hugs

If anyone wonders im not gay =)
And i can back up my words
Basicly only a npc can create that pet (wyvern). I'd assume he looked into the AI for the guy who gives the castle lord the wyvern and utilized that function call.

But in short u cant just summon an item or //create_pet u need to use the npc (like the one provided)
Sakumi is offline  
Old 07.09.2006, 01:19   #9
TheOrder
Архивный участник
 
Join Date: Sep 2005
Posts: 731
Default

Uhmm i can't talk with the npc no html appears !
TheOrder is offline  
Old 07.09.2006, 04:26   #10
SoaPy
Архивный участник
 
Join Date: Feb 2005
Posts: 705
Default

Quote:
Originally Posted by TheOrder View Post
Uhmm i can't talk with the npc no html appears !
of course, that code wont display an htm file, need to redirect to citizen and use fnHi in npcdata, or add a TALKED handler with the fnHi.
SoaPy is offline  
Old 07.09.2006, 07:48   #11
TheOrder
Архивный участник
 
Join Date: Sep 2005
Posts: 731
Default

I know Soapy but was something else !!!
I still can't understand some things in C4 like NoNameNpc
I added npcdata , npcpch perfectly and in client npcname-e and npcgrp same and i just can't get to see the npc name i only get NoNameNpc ! It's very wierd and i dunno what to do about it ! I kinda left the idea of having the npc name displayed maybe it's just me but also some other npcs have the same problem with the NoNameNpc and it seems so wierd !
TheOrder is offline  
Old 07.09.2006, 08:54   #12
TheOrder
Архивный участник
 
Join Date: Sep 2005
Posts: 731
Default

What do you mean bud ?
TheOrder is offline  
Old 09.09.2006, 23:36   #13
TheOrder
Архивный участник
 
Join Date: Sep 2005
Posts: 731
Default

Lets just say i tryed everything

This is what i have !!!

I used your ai.obj Code

Added //Myself before Talker

PHP Code:
class 1 wyvern_maker : citizen
handler 32 33    
//  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 2
    negate
    equal
    branch_false L1
L2
    push_event    
//  reply
    
push_const 164
    add
    fetch_i4
    push_reg_sp
    fetch_i
    push_const 0
    equal
    branch_false L1
L3
    push_event    
//  myself
    
push_const 704
    add
    fetch_i
    push_event    
//  talker 
    
push_const 40 
    add 
    fetch_i 
    push_const 31268 
    push_const 1012621 
    push_const 70 
    func_call 184811786    
//  func[CreatePet] 
    
shift_sp -4 
    shift_sp 
-1
L1 
    call_super
handler_end 

class_end 
Worked on Wyvern Class also
I wanted my item to automaticaly spawn a wyvern when i summon it from an item

PHP Code:
class 1 wyvern : pet_use_one_skill
handler 13 98    
//  CREATED
    
variable_begin
        
"myself"
    
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 1012621
    func_call 184680717    
//  func[RideWyvern]
    
shift_sp -2
    shift_sp 
-1
    push_event    
//  myself
    
push_const 704
    add
    fetch_i
    func_call 184549616    
//  func[Despawn]
    
shift_sp -1
handler_end
class_end 
NPCDATA

Code:
npc_begin	citizen	13854	[wyvern_maker]	level=70	acquire_exp_rate=0	acquire_sp=0	unsowing=1	clan={}	ignore_clan_list={}	clan_help_range=300	slot_chest=[]	slot_rhand=[]	slot_lhand=[dawnn_book]	shield_defense_rate=20	shield_defense=1xx.xx7985	skill_list={@s_race_undead;@s_full_magic_defence}	npc_ai={[wyvern_maker];{[fnHi]=[1111wyvern_maker.htm]};{[MoveAroundSocial]=0};{[MoveAroundSocial1]=120};{[MoveAroundSocial2]=108}}	category={}	race=human	sex=male	undying=1	can_be_attacked=0	corpse_time=7	no_sleep_mode=0	agro_range=1000	ground_high={120;0;0}	ground_low={50;0;0}	exp=429634528	org_hp=24xx.xx819	org_hp_regen=7.5	org_mp=1345.8	org_mp_regen=2.7	collision_radius={8;8}	collision_height={30.5;30.5}	str=40	int=21	dex=30	wit=20	con=43	men=10	base_attack_type=sword	base_attack_range=40	base_damage_range={0;0;80;120}	base_rand_dam=30	base_physical_attack=6xx.xx373	base_critical=4	physical_hit_modify=4.75	base_attack_speed=253	base_reuse_delay=0	base_magic_attack=4xx.xx463	base_defend=2xx.xx597	base_magic_defend=2xx.xx847	physical_avoid_modify=-6	soulshot_count=0	spiritshot_count=0	hit_time_factor=0.6	item_make_list={}	corpse_make_list={}	additional_make_list={}	additional_make_multi_list={}	hp_increase=0	mp_increase=0	safe_height=100	npc_end
ITEMDATA

Code:
item_begin	etcitem	31268	[wyvern_fang]	item_type=etcitem	slot_bit_type={none}	armor_type=none	etcitem_type=pet_collar	recipe_id=0	blessed=0	weight=20	default_action=action_skill_maintain	consume_type=consume_type_normal	initial_count=1	maximum_count=1	soulshot_count=0	spiritshot_count=0	reduced_soulshot={}	reduced_spiritshot={}	reduced_mp_consume={}	immediate_effect=0	price=0	default_price=1000	item_skill=[s_wolf_collar]	critical_attack_skill=[none]	attack_skill=[none]	magic_skill=[none]	item_skill_enchanted_four=[none]	material_type=steel	crystal_type=none	crystal_count=0	is_trade=1	is_drop=1	is_destruct=1	physical_damage=0	random_damage=0	weapon_type=none	can_penetrate=0	critical=0	hit_modify=0	avoid_modify=0	dual_fhit_rate=0	shield_defense=0	shield_defense_rate=0	attack_range=0	damage_range={}	attack_speed=0	reuse_delay=0	mp_consume=0	magical_damage=0	durability=0	damaged=0	physical_defense=0	magical_defense=0	mp_bonus=0	category={}	enchanted=0	html=[item_default.htm]	equip_pet={0}	magic_weapon=0	enchant_enable=0	can_equip_sex=-1	can_equip_race={}	can_equip_change_class=-1	can_equip_class={}	can_equip_agit=-1	can_equip_castle=-1	can_equip_castle_num={}	can_equip_clan_leader=-1	can_equip_clan_level=-1	can_equip_hero=-1	can_equip_nobless=-1	can_equip_chaotic=-1	item_end
This is HTML i think u mistaken the bypass -h menu thinghy anyway

Code:
<html><head><body>
Owned:<br>Gimme<br><a action="bypass -h menu_select?ask=-2&reply=0">Gimme wyvern</a><br>
</body></html>
The result is a Following Wyvern , that needs to be feed and that can't be mounted in any way ! It always tells me "You may only ride a Wyvern while you're riding a strider" ! I tryed building the item mounted on the strider but still does not work !
i I dunno what to do more i tryed everything i know ! I want to summon the Wyvern by an item and either automaticaly mounted (would love that) or to use command /mount !!!

Tnx Stazis for all your help !!!

Thanks in advance !!!
TheOrder is offline  
Old 10.09.2006, 09:31   #14
TheOrder
Архивный участник
 
Join Date: Sep 2005
Posts: 731
Default

*bump*
Come on guis any constructive ideas you holding there only for yourself ?
I tryed everything please direct me to a solution !!! Thanks in Advance !!!
TheOrder is offline  
Old 10.09.2006, 12:44   #15
TheOrder
Архивный участник
 
Join Date: Sep 2005
Posts: 731
Default

Il pay 15 $ to anyone that gives me a fix for this PM me about it !!!
I tryed everything and i reached my limits !!!
Thanks in advance !!!
TheOrder is offline  
Old 30.04.2007, 03:36   #16
rodier
Архивный участник
 
Join Date: May 2005
Posts: 979
Default

your code is cool to create new pets in C4 ;-DD
rodier is offline  
Old 30.04.2007, 16:54   #17
LoVeRSaMa
Архивный участник
 
Join Date: Jun 2006
Posts: 111
Default

Good work dude, just what i was looking for, this has been a pain in the ass for a while now, ill test some stuff out later.
LoVeRSaMa is offline  
Old 30.04.2007, 17:33   #18
testdude
Архивный участник
 
Join Date: Nov 2005
Posts: 504
Default

doing the Ridewyvern fiunc when the wyvern is spawned will work if u hex the l2server.exe, BUT, and its a big but, your speed will be 0... havent had time to debug it but its probably got something to do with the speed modifier of the strider that ur supposed to be mounted on... xD
testdude is offline  
Old 30.04.2007, 17:44   #19
testdude
Архивный участник
 
Join Date: Nov 2005
Posts: 504
Default

well im bored so lemme explain a little more

833F3C:
mov rcx, [r15+588h]
cmp dword ptr [rcx+344h], 1
jz short loc_833F7D
mov edx, 4E1h
mov rcx, [r15+2670h]
call SendSYSMessage

4E1h == 1249 == "You may only ride a wyvern while you're riding a strider."

which is the error when you try to use the RideWyvern function in AI without being on a strider first...

r15 = user instance
r15+588h = SharedData
SharedData + 344h = ride type

if ride type == 1 jump

now what i did was i change it to jump anyway, and then i hit the problem of it making ur speed 0... at that point i got bored and went back to my various other projects lol... i dunno maybe ill look into it some more later...
testdude is offline  
Old 30.04.2007, 18:23   #20
FidoW
Архивный участник
 
Join Date: Sep 2005
Posts: 1,014
Default

Quote:
Originally Posted by rodier View Post
your code is cool to create new pets in C4 ;-DD
https://postpacific.loc-online.com/f...62&postcount=7

https://postpacific.loc-online.com/f...ead.php?t=7434
FidoW is offline  
Old 01.05.2007, 05:54   #21
rodier
Архивный участник
 
Join Date: May 2005
Posts: 979
Default

I know I know . you make wyvern in C4 ;-DD great thanks :-)
/bow
/bow
/bow
rodier is offline  
Old 01.05.2007, 11:57   #22
Aikeleer
Архивный участник
 
Join Date: Jun 2005
Posts: 374
Default

Read the topic dude, he didn't succeed lol.
Aikeleer 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 20:03.