npc html help

Vengefull

Знаменитый
Пользователь
Сообщения
15
Розыгрыши
0
Репутация
0
Реакции
0
Баллы
1 223
Help with speech npc is all right and does not work what am I doing wrong?

code
NPCDATA:
npc_begin merchant 33001 [armadura_kenon] 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=[] shield_defense_rate=0 shield_defense=0 skill_list={@s_race_undead;@s_full_magic_defence} npc_ai={[kenon_armor];{[fnHi]=[kenon_armor001.htm]};{[MoveAroundSocial]=0};{[MoveAroundSocial1]=110};{[MoveAroundSocial2]=150}} 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=2444.46819 org_hp_regen=7.5 org_mp=1345.8 org_mp_regen=2.7 collision_radius={10;10} collision_height={24;24} 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=688.86373 base_critical=4 physical_hit_modify=4.75 base_attack_speed=253 base_reuse_delay=0 base_magic_attack=470.40463 base_defend=295.91597 base_magic_defend=216.53847 physical_avoid_modify=0 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


MULTISELL:
MultiSell_begin [sydeney] 745
is_dutyfree = 1
selllist={
{{{[epic_dk_heavy_armor];1}};{{[craftsman_mold];30};{[stone_of_purity];650};{[gemstone_s];900};{[adena_of_ancient];25000000};{[adena];2000000000}}};
{{{[epic_dk_heavy_gloves];1}};{{[craftsman_mold];25};{[stone_of_purity];650};{[gemstone_s];900};{[adena_of_ancient];25000000};{[adena];2000000000}}};
{{{[epic_dk_heavy_boots];1}};{{[craftsman_mold];25};{[stone_of_purity];650};{[gemstone_s];900};{[adena_of_ancient];25000000};{[adena];2000000000}}};
{{{[epic_dk_heavy_helmet];1}};{{[craftsman_mold];20};{[stone_of_purity];650};{[gemstone_s];900};{[adena_of_ancient];25000000};{[adena];2000000000}}};
{{{[epic_dk_light_armor];1}};{{[craftsman_mold];30};{[stone_of_purity];650};{[gemstone_s];900};{[adena_of_ancient];25000000};{[adena];2000000000}}};
{{{[epic_dk_light_gloves];1}};{{[craftsman_mold];25};{[stone_of_purity];650};{[gemstone_s];900};{[adena_of_ancient];25000000};{[adena];2000000000}}};
{{{[epic_dk_light_boots];1}};{{[craftsman_mold];25};{[stone_of_purity];650};{[gemstone_s];900};{[adena_of_ancient];25000000};{[adena];2000000000}}};
{{{[epic_dk_light_helmet];1}};{{[craftsman_mold];20};{[stone_of_purity];650};{[gemstone_s];900};{[adena_of_ancient];25000000};{[adena];2000000000}}};
{{{[epic_dk_robe_armor];1}};{{[craftsman_mold];35};{[stone_of_purity];650};{[gemstone_s];900};{[adena_of_ancient];25000000};{[adena];2000000000}}};
{{{[epic_dk_robe_legs];1}};{{[craftsman_mold];30};{[stone_of_purity];650};{[gemstone_s];900};{[adena_of_ancient];25000000};{[adena];2000000000}}};
{{{[epic_dk_robe_gloves];1}};{{[craftsman_mold];25};{[stone_of_purity];650};{[gemstone_s];900};{[adena_of_ancient];25000000};{[adena];2000000000}}};
{{{[epic_dk_robe_boots];1}};{{[craftsman_mold];25};{[stone_of_purity];650};{[gemstone_s];900};{[adena_of_ancient];25000000};{[adena];2000000000}}};
{{{[epic_dk_robe_helmet];1}};{{[craftsman_mold];25};{[stone_of_purity];650};{[gemstone_s];900};{[adena_of_ancient];25000000};{[adena];2000000000}}}
}
MultiSell_end

AI:
classe 1 kenon_armor: merchant
class_end

HTML: kenon_armor001.htm
<Html><head><body>
<center><img src="l2ui_ch3.herotower_deco" width="256" height="32">
<font color="LEVEL">Armadura Kenon</font>
<br><button value="Epic Armors" action="bypass -h menu_select?ask=-303&reply=527" width=75 height=21 back="L2UI_ch3.Btn1_normalOn" fore="L2UI_ch3.Btn1_normal">
</center>
</body></html>
 

А в клиенте прописал id?
npcname-e.dat
npcgrp.dat
 
А вот это никого не смутило, да?

Код:
MULTISELL:
MultiSell_begin [sydeney] 745
FALSE:
Код:
bypass -h menu_select?ask=-303&reply=527"
TRUE:
Код:
bypass -h menu_select?ask=-303&reply=745"
 
А вот это никого не смутило, да?

Код:
MULTISELL:
MultiSell_begin [sydeney] 745
FALSE:
Код:
bypass -h menu_select?ask=-303&reply=527"
TRUE:
Код:
bypass -h menu_select?ask=-303&reply=745"
ну это косяк с выводом менюшки, а не с выводом текстур :-)
 
более того, у мерчанта нет -303 аска
 
Код:
class 1 kenon_armor: citizen
handler 3 14    //  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
S881.    "kenon_armor001.htm"
    push_string S881
    func_call 184680516    //  func[ShowPage]
    shift_sp -2
    shift_sp -1
    exit_handler
handler_end

handler 32 27    //  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 303
    negate
    equal
    branch_false L2
L1
    push_event    //  myself
    push_const 704
    add
    fetch_i
    push_event    //  reply
    push_const 164
    add
    fetch_i4
    push_event    //  talker
    push_const 40
    add
    fetch_i
    func_call 184680529    //  func[ShowMultisell]
    shift_sp -2
    shift_sp -1
    exit_handler
L2
    exit_handler
handler_end

class_end
 
Назад
Сверху Снизу