Ir para conteúdo

pereba

Membro
  • Registro em

  • Última visita

Tudo que pereba postou

  1. pereba postou uma resposta no tópico em Suporte Tibia OTServer
    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
  2. pereba postou uma resposta no tópico em Suporte Tibia OTServer
    Olá galera, sou novo aqui, queria saber se alguém me passa um script, que a sword, axe e club, atacam de longe, e se pudesse elas atacaram de longe com efeitos aleatorios, sem precisa usa talkactions. e que os dano dela, seriam de acordo com a skill do personagem, a minha sword aqui tá com 500 de atk, o dano do personagem tinha q ser de acordo com a skill dele. Obrigado, do rep+ pra quem ajuda.

Informação Importante

Confirmação de Termo