juansanchez
Advanced OT User
- Joined
- Apr 2, 2015
- Messages
- 223
- Reaction score
- 151
Hey otland guys, so, today i have a little problem with my server, it's not a regular Global Tibia one, but let's go anyways...
Whenever i try to buy promotion in my server this happends:
22:55 Golden Angel: Olá Diversity. Eu vendo promotion. Fale promotion caso estiver interessado.
(Hello Diversity. I sell Promotion. Say "Promotion" if you wish to be promoted.)
22:55 Diversity [58]: promotion
22:55 Golden Angel: I can promote you for 20000 gold coins. Do you want me to promote you?
22:55 Diversity [58]: yes
22:55 Golden Angel: Congratulations! You are now promoted.
22:55 You see yourself. You are a sorcerer
So, long story short, it doesn't work, i don't get my promotion. I've tried everything, but no one could help me.
Here's the NPC Script:
I use TFS 0.4
If anyone can help me, i'll be very thankfull.
Whenever i try to buy promotion in my server this happends:
22:55 Golden Angel: Olá Diversity. Eu vendo promotion. Fale promotion caso estiver interessado.
(Hello Diversity. I sell Promotion. Say "Promotion" if you wish to be promoted.)
22:55 Diversity [58]: promotion
22:55 Golden Angel: I can promote you for 20000 gold coins. Do you want me to promote you?
22:55 Diversity [58]: yes
22:55 Golden Angel: Congratulations! You are now promoted.
22:55 You see yourself. You are a sorcerer
So, long story short, it doesn't work, i don't get my promotion. I've tried everything, but no one could help me.
Here's the NPC Script:
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
function onCreatureAppear(cid) npcHandler
nCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler
nCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg) npcHandler
nCreatureSay(cid, type, msg) end
function onThink() npcHandler
nThink() end
function onPlayerEndTrade(cid) npcHandler
nPlayerEndTrade(cid) end
function onPlayerCloseChannel(cid) npcHandler
nPlayerCloseChannel(cid) end
local node1 = keywordHandler:addKeyword({'promot'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I can promote you for 20000 gold coins. Do you want me to promote you?'})
node1:addChildKeyword({'yes'}, StdModule.promotePlayer, {npcHandler = npcHandler, cost = 20000, level = 20, promotion = 1, text = 'Congratulations! You are now promoted.'})
node1:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then, come back when you are ready.', reset = true})
--[[
local node2 = keywordHandler:addKeyword({'epic'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I can epicize you for 200000 gold coins. Do you want me to epicize you?'})
node2:addChildKeyword({'yes'}, StdModule.promotePlayer, {npcHandler = npcHandler, cost = 200000, level = 120, promotion = 2, text = 'Congratulations! You are now epicized.'})
node2:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then, come back when you are ready.', reset = true})
]]--
npcHandler:addModule(FocusModule:new())
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
function onCreatureAppear(cid) npcHandler

function onCreatureDisappear(cid) npcHandler

function onCreatureSay(cid, type, msg) npcHandler

function onThink() npcHandler

function onPlayerEndTrade(cid) npcHandler

function onPlayerCloseChannel(cid) npcHandler

local node1 = keywordHandler:addKeyword({'promot'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I can promote you for 20000 gold coins. Do you want me to promote you?'})
node1:addChildKeyword({'yes'}, StdModule.promotePlayer, {npcHandler = npcHandler, cost = 20000, level = 20, promotion = 1, text = 'Congratulations! You are now promoted.'})
node1:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then, come back when you are ready.', reset = true})
--[[
local node2 = keywordHandler:addKeyword({'epic'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I can epicize you for 200000 gold coins. Do you want me to epicize you?'})
node2:addChildKeyword({'yes'}, StdModule.promotePlayer, {npcHandler = npcHandler, cost = 200000, level = 120, promotion = 2, text = 'Congratulations! You are now epicized.'})
node2:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then, come back when you are ready.', reset = true})
]]--
npcHandler:addModule(FocusModule:new())
I use TFS 0.4
If anyone can help me, i'll be very thankfull.