View Full Version : The ask and Reply in html files
kungfu71186
21.07.2005, 01:05
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.
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
kungfu71186
21.07.2005, 05:09
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?
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 :)