Postado Agosto 24, 2019 5 anos 1 hora atrás, Breniin disse: Aparece esse erro https://prnt.sc/owsnog local combat1 = createCombatObject() setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat1, COMBAT_PARAM_EFFECT, 212) local arr1 = { {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {1, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 2, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, } local area1 = createCombatArea(arr1) setCombatArea(combat1, area1) local combat2 = createCombatObject() setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat2, COMBAT_PARAM_EFFECT, 212) local arr2 = { {0, 0, 0, 0, 0}, {0, 0, 0, 0, 0}, {0, 1, 0, 0, 0}, {2, 0, 0, 0, 0}, {0, 0, 0, 0, 0}, {0, 0, 0, 0, 0}, } local area2 = createCombatArea(arr2) setCombatArea(combat2, area2) local combat3 = createCombatObject() setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat3, COMBAT_PARAM_EFFECT, 213) local arr3 = { {0, 0, 0, 0, 0}, {0, 0, 0, 2, 0}, {0, 0, 1, 0, 0}, {0, 0, 0, 0, 0}, {0, 0, 0, 0, 0}, {0, 0, 0, 0, 0}, } local area3 = createCombatArea(arr3) setCombatArea(combat3, area3) local combat4 = createCombatObject() setCombatParam(combat4, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat4, COMBAT_PARAM_EFFECT, 213) local arr4 = { {0, 0, 1, 0, 0}, {0, 0, 0, 0, 0}, {0, 0, 0, 0, 0}, {0, 0, 0, 0, 0}, {0, 0, 0, 0, 0}, {0, 0, 0, 0, 0}, {0, 0, 0, 2, 0}, } local area4 = createCombatArea(arr4) setCombatArea(combat4, area4) local combat5 = createCombatObject() setCombatParam(combat5, COMBAT_PARAM_HITCOLOR, COLOR_TEAL) setCombatParam(combat5, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatFormula(combat5, COMBAT_FORMULA_LEVELMAGIC, -540.0, 0, -550.0, 0) local arr5 = { {0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0}, {1, 1, 1, 1, 1, 1, 0, 0, 0}, {1, 1, 1, 1, 1, 1, 2, 0, 0}, {1, 1, 1, 1, 1, 1, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0}, } local area5 = createCombatArea(arr5) setCombatArea(combat5, area5) local combat6 = createCombatObject() setCombatParam(combat6, COMBAT_PARAM_HITCOLOR, COLOR_TEAL) setCombatParam(combat6, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatFormula(combat6, COMBAT_FORMULA_LEVELMAGIC, -540.0, 0, -550.0, 0) local arr6 = { {0, 0, 0, 0, 0, 0 ,0}, {0, 0, 0, 0, 0, 0, 0}, {0, 1, 1, 1, 1, 1, 1}, {2, 1, 1, 1, 1, 1, 1}, {0, 1, 1, 1, 1, 1, 1}, {0, 0, 0, 0, 0, 0, 0}, } local area6 = createCombatArea(arr6) setCombatArea(combat6, area6) local combat7 = createCombatObject() setCombatParam(combat7, COMBAT_PARAM_HITCOLOR, COLOR_TEAL) setCombatParam(combat7, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatFormula(combat7, COMBAT_FORMULA_LEVELMAGIC, -540.0, 0, -550.0, 0) local arr7 = { {0, 0, 0, 2, 0}, {0, 0, 1, 1, 1}, {0, 0, 1, 1, 1}, {0, 0, 1, 1, 1}, {0, 0, 1, 1, 1}, {0, 0, 1, 1, 1}, {0, 0, 1, 1, 1}, } local area7 = createCombatArea(arr7) setCombatArea(combat7, area7) local combat8 = createCombatObject() setCombatParam(combat8, COMBAT_PARAM_HITCOLOR, COLOR_TEAL) setCombatParam(combat8, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatFormula(combat8, COMBAT_FORMULA_LEVELMAGIC, -540.0, 0, -550.0, 0) local arr8 = { {0, 0, 1, 1, 1}, {0, 0, 1, 1, 1}, {0, 0, 1, 1, 1}, {0, 0, 1, 1, 1}, {0, 0, 1, 1, 1}, {0, 0, 1, 1, 1}, {0, 0, 0, 2, 0}, } local area8 = createCombatArea(arr8) setCombatArea(combat8, area8) function ck3(cid) if not isCreature(cid) then return true end if getCreatureLookDirection(cid) == 1 then doCombat(cid, combat1, numberToVariant(cid)) doCombat(cid, combat5, numberToVariant(cid)) doPlayerSay(cid, 'MORRA!', TALKTYPE_ORANGE_1) elseif getCreatureLookDirection(cid) == 3 then doCombat(cid, combat2, numberToVariant(cid)) doCombat(cid, combat6, numberToVariant(cid)) doPlayerSay(cid, 'MORRA!', TALKTYPE_ORANGE_1) elseif getCreatureLookDirection(cid) == 0 then doCombat(cid, combat3, numberToVariant(cid)) doCombat(cid, combat7, numberToVariant(cid)) doPlayerSay(cid, 'MORRA!', TALKTYPE_ORANGE_1) elseif getCreatureLookDirection(cid) == 2 then doCombat(cid, combat4, numberToVariant(cid)) doCombat(cid, combat8, numberToVariant(cid)) doPlayerSay(cid, 'MORRA!', TALKTYPE_ORANGE_1) end end function ck2(cid) if not isCreature(cid) then return true end doPlayerSay(cid, 'Receba toda minha energia!', TALKTYPE_ORANGE_1) addEvent(ck3,500,cid) end function ck1(cid) if not isCreature(cid) then return true end doPlayerSay(cid, 'Seu desgracado!', TALKTYPE_ORANGE_1) addEvent(ck2,500,cid) end function onCastSpell(cid, var) if isPlayer(cid) then if exhaustion.check(cid, 13103) == TRUE then doPlayerSendCancel(cid, "Podera usar novamente dentro de 5 segundos.") doSendMagicEffect(getCreaturePosition(cid), 2) return false elseif exhaustion.check(cid, 13104) == TRUE then doPlayerSendCancel(cid, "You are exhauted.") doSendMagicEffect(getCreaturePosition(cid), 2) return false end end addEvent(ck1,500,cid) exhaustion.set(cid, 13103, 5.0) return true end Editado Agosto 24, 2019 5 anos por roriscrave (veja o histórico de edições)
Postado Agosto 24, 2019 5 anos data/spells/spells.xml abre, e adiciona isso lá. </instant> <instant name="wavee" words="wavee" lvl="400" mana="12000" maglv="120" prem="0" blockwalls="1" exhaustion="1500" needlearn="0" event="script" value="LvL400/wavee.lua"> -- em "LvL400" mude para aonde está a magia. </instant> depois que adicionou isso vai em data/monster/nome do monstro.xml procure <attacks> abaixe dele ou algo que tenha lá adicione isso: <attack name="wavee" interval="1000" chance="25" min="-1" max="-300"/> -- em "chance" pode colocar a média de 25, 30, 40, 50. em "interval" coloque 2000+ "min" é o mínimo que ele vai bater e em "max" é o máximo que ele vai bater no player. só configurar certinho que dá bom :D Ver se funciona. :D https://github.com/italoxxx1
Postado Agosto 24, 2019 5 anos @Breniin código atualizado testa agora 12 horas atrás, roriscrave disse: local combat1 = createCombatObject() setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat1, COMBAT_PARAM_EFFECT, 212) local arr1 = { {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {1, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 2, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, } local area1 = createCombatArea(arr1) setCombatArea(combat1, area1) local combat2 = createCombatObject() setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat2, COMBAT_PARAM_EFFECT, 212) local arr2 = { {0, 0, 0, 0, 0}, {0, 0, 0, 0, 0}, {0, 1, 0, 0, 0}, {2, 0, 0, 0, 0}, {0, 0, 0, 0, 0}, {0, 0, 0, 0, 0}, } local area2 = createCombatArea(arr2) setCombatArea(combat2, area2) local combat3 = createCombatObject() setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat3, COMBAT_PARAM_EFFECT, 213) local arr3 = { {0, 0, 0, 0, 0}, {0, 0, 0, 2, 0}, {0, 0, 1, 0, 0}, {0, 0, 0, 0, 0}, {0, 0, 0, 0, 0}, {0, 0, 0, 0, 0}, } local area3 = createCombatArea(arr3) setCombatArea(combat3, area3) local combat4 = createCombatObject() setCombatParam(combat4, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat4, COMBAT_PARAM_EFFECT, 213) local arr4 = { {0, 0, 1, 0, 0}, {0, 0, 0, 0, 0}, {0, 0, 0, 0, 0}, {0, 0, 0, 0, 0}, {0, 0, 0, 0, 0}, {0, 0, 0, 0, 0}, {0, 0, 0, 2, 0}, } local area4 = createCombatArea(arr4) setCombatArea(combat4, area4) local combat5 = createCombatObject() setCombatParam(combat5, COMBAT_PARAM_HITCOLOR, COLOR_TEAL) setCombatParam(combat5, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatFormula(combat5, COMBAT_FORMULA_LEVELMAGIC, -540.0, 0, -550.0, 0) local arr5 = { {0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0}, {1, 1, 1, 1, 1, 1, 0, 0, 0}, {1, 1, 1, 1, 1, 1, 2, 0, 0}, {1, 1, 1, 1, 1, 1, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0}, } local area5 = createCombatArea(arr5) setCombatArea(combat5, area5) local combat6 = createCombatObject() setCombatParam(combat6, COMBAT_PARAM_HITCOLOR, COLOR_TEAL) setCombatParam(combat6, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatFormula(combat6, COMBAT_FORMULA_LEVELMAGIC, -540.0, 0, -550.0, 0) local arr6 = { {0, 0, 0, 0, 0, 0 ,0}, {0, 0, 0, 0, 0, 0, 0}, {0, 1, 1, 1, 1, 1, 1}, {2, 1, 1, 1, 1, 1, 1}, {0, 1, 1, 1, 1, 1, 1}, {0, 0, 0, 0, 0, 0, 0}, } local area6 = createCombatArea(arr6) setCombatArea(combat6, area6) local combat7 = createCombatObject() setCombatParam(combat7, COMBAT_PARAM_HITCOLOR, COLOR_TEAL) setCombatParam(combat7, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatFormula(combat7, COMBAT_FORMULA_LEVELMAGIC, -540.0, 0, -550.0, 0) local arr7 = { {0, 0, 0, 2, 0}, {0, 0, 1, 1, 1}, {0, 0, 1, 1, 1}, {0, 0, 1, 1, 1}, {0, 0, 1, 1, 1}, {0, 0, 1, 1, 1}, {0, 0, 1, 1, 1}, } local area7 = createCombatArea(arr7) setCombatArea(combat7, area7) local combat8 = createCombatObject() setCombatParam(combat8, COMBAT_PARAM_HITCOLOR, COLOR_TEAL) setCombatParam(combat8, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatFormula(combat8, COMBAT_FORMULA_LEVELMAGIC, -540.0, 0, -550.0, 0) local arr8 = { {0, 0, 1, 1, 1}, {0, 0, 1, 1, 1}, {0, 0, 1, 1, 1}, {0, 0, 1, 1, 1}, {0, 0, 1, 1, 1}, {0, 0, 1, 1, 1}, {0, 0, 0, 2, 0}, } local area8 = createCombatArea(arr8) setCombatArea(combat8, area8) function ck3(cid) if not isCreature(cid) then return true end if getCreatureLookDirection(cid) == 1 then doCombat(cid, combat1, numberToVariant(cid)) doCombat(cid, combat5, numberToVariant(cid)) doPlayerSay(cid, 'MORRA!', TALKTYPE_ORANGE_1) elseif getCreatureLookDirection(cid) == 3 then doCombat(cid, combat2, numberToVariant(cid)) doCombat(cid, combat6, numberToVariant(cid)) doPlayerSay(cid, 'MORRA!', TALKTYPE_ORANGE_1) elseif getCreatureLookDirection(cid) == 0 then doCombat(cid, combat3, numberToVariant(cid)) doCombat(cid, combat7, numberToVariant(cid)) doPlayerSay(cid, 'MORRA!', TALKTYPE_ORANGE_1) elseif getCreatureLookDirection(cid) == 2 then doCombat(cid, combat4, numberToVariant(cid)) doCombat(cid, combat8, numberToVariant(cid)) doPlayerSay(cid, 'MORRA!', TALKTYPE_ORANGE_1) end end function ck2(cid) if not isCreature(cid) then return true end doPlayerSay(cid, 'Receba toda minha energia!', TALKTYPE_ORANGE_1) addEvent(ck3,500,cid) end function ck1(cid) if not isCreature(cid) then return true end doPlayerSay(cid, 'Seu desgracado!', TALKTYPE_ORANGE_1) addEvent(ck2,500,cid) end function onCastSpell(cid, var) if isPlayer(cid) then if exhaustion.check(cid, 13103) == TRUE then doPlayerSendCancel(cid, "Podera usar novamente dentro de 5 segundos.") doSendMagicEffect(getCreaturePosition(cid), 2) return false elseif exhaustion.check(cid, 13104) == TRUE then doPlayerSendCancel(cid, "You are exhauted.") doSendMagicEffect(getCreaturePosition(cid), 2) return false end end addEvent(ck1,500,cid) exhaustion.set(cid, 13103, 5.0) return true end o problema é que por ser uma spell de monstro ao invés de doPlayerSay precisa mudar para doCreatureSay Compre seus Scripts Agora totalmente seguro e de forma rápida, aceitamos também encomendas. discord.gg/phJZeHa2k4 Projeto ATS (Naruto) Informações Abaixo Facebook Youtube Discord Tutoriais / Conteúdos Clique Aqui
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.