Ir para conteúdo
  • 0

ajuda aqui


Xtibianoo01

Pergunta

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

Link para o comentário
Compartilhar em outros sites

0 respostass a esta questão

Posts Recomendados

Até agora não há respostas para essa pergunta

×
×
  • Criar Novo...