Post Pacific  

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

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 07.09.2006, 01:19   #1
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   #2
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   #3
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 09.09.2006, 23:36   #4
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   #5
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   #6
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  
 

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 20:41.