Ir para conteúdo
  • 0

[Resolvido] MAGIC WALL POR ACTIONS 0.4


Dragon Ball Hiper

Pergunta

5 respostass a esta questão

Posts Recomendados

  • 0
4 horas atrás, Dragon Ball Hiper disse:

alguem pode disponibilizar um action para usar magic wall ? 

 

gostaria do action nao spells !

  0.4 OTX

 

 

Testa ai

 

 

local cyko = {timer = 15, -- How long will the magic wall staycooldown = 3, -- How long to cast another onewords = {"I LOVE MAGIC WALL!","HAHA YOU CANT GET ME","BIATCH","BOOM"}, -- Here can you add or edit the catch phrases!txt = "END", -- Text when it removescolor_on_timer = TEXTCOLOR_BLUE, -- Color on countdownempty_storage = 1000 -- Please set a unused storage}function onUse(cid, item, fromPosition, itemEx, toPosition)if(getPlayerStorageValue(cid, cyko.empty_storage) > os.time()) thenreturn (doPlayerSendCancel(cid, "You are exhausted."))endif (getTileInfo(getThingPos(cid)).protection or getTileInfo(toPosition).protection) thenreturn (doPlayerSendCancel(cid, "You can't cast magic wall while your inside protection zone."))endlocal function removemw()if(getTileItemById(toPosition, 1497).uid > 0) thenif (version_check == 03) thenreturn (doSendAnimatedText(toPosition,cyko.txt, TEXTCOLOR_RED) and doSendMagicEffect(toPosition, CONST_ME_ENERGYHIT) and doRemoveItem(getTileItemById(toPosition, 1497).uid))elsereturn (doSendMagicEffect(toPosition, CONST_ME_ENERGYHIT) and doRemoveItem(getTileItemById(toPosition, 1497).uid))endendendfor mw = 1, cyko.timer dolocal o = cyko.timer - mwif (version_check == 03) thenaddEvent(doSendAnimatedText, mw * 1000, toPosition, o > 0 and tostring(o), cyko.color_on_timer)elseaddEvent(doSendAnimatedText2, mw * 1000, toPosition, o > 0 and tostring(o), cyko.color_on_timer)endendif (isWalkable(toPosition, false, false, true, true, true)) thendoCreateItem(1497, toPosition)setPlayerStorageValue(cid, cyko.storage, os.time() + cyko.cooldown)addEvent(removemw, cyko.timer * 1000)doSendMagicEffect(toPosition, CONST_ME_ENERGYAREA)if (random_txt_onsay == true) thendoCreatureSay(cid, cyko.words[math.random(#cyko.words)], TALKTYPE_ORANGE_1)endelsedoPlayerSendDefaultCancel(cid, RETURNVALUE_NOTENOUGHROOM)endreturn trueend

 

Link para o comentário
Compartilhar em outros sites

  • 0
2 horas atrás, Crypter disse:

Testa ai

 

 

local cyko = {timer = 15, -- How long will the magic wall staycooldown = 3, -- How long to cast another onewords = {"I LOVE MAGIC WALL!","HAHA YOU CANT GET ME","BIATCH","BOOM"}, -- Here can you add or edit the catch phrases!txt = "END", -- Text when it removescolor_on_timer = TEXTCOLOR_BLUE, -- Color on countdownempty_storage = 1000 -- Please set a unused storage}function onUse(cid, item, fromPosition, itemEx, toPosition)if(getPlayerStorageValue(cid, cyko.empty_storage) > os.time()) thenreturn (doPlayerSendCancel(cid, "You are exhausted."))endif (getTileInfo(getThingPos(cid)).protection or getTileInfo(toPosition).protection) thenreturn (doPlayerSendCancel(cid, "You can't cast magic wall while your inside protection zone."))endlocal function removemw()if(getTileItemById(toPosition, 1497).uid > 0) thenif (version_check == 03) thenreturn (doSendAnimatedText(toPosition,cyko.txt, TEXTCOLOR_RED) and doSendMagicEffect(toPosition, CONST_ME_ENERGYHIT) and doRemoveItem(getTileItemById(toPosition, 1497).uid))elsereturn (doSendMagicEffect(toPosition, CONST_ME_ENERGYHIT) and doRemoveItem(getTileItemById(toPosition, 1497).uid))endendendfor mw = 1, cyko.timer dolocal o = cyko.timer - mwif (version_check == 03) thenaddEvent(doSendAnimatedText, mw * 1000, toPosition, o > 0 and tostring(o), cyko.color_on_timer)elseaddEvent(doSendAnimatedText2, mw * 1000, toPosition, o > 0 and tostring(o), cyko.color_on_timer)endendif (isWalkable(toPosition, false, false, true, true, true)) thendoCreateItem(1497, toPosition)setPlayerStorageValue(cid, cyko.storage, os.time() + cyko.cooldown)addEvent(removemw, cyko.timer * 1000)doSendMagicEffect(toPosition, CONST_ME_ENERGYAREA)if (random_txt_onsay == true) thendoCreatureSay(cid, cyko.words[math.random(#cyko.words)], TALKTYPE_ORANGE_1)endelsedoPlayerSendDefaultCancel(cid, RETURNVALUE_NOTENOUGHROOM)endreturn trueend

 

nao funfa XD

 

 

Link para o comentário
Compartilhar em outros sites

  • 0
3 horas atrás, Dragon Ball Hiper disse:

nao funfa XD

 

 

Registra no actions.xml com o id da runa , caso ja tenha registrado diga o erro uso a script no meu server.

Link para o comentário
Compartilhar em outros sites

  • 0
9 horas atrás, Crypter disse:

Registra no actions.xml com o id da runa , caso ja tenha registrado diga o erro uso a script no meu server.

aparece erro nao quando uso como rune no spells 

da a seguinte frase no game

 

you may not cast area spells while you have a black skull

2 horas atrás, Dragon Ball Hiper disse:

aparece erro nao quando uso como rune no spells 

da a seguinte frase no game

 

you may not cast area spells while you have a black skull

resolvido -

Link para o comentário
Compartilhar em outros sites

Visitante
Este tópico está impedido de receber novos posts.
×
×
  • Criar Novo...