bfs102030 0 Postado Abril 26, 2017 Share Postado Abril 26, 2017 Ola Galera, estou precisando de ajuda com alguns scripts, já procurei algo parecido em forums porem não achei. Meu servidor e versão 8,60 TFS 0,4 bom esses são scripts de spells de monstros, eu peguei eles no (Otland), estão dando erro no meu TFS porem os monsters que atacam essas spells estão no spawn porem nao estao atacando essas spells. Acho que essas magiassao para outro TFS se puderem modificar para o meu. SEGUE ERROS E SCRIPTS [18:57:53.934] [Error - Test Interface] [18:57:53.935] data/spells/scripts/monster/the flaming orchid paralyze.lua [18:57:53.937] Description: [18:57:53.941] ...ells/scripts/monster/the flaming orchid paralyze.lua:1: attemp t to call global 'Combat' (a nil value) [18:57:53.944] [Error - Event::checkScript] Cannot load script (data/spells/scri pts/monster/the flaming orchid paralyze.lua) [18:57:53.977] [Error - Test Interface] [18:57:53.981] data/spells/scripts/monster/the flaming orchid fire.lua [18:57:53.983] Description: [18:57:53.985] ...a/spells/scripts/monster/the flaming orchid fire.lua:1: attemp t to call global 'Combat' (a nil value) [18:57:53.988] [Error - Event::checkScript] Cannot load script (data/spells/scri pts/monster/the flaming orchid fire.lua) [18:57:54.026] [Error - Test Interface] [18:57:54.028] data/spells/scripts/monster/dawnfire asura reducer magic.lua [18:57:54.030] Description: [18:57:54.032] ...lls/scripts/monster/dawnfire asura reducer magic.lua:1: attemp t to call global 'Combat' (a nil value) [18:57:54.035] [Error - Event::checkScript] Cannot load script (data/spells/scri pts/monster/dawnfire asura reducer magic.lua) [18:57:54.071] [Error - Test Interface] [18:57:54.073] data/spells/scripts/monster/dawnfire asura fire.lua [18:57:54.075] Description: [18:57:54.078] data/spells/scripts/monster/dawnfire asura fire.lua:1: attempt to call global 'Combat' (a nil value) [18:57:54.081] [Error - Event::checkScript] Cannot load script (data/spells/scri pts/monster/dawnfire asura fire.lua) [18:58:43.814] [Error - Monsters::deserializeSpell] The Flaming Orchid - Unknown spell name: the flaming orchid fire [18:58:43.815] [Warning - Monsters::loadMonster] Cant load spell (data/monster/p bot/the flaming orchid.xml). [18:58:43.817] [Error - Monsters::deserializeSpell] The Flaming Orchid - Unknown spell name: the flaming orchid paralyze [18:58:43.818] [Warning - Monsters::loadMonster] Cant load spell (data/monster/p bot/the flaming orchid.xml). [18:58:43.821] [Error - Monsters::deserializeSpell] Dawnfire Asura - Unknown spe ll name: dawnfire asura fire [18:58:43.821] [Warning - Monsters::loadMonster] Cant load spell (data/monster/p bot/Dawnfire Asura.xml). [18:58:43.824] [Error - Monsters::deserializeSpell] Dawnfire Asura - Unknown spe ll name: dawnfire asura reducer magic [18:58:43.824] [Warning - Monsters::loadMonster] Cant load spell (data/monster/p bot/Dawnfire Asura.xml). <instant name="mons_the flaming orchid paralyze" words="###195" aggressive="1" blockwalls="1" needtarget="1" needlearn="1" script="monster/the flaming orchid paralyze.lua" /> <instant name="the flaming orchid fire" words="###196" aggressive="1" blockwalls="1" needtarget="1" needlearn="1" script="monster/the flaming orchid fire.lua" /> <instant name="dawnfire asura reducer magic" words="###179" aggressive="1" blockwalls="1" needtarget="1" needlearn="1" script="monster/dawnfire asura reducer magic.lua" /> <instant name="dawnfire asura fire" words="###180" aggressive="1" blockwalls="1" needtarget="1" needlearn="1" script="monster/dawnfire asura fire.lua" /> Spells de Monsters > dawnfire asura fire local combat = Combat() combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE) combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_HITBYFIRE) local condition = Condition(CONDITION_FIRE) condition:setParameter(CONDITION_PARAM_DELAYED, 1) condition:addDamage(20, 10000, -10) combat:setCondition(condition) arr = { {0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0}, {0, 0, 0, 0, 1, 3, 1, 0, 0, 0, 0}, {0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0} } local area = createCombatArea(arr) combat:setArea(area) combat:setCondition(condition) function onCastSpell(creature, var) return combat:execute(creature, var) end Spells de Monsters > dawnfire asura reducer magic local combat = Combat() combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_NONE) combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_RED) local condition = Condition(CONDITION_ATTRIBUTES) condition:setParameter(CONDITION_PARAM_TICKS, 10000) condition:setParameter(CONDITION_PARAM_STAT_MAGICPOINTS, -1) local area = createCombatArea({ {0, 0, 0, 0, 0}, {0, 1, 1, 1, 0}, {0, 1, 3, 1, 0}, {0, 1, 1, 1, 0}, {0, 0, 0, 0, 0} }) combat:setArea(area) combat:setCondition(condition) function onCastSpell(creature, var) return combat:execute(creature, var) end Spells de Monsters > the flaming orchid fire local combat = Combat() combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE) combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_FIREATTACK) combat:setParameter(COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_FIRE) local condition = Condition(CONDITION_FIRE) condition:setParameter(CONDITION_PARAM_DELAYED, 1) condition:addDamage(20, 10000, -10) combat:setCondition(condition) arr = { {3} } local area = createCombatArea(arr) combat:setArea(area) combat:setCondition(condition) function onCastSpell(creature, var) return combat:execute(creature, var) end Spells de Monsters > the flaming orchid paralyze local combat = Combat() combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE) combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA) local condition = Condition(CONDITION_PARALYZE) setConditionParam(condition, CONDITION_PARAM_TICKS, 20000) setConditionFormula(condition, -0.8, 0, -0.9, 0) setCombatCondition(combat, condition) local area = createCombatArea({ {0, 0, 0, 0, 0, 0, 0}, {0, 0, 1, 1, 1, 0, 0}, {0, 1, 1, 1, 1, 1, 0}, {0, 1, 1, 3, 1, 1, 0}, {0, 1, 1, 1, 1, 1, 0}, {0, 0, 1, 1, 1, 0, 0}, {0, 0, 0, 0, 0, 0, 0} }) combat:setArea(area) combat:setCondition(condition) function onCastSpell(creature, var) return combat:execute(creature, var) end Bom isso e tudo, agradeço desde já a quem puder ajudar e REP+ Link para o comentário Compartilhar em outros sites More sharing options...
bfs102030 0 Postado Abril 27, 2017 Autor Share Postado Abril 27, 2017 up Link para o comentário Compartilhar em outros sites More sharing options...
bfs102030 0 Postado Abril 29, 2017 Autor Share Postado Abril 29, 2017 up Link para o comentário Compartilhar em outros sites More sharing options...
Stigal 584 Postado Novembro 29, 2017 Share Postado Novembro 29, 2017 A questão neste tópico de suporte foi encerrada por falta de resposta. Este tópico está fechado e foi movido para Suporte - Tópicos Sem Resposta. Link para o comentário Compartilhar em outros sites More sharing options...
Stigal 584 Postado Novembro 29, 2017 Share Postado Novembro 29, 2017 A questão neste tópico de suporte foi encerrada por falta de resposta. Este tópico está fechado e foi movido para Suporte - Tópicos Sem Resposta. Link para o comentário Compartilhar em outros sites More sharing options...
Posts Recomendados