Runkpapper123
New Member
Ellu!
So, I have a problem with my King Tibianus script.. The problem is that when a player gets promoted, it wont stay that way efter relogg.. I've tried to search the forum, i then found a script that should work.. But it doesn't!
That script has the problem that it wont stay promoted after relogg..
I'm using TFS 0.4 3860 for 8.6 client..
the script:
And my previous script:
My previous script just told me that I already was promoted.. So that one doesn't work Oo
As it seems, they do get promoted. Because in my database, the promotion goes to value 1. But even if they have promotion value 1, they are still "a druid" etc after relogg.. With the first script.
Anyone have any clue?
Thank you!!
So, I have a problem with my King Tibianus script.. The problem is that when a player gets promoted, it wont stay that way efter relogg.. I've tried to search the forum, i then found a script that should work.. But it doesn't!
That script has the problem that it wont stay promoted after relogg..
I'm using TFS 0.4 3860 for 8.6 client..
the 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
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})
npcHandler:addModule(FocusModule:new()
And my previous 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
local node1 = keywordHandler:addKeyword({'promot'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you want to be promoted in your vocation?'})
node1:addChildKeyword({'yes'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You are already promoted'})
node1:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Okay then..', 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())
My previous script just told me that I already was promoted.. So that one doesn't work Oo
As it seems, they do get promoted. Because in my database, the promotion goes to value 1. But even if they have promotion value 1, they are still "a druid" etc after relogg.. With the first script.
Anyone have any clue?
Thank you!!
Last edited: