NPC Telas
<?xml version="1.0" encoding="UTF-8"?>
<npc name="Telas" script="data/npc/scripts/Telas.lua" walkinterval="2000" floorchange="0">
<health now="100" max="100"/>
<look type="133" head="97" body="0" legs="38" feet="97" addons="1"/>
<parameters>
<parameter key="module_shop" value="1" />
<parameter key="shop_sellable" value="acorn,10548,200;acorn,10572,180;acorn,9942,1000;acorn,9941,2000;acorn,9980,3000;acorn,9978,500;acorn,10571,200;acorn,5892,15000;acorn,11209,320;acorn,10580,550;acorn,5889,3000;acorn,5888,500;acorn,5887,10000;acorn,11221,500;acorn,11226,100;acorn,10570,460;" />
<parameter key="message_greet" value="Greetings |PLAYERNAME|."/>
<parameter key="message_farewell" value="Farewell."/>
<parameter key="message_walkaway" value="Farewell." />
<parameter key="message_sendtrade" value="Here, take a look at my offer." />
</parameters>
</npc>
Scripts
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())