Por Xtibianoo01, 28 de ago. de 2018 em Scripts
info
Grupo: Campones
Registrado: 23/08/18
Posts: 48
Reputação: 0
fazer stack so um monk .
ou o monstro aparace e depois que o player sai de cima do tiler o monstro some !.
local config = { gStorage = 34349, monster = "monk", time = 1, pos = {x = 220, y = 17, z = 6} }
function onStepIn(cid, item, position, fromPosition) if not isPlayer(cid) then return true end if getGlobalStorageValue(config.gStorage) < os.time() then doCreateMonster(config.monster, config.pos) setGlobalStorageValue(config.gStorage, config.time * 60 + os.time()) doCreatureSay(cid, ''..config.monster ..' apareceu!', TALKTYPE_MONSTER) doSendMagicEffect(config.pos, CONST_ME_TELEPORT) doSendMagicEffect(position, 13) else doTeleportThing(cid, fromPosition) doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, 'Wait '.. math.ceil((getGlobalStorageValue(config.gStorage) - os.time())/60) ..' minutes to summon the '.. config.monster ..' again.') end return true end
info
Grupo: Campones
Registrado: 23/08/18
Posts: 48
Reputação: 0
fazer stack so um monk .
ou o monstro aparace e depois que o player sai de cima do tiler o monstro some !.
local config = {
gStorage = 34349,
monster = "monk",
time = 1,
pos = {x = 220, y = 17, z = 6}
}
function onStepIn(cid, item, position, fromPosition)
if not isPlayer(cid) then return true end
if getGlobalStorageValue(config.gStorage) < os.time() then
doCreateMonster(config.monster, config.pos)
setGlobalStorageValue(config.gStorage, config.time * 60 + os.time())
doCreatureSay(cid, ''..config.monster ..' apareceu!', TALKTYPE_MONSTER)
doSendMagicEffect(config.pos, CONST_ME_TELEPORT)
doSendMagicEffect(position, 13)
else
doTeleportThing(cid, fromPosition)
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, 'Wait '.. math.ceil((getGlobalStorageValue(config.gStorage) - os.time())/60) ..' minutes to summon the '.. config.monster ..' again.')
end
return true
end