Postado Julho 3, 2018 6 anos Solução @King Laker Ah claro . data/creaturescript/script/izanami.lua Mostrar conteúdo oculto function onStatsChange(target, cid, changetype, combat, value) if((cid and isCreature(cid)) and isPlayer(target) and exhaustion.check(target,14505) == TRUE and changetype == STATSCHANGE_HEALTHLOSS and math.abs(value) >= getCreatureHealth(target)) then doCreatureAddHealth(target, getCreatureMaxHealth(target)) doTeleportThing(target, {x=getPlayerStorageValue(target,14501), y=getPlayerStorageValue(target,14502), z=getPlayerStorageValue(target,14503)}) return FALSE end return TRUE end data/creaturescript/script/login.lua Mostrar conteúdo oculto registerCreatureEvent(cid, "Izanami") data/creaturescript/creaturescript.xml Mostrar conteúdo oculto <event type="statschange" name="Izanami" event="script" value="izanami.lua"/> Se faltar algo é só me marcar e dizer
Postado Julho 3, 2018 6 anos Autor @zLockey9 faltou a parte essencial o script dentro do spells Olá, que tal dar uma olhada no meu projeto? https://discord.gg/bsNkbsyJ3W
Postado Julho 3, 2018 6 anos @King Laker a Tag ? se for tá aí Mostrar conteúdo oculto <instant name="Izanami" words="izanami" lvl="1000" mana="30000" aggressive="1" exhaustion="0" needlearn="0" event="script" value="itachi/izanami.lua"> <vocation id="11"/> </instant>
Postado Julho 4, 2018 6 anos Autor @zLockey9 não, vá no spells abra a pasta itachi e copie o izanami.lua pra mim pf Olá, que tal dar uma olhada no meu projeto? https://discord.gg/bsNkbsyJ3W
Postado Julho 4, 2018 6 anos Em 03/07/2018 em 05:52, zLockey9 disse: O Izanami do meu server está assim: Mostrar conteúdo oculto Mostrar conteúdo oculto function onCastSpell(cid, var) local from1,to1 = {x=1964, y=731, z=7},{x=1976, y=742, z=7} -- tsukuyomi world local from2,to2 = {x=984, y=578, z=7},{x=1044, y=652, z=7} -- shinobi war local from3,to3 = {x=1241, y=723, z=6},{x=1257, y=738, z=6} -- kamui local tempo = 10 if isInRange(getCreaturePosition(cid), from1, to1) or isInRange(getCreaturePosition(cid), from2, to2) or isInRange(getCreaturePosition(cid), from3, to3) then doPlayerSendCancel(cid, "Voce nao pode usar o Izanami aqui.") return FALSE end if getTileInfo(getThingPos(cid)).nopvp then doPlayerSendCancel(cid, "Voce nao pode usar o Izanami aqui.") return FALSE end if getPlayerStorageValue(cid, 17453)-os.time() > 1 then local seetime = getPlayerStorageValue(cid, 17453)-os.time() local hours, minutes, seconds = math.floor(seetime/120), math.floor(seetime/60), math.floor(seetime%60) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Aguarde "..minutes.." minutos e "..seconds.." segundos para usar novamente o Izanami!") return FALSE end exhaustion.set(cid, 14505, tempo) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Izanami protection for "..tempo.." seconds!") doSendMagicEffect(getCreaturePos(cid), 236) setPlayerStorageValue(cid, 17453, 5*60+os.time()) setPlayerStorageValue(cid, 14501, getCreaturePosition(cid).x) setPlayerStorageValue(cid, 14502, getCreaturePosition(cid).y) setPlayerStorageValue(cid, 14503, getCreaturePosition(cid).z) return TRUE end Creio que as posições no topo seja onde não será possível usar a spell @King Laker Foi a primeira coisa que mandei ‘-‘
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.