Bom conteúdo. Pra server mapa global é interessante colocar 24h pra ficar parecido com o original.
- Fórum
- OTServ
- Recursos
- Scripting
- Actions e Talkactions
- Dh lever time (tfs 1.2)
PE
action
Dh lever time (tfs 1.2)
Por Peedbew, 29 de jun. de 2016 em Actions e Talkactions
demon helmet
dh quest
lever time
tfs 1.2
script
2
1.5k


info
Grupo: Campones
Registrado: 29/06/16
Posts: 39
Reputação: +16
Gênero: Masculino
Olá, vim trazer à comunidade esse código. Ele permite adicionar tempo para resetar a dh quest. Ele foi postado originalmente pelo membro Lundrial, da otland. Bem, não há mais o que dizer.
DH LEVER TIME
lever.lua
local timetoreset = 5 -- Time to reset the quest in minutes.local objectid = xxxx -- Id of the item Blocking the pathlocal p = { Position(x, y, z), -- Position of the item blocking the path Position(x, y, z), -- Teleport Creation position Position(x, y, z) -- Position where it sends you}function onUse(cid, item, fromPosition, itemEx, toPosition, isHotkey) local stone = Tile(p[1]) local tp = Tile(p[2]) if item.itemid == 1945 then cid:sendTextMessage(MESSAGE_EVENT_ORANGE, 'The object in your path has been removed for ' .. timetoreset .. ' minutes.') doCreateTeleport(1387, p[3], p[2]) stone:getItemById(objectid):remove() p[1]:sendMagicEffect(CONST_ME_POFF) p[2]:sendMagicEffect(CONST_ME_TELEPORT) Item(item.uid):transform(1946) addEvent(function(stonePos) Game.createItem(objectid, 1, stonePos) stonePos:sendMagicEffect(CONST_ME_TELEPORT) p[2]:sendMagicEffect(CONST_ME_POFF) tp:getItemById(1387):remove() Tile(toPosition):getItemById(1946):transform(1945) end, timetoreset * 60000, stone:getPosition()) elseif item.itemid == 1946 then return false end return trueendEditado Junho 29 por Peedbew