Postado Setembro 30, 2014 10 anos Solução Mude aqui na spell local config = { storage = 3482101, cooldown = 20, effect1 = 29, --- efeito que sai qnd usa a spell charges = 10 --- quantas cargas vai ganhar de reflect } function onCastSpell(cid, var) if getPlayerStorageValue(cid, config.storage) >= 1 then doPlayerSendCancel(cid, "Your skill is already active.") return false end if os.time() - getPlayerStorageValue(cid, 55694) >= config.cooldown then setPlayerStorageValue(cid, 55694, os.time()) doSendMagicEffect(getCreaturePosition(cid), config.effect1) setPlayerStorageValue(cid, config.storage, config.charges) doPlayerSendTextMessage(cid, 27, "You activated your skill, the next "..config.charges.." damage(s) will be reflected.") else doPlayerSendCancel(cid, "Your skill is in cooldown, you must wait "..(config.cooldown - (os.time() - getPlayerStorageValue(cid, 55694))).." seconds.") return false end return true end e no creaturescripts: local config = { storage = 3482101, effect1 = 17, --- efeito que sai ao dar reflect effect2 = 29 -- efeito que aparece na pessoa que levou reflect } function onStatsChange(cid, attacker, type, combat, value) if value >= 1 and (type == STATSCHANGE_HEALTHLOSS or (getCreatureCondition(cid, CONDITION_MANASHIELD) and type == STATSCHANGE_MANALOSS)) then if getPlayerStorageValue(cid,config.storage) >= 1 and isCreature(attacker) then doSendAnimatedText(getCreaturePosition(attacker),"-"..value, 215) doCreatureAddHealth(attacker, -value, true) doCreatureSay(cid,"Uchihagaeshi!", 19) doSendMagicEffect(getCreaturePosition(cid), config.effect1) doSendMagicEffect(getCreaturePosition(attacker), config.effect2) setPlayerStorageValue(cid,config.storage, getPlayerStorageValue(cid,config.storage) - 1) return false end end return true end Só substituir os dois que vai ficar da forma que vc quer Todos os meus trabalhos importantes estão na seção "Sobre mim" no meu perfil; Dá uma passada lá! "Há três caminhos para o fracasso: não ensinar o que se sabe, não praticar o que se ensina, e não perguntar o que se ignora." - São Beda (obg ao @Beeny por fazer essa linda sign <3)
Postado Junho 30, 2016 8 anos ta Faltando EXEMPLO <instant name="xxxxxxxxxxxxx" words="xxxxxxxxxxxx" lvl="75" mana="100" prem="0" exhaustion="5000" needlearn="0" blockwalls="1" enabled="1" event="script" value="rxxxxo/xxxxxxxxxxxxxxxxxxxx.lua"> EO Action tambem NTO PANZER SERVIDOR 24H http://narutopanzer.blogspot.com.br/RATE EXP 999 DBO SERVIDOR 24H http://dbowtf.ddns.net/RATE EXP 400
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.