Post Pacific

Post Pacific (https://postpacific.loc-online.com/index.php)
-   Темы без сохранившегося раздела (https://postpacific.loc-online.com/forumdisplay.php?f=10001)
-   -   Wyvern item summon !!! (https://postpacific.loc-online.com/showthread.php?t=5664)

TheOrder 06.09.2006 10:25

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 !!!

Sakumi 06.09.2006 10:30

//ride_wyvern

TheOrder 06.09.2006 10:34

Quote:

Originally Posted by Sakumi (Post 66609)
//ride_wyvern

:) i don't want a Builder command :D

like

//ride 2

or any GM commands

I want an item !!!

TheOrder 06.09.2006 13:18

bump*bump*

Calling Sauron for help :)
or Aikeeler from Vacation :)

Anyone can help me plox !

Tnx in advance !!!

Phantom2005 06.09.2006 18:46

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 


TheOrder 06.09.2006 18:56

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

If anyone wonders im not gay =)
And i can back up my words :)

kgptzac 06.09.2006 22:04

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 ;)

Sakumi 06.09.2006 22:54

Quote:

Originally Posted by TheOrder (Post 66661)
If this works !!!
Im going to fall in love :D
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)

TheOrder 07.09.2006 01:19

Uhmm i can't talk with the npc no html appears !

SoaPy 07.09.2006 04:26

Quote:

Originally Posted by TheOrder (Post 66694)
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.

TheOrder 07.09.2006 07:48

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 07.09.2006 08:54

What do you mean bud ?

TheOrder 09.09.2006 23:36

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 10.09.2006 09:31

*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 10.09.2006 12:44

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 !!!

rodier 30.04.2007 03:36

your code is cool to create new pets in C4 ;-DD

LoVeRSaMa 30.04.2007 16:54

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.

testdude 30.04.2007 17:33

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 30.04.2007 17:44

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...

FidoW 30.04.2007 18:23

Quote:

Originally Posted by rodier (Post 84983)
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

rodier 01.05.2007 05:54

I know I know . you make wyvern in C4 ;-DD great thanks :-)
/bow
/bow
/bow

Aikeleer 01.05.2007 11:57

Read the topic dude, he didn't succeed lol.


All times are GMT. The time now is 15:32.