• 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!

Solved need help with The forgotten king (promotion)

jason93

New Member
Joined
Oct 18, 2012
Messages
68
Reaction score
2
Location
Sweden
Got a problem with The forgotten king,


Me: Hi

Tfk: hello welcome ...

me: promotion

then he don't say anything, ive tried everything but im not possible to buy promotion from him. its the original cryingdamson 0.3.6 (8.6) V5 server with the forgotten king. Can somebody help me fast rep ++++
 
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)

function onCreatureAppear(cid) npcHandler:eek:nCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:eek:nCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg) npcHandler:eek:nCreatureSay(cid, type, msg) end
function onThink() npcHandler:eek:nThink() end

local node1 = keywordHandler:addKeyword({'subclass'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you want have promotion for 200000 gold coins?'})
node1:addChildKeyword({'yes'}, StdModule.promotePlayer, {npcHandler = npcHandler, cost = 200000, level = 1300, promotion = 2, text = 'Congratulations!.'})
node1:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then, come back when you are ready.', reset = true})

npcHandler:addModule(FocusModule:new())
 
Lua:
 local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)

function onCreatureAppear(cid)	 npcHandlernCreatureAppear(cid)	 end
function onCreatureDisappear(cid)	 npcHandlernCreatureDisappear(cid)	 end
function onCreatureSay(cid, type, msg)	 npcHandlernCreatureSay(cid, type, msg)	 end
function onThink()	 npcHandlernThink()	 end

local node1 = keywordHandler:addKeyword({'promotion'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you want have promotion for 200000 gold coins?'})
node1:addChildKeyword({'yes'}, StdModule.promotePlayer, {npcHandler = npcHandler, cost = 200000, level = 1300, promotion = 2, text = 'Congratulations!.'})
node1:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then, come back when you are ready.', reset = true})

npcHandler:addModule(FocusModule:new())

just copy and paste that.

@Up: Np!
 
Back
Top