• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Rank problem!

bomba

Member
Joined
Feb 26, 2008
Messages
635
Reaction score
7
Location
Brazil
Error: http://postimg.org/image/62z0wxlmp/
Sem_t_tulo.jpg


Script:
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

function rank(cid, message, keywords, parameters, node)
  doShowTextDialog(cid, 1981, getHighscoreString(SKILL__LEVEL))
  return true
end

local node1 = keywordHandler:addKeyword({'bend over'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "Very well! You want to know who are the best players?"})
    node1:addChildKeyword({'yes'}, rank, {npcHandler = npcHandler, onlyFocus = true, reset = true})
    node1:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "...", reset = true})

npcHandler:addModule(FocusModule:new())
npcHandler:setMessage(MESSAGE_GREET, "Hello, {bend over} in front of me!")
 
Last edited:
Back
Top