Ai galera preciso de ajuda
tibia 8.50
tfs 3.6
Gostaria de um scrip da segunda promotion, mas que ela durasse apenas 30 dias
o scrip que eu uso segue abaixo
se puderem me ajudar
vlw
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({'promotion'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = ' Voce quer ser promovido? Custa 100000 moedas de ouro.'})
node1:addChildKeyword({'sim'}, StdModule.promotePlayer, {npcHandler = npcHandler, cost = 20000, premium = 1, level = 70, promotion = 2, text = 'Parabens! Voce foi promovido.'})
node1:addChildKeyword({'nao'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Certo, volte quando quiser.', reset = true})npcHandler:addModule(FocusModule:new())