Post Pacific

Post Pacific (https://postpacific.loc-online.com/index.php)
-   Темы без сохранившегося раздела (https://postpacific.loc-online.com/forumdisplay.php?f=10001)
-   -   Проблемы с показом html NPC (https://postpacific.loc-online.com/showthread.php?t=7630)

DonDrakon 22.05.2007 20:58

Проблемы с показом html NPC
 
Пытаюсь создать своего мерчанта но возникли проблемы -- после попытки разговора с этим НПСом показывается пустое диалоговое окно.
AI.obj:
PHP Code:

class 1 pvp_merchant : citizen
parameter_define_begin
    string fnHi 
"gm_shop_merchant001.htm"
        
string fnNotEnoughCoin "gm_shop_merchant100.htm"
parameter_define_end
handler 3 12    
//  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
    push_parameter fnHi
    func_call 184680516    
//  func[ShowPage]
    
shift_sp -2
    shift_sp 
-1
handler_end

class_end 

npcdata.txt:
PHP Code:

npc_begin    citizen 126    [pvp_traider]        level=78    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_animal;@s_full_magic_defence}    npc_ai={[pvp_merchant];{[fnHi]=[gm_shop_merchant001.htm]};{[MoveAroundSocial]=110};{[MoveAroundSocial1]=118};{[MoveAroundSocial2]=93}}        category={}    race=animal    sex=female    undying=1    can_be_attacked=0    corpse_time=7    no_sleep_mode=0    agro_range=1000    ground_high={120;0;0}    ground_low={26;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={15;15}    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=0    soulshot_count=0    spiritshot_count=0    hit_time_factor=0.48    item_make_list={}    corpse_make_list={}    additional_make_list={}    additional_make_multi_list={}    hp_increase=0    mp_increase=0    safe_height=100    npc_end 

html:
PHP Code:

<html>
<
head>
<
body>
<
center>
Привет путник!
Я могу помочь тебе в твоем не легком приключении:
<
br>
<
br>
<
a action="link gm_shop_profa.htm">Купить квествовые вещи для получения 1-ой и 2-ой профессии.</a>
<
br>
<
a action="bypass -h menu_select?ask=-303&reply=602">Купить шоты, стрелы.</a>
<
br>
<
a action="link gm_shop_adena.htm">Купить адену, древнюю адену.</a>
<
br>
<
a action="link gm_shop_scrolls.htm">Купить скроллы, бутылки, сувениры, заточки</a>
<
br>
<
a action="link gm_shop_c_grade.htm">Купить C-grade амуницию.</a>
<
br>
<
a action="link gm_shop_b_grade.htm">Купить B-grade амуницию.</a>
<
br>
<
a action="link gm_shop_a_grade.htm">Купить A-grade амуницию.</a>
<
br>
<
a action="link gm_shop_s_grade.htm">Купить S-grade амуницию.</a>
<
br>
<
a action="bypass -h menu_select?ask=-303&reply=632">Купить кристаллы душ.</a>
<
br>
</
center>
</
body>
</
html> 

Не открывается самая первая html'ka. Подскажите что можно сделать что бы это все заработало.

nasso 22.05.2007 21:12

кодировку html в уникод?

Morfey 23.05.2007 05:10

Так у файла какое расширение всетаки? htm или html?

Ameron 23.05.2007 13:13

Quote:

Originally Posted by Morfey (Post 86755)
Так у файла какое расширение всетаки? htm или html?

htm
и кодировка должна быть файла unicode

DonDrakon 23.05.2007 16:06

С кодировкой немного протупил, прошу прощения за групый топ.
ЗЫ. Уже все работает.

Ra1n0 27.05.2007 23:13

Quote:

Originally Posted by Ameron (Post 86797)
htm
и кодировка должна быть файла unicode

окончание может быть и html


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