Fir3z 1 Postado Junho 1, 2013 Share Postado Junho 1, 2013 (editado) Bom, eu tinha criado um sv, mas tive que parar por não ter retorno... criei vários scripts, magias, mapas, etc... pra não ficar tudo parado vou disponibilizar algumas coisas feitas por mim Demorei pra fazer esse script, ele podia estar bem mais simples (mas não sei como fazer isso, assim funciona... então XD) Criador: Fir3z Servidor Testado: TFS 0.4 - 8.60 Oque faz: Essa magia simplesmente rouba a vida do target e te da a mesma vida, tinha feito isso para um knight, então os efeitos estão para knights... é só trocar caso queira (: Imagemzinha básica da magia funcionando Exori Bong.lua: function onCastSpell(cid, var) local playerpos = getCreaturePosition(cid) local target = getCreatureTarget(cid) local trapos = getCreaturePosition(target) local level = getPlayerLevel(cid) local numero1 = (level*1.5) -- Dano Mínimo local numero2 = (level*2.5) -- Dano Máximo for i = numero1, numero2 do levelz = (math.random(numero2)) end doCreatureAddHealth(target, -levelz) doSendAnimatedText(trapos, levelz, 180) doCreatureAddHealth(cid, levelz) doCreatureAddMana(cid, -300) -- Quanto Vai Gastar de Mana doSendMagicEffect(trapos, 9) doSendMagicEffect(playerpos, 12) doSendDistanceShoot(trapos, playerpos, 40) return TRUE endspells.xml: <instant name="Exori Bong" words="exori bong" lvl="80" mana="300" prem="1" range="3" needtarget="1" blockwalls="1" needweapon="1" exhaustion="2000" needlearn="0" event="script" value="attack/exori bong.lua"> <vocation id="4"/> <vocation id="8"/> </instant>Espero que gostem da mágia Editado Agosto 19, 2013 por Fir3z Link para o comentário https://xtibia.com/forum/topic/215415-exori-bong-sugar-vida-do-target/ Compartilhar em outros sites More sharing options...
Thayna 4 Postado Junho 7, 2013 Share Postado Junho 7, 2013 a spell ta bugada, a exaustão não funciona, da pra dar a magia quantas vezes quiser.. Link para o comentário https://xtibia.com/forum/topic/215415-exori-bong-sugar-vida-do-target/#findComment-1529226 Compartilhar em outros sites More sharing options...
lukas13on 4 Postado Junho 12, 2013 Share Postado Junho 12, 2013 (editado) <instant name="Exori Bong" words="exori bong" lvl="65" mana="580" prem="0" exhaustion="2000" needtarget="1" range = "4" needlearn="0" script="attack/exori bong.lua"> function onCastSpell(cid, var) local exaustion = getSpellEx(2000,Ex) local playerpos = getCreaturePosition(cid) local target = getCreatureTarget(cid) local trapos = getCreaturePosition(target) local level = getPlayerLevel(cid) local numero1 = (level*1.5) -- Dano Mínimo local numero2 = (level*2.5) -- Dano Máximo for i = numero1, numero2 do levelz = (math.random(numero2)) end doExaustionSpell(Ex, 2000) doCreatureAddHealth(target, -levelz) doSendAnimatedText(trapos, levelz, 180) doCreatureAddHealth(cid, levelz) doCreatureAddMana(cid, -300) -- Quanto Vai Gastar de Mana doSendMagicEffect(trapos, 9) doSendMagicEffect(playerpos, 12) doSendDistanceShoot(trapos, playerpos, 40) end Editado Junho 12, 2013 por HarpiaLOOK Link para o comentário https://xtibia.com/forum/topic/215415-exori-bong-sugar-vida-do-target/#findComment-1531136 Compartilhar em outros sites More sharing options...
Kimbly 1 Postado Junho 15, 2013 Share Postado Junho 15, 2013 @ skynet2 ~ É como você disse ta sem exausted... @ HarpiaLOOK ~ Tá dando uns erro desse jeito que você mando ai... [Error - Spell Interface] data/spells/script/attack/exori bong.lua:onCastSpell Description: data/spells/script/attack/exori bong.lua:2: attempt to call global 'getSpellEx' <a nil value> stack traceback: data/spells/script/attack/exori bong.lua:2: in function <data/spells/script/attack/exori bong.lua:1> Link para o comentário https://xtibia.com/forum/topic/215415-exori-bong-sugar-vida-do-target/#findComment-1532176 Compartilhar em outros sites More sharing options...
surfnament 1 Postado Junho 16, 2013 Share Postado Junho 16, 2013 Alguem pode me ajudar aqui? http://www.xtibia.com/forum/topic/216273-duvida-promotion-vip/ Link para o comentário https://xtibia.com/forum/topic/215415-exori-bong-sugar-vida-do-target/#findComment-1532494 Compartilhar em outros sites More sharing options...
NextWorld 16 Postado Julho 3, 2013 Share Postado Julho 3, 2013 Para colocar exhast, so precisa colocar uma coisa no final: function onCastSpell(cid, var)local playerpos = getCreaturePosition(cid)local target = getCreatureTarget(cid)local trapos = getCreaturePosition(target)local level = getPlayerLevel(cid)local numero1 = (level*1.5) -- Dano Mínimolocal numero2 = (level*2.5) -- Dano Máximofor i = numero1, numero2 dolevelz = (math.random(numero2))enddoCreatureAddHealth(target, -levelz)doSendAnimatedText(trapos, levelz, 180)doCreatureAddHealth(cid, levelz)doCreatureAddMana(cid, -300) -- Quanto Vai Gastar de ManadoSendMagicEffect(trapos, 9)doSendMagicEffect(playerpos, 12)doSendDistanceShoot(trapos, playerpos, 40) return trueend Na hora de colocar a tag, só precisa mudar o exhastion que quizer: <instant name="Exori Bong" words="exori bong" lvl="80" mana="300" prem="1" range="3" needtarget="1" blockwalls="1" needweapon="1" exhaustion="2000" needlearn="0" event="script" value="attack/exori bong.lua"><vocation id="4"/><vocation id="8"/></instant> Link para o comentário https://xtibia.com/forum/topic/215415-exori-bong-sugar-vida-do-target/#findComment-1536091 Compartilhar em outros sites More sharing options...
Kimbly 1 Postado Julho 5, 2013 Share Postado Julho 5, 2013 @ NextWorld ~ No post tem essa tag que você mencionou: <instant name="Exori Bong" words="exori bong" lvl="80" mana="300" prem="1" range="3" needtarget="1" blockwalls="1" needweapon="1" exhaustion="2000" needlearn="0" event="script" value="attack/exori bong.lua"> <vocation id="4"/> <vocation id="8"/> </instant> E você pode notar que ela está do mesmo jeito que você postou exhaustion="2000" E sim continua sem exausted mesmo configurando essa parte... Link para o comentário https://xtibia.com/forum/topic/215415-exori-bong-sugar-vida-do-target/#findComment-1536860 Compartilhar em outros sites More sharing options...
NextWorld 16 Postado Julho 5, 2013 Share Postado Julho 5, 2013 (editado) Foi mal eu não sabia... Mas eu fiz isso aqui, e deu certo '-'. Editado Julho 5, 2013 por NextWorld Link para o comentário https://xtibia.com/forum/topic/215415-exori-bong-sugar-vida-do-target/#findComment-1536985 Compartilhar em outros sites More sharing options...
folfer 1 Postado Julho 26, 2013 Share Postado Julho 26, 2013 Meu tambem ta bugando ... Link para o comentário https://xtibia.com/forum/topic/215415-exori-bong-sugar-vida-do-target/#findComment-1544009 Compartilhar em outros sites More sharing options...
Fir3z 1 Postado Agosto 19, 2013 Autor Share Postado Agosto 19, 2013 Era só fazer oque o NextWorld disse, colocar um "return TRUE" antes do end e a magia iria funcionar 100%... Já arrumei pra quem quiser testar =] Link para o comentário https://xtibia.com/forum/topic/215415-exori-bong-sugar-vida-do-target/#findComment-1552195 Compartilhar em outros sites More sharing options...
Session Start 125 Postado Agosto 26, 2013 Share Postado Agosto 26, 2013 Exausted 5 segundos function onCastSpell(cid, var) if getPlayerStorageValue(cid, 333311) < os.time () then setPlayerStorageValue(cid, 333311, os.time () + 5) -- 5 = 5 segundos local playerpos = getCreaturePosition(cid) local target = getCreatureTarget(cid) local trapos = getCreaturePosition(target) local level = getPlayerLevel(cid) local numero1 = (level*1.5) -- Dano Mínimo local numero2 = (level*2.5) -- Dano Máximo for i = numero1, numero2 do levelz = (math.random(numero2)) end doCreatureAddHealth(target, -levelz) doSendAnimatedText(trapos, levelz, 180) doCreatureAddHealth(cid, levelz) doCreatureAddMana(cid, -300) -- Quanto Vai Gastar de Mana doSendMagicEffect(trapos, 9) doSendMagicEffect(playerpos, 12) doSendDistanceShoot(trapos, playerpos, 40) else doPlayerSendCancel(cid, "aguarde "..getPlayerStorageValue(cid, 333311) - os.time ().." segundos para usar ") return false end return true end Link para o comentário https://xtibia.com/forum/topic/215415-exori-bong-sugar-vida-do-target/#findComment-1554520 Compartilhar em outros sites More sharing options...
teakwondo 0 Postado Novembro 17, 2015 Share Postado Novembro 17, 2015 Tem como fazer com a formula de dano do exori ? por exemplo Link para o comentário https://xtibia.com/forum/topic/215415-exori-bong-sugar-vida-do-target/#findComment-1675840 Compartilhar em outros sites More sharing options...
Posts Recomendados