Siegh
Thronar Developer
Well, I have a weird problem here and I would like to ask for help to anyone that could solve this.
Well, the bug is: anything that I put to sell on module shops, even tho I have the money, the item appears as disabled. And if I try to sell something, the item go away, I get the selling msg with value, but no money is added to my backpack.
The xml part is fine, Ive just pasted from another default script, and Ive used the same default.lua used in most default shopkeepers. But the problem is still there and I cant find the error anywhere.
Here are the scripts:
And the default.lua
I would be really gratefull if some1 is able to help me, I really need those npcs working and Ive tried everything I could already.
Well, the bug is: anything that I put to sell on module shops, even tho I have the money, the item appears as disabled. And if I try to sell something, the item go away, I get the selling msg with value, but no money is added to my backpack.
The xml part is fine, Ive just pasted from another default script, and Ive used the same default.lua used in most default shopkeepers. But the problem is still there and I cant find the error anywhere.
Here are the scripts:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<npc name="Ariel" script="data/npc/scripts/default.lua" walkinterval="4000" floorchange="0">
<health now="100" max="100"/>
<look type="136" head="119" body="104" legs="125" feet="114" addons="2"/>
<parameters>
<parameter key="module_shop" value="1"/>
<parameter key="message_greet" value="Welcome to the best potion shop of these lands!" />
<parameter key="message_farewell" value="You are always welcome." />
<parameter key="shop_sellable" value="empty vial,7636,5;empty vial,7634,20;empty vial,7635,35;flask of giant toad poison,12320,80;honeycomb,5902,15;tarantula fang,12428,110;swamp golem hair,10584,240;cave beast hair,10606,50;dire rat tail,10585,90;arcanum,11259,2700;hourglass of hurry,10577,3400;bloody skeletal hand,10564,3250;branch of a corrupted treant,10600,200;"/>
<parameter key="shop_buyable" value="small red potion,8704,35;medium red potion,7618,120;large red potion,7588,285;mana potion,7620,90;large mana potion,7589,190;great mana potion,7590,375;great red potion,7591,475;"/>
</parameters>
</npc>
And the default.lua
Code:
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end
function onThink() npcHandler:onThink() end
npcHandler:addModule(FocusModule:new())
I would be really gratefull if some1 is able to help me, I really need those npcs working and Ive tried everything I could already.