UpInSmoke
Supreme Ruler
- Joined
- Nov 16, 2008
- Messages
- 303
- Reaction score
- 21
So i am really confused... can someone please tell me why this NPC's buying option doesnt work:
by buying i mean this
and this NPC does work...
I tried replacing the whole NPC code with the working one then simply changing the shop_buyable and shop_sellable to the other but it still doesnt work.. it lets me buy meat from Willie but im not able to sell..
the food comes up in sell screen but it doesnt highlight (meaning it doesnt register that i have any)
Lua:
<?xml version="1.0" encoding="UTF-8"?>
<npc name="Willie" script="data/npc/scripts/default.lua" walkinterval="2000" floorchange="0">
<health now="100" max="100"/>
<look type="153" head="77" body="63" legs="58" feet="115" addons="1"/>
<parameters>
<parameter key="message_greet" value="Hiho |PLAYERNAME|. I hope you're here to trade." />
<parameter key="message_sendtrade" value="Ya take a good look." />
<parameter key="message_farewell" value="Yeah, bye |PLAYERNAME|." />
<parameter key="message_walkaway" value="Yeah go away!" />
<parameter key="module_shop" value="1"/>
<parameter key="shop_buyable" value="bread,2689,3;cheese,2696,5;ham,2671,8;meat,2666,5" />
<parameter key="shop_sellable" value="bread,2689,1;cheese,2696,2;ham,2671,4;meat,2666,2;carrot,2684,1;cherry,2679,1;egg,2695,1;salmon,2668,2" />
</parameters>
</npc>
Code:
<parameter key="shop_sellable" value="bread,2689,1;cheese,2696,2;ham,2671,4;meat,2666,2;carrot,2684,1;cherry,2679,1;egg,2695,1;salmon,2668,2" />
Code:
<parameter key="module_shop" value="1"/>
<parameter key="shop_buyable" value="axe,2386,20;dagger,2379,5;hand axe,2380,8;rapier,2384,15;sabre,2385,25;scythe,2550,12;short sword,2406,30;sickle,2405,8;spear,2389,10;" />
<parameter key="shop_sellable" value="axe,2386,7;bone club,2449,5;dagger,2379,2;hand axe,2380,4;hatchet,2388,25;katana,2412,35;mace,2398,30;machete,2420,6;rapier,2384,5;sabre,2385,12;scythe,2550,3;short sword,2406,10;sickle,2405,2;spear,2389,3;sword,2376,25;" />
the food comes up in sell screen but it doesnt highlight (meaning it doesnt register that i have any)