Post Pacific  

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

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 21.07.2005, 01:05   #1
kungfu71186
Архивный участник
 
Join Date: Jul 2005
Posts: 64
Default The ask and Reply in html files

Where do these correspond to, like what file. For example Radia NPC, it has ask=-1 reply=0 Buy fighter crap
ask=-1 reply=1 Buy Mystic crap
ask=-1 reply=8 Sell


And in ai.obj there is
sellitem0
code here

sellitem1
code here

But where is 8 or how does that work. Because i was wondering if you could say add more options like

sellitem2
codehere

etc..... But im not quite sure how this works. I looked at numerous posts couldnt find anything about what these mean or correspond to. Anyone know or can point me in the right direction. Thanks.
kungfu71186 is offline  
Old 21.07.2005, 02:12   #2
Sauron
Архивный участник
 
Join Date: Feb 2005
Posts: 357
Default

you have to look at merchant ai

handler 32 // MENU_SELECTED

push_event // ask
push_const 100
add
fetch_i
push_const 1
negate
equal
branch_false L726

[..]

L728
push_event // reply
push_const 104
add
fetch_i
push_const 1
equal
branch_false L730
L729
shift_sp 1
push_event // talker
push_const 32
add
fetch_i
push_property SellList1
push_parameter ShopName
push_parameter fnBuy
S52. ""
push_string S52
S53. ""
push_string S53
func_call 47 // func[Sell]
shift_sp -6
shift_sp -1

same for reply 8
Sauron is offline  
Old 21.07.2005, 05:09   #3
kungfu71186
Архивный участник
 
Join Date: Jul 2005
Posts: 64
Default

gotcha, i saw this in the beginning


class merchant : default_npc
parameter_define_begin
string ShopName ""
string fnHi "mhi.htm"
string fnSell "msell.htm"
string fnBuy "mbye.htm"
string fnUnableItemSell "muib.htm"
string fnYouAreChaotic "mcm.htm"
string fnNowSiege "mns.htm"
parameter_define_end
property_define_begin
buyselllist_begin SellList0
buyselllist_end
buyselllist_begin SellList1
buyselllist_end
buyselllist_begin SellList2
buyselllist_end
buyselllist_begin SellList3
buyselllist_end
buyselllist_begin SellList4
buyselllist_end
buyselllist_begin SellList5
buyselllist_end
buyselllist_begin SellList6
buyselllist_end
buyselllist_begin SellList7
buyselllist_end


So does this apply to every merchant or what? So that means i can make 7 menus right well 9 including 0. And i can add more menus without having to install a client patch?
kungfu71186 is offline  
Old 07.08.2005, 23:46   #4
rodier
Архивный участник
 
Join Date: May 2005
Posts: 979
Default

I think easiest way is using multisell.txt . U simply make in HTML link to multisell section and make new multisell section. Look @ galladuchi001.htm its about 1-2 mins to make new menu
rodier 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 19:32.