-
Recently Browsing 0 members
- No registered users viewing this page.
-
Similar Content
-
- 0 replies
- 634 views
-
[C++] [TFS 1.X] Player (Mestre) Não Pode Atacar Seus Summons e Seus Summons Não Atacam Outros Players
By Yan Oliveira,
- 5 replies
- 1327 views
-
- 13 replies
- 4748 views
-
- 0 replies
- 1899 views
-
- 1 answer
- 1082 views
-

Question
GlobalCores 0
Gostaria de colocar este script para TFS 1.0 atualmente eu peguei ele na versão do TFS 1.2 mas infelizmente não consigo colocar pra ele contar o tempo e mover o jogador caso ele tiver parado pelo tempo determinado no script, acontece que não da erro nenhum ele só não move, alguém poderia me ajudar?
local config = { time = 15, -- minutes str = 98765, -- storage pos = {x = 31373, y = 32780, z = 7} -- position } function onStepIn(creature, item, position, fromPosition) local player = creature:getPlayer() if not player or player:isInGhostMode() then return true end local function isTraining(uid) local self = Player(uid) if not self then return false end return self:getStorageValue(config.str) > 0 and self:teleportTo(config.pos) or true end check = addEvent(isTraining, config.time * 60 * 1000, player:getGuid()) player:sendTextMessage(MESSAGE_EVENT_ADVANCE, '[Treiner]: Movimente-se a cada ' .. config.time .. ' minutos, caso contrario, voce sera teleportado ao templo.') return player:setStorageValue(config.str, 1) end function onStepOut(creature, item, position, fromPosition) local player = creature:getPlayer() if not player or player:isInGhostMode() then return true end return stopEvent(check) and player:setStorageValue(config.str, -1) endLink to comment
https://xtibia.com/forum/topic/240042-tempo-trainer-tfs-10/Share on other sites
0 answers to this question
Recommended Posts