Joriku
Working in the mines, need something?
Hi,
I am using "The forgotten king" which defaults comes with the TFS 1.3 package.
Once I died on my character, I lost the promotion and I am unable to regain it with the npc.
Why is this caused?
The forgotten king.lua - promotion.lua <- Original name
Edit: Now when I check, using MyAcc. I have no "Promotion" table, Ideas?
I am using "The forgotten king" which defaults comes with the TFS 1.3 package.
Once I died on my character, I lost the promotion and I am unable to regain it with the npc.
Why is this caused?
The forgotten king.lua - promotion.lua <- Original name
Lua:
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 200000 gold coins. Do you want me to promote you?'})
node1:addChildKeyword({'yes'}, StdModule.promotePlayer, {npcHandler = npcHandler, cost = 200000, level = 20, 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())
Edit: Now when I check, using MyAcc. I have no "Promotion" table, Ideas?