Post Pacific  

Go Back   Post Pacific > Lineage 2 Russian > Помощь
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 22.05.2007, 20:58   #1
DonDrakon
Архивный участник
 
Join Date: Jan 2007
Posts: 75
Default Проблемы с показом 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. Подскажите что можно сделать что бы это все заработало.
DonDrakon is offline  
Old 22.05.2007, 21:12   #2
nasso
Архивный участник
 
Join Date: Nov 2006
Posts: 118
Default

кодировку html в уникод?
nasso is offline  
Old 23.05.2007, 05:10   #3
Morfey
Архивный участник
 
Join Date: Jan 2007
Posts: 61
Default

Так у файла какое расширение всетаки? htm или html?
Morfey is offline  
Old 23.05.2007, 13:13   #4
Ameron
Архивный участник
 
Join Date: May 2005
Posts: 85
Default

Quote:
Originally Posted by Morfey View Post
Так у файла какое расширение всетаки? htm или html?
htm
и кодировка должна быть файла unicode
Ameron is offline  
Old 23.05.2007, 16:06   #5
DonDrakon
Архивный участник
 
Join Date: Jan 2007
Posts: 75
Default

С кодировкой немного протупил, прошу прощения за групый топ.
ЗЫ. Уже все работает.
DonDrakon is offline  
Old 27.05.2007, 23:13   #6
Ra1n0
Архивный участник
 
Join Date: Feb 2007
Posts: 139
Default

Quote:
Originally Posted by Ameron View Post
htm
и кодировка должна быть файла unicode
окончание может быть и html
Ra1n0 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 23:00.