This is my NPC:
It works when I buy the pots, but when I buy hailstorm rod for example, I get this error:
my lib files(pastebin):
npc.lua
npchandler.lua
modules.lua
main.lua
npcsystem.lua
and also default.lua
Thnx in advance
SOLVED:
used another lib
XML:
<?xml version="1.0" encoding="UTF-8"?>
<npc name="Isolde" nameDescription="Isolde, the rune vendor" script="default.lua" walkinterval="2000" floorchange="0" skull="green">
<health now="100" max="100"/>
<look type="150" head="117" body="0" legs="116" feet="0" addons="2"/>
<parameters>
<parameter key="module_shop" value="1"/>
<parameter key="message_greet" value="Hello |PLAYERNAME|. I sell runes, potions, rods and wands."/>
<parameter key="shop_buyable" value="
paralyze rune,2278,10000,20;
wild growth rune,2269,10000,20;
magic wall rune,2293,7500,20;
wand of inferno,2187,5000,1;
hailstorm rod,2183,5000,1;
small health potion,8704,20,1;
health potion potion,7618,45,1;
mana potion potion,7620,50,1;
strong health potion,7588,100,1;
strong mana potion,7589,80,1;
great health potion,7591,190,1;
great mana potion,7590,120,1;
great spirit potion,8472,190,1;
ultimate health potion,8473,310,1
" />
</parameters>
</npc>
It works when I buy the pots, but when I buy hailstorm rod for example, I get this error:
Code:
ShopModule.onBuy - Item not found on shopItems list
my lib files(pastebin):
npc.lua
npchandler.lua
modules.lua
main.lua
npcsystem.lua
and also default.lua
Thnx in advance
SOLVED:
used another lib
Last edited: