Djivar
AKA Wickedviruz
Hi i am having a problem with NPC shoppers on TFS1.4.2..
Everytime i go up to an NPC and when we say trade. the server gets spammed with this error:
But even if i get all these errors, it still opens the trade window and you can buy/sell without a problem.. and i can not seem to find the problem.
This is my fans.lua code:
This is the Eryn npc that is using frans.lua script.
If i have missed something, or you need more information please comment and i will do my best to respond as soon as possible!
Everytime i go up to an NPC and when we say trade. the server gets spammed with this error:
But even if i get all these errors, it still opens the trade window and you can buy/sell without a problem.. and i can not seem to find the problem.
This is my fans.lua code:
Lua:
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())
This is the Eryn npc that is using frans.lua script.
XML:
<?xml version="1.0" encoding="UTF-8"?>
<npc name="Eryn" script="Frans.lua" walkinterval="2000" floorchange="0">
<health now="100" max="100" />
<look typeex="2229" head="113" body="113" legs="113" feet="115" addons="0" />
<parameters>
<parameter key="message_greet" value="Beeee Greeeeted |PLAYERNAME|. What is your neeeed?" />
<parameter key="message_farewell" value="Bye." />
<parameter key="module_keywords" value="1" />
<parameter key="keywords" value="job;" />
<parameter key="keyword_reply1" value="I am selliiiing ruuuunes, wands, roooods and spellbooooooks." />
<parameter key="module_shop" value="1" />
<parameter key="shop_buyable" value="avalanche rune,2274,45;
Stone Shower Rune,2288,37;
Thunderstorm Rune,2315,37;
blank rune,2260,10;
chameleon rune,2291,210;
convince creature rune,2290,80;
cure poison rune,2266,65;
destroy field rune,2261,15;
energy field rune,2277,38;
energy wall rune,2279,85;
explosion rune,2313,31;
fire bomb rune,2305,117;
fire field rune,2301,28;
fire wall rune,2303,61;
great fireball rune,2304,45;
great health potion,7591,190;
great mana potion,7590,120;
great spirit potion,8472,190;
health potion,7618,45;
heavy magic missile rune,2311,12;
intense healing rune,2265,95;
light magic missile rune,2287,4;
mana potion,7620,50;
poison field rune,2285,21;
poison wall rune,2289,52;
spellbook,2175,150;
stalagmite rune,2292,12;
strong health potion,7588,100;
strong mana potion,7589,80;
sudden death rune,2268,108;
ultimate healing rune,2273,175;
ultimate health potion,8473,310;
wand of cosmic energy,2189,10000;
terra rod,2181,10000;
wand of decay,2188,5000;
wand of dragonbreath,2191,1000;
wand of vortex,2190,500;
Underworld Rod,8910,22000;
Wand of Starstorm,8920,18000;
necrotic rod,2185,5000;
snakebite rod,2182,500;
Wand of Voodoo,8922,22000;
Wild Growth Rune,2269,160;
Hailstorm Rod,2183,15000;
Magic Wall Rune,2293,116;
Paralyze Rune,2278,700;
Wand of Inferno,2187,15000" />
</parameters>
</npc>
If i have missed something, or you need more information please comment and i will do my best to respond as soon as possible!