Ir para conteúdo

(Duvida) Systema de Flecha


BrunoMaciel

Posts Recomendados

Estou com uma duvida relacionado ao systema de flecha no droop de stone no poketibia!

 

Script

Spoiler

local effect = 169 local arrow = {169, 5} --Efeito e tempo em segundos function sendEffect(pos, time) if time < 0 thenreturn true end doSendMagicEffect(pos, arrow[1]) addEvent(sendEffect, 1000, pos, time - 1) end local function func(cid, position, corpseid, effect) if not isCreature(cid) then return true end local corpse = getTileItemById(position, corpseid).uid if corpse <= 1 then return end if not isContainer(corpse) then return true end for slot = 0, (getContainerSize(corpse)-1) do local item = getContainerItem(corpse, slot) if item.uid <= 1 then return end ifisStone(item.itemid) then return doSendMagicEffect(getThingPos(cid), effect) and sendEffect(position, arrow[2]) end endend function onKill(cid, target, lastHit) if not ehMonstro(target) then return true end local corpse = getMonsterInfo(getCreatureName(target)).lookCorpse addEvent(func, 5, getCreatureSummons(cid)[1], getThingPos(target), corpse, effect) return true end

Achei essa script aqui no forum e pra quem que manja mais em script.lua pode me dizer so de olhar se e funcional a script ??

Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...