Postado Maio 20, 2015 10 anos Bom galera, peguei uma SCRIPT de um ot antigo meu, 8.5 com distro 0.3.4. Ai agora joguei a script pra um novo ot meu de 8.6 com a distro 3.6 Ai a heal area ( é que heala todo mundo que entra naquela determinada area) Fica dando esse erro [Error - GlobalEvent Interface] [19/05/2015 23:39:20] data/globalevents/scripts/heal.lua:onThink [19/05/2015 23:39:20] Description: [19/05/2015 23:39:20] data/globalevents/scripts/heal.lua:35: bad argument #1 to 'lower' (string expected, got boolean) [19/05/2015 23:39:20] stack traceback: [19/05/2015 23:39:20] [C]: in function 'lower' [19/05/2015 23:39:20] data/globalevents/scripts/heal.lua:35: in function <data/globalevents/scripts/heal.lua:24> [19/05/2015 23:39:20] [Error - GlobalEvents::think] Couldn't execute event: heal Aqui tá a script : local config = { healHP = 10000000, healPlayers = "yes", healMonsters = "yes", } local healthArea = { fromX = 10145, fromY = 10050, fromZ = 7, toX = 10149, toY = 10053, toZ = 7, } function onThink(cid, interval, lastExecution) for x = healthArea.fromX, healthArea.toX do for y = healthArea.fromY, healthArea.toY do for z = healthArea.fromZ, healthArea.toZ do local pos = {x=x, y=y, z=z, stackpos = 253} local thing = getThingfromPos(pos) doSendMagicEffect(pos, 12) if thing.itemid > 0 then if(isPlayer(thing.uid) == TRUE and string.lower(config.healPlayers) == "yes") then doCreatureAddHealth(thing.uid, config.healHP) doCreatureAddMana(thing.uid, config.healHP) if string.lower(getConfigValue("showHealingDamage")) == "no" then doSendAnimatedText(pos, "+"..config.healHP.."", 18) end elseif(isMonster(thing.uid) == TRUE and string.lower(config.healMonsters) == "yes") then doCreatureAddHealth(thing.uid, config.healHP) if string.lower(getConfigValue("showHealingDamageForMonsters")) == "no" then doSendAnimatedText(pos, "+"..config.healHP.."", 18) end end end end end end return TRUE end Ajuda ai, rap + vlw
Postado Maio 20, 2015 10 anos local config = { healHP = 10000000, healPlayers = "yes", healMonsters = "yes", } local healthArea = { fromX = 10145, fromY = 10050, fromZ = 7, toX = 10149, toY = 10053, toZ = 7, } function onThink(cid, interval, lastExecution) for x = healthArea.fromX, healthArea.toX do for y = healthArea.fromY, healthArea.toY do for z = healthArea.fromZ, healthArea.toZ do local pos = {x=x, y=y, z=z, stackpos = 253} local thing = getThingfromPos(pos) doSendMagicEffect(pos, 12) if thing.itemid > 0 then if(isPlayer(thing.uid) == TRUE and string.lower(config.healPlayers) == "yes") then doCreatureAddHealth(thing.uid, config.healHP) if (isPlayer(thing.uid) or isPlayerGhost(thing.uid) and string.lower(getConfigValue('showHealingDamage')) == "yes") then doSendAnimatedText(pos, "+"..config.healHP.."", 18) end elseif(isMonster(thing.uid) == TRUE and string.lower(config.healMonsters) == "yes") then doCreatureAddHealth(thing.uid, config.healHP) if string.lower(getConfigValue("showHealingDamageForMonsters")) == "yes" then doSendAnimatedText(pos, "+"..config.healHP.."", 18) end end end end end end return TRUE end ➥ Regras | Seções OTServ | Seções BOT
Postado Maio 20, 2015 10 anos em spells. Mostrar conteúdo oculto <instant name="Mass Healing" words="exura gran mas res" lvl="36" mana="150" prem="1" aggressive="0" exhaustion="1000" needlearn="0" event="script" value="healing/mass healing.lua"> <vocation id="2"/> <vocation id="6"/> </instant> xml em healing crie um arquivo chamado mass healing i add Mostrar conteúdo oculto local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HEALING) setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE) setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false) setCombatParam(combat, COMBAT_PARAM_TARGETPLAYERSORSUMMONS, true) setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE) setHealingFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 5, 5, 10, 12) local area = createCombatArea(AREA_CIRCLE3X3) setCombatArea(combat, area) function onCastSpell(cid, var) return doCombat(cid, combat, var) end Editado Maio 20, 2015 10 anos por Tibia2015br (veja o histórico de edições) site acesse:http://rexwar.esy.es se te ajudei mi ajude com um like canal do youtube:https://www.youtube.com/channel/ blog:http://yakinhotutoriais.blogspot.com.br/ site acesse:http://rexwar.esy.es 0 comentários:
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.