Postado Junho 15, 2018 6 anos Diga em poucas palavras a base utilizada (Nome do servidor ou nome do website). pbot Base: Qual erro está surgindo/O que você procura? [15/06/2018 03:46:35] [Error - Spell Interface] [15/06/2018 03:46:35] In a callback: data/spells/scripts/pbot/utevo aura.lua:onTargetTile1 [15/06/2018 03:46:35] (Unknown script file) [15/06/2018 03:46:36] Description: [15/06/2018 03:46:36] (luaDoConvinceCreature) Creature not found Você tem o código disponível? Se tiver publique-o aqui: if isCreature(creature) == TRUE then doRemoveCreature(creature) end end function onTargetTile(cid, pos) local creature = doSummonCreature("protector", pos) doCreatureAddMana(cid, -2000) doCreatureSay(cid, "Utevo Aura", TALKTYPE_ORANGE_1) doConvinceCreature(cid, creature) addEvent(removeCreatures, removeTime * 30000, cid, creature) return TRUE end local combat = {} for i = 1, 1 do combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_POFF) setCombatArea(combat, createCombatArea(arr)) _G["onTargetTile" .. i] = onTargetTile setCombatCallback(combat, CALLBACK_PARAM_TARGETTILE, "onTargetTile" .. i) end function onCastSpell(cid, var) local level = getPlayerLevel(cid) if getPlayerStorageValue(cid, HAVE_CLONE) < 1 then if level > 350 then doCombat(cid, combat[1], var) else doCombat(cid, combat[1], var) end setPlayerStorageValue(cid, HAVE_CLONE, 1) else doPlayerSendCancel(cid, "Voce ja fez o Crystal Protector.") end end Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui.
Postado Junho 15, 2018 6 anos 15 horas atrás, Lucas chacar disse: Diga em poucas palavras a base utilizada (Nome do servidor ou nome do website). pbot Base: Qual erro está surgindo/O que você procura? [15/06/2018 03:46:35] [Error - Spell Interface] [15/06/2018 03:46:35] In a callback: data/spells/scripts/pbot/utevo aura.lua:onTargetTile1 [15/06/2018 03:46:35] (Unknown script file) [15/06/2018 03:46:36] Description: [15/06/2018 03:46:36] (luaDoConvinceCreature) Creature not found Você tem o código disponível? Se tiver publique-o aqui: if isCreature(creature) == TRUE then doRemoveCreature(creature) end end function onTargetTile(cid, pos) local creature = doSummonCreature("protector", pos) doCreatureAddMana(cid, -2000) doCreatureSay(cid, "Utevo Aura", TALKTYPE_ORANGE_1) doConvinceCreature(cid, creature) addEvent(removeCreatures, removeTime * 30000, cid, creature) return TRUE end local combat = {} for i = 1, 1 do combat = createCombatObject()setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_POFF)setCombatArea(combat, createCombatArea(arr))_G["onTargetTile" .. i] = onTargetTilesetCombatCallback(combat, CALLBACK_PARAM_TARGETTILE, "onTargetTile" .. i)end function onCastSpell(cid, var)local level = getPlayerLevel(cid)if getPlayerStorageValue(cid, HAVE_CLONE) < 1 thenif level > 350 thendoCombat(cid, combat[1], var)elsedoCombat(cid, combat[1], var)endsetPlayerStorageValue(cid, HAVE_CLONE, 1)elsedoPlayerSendCancel(cid, "Voce ja fez o Crystal Protector.")endend Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui. @Lucas chacarTenta assim: Spoiler if isCreature(creature) == TRUE then doRemoveCreature(creature) end function onTargetTile(cid, pos) local creature = doSummonCreature("protector", pos) doCreatureAddMana(cid, -2000) doCreatureSay(cid, "Utevo Aura", TALKTYPE_ORANGE_1) doConvinceCreature(cid, creature) addEvent(removeCreatures, removeTime * 30000, cid, creature) return TRUE end local combat = {} for i = 1, 1 do combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_POFF) setCombatArea(combat, createCombatArea(arr)) _G["onTargetTile" .. i] = onTargetTile setCombatCallback(combat, CALLBACK_PARAM_TARGETTILE, "onTargetTile" .. i) end function onCastSpell(cid, var) local level = getPlayerLevel(cid) if getPlayerStorageValue(cid, HAVE_CLONE) < 1 then if level > 350 then doCombat(cid, combat[1], var) else doCombat(cid, combat[2], var) end setPlayerStorageValue(cid, HAVE_CLONE, 1) else doPlayerSendCancel(cid, "Voce ja fez o Crystal Protector.") end end
Postado Junho 16, 2018 6 anos Autor 5 horas atrás, peterson18 disse: @peterson18estou com outro problema tbm, o target nao sai dos bichos ja troquei varios .exe e nenhum funfa.. poderia me ajudar ? Mostrar conteúdo oculto if isCreature(creature) == TRUE then doRemoveCreature(creature) end function onTargetTile(cid, pos) local creature = doSummonCreature("protector", pos) doCreatureAddMana(cid, -2000) doCreatureSay(cid, "Utevo Aura", TALKTYPE_ORANGE_1) doConvinceCreature(cid, creature) addEvent(removeCreatures, removeTime * 30000, cid, creature) return TRUE end local combat = {} for i = 1, 1 do combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_POFF) setCombatArea(combat, createCombatArea(arr)) _G["onTargetTile" .. i] = onTargetTile setCombatCallback(combat, CALLBACK_PARAM_TARGETTILE, "onTargetTile" .. i) end function onCastSpell(cid, var) local level = getPlayerLevel(cid) if getPlayerStorageValue(cid, HAVE_CLONE) < 1 then if level > 350 then doCombat(cid, combat[1], var) else doCombat(cid, combat[2], var) end setPlayerStorageValue(cid, HAVE_CLONE, 1) else doPlayerSendCancel(cid, "Voce ja fez o Crystal Protector.") end end Editado Junho 16, 2018 6 anos por Lucas chacar (veja o histórico de edições)
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.