Npc Promotion problem(check it)"TFS"
Hello
Ok well i gott this problem, When i go to my Promotion npc, who goes by the name King, I try to buy promotion but i doesent work, Iv looked after different script but im wondering if it can be a bug or something!
When i say "Hi" he asks me if i want to buy promotion but when i tell him yes, he says that i allready have promotion , but i dont!
i use TFS 0.2.8
Somebody know whats causing the problem? help me then xD
Would need help as soon as possibly! ;=)
Here is the script if anybody wants to have a look!
.Lua
EDIT:
I gott 1 Question more, Why is there not any Save command in tfs, so u can safe server more often. Becuase saving server 1 time in 1 day isent so good??
Thanks in advance!
Hello
Ok well i gott this problem, When i go to my Promotion npc, who goes by the name King, I try to buy promotion but i doesent work, Iv looked after different script but im wondering if it can be a bug or something!
When i say "Hi" he asks me if i want to buy promotion but when i tell him yes, he says that i allready have promotion , but i dont!
i use TFS 0.2.8
Somebody know whats causing the problem? help me then xD
Would need help as soon as possibly! ;=)
Here is the script if anybody wants to have a look!
PHP:
<?xml version="1.0" encoding="UTF-8"?>
<npc name="King" script="data/npc/scripts/promotion.lua" autowalk="1" floorchange="0">
<health now="100" max="100"/>
<look type="133" head="20" body="39" legs="45" feet="7"/>
</npc>
.Lua
PHP:
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, text = 'Congratulations! You are now promoted.'})
node1:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Allright then. Come back when you are ready.', reset = true})
npcHandler:addModule(FocusModule:new())
EDIT:
I gott 1 Question more, Why is there not any Save command in tfs, so u can safe server more often. Becuase saving server 1 time in 1 day isent so good??
Thanks in advance!
Last edited: