
Tudo que Fabi Marzan postou
-
coom consertar esse "bug" o efeito não acompanha o player
E igual, e um outfit com efeito, nao tem outro jeito. A unica maneira seria diminuir o intervalo para 1, mas o que vejo e lento, entao voce ta ussando um TFS 0.4? Com um OTX2 isso nao aconteceria. O efeito sairia mais rapido. Ou coloque um script do repeticao no script pra tornarlo mais rapido.
-
Saga System???????
E como pegar qualquer script do mission (npc), se voce sabe como os storages funcionam, sabera fazer o resto. Ex: A primeira missao e matar Mizuki, o que voce tem que fazer e aceitar a missao que Iruka te deixa, e quando voce aceita a missao ele te da o storage xxx, e isso torna possive atacar Mizuki, enquanto voce ataca Mizuki, voce precisa do storage xxx que Iruka deu a ele; ao derrotar Mizuki, voce recebera outro storage xxx que quando voce voltar para Iruka, permitira que voce prossiga para a proxima missao. E ao falar com Tsunade por exemplo, voce nao sera capaz de falar com ela ate que tenha storage xxx. Entao digo que se voce sabe como funcionam os storages, voce sabera fazer o resto e outra coisa e saber tambem como acomodar o npc, pois ja vi outros narutos que para as sagas nao funcionam tao bem. Eu apenas deixo a ideia para voce e seja criativo.
-
Kirigakure No Jutsu
Sim, ja o tenho, mas o que quero fazer e que quando o jogador atacar uma criatura, a invisibilidade seja desativada.
-
Katon Karyu Endan
Mds, muito tarde?
-
coom consertar esse "bug" o efeito não acompanha o player
effect = 141 --- EFEITO doSendMagicEffect({x = pos.x+1, y = pos.y+1, z = pos.z}, config.effect) TEM Q COLOCAR ISSO PRA TROCAR DO POSICAO. Nao e necessario tocar no cliente necessariamente, simplesmente inserindo um codigo que o faca mover a posicao do efeito, uma vez que esses efeitos nao sao centralizados.
-
Mensagem do player desalinhada com a sprite
tem q ussar slicer do object builder, e tente la.
-
(Resolvido)Qual servidor tem essas sprite?
OBS VV VV VV Sprites Stone.rar
-
(Resolvido)Qual servidor tem essas sprite?
Em os Pokemon.. baixa cualquera
-
Spell com erro em target
Testa ai, so q tem um problema quando um target ta correndo.
-
Spell com erro em target
Hmm nao e um error, so q esse Spell(scripts) e assim. Passa seu scripts pra passar outro aqui q tenho.
-
(SPELL) Spell com Cooldown
Tambem esse, local combat1 = createCombatObject() setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE) setCombatParam(combat1, COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA) setCombatParam(combat1, COMBAT_PARAM_DISTANCEEFFECT, 27) function onGetFormulaValues(cid, level, skill, attack, factor) local k = getPlayerStorageValue(cid, 378378) local skillTotal, levelTotal = skill + attack, level / 5 return -(skillTotal * 2.5 + levelTotal)-(skillTotal * 2.5 + levelTotal)*(k*1.0), -(skillTotal * 2.8 + levelTotal)-(skillTotal * 2.9 + levelTotal)*(k*1.0) end setCombatCallback(combat1, CALLBACK_PARAM_SKILLVALUE, "onGetFormulaValues") local combat2 = createCombatObject() setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE) setCombatParam(combat2, COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA) setCombatParam(combat2, COMBAT_PARAM_DISTANCEEFFECT, 27) setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -10, -10, -1, -20, 5, 5, 2.4, 10.1) local combat3 = createCombatObject() setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE) setCombatParam(combat3, COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA) setCombatParam(combat3, COMBAT_PARAM_DISTANCEEFFECT, 27) setCombatFormula(combat3, COMBAT_FORMULA_LEVELMAGIC, -10, -10, -1, -20, 5, 5, 2.4, 10.1) local function onCastSpell1(parameters) doCombat(parameters.cid, parameters.combat1, parameters.var) end local function onCastSpell2(parameters) doCombat(parameters.cid, parameters.combat2, parameters.var) end local function onCastSpell3(parameters) doCombat(parameters.cid, parameters.combat3, parameters.var) end function onCastSpell(cid, var) local waittime = 30 -- Tempo de exhaustion local storage = 3 -- não mecha if exhaustion.check(cid, storage) then doPlayerSendCancel(cid, "You are Exhausted.") doSendMagicEffect(getCreaturePosition(cid), 2) return false end local parameters = {cid = cid, var = var, combat1 = combat1, combat2 = combat2, combat3 = combat3} addEvent(onCastSpell1, 1000, parameters) addEvent(onCastSpell2, 1500, parameters) addEvent(onCastSpell3, 2000, parameters) exhaustion.set(cid, storage, waittime) return true end
-
Preciso de uma base de nto
- Spell - Piertotum Locomotor
- Script ou hotkey de recconect old client
Isso hotkeys que vc tem e pra OTclient....nao pra Old Client ELFBOT ---> auto 100 listas 'Re-Conect' | setcolor 0 400 500 | ifnot '$connected' reconnect | wait 6000- (Resolvido)Training Spell - Spell usada X vezes vira outra spell
algo assim? local config = { effects_per_level = { [1] = 25, -- efeito no [level 1] [2] = 177 -- efeito no [level 2] }, casts_to_up = 300, -- quantas vezes tem que soltar para alcançar o level 2 storages = {level = 46890, cast = 46891} -- só modifique se necessário } local function getPlayerRasenganLevel(cid) return getPlayerStorageValue(cid, config.storages.level) end local function getPlayerRasenganCasts(cid) return getPlayerStorageValue(cid, config.storages.cast) > 0 and getPlayerStorageValue(cid, config.storages.cast) or 0 end local function doPlayerRasenganUp(cid, round) return setPlayerStorageValue(cid, config.storages.cast, getPlayerRasenganCasts(cid) + round) end local combat = {} for i = 1, 2 do combat[i] = createCombatObject() setCombatParam(combat[i] , COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat[i] , COMBAT_PARAM_EFFECT, config.effects_per_level[i]) function onGetFormulaValues(cid, level, maglevel) min = -(level * 0.28 + maglevel * 1.48) * 1.0 * getPlayerRasenganLevel(cid) max = -(level * 0.34 + maglevel * 2.34) * 1.0 * getPlayerRasenganLevel(cid) return min, max end setCombatCallback(combat[i], CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues") end function onCastSpell(cid, var) if getPlayerRasenganLevel(cid) == -1 then setPlayerStorageValue(cid, config.storages.level, 1) end if getPlayerRasenganLevel(cid) ~= 2 then doPlayerRasenganUp(cid, 1) local casts, str = getPlayerRasenganCasts(cid), '' if casts == 1 then str = "First time casting Rasengan! You need "..config.casts_to_up.." casts to advance to level 2 and improve its power!" elseif casts == (config.casts_to_up / 2) then str = "You reached 50% on Rasengan level 1. Now you need "..(config.casts_to_up/2).. " casts to advance to level 2." elseif casts == config.casts_to_up then str = "Congratulations! You advanced the Rasengan jutsu from level 1 to level 2." setPlayerStorageValue(cid, config.storages.level, 2) end if str ~= '' then doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, str) end end return doCombat(cid, combat[getPlayerRasenganLevel(cid)], var) end- (Resolvido)Colocar posição de efeito nesse action
local position = {x=getPlayerPosition(cid).x, y=getPlayerPosition(cid).y, z=getPlayerPosition(cid).z} doSendMagicEffect(position, efeitosAura[i])- Spell com custo programável a cada hit
Usando essa funcao doCreatureAddMana(cid, -2000) Vida doCreatureAddHealth(cid, -2000)- EFEITO QUE TROCA DO POSICAO
Resolvido, para quem quiser foi apenas colocado um: local position = {x=getThingPosition(getCreatureTarget(cid)).x+1, y=getThingPosition(getCreatureTarget(cid)).y+1, z=getThingPosition(getCreatureTarget(cid)).z} doSendMagicEffect(position, 15) Assim: function spell1(cid) if getCreatureLookDirection(cid) == 2 then --DERECHA local position = {x=getThingPosition(getCreatureTarget(cid)).x+1, y=getThingPosition(getCreatureTarget(cid)).y+1, z=getThingPosition(getCreatureTarget(cid)).z} doSendMagicEffect(position, 169) end end- SpellS de Trap
PRIMEIRO: SPELL local config = { itemid = 2344, -- id da bomba duration = 50, -- duration antes de ser removida actionid = 13246, -- actionid que sera setado na bomba (pro movements) effect = 951, -- efeito que sai ao colocar a bomba } function removeBomba(pos, id) local item = getTileItemById(pos, id) if item.uid > 0 then doRemoveItem(item.uid) end return true end function Explosive(cid, text) if not isPlayer(cid) then return end doSendAnimatedText(getCreaturePosition(cid), "Trap..", 215) end function onCastSpell(cid, var) local waittime = 20 -- Tempo de exhaustion local storage = 1 -- não mecha if exhaustion.check(cid, storage) then doPlayerSendCancel(cid, "Usted esta cansado.") doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Tendras que esperar " .. exhaustion.get(cid, storage) .. " min para colocar otra trampa.") doSendMagicEffect(getCreaturePosition(cid), 2) return false end local position = getCreaturePosition(cid) local item = doCreateItem(config.itemid, 1, position) setItemAid(item, config.actionid) doItemSetAttribute(item, 'ref', getCreatureName(cid)) doSendMagicEffect(position, config.effect) addEvent(Explosive, 100, cid, "Trap!") addEvent(removeBomba, config.duration * 1000, position, config.itemid) exhaustion.set(cid, 2500, 1) exhaustion.set(cid, storage, waittime) return true end MOVEMENTS: local t = { tempo = 2 -- tempo em segundos } function onStepIn(cid, item, frompos, itemEx, topos) doRemoveItem(item.uid) doCreatureSetNoMove(cid, true) addEvent(function() if isPlayer(cid) then doCreatureSetNoMove(cid, false) end end, t.tempo*1000) return true end SEGUNDO: local remove_time = 8 -- tempo em segundos para remover as magic wall local item_id = 5750 -- id da magic wall function isWalkable(pos, creature, pz, proj) if getTileThingByPos({x = pos.x, y = pos.y, z = pos.z, stackpos = 0}).itemid == 0 then return false end local creature = getTopCreature(pos) if creature.type > 0 then return false end if getTilePzInfo(pos) and not pz then return false end local n = not proj and 3 or 2 for i = 0, 255 do pos.stackpos = i local tile = getTileThingByPos(pos) if tile.itemid ~= 0 and not isCreature(tile.uid) then if hasProperty(tile.uid, n) or hasProperty(tile.uid, 7) then return false end end end return true end function removeItem(posAll) for i=1, #posAll do for j=0, 255 do pos_stack = {x=posAll[i].x,y=posAll[i].y,z=posAll[i].z,stackpos=j} removeTile = getThingfromPos(pos_stack) if removeTile.itemid == item_id then doRemoveItem(removeTile.uid) end end end end function onCastSpell(cid, var) local waittime = 30 -- Tempo de exhaustion em segundos local storage = 5853 -- Storage de Spell, nunca usar a mesma em outra spell, a menos que não queira usar duas spell juntas! if exhaustion.check(cid, storage) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Espera "..exhaustion.get(cid, storage).." segundos para usar nuevamente.") return false end local pos = getThingPos(getCreatureTarget(cid)) addEvent(doSendAnimatedText, 100, {x = pos.x, y = pos.y, z = pos.z}, "TRAP!", 180) posTile1 = {x=pos.x+1,y=pos.y+1,z=pos.z,stackpos=1} posTile2 = {x=pos.x+1,y=pos.y,z=pos.z,stackpos=1} posTile3 = {x=pos.x+1,y=pos.y-1,z=pos.z,stackpos=1} posTile4 = {x=pos.x,y=pos.y-1,z=pos.z,stackpos=1} posTile5 = {x=pos.x-1,y=pos.y-1,z=pos.z,stackpos=1} posTile6 = {x=pos.x-1,y=pos.y,z=pos.z,stackpos=1} posTile7 = {x=pos.x-1,y=pos.y+1,z=pos.z,stackpos=1} posTile8 = {x=pos.x,y=pos.y+1,z=pos.z,stackpos=1} posAll = {posTile1,posTile2,posTile3,posTile4,posTile5,posTile6,posTile7,posTile8} for i=1, #posAll do if isWalkable(posAll[i]) then doCreateItem(item_id, 1, posAll[i]) end end function dotonprision(cid) if isCreature(cid) and isCreature(getCreatureTarget(cid)) then local position = {x=getThingPosition(getCreatureTarget(cid)).x+2, y=getThingPosition(getCreatureTarget(cid)).y+1, z=getThingPosition(getCreatureTarget(cid)).z} doSendMagicEffect(position, 690) local position = {x=getThingPosition(getCreatureTarget(cid)).x, y=getThingPosition(getCreatureTarget(cid)).y+1, z=getThingPosition(getCreatureTarget(cid)).z} doSendMagicEffect(position, 690) end end local parameters = {cid = cid, var = var, combat1 = combat1 , combat2 = combat2} for i = 1, 2 do addEvent(function() if isCreature(cid) then addEvent(dotonprision,100,cid) end end, 1 + ((i-1) * 8000)) end addEvent(removeItem, remove_time*1000, posAll) exhaustion.set(cid, storage, waittime) return true end Terceiro VC TENTA MODIFICAR AI local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, true) setCombatParam(combat, COMBAT_PARAM_EFFECT, 134) local condition = createConditionObject(CONDITION_PARALYZE) setConditionParam(condition, CONDITION_PARAM_TICKS, 20000) setConditionFormula(condition, -0.5, 0, -0.5, 0) setCombatCondition(combat, condition) local combat2 = createCombatObject() setCombatParam(combat2, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_EARTH) setCombatParam(combat2, COMBAT_PARAM_CREATEITEM, 1499) arr1 = { {0, 0, 1, 0, 0}, {0, 1, 1, 1, 0}, {1, 1, 2, 1, 1}, {0, 1, 1, 1, 0}, {0, 0, 1, 0, 0}, } arr2 = { {0, 0, 0, 0, 1, 0, 0, 0, 0}, {0, 0, 0, 1, 1, 1, 0, 0, 0}, {0, 0, 1, 1, 0, 1, 1, 0, 0}, {0, 1, 1, 0, 0, 0, 1, 1, 0}, {1, 1, 0, 0, 2, 0, 0, 1, 1}, {0, 1, 1, 0, 0, 0, 1, 1, 0}, {0, 0, 1, 1, 0, 1, 1, 0, 0}, {0, 0, 0, 1, 1, 1, 0, 0, 0}, {0, 0, 0, 0, 1, 0, 0, 0, 0}, } local area2 = createCombatArea(arr2) local area1 = createCombatArea(arr1) setCombatArea(combat2, area2) setCombatArea(combat, area1) function countPos(pos,tempo) if tempo > 0 then doSendAnimatedText(pos,tempo,TEXTCOLOR_ORANGE) addEvent(countPos,999,pos,tempo-1) else end end function onCastSpell(cid, var) countPos(var.pos,30) local from,to = {x = 953, y = 1128, z = 7},{x = 982, y = 1147, z = 7} if isInArea(getCreaturePosition(cid), from, to) then return doPlayerSendCancel(cid, "Não é permitido utilizar está magia no desafio dos monstros.") else doCombat(cid, combat, var) return doCombat(cid, combat2, var) end return true end- Alterando dimensao do Shoot Effects
¿Isso? local pos = getCreaturePosition(target) doSendDistanceShoot({x=getCreaturePosition(target).x-2,y=getCreaturePosition(target).y-2,z=getCreaturePosition(target).z}, getCreaturePosition(target), 97)- [Error - Spell Interface]
USSA ESSE MELHOR: local combat1 = createCombatObject() setCombatParam(combat1, COMBAT_PARAM_HITCOLOR, 210) setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat1, COMBAT_PARAM_DISTANCEEFFECT, 125) setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -4.4, 1, -4.5, 1) local function onCastSpell1(parameters) doCombat(parameters.cid, parameters.combat1, parameters.var) end function SPELL(cid) -- <<< FUNCAO if isCreature(cid) and isCreature(getCreatureTarget(cid)) then local position = {x=getThingPosition(getCreatureTarget(cid)).x+2, y=getThingPosition(getCreatureTarget(cid)).y+1, z=getThingPosition(getCreatureTarget(cid)).z} doSendMagicEffect(position, 310) end end function onCastSpell(cid, var) local waittime = 1 -- Tempo de exhaustion local storage = 3 -- não mecha if exhaustion.check(cid, storage) then doPlayerSendCancel(cid, "Usted esta cansado.") doSendMagicEffect(getCreaturePosition(cid), 2) return false end local parameters = {cid = cid, var = var, combat1 = combat1 , combat2 = combat2} for i = 1, 4 do addEvent(function() if isCreature(cid) then addEvent(onCastSpell1, 100, parameters) addEvent(SPELL,100,cid) end end, 1 + ((i-1) * 275)) end exhaustion.set(cid, storage, waittime) return true end- Usar Spell so com Players.
Oi, eu quero usar o spell so com players. local pos = { {x = 1513, y = 1164, z = 7}, {x = 1496, y = 1166, z = 7}, } local config = { key = 14567, -- storage que salvara a pos (Note que esse e os proximos 2 storages seguintes serao utilizados) effect = 152, -- efeito ao entrar no kamui storagecol = 14565, -- storage que fica salvo o cooldown cooldown = 2, -- tempo entre 1 uso e outro from = {x=1485, y=1137, z=7}, --- quina do kamui (pra impedir players de usarem o kamui dentro do kamui) to = {x=1590, y=1244, z=7}, --- quina do kamui (pra impedir players de usarem o kamui dentro do kamui) from1 = {x=1496, y=1164, z=7}, --- quina do kamui (pra impedir players de usarem o kamui dentro do kamui) to1 = {x=1513, y=1167, z=7}, --- quina do kamui (pra impedir players de usarem o kamui dentro do kamui) from2 = {x = 1485, y = 1137, z = 6}, --- quina do kamui (pra impedir players de usarem o kamui dentro do kamui) to2 = {x = 1590, y = 1244, z = 6}, --- quina do kamui (pra impedir players de usarem o kamui dentro do kamui) from3 = {x = 1485, y = 1137, z = 6}, --- quina do kamui (pra impedir players de usarem o kamui dentro do kamui) to3 = {x = 1590, y = 1244, z = 5}, --- quina do kamui (pra impedir players de usarem o kamui dentro do kamui) msgligada = true, -- true/false para ligar/desligar o envio de msg. msg = "Kamui!", -- msg a ser enviada ao dizer a spell exceptions = {'Madara', 'Sasuke The Last'} --- nome das criaturas que não poderão ser levadas pro kamui (sempre em minúsculo e entre aspas) } function onCastSpell(cid, var) if isInRange(getCreaturePosition(cid), config.from, config.to) then doPlayerSendCancel(cid, "Usted no puede usar el Kamui aqui.") doSendMagicEffect(getCreaturePosition(cid), 2) return false end if isInRange(getCreaturePosition(cid), config.from1, config.to1) then doPlayerSendCancel(cid, "Usted no puede usar el Kamui aqui.") doSendMagicEffect(getCreaturePosition(cid), 2) return false end if isInRange(getCreaturePosition(cid), config.from2, config.to2) then doPlayerSendCancel(cid, "Usted no puede usar el Kamui aqui.") doSendMagicEffect(getCreaturePosition(cid), 2) return false end if getPlayerStorageValue(cid, config.storagecol) - os.time() <= 0 then for i = 1, #config.exceptions do if getCreatureName(variantToNumber(var)):lower() == config.exceptions[i] then doPlayerSendCancel(cid, "No puedes usar ".. getCreatureName(variantToNumber(var)) .." elKamui contra este objetivo.") doSendMagicEffect(getCreaturePosition(cid), 2) return false end end setPlayerStorageValue(cid, config.storagecol, os.time() + config.cooldown) if config.msgligada then doCreatureSay(cid, config.msg, 20) end savePos(cid, config.key) savePos(variantToNumber(var), config.key) addEvent(doSendMagicEffect, 1, getCreaturePosition(cid), config.effect) addEvent(doSendMagicEffect, 1, getCreaturePosition(variantToNumber(var)), config.effect) doTeleportThing(cid, pos[math.random(1, #pos)]) doTeleportThing(variantToNumber(var), pos[math.random(1, #pos)]) else doPlayerSendCancel(cid, "Jutsu en cooldown.") doSendMagicEffect(getCreaturePosition(cid), 2) return false end return true end- spells que trapa a frente do jogador
é muito parecido com o que você quer local combat_lv1 = createCombatObject() setCombatParam(combat_lv1, COMBAT_PARAM_EFFECT, 111) setCombatParam(combat_lv1, COMBAT_PARAM_CREATEITEM, 1706) local combat_lv2 = createCombatObject() setCombatParam(combat_lv2, COMBAT_PARAM_EFFECT, 111) setCombatParam(combat_lv2, COMBAT_PARAM_CREATEITEM, 1706) local combat_lv3 = createCombatObject() setCombatParam(combat_lv3, COMBAT_PARAM_EFFECT, 111) setCombatParam(combat_lv3, COMBAT_PARAM_CREATEITEM, 1706) local combat_lv4 = createCombatObject() setCombatParam(combat_lv4, COMBAT_PARAM_EFFECT, 111) setCombatParam(combat_lv4, COMBAT_PARAM_CREATEITEM, 1706) local area_lv1 = createCombatArea({ {1, 0, 1}, {1, 0, 1}, {0, 1, 0}, {0, 2, 0} }) local area_lv2 = createCombatArea({ {0, 1, 0}, {1, 1, 1}, {1, 1, 1}, {0, 1, 0}, {0, 2, 0} }) local area_lv3 = createCombatArea({ {1, 1, 1, 1, 1}, {1, 1, 1, 1, 1}, {1, 1, 1, 1, 1}, {0, 1, 1, 1, 0}, {0, 0, 1, 0, 0}, {0, 0, 2, 0, 0} }) local area_lv4 = createCombatArea({ {1, 1, 1, 1, 1, 1, 1}, {1, 1, 1, 1, 1, 1, 1}, {1, 1, 1, 1, 1, 1, 1}, {0, 1, 1, 1, 1, 1, 0}, {0, 0, 1, 1, 1, 0, 0}, {0, 0, 0, 1, 0, 0, 0}, {0, 0, 0, 2, 0, 0, 0} }) setCombatArea(combat_lv1, area_lv1) setCombatArea(combat_lv2, area_lv2) setCombatArea(combat_lv3, area_lv3) setCombatArea(combat_lv4, area_lv4) local function onCastSpell1(parameters) doCombat(parameters.cid, combat_lv1, parameters.var) end local function onCastSpell2(parameters) doCombat(parameters.cid, combat_lv2, parameters.var) end local function onCastSpell3(parameters) doCombat(parameters.cid, combat_lv3, parameters.var) end local function onCastSpell4(parameters) doCombat(parameters.cid, combat_lv4, parameters.var) end function onCastSpell(cid, var) local waittime = 10 -- Tempo de exhaustion local storage = 5439 if exhaustion.check(cid, storage) then return false end local from,to = {x=901, y=701, z=7},{x=931, y=733, z=7} -- começo e final do mapa if isInRange(getCreaturePosition(cid), from, to) then doPlayerSendCancel(cid, "Você não pode usar esse jutsu nessa area!") return true end local position = getCreaturePosition(cid) local t = { [0] = {x = position.x, y = position.y - 3, z = position.z}, [1] = {x = position.x + 3, y = position.y, z = position.z}, [2] = {x = position.x, y = position.y + 3, z = position.z}, [3] = {x = position.x - 3, y = position.y, z = position.z}, [4] = {x = position.x - 3, y = position.y, z = position.z}, } local parameters = { cid = cid, var = var} local spell_storage = 42552 if getPlayerStorageValue(cid, spell_storage) < 100 then addEvent(onCastSpell1, 0, parameters) setPlayerStorageValue(cid, spell_storage, getPlayerStorageValue(cid, spell_storage)+1) elseif getPlayerStorageValue(cid, spell_storage) == 100 then addEvent(onCastSpell2, 0, parameters) setPlayerStorageValue(cid, spell_storage, getPlayerStorageValue(cid, spell_storage)+1) doPlayerSendTextMessage(cid, 22, "Seu jutsu progrediu para o level 2") doSendMagicEffect(getCreaturePosition(cid),28) doSendAnimatedText(getCreaturePosition(cid), 'Jutsu UP', 210) elseif getPlayerStorageValue(cid, spell_storage) > 100 and getPlayerStorageValue(cid, spell_storage) < 300 then addEvent(onCastSpell2, 0, parameters) setPlayerStorageValue(cid, spell_storage, getPlayerStorageValue(cid, spell_storage)+1) elseif getPlayerStorageValue(cid, spell_storage) == 300 then addEvent(onCastSpell3, 0, parameters) setPlayerStorageValue(cid, spell_storage, getPlayerStorageValue(cid, spell_storage)+1) doPlayerSendTextMessage(cid, 22, "Seu jutsu progrediu para o level 3") doSendMagicEffect(getCreaturePosition(cid),28) doSendAnimatedText(getCreaturePosition(cid), 'Jutsu UP', 210) elseif getPlayerStorageValue(cid, spell_storage) > 300 and getPlayerStorageValue(cid, spell_storage) < 500 then addEvent(onCastSpell3, 0, parameters) setPlayerStorageValue(cid, spell_storage, getPlayerStorageValue(cid, spell_storage)+1) elseif getPlayerStorageValue(cid, spell_storage) == 500 then addEvent(onCastSpell4, 0, parameters) setPlayerStorageValue(cid, spell_storage, getPlayerStorageValue(cid, spell_storage)+1) doPlayerSendTextMessage(cid, 22, "Seu jutsu progrediu para o level 4") doSendMagicEffect(getCreaturePosition(cid),28) doSendAnimatedText(getCreaturePosition(cid), 'Jutsu UP', 210) elseif getPlayerStorageValue(cid, spell_storage) > 500 then addEvent(onCastSpell4, 0, parameters) setPlayerStorageValue(cid, spell_storage, getPlayerStorageValue(cid, spell_storage)+1) end exhaustion.set(cid, storage, waittime) return TRUE end- pedido de sprite de shiny metagross
@TheusMoraes outfit_7.obd- TFS para OTX
Usei Tfs 0.4 ate usar as mesmas sources do NTO HARD e a partir dai comecei do novo. - Spell - Piertotum Locomotor
Informação Importante
Confirmação de Termo