Postado Abril 21, 2019 6 anos Em 21/04/2019 em 23:20, KR3 disse: @Joaovettor estranho porque ela já tem Mostrar conteúdo oculto Mostrar conteúdo oculto <instant name="Grande Esfera Espiral do Medo" words="Grande Esfera Espiral do Medo" lvl="400" mana="7500" aggressive="1" needtarget="1" range="6" exhaustion="1000" needlearn="0" event="script" value="menma/combo.lua"> <vocation id="1300-1320"/> </instant> @Reds não esse erro só acontece quando usa essa spell, sendo em monstro ou player é o mesmo erro. UPPP local combat1 = createCombatObject() setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -12.12, 12, -12.12, 12) arr1 = { {3} } local area1 = createCombatArea(arr1) setCombatArea(combat1, area1) local function onCastSpell1(parameters) if not isPlayer(parameters.cid) then return true end if getCreatureTarget(parameters.cid) ~= 0 then end return isPlayer(parameters.cid) and doCombat(parameters.cid, combat1, parameters.var) end function magic95(cid) if not isPlayer(cid) then return true end if getCreatureTarget(cid) ~= 0 then end local effect = 494 local position2 = {x=getCreaturePos(getCreatureTarget(cid)).x+2, y=getCreaturePos(getCreatureTarget(cid)).y, z=getCreaturePos(getCreatureTarget(cid)).z} doSendMagicEffect(position2, effect) end function magic174(cid) if not isPlayer(cid) then return true end if getCreatureTarget(cid) ~= 0 then end local effect = 494 local position1 = {x=getCreaturePos(getCreatureTarget(cid)).x+2, y=getCreaturePos(getCreatureTarget(cid)).y, z=getCreaturePos(getCreatureTarget(cid)).z} doSendMagicEffect(position1, effect) end function magic1742(cid) if not isPlayer(cid) then return true end if getCreatureTarget(cid) ~= 0 then end local effect = 494 local position3 = {x=getCreaturePos(getCreatureTarget(cid)).x+2, y=getCreaturePos(getCreatureTarget(cid)).y, z=getCreaturePos(getCreatureTarget(cid)).z} doSendMagicEffect(position3, effect) end function onCastSpell(cid, var) local waittime = 2.8 -- Tempo de exhaustion local storage = 115819 if exhaustion.check(cid, storage) then doPlayerSendCancel(cid, "You are exhausted") return false end local position1 local parameters = { cid = cid, var = var} addEvent(onCastSpell1, 0, parameters) addEvent(onCastSpell1, 400, parameters) addEvent(onCastSpell1, 800, parameters) addEvent(onCastSpell1, 1200, parameters) addEvent(onCastSpell1, 1600, parameters) addEvent(onCastSpell1, 2000, parameters) addEvent(magic95,0,cid) addEvent(magic174,0,cid) addEvent(magic1742,0,cid) addEvent(magic95,400,cid) addEvent(magic174,400,cid) addEvent(magic1742,400,cid) addEvent(magic95,800,cid) addEvent(magic174,800,cid) addEvent(magic1742,800,cid) addEvent(magic95,1200,cid) addEvent(magic174,1200,cid) addEvent(magic1742,1200,cid) addEvent(magic95,1600,cid) addEvent(magic174,1600,cid) addEvent(magic1742,1600,cid) addEvent(magic95,2000,cid) addEvent(magic174,2000,cid) addEvent(magic1742,2000,cid) exhaustion.set(cid, storage, waittime) return TRUE end Troquei os getThingPosition por getCreaturePos e refiz a linha do erro
Postado Abril 26, 2019 6 anos 1) Você usa a spell que tem a ativação 5x 2) na segunda ativação você matou o player ou monstro 3) sobram 3 ativações 4) nas próximas 3 ativações ele não vai encontrar o alvo 5) estoura erro no console Toda terça-feira um tópico novo: Descanso para curar mana (Spell): https://tibiaking.com/forums/topic/94615-spell-descanso-para-curar-mana/ Peça sua spell (Suporte): https://tibiaking.com/forums/topic/84162-peça-sua-spell/ Chuva de flechas (Spell): https://tibiaking.com/forums/topic/72232-chuva-de-flechas-spell/ Doom (Spell): https://tibiaking.com/forums/topic/51622-doom-spell/ Utilização do VS Code (Infra): https://tibiaking.com/forums/topic/94463-utilizando-o-visual-studio-code-notepad-nunca-mais/ SD com Combo (Spell): https://tibiaking.com/forums/topic/94520-sd-modificada/ Alteração attack speed (C++): https://tibiaking.com/forums/topic/94714-c-attack-speed-spells-itens-e-onde-você-quiser/ Bônus de Speed (NPC): https://tibiaking.com/forums/topic/94809-npc-concede-bônus-aos-players/
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.