Postado Maio 7, 2021 4 anos Eu quero colocar uma storage nesse jutsu de dash, para poder criar outros jutsus, eu criei 3 dashs em meu servidor mas ta bugando. exemplo: uso o dash 1 aparece o efeito do dash 2, uso dash 2 e aparece o efeito do dash 3, eu tentei colocar uma storage mas não consegui. script sem edição minha \/ Citar -- dash as it is in avaOT by Night Wolf local distance = 12 -- distancia que anda (em sqm) local speed = 60 -- milisegundos entre cada passo (qnt menor = mais rapido) local invisible = createConditionObject(CONDITION_PARAM_TICKS, (speed * distance) + 100, false) -- nao mexa local function isWalkable(pos, creature, proj, pz)-- by Nord if getTileThingByPos({x = pos.x, y = pos.y, z = pos.z, stackpos = 0}).itemid == 0 then return false end if getTopCreature(pos).uid > 0 and creature then return false end if getTileInfo(pos).protection and pz then return false, true end local n = not proj and 3 or 2 for i = 0, 255 do pos.stackpos = i local tile = getTileThingByPos(pos) if tile.itemid ~= 0 and not isCreature(tile.uid) then if hasProperty(tile.uid, n) or hasProperty(tile.uid, 7) then return false end end end return true end agressive = "" function onWalk(cid) local posloook = getCreatureLookPosition(cid) local position1 = {x=getPlayerPosition(cid).x+1, y=getPlayerPosition(cid).y+1, z=getPlayerPosition(cid).z} posloook.stackpos = STACKPOS_TOP_MOVEABLE_ITEM_OR_CREATURE if isWalkable(posloook, false, false, true) then if not isCreature(getThingfromPos(posloook).uid) then doMoveCreature(cid, getPlayerLookDirection(cid)) doSendMagicEffect(position1, 262) return true else doSendMagicEffect(getPlayerPosition(cid), 2) return true end else doSendMagicEffect(getPlayerPosition(cid), 2) end end function onCastSpell(cid, var) local waittime = 20 -- Tempo de exhaustion local storage = 11224 if exhaustion.check(cid, storage) then return false end doAddCondition(cid, invisible) for i = 0, distance do addEvent(onWalk, speed * i,cid) exhaustion.set(cid, storage, waittime) end return true end
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.