Postado Abril 3, 2018 7 anos Galera queria pedir uma action script de magic wall normal , que ao usar o item apareça a wall com os segundos. TFS : 0.4 Editado Abril 3, 2018 7 anos por leozincorsair quero (veja o histórico de edições)
Postado Abril 3, 2018 7 anos Solução -- <rune name="Magic Wall" id="2293" allowfaruse="1" charges="3" lvl="32" maglv="9" exhaustion="2000" blocktype="all" event="script" value="support/magic wall rune.lua"/> function doShowTimeByPos(uid, pos, duration, type) type = type or 20 for i = 0, (duration - 1) do addEvent(function() if isCreature(uid) then doCreatureSay(uid, tostring(duration - i), type, false, 0, pos) end end, i * 1000) end return true end local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ENERGY) setCombatParam(combat, COMBAT_PARAM_CREATEITEM, 1497) setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false) function onCastSpell(cid, var) local duration = 20 -- duração da magic wall doShowTimeByPos(cid, variantToPosition(var), duration, 20) return doCombat(cid, combat, var) end Editado Abril 3, 2018 7 anos por Sttorm (veja o histórico de edições)
Postado Abril 3, 2018 7 anos Autor Em 03/04/2018 em 22:07, Sttorm disse: -- <rune name="Magic Wall" id="2293" allowfaruse="1" charges="3" lvl="32" maglv="9" exhaustion="2000" blocktype="all" event="script" value="support/magic wall rune.lua"/> function doShowTimeByPos(uid, pos, duration, type) type = type or 20 for i = 0, (duration - 1) do addEvent(function() if isCreature(uid) then doCreatureSay(uid, tostring(duration - i), type, false, 0, pos) end end, i * 1000) end return true end local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ENERGY) setCombatParam(combat, COMBAT_PARAM_CREATEITEM, 1497) setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false) function onCastSpell(cid, var) local duration = 20 -- duração da magic wall doShowTimeByPos(cid, variantToPosition(var), duration, 20) return doCombat(cid, combat, var) end Storm , não intendi coloco isso em spells ou no actions porque essa tag e meio estranha. Deu certo aqui muito obrigado !! +REP Editado Abril 3, 2018 7 anos por leozincorsair qero (veja o histórico de edições)
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.