As I indicated in the title, I am looking for npc from within the game Guild Master
This is what I have, but it does not work. The player cannot create a guild from within the game
Thanks in advance
Lua:
<?xml version="1.0" encoding="UTF-8"?>
<npc name="Guild Master" nameDescription="Guild Master, the monk" script="default.lua" walkinterval="0" floorchange="0">
<health now="100" max="100"/>
<look type="57" head="20" body="30" legs="40" feet="50"/>
<parameters>
<parameter key="message_greet" value="Hello |PLAYERNAME|. If you want to create a guild, say: !createguild."/>
</parameters>
</npc>
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())
Thanks in advance