• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • If you're using Gesior 2012 or MyAAC, please review this thread for information about a serious security vulnerability and a fix.

Lua Look for Npc Guild Master tfs 1.2||8.0

Madusa

Member
Joined
Sep 8, 2022
Messages
51
Reaction score
10
Location
Egypt
As I indicated in the title, I am looking for npc from within the game Guild Master
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())
This is what I have, but it does not work. The player cannot create a guild from within the game
Thanks in advance
 
Top