Postado Julho 4, 2014 11 anos galera estou tendo alguns problemas com spell no meu server alguns bixos usam spell de player gostaria de criar as mesmas mais pros bixo para, parar de aparecer erros no distro alguem pode ajudar spell do player local tempo = 60 local effect = {221} local points = 30 local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0) local condition = createConditionObject(CONDITION_ATTRIBUTES) setConditionParam(condition, CONDITION_PARAM_TICKS, tempo*1000) setConditionParam(condition, CONDITION_PARAM_STAT_MAGICLEVEL, points) setConditionParam(condition, CONDITION_PARAM_SKILL_FIST, points) setConditionParam(condition, CONDITION_PARAM_SKILL_SWORD, points) setConditionParam(condition, CONDITION_PARAM_SKILL_AXE, points) setConditionParam(condition, CONDITION_PARAM_SKILL_CLUB, points) setConditionParam(condition, CONDITION_PARAM_SKILL_DISTANCE, points) setConditionParam(condition, CONDITION_PARAM_SKILL_SHIELD, points) setConditionParam(condition, CONDITION_PARAM_BUFF, TRUE) setCombatCondition(combat, condition) local function Magica(tempo2,tempo3,cid) if isCreature(cid) then for i=1, #effect do local position = {x=getCreaturePosition(cid).x+1, y=getCreaturePosition(cid).y, z=getCreaturePosition(cid).z} doSendMagicEffect(position, effect) end end end function onCastSpell(cid, var) if exhaustion.check(cid, 102053) == FALSE then doCombat(cid, combat, var) tempo2 = 0 while (tempo2 ~= (tempo*1000)) do addEvent(Magica, tempo2, tempo2, tempo*1000, cid) tempo2 = tempo2 + 300 end local position = {x=getCreaturePosition(cid).x, y=getCreaturePosition(cid).y, z=getCreaturePosition(cid).z} exhaustion.set(cid, 102053, 60.1) doCreatureSay(cid, "Susano", TALKTYPE_MONSTER) doSendMagicEffect(position, 254) else doPlayerSendCancel(cid, "Desculpa,Voce ja esta transformado.") end end como configurar para o bixo usar pois quando ele usa essa spell aparece no distro player not found Projeto ATS (Naruto)Informações AbaixoFacebookYoutubeDiscord Tutoriais / ConteúdosClique Aqui
Postado Julho 4, 2014 11 anos local tempo = 60 local effect = {221} local points = 30 local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0) local condition = createConditionObject(CONDITION_ATTRIBUTES) setConditionParam(condition, CONDITION_PARAM_TICKS, tempo*1000) setConditionParam(condition, CONDITION_PARAM_STAT_MAGICLEVEL, points) setConditionParam(condition, CONDITION_PARAM_SKILL_FIST, points) setConditionParam(condition, CONDITION_PARAM_SKILL_SWORD, points) setConditionParam(condition, CONDITION_PARAM_SKILL_AXE, points) setConditionParam(condition, CONDITION_PARAM_SKILL_CLUB, points) setConditionParam(condition, CONDITION_PARAM_SKILL_DISTANCE, points) setConditionParam(condition, CONDITION_PARAM_SKILL_SHIELD, points) setConditionParam(condition, CONDITION_PARAM_BUFF, TRUE) setCombatCondition(combat, condition) local function Magica(tempo2,tempo3,cid) if isPlayer(cid) then for i=1, #effect do local position = {x=getCreaturePosition(cid).x+1, y=getCreaturePosition(cid).y, z=getCreaturePosition(cid).z} doSendMagicEffect(position, effect[i]) end end end function onCastSpell(cid, var) if exhaustion.check(cid, 102053) == FALSE then doCombat(cid, combat, var) tempo2 = 0 while (tempo2 ~= (tempo*1000)) do addEvent(Magica, tempo2, tempo2, tempo*1000, cid) tempo2 = tempo2 + 300 end local position = {x=getCreaturePosition(cid).x, y=getCreaturePosition(cid).y, z=getCreaturePosition(cid).z} exhaustion.set(cid, 102053, 60.1) doCreatureSay(cid, "Susano", TALKTYPE_MONSTER) doSendMagicEffect(position, 254) else doPlayerSendCancel(cid, "Desculpa,Voce ja esta transformado.") end end Agora acredito eu que so player poderá usar. Não testei, abraço.
Postado Julho 4, 2014 11 anos Autor local tempo = 60 local effect = {221} local points = 30 local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0) local condition = createConditionObject(CONDITION_ATTRIBUTES) setConditionParam(condition, CONDITION_PARAM_TICKS, tempo*1000) setConditionParam(condition, CONDITION_PARAM_STAT_MAGICLEVEL, points) setConditionParam(condition, CONDITION_PARAM_SKILL_FIST, points) setConditionParam(condition, CONDITION_PARAM_SKILL_SWORD, points) setConditionParam(condition, CONDITION_PARAM_SKILL_AXE, points) setConditionParam(condition, CONDITION_PARAM_SKILL_CLUB, points) setConditionParam(condition, CONDITION_PARAM_SKILL_DISTANCE, points) setConditionParam(condition, CONDITION_PARAM_SKILL_SHIELD, points) setConditionParam(condition, CONDITION_PARAM_BUFF, TRUE) setCombatCondition(combat, condition) local function Magica(tempo2,tempo3,cid) if isPlayer(cid) then for i=1, #effect do local position = {x=getCreaturePosition(cid).x+1, y=getCreaturePosition(cid).y, z=getCreaturePosition(cid).z} doSendMagicEffect(position, effect[i]) end end end function onCastSpell(cid, var) if exhaustion.check(cid, 102053) == FALSE then doCombat(cid, combat, var) tempo2 = 0 while (tempo2 ~= (tempo*1000)) do addEvent(Magica, tempo2, tempo2, tempo*1000, cid) tempo2 = tempo2 + 300 end local position = {x=getCreaturePosition(cid).x, y=getCreaturePosition(cid).y, z=getCreaturePosition(cid).z} exhaustion.set(cid, 102053, 60.1) doCreatureSay(cid, "Susano", TALKTYPE_MONSTER) doSendMagicEffect(position, 254) else doPlayerSendCancel(cid, "Desculpa,Voce ja esta transformado.") end end Agora acredito eu que so player poderá usar. Não testei, abraço. tipow tou querendo pra bixo não pra player queria saber configurar uma spell pra bixo pra despois arrumar todas ..... tendeu? Projeto ATS (Naruto)Informações AbaixoFacebookYoutubeDiscord Tutoriais / ConteúdosClique Aqui
Postado Julho 4, 2014 11 anos Amigo seja mais específico, você pode fazer as criaturas usarem spells, nessa parte do script (data/monster) <attacks> <attack name="melee" interval="2000" skill="180" attack="180"/> <attack name="physical" interval="3000" chance="15" radius="5" target="0" min="-320" max="-910"> <attribute key="areaEffect" value="blackspark"/> </attack> <attack name="fire" interval="2000" chance="16" range="7" radius="7" target="1" min="-310" max="-740"> <attribute key="shootEffect" value="fire"/> <attribute key="areaEffect" value="firearea"/> </attack> <attack name="firefield" interval="1000" chance="10" range="7" radius="4" target="1"> <attribute key="shootEffect" value="fire"/> </attack> <attack name="lifedrain" interval="4000" chance="19" length="8" spread="0" min="-500" max="-1300"> <attribute key="areaEffect" value="purpleenergy"/> </attack> </attacks> Agora, não são todas as magias que você criar que vão funcionar em um monstro. Ot Design: https://discord.gg/VgtVRNmCD7
Postado Julho 5, 2014 11 anos Autor entendi mais queria mudar a spell que o bixo usa por uma igual mais que sirva pra ele para, parar de falar player not found no distro ;/ Projeto ATS (Naruto)Informações AbaixoFacebookYoutubeDiscord Tutoriais / ConteúdosClique 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.