Running server: The Forgotten Server 0.2 (patch 14 I think)
This NPC;
XML:
LUA:
Freezes the whole server for some reason :O
Could it be a memory issue or is there something wrong in the code? (that has changed in patch 14 or something)
This NPC;
XML:
Code:
<npc name="Nah'Bob" script="data/npc/scripts/all.lua" walkinterval="3000" floorchange="0">
<health now="100" max="100"/>
<look type="80" head="0" body="0" legs="0" feet="0" corpse="3001"/>
<parameters>
<parameter key="message_greet" value="Hello |PLAYERNAME|, I buy many items,you are abble to choise between Armory,Weaponary,Legs,Helmets,Shields,boots, What do u offer me?" />
<parameter key="message_farewell" value="Good bye |PLAYERNAME|, Let the god of World of Tramon be with you!" />
<parameter key="module_shop" value="1" />
<parameter key="shop_sellable" value="dragon lance,2414,12000;fire axe,2432,8000;fire sword,2392,3000;war hammer,2391,1200;ice rapier,2396,1000;broad sword,2413,500;obsidian lance,2425,500;crown armor,2487,12000;blue robe,2656,10000;noble armor,2486,900;royal helmet,2498,30000;crusader helmet,2497,6000;crown helmet,2491,2500;crownlegs,2488,12000;boots of baste,2195,30000;phoenix shield,2539,16000;crown shield,2519,8000; dragon shield,2516,4000;guardian shield,2515,2000;beholder shield,2518,1200" />
<parameter key="module_keywords" value="1" />
<parameter key="keywords" value="fuck;shit;dick;idiot;ass;fuck you;retard;hoe;whore;noob;jerk;gay;stfu;stupid;bastard;pussy
;armory;weaponary;legs;helmets;shields;boots" />
<parameter key="keyword_reply1" value="shut up and leave." />
<parameter key="keyword_reply2" value="shut up and leave." />
<parameter key="keyword_reply3" value="shut up and leave." />
<parameter key="keyword_reply4" value="shut up and leave." />
<parameter key="keyword_reply5" value="shut up and leave." />
<parameter key="keyword_reply6" value="shut up and leave." />
<parameter key="keyword_reply7" value="shut up and leave." />
<parameter key="keyword_reply8" value="shut up and leave." />
<parameter key="keyword_reply9" value="shut up and leave." />
<parameter key="keyword_reply10" value="shut up and leave." />
<parameter key="keyword_reply11" value="shut up and leave." />
<parameter key="keyword_reply12" value="shut up and leave." />
<parameter key="keyword_reply13" value="shut up and leave." />
<parameter key="keyword_reply14" value="shut up and leave." />
<parameter key="keyword_reply15" value="shut up and leave." />
<parameter key="keyword_reply16" value="shut up and leave." />
<parameter key="keyword_reply17" value="I buy these armors, crown armor,blue robe. If u have somting else,check out my brother Alesar." />
<parameter key="keyword_reply18" value="I buy these weapons, fire axe,fire sword,war hammer,ice rapier,broad sword, obsidian lance. If u have somting else,check out my brother Alesar." />
<parameter key="keyword_reply19" value="I buy these legs, crown legs, If u have somting else,check out my brother Alesar." />
<parameter key="keyword_reply20" value="i buy these helmets, royal helmet,crusader helmet,crown helmet. If u have somting else,check out my brother Alesar." />
<parameter key="keyword_reply21" value="I buy these shields, phoeniz shield,crown shield,dragon shield,guardien shield,beholder shield. If u have somting else,check out my brother Alesar." />
<parameter key="keyword_reply22" value="I only buy 1 pair of boots, boots of haste. If u have somting else,check out my brother Alesar." />
</parameters>
</npc>
LUA:
Code:
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
-- OTServ event handling functions start
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
-- OTServ event handling functions end
npcHandler:addModule(FocusModule:new())
Freezes the whole server for some reason :O
Could it be a memory issue or is there something wrong in the code? (that has changed in patch 14 or something)