Ir para conteúdo
  • Cadastre-se

Posts Recomendados

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

Link para o post
Compartilhar em outros sites
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
Link para o post
Compartilhar em outros sites
em spells.

 

<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
 

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 por Tibia2015br (veja o histórico de edições)
 
 
se te ajudei mi ajude com um like
 
post-154810-0-74779100-1428114524_thumb.        post-154810-0-22067300-1428114531_thumb.          post-154810-0-83198200-1427326965.gif
post-154810-0-48855100-1429834735.gif
 
 
 
 
0 comentários:

 

Link para o post
Compartilhar em outros sites

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.

Visitante
Responder

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emojis são permitidos.

×   Seu link foi automaticamente incorporado.   Mostrar como link

×   Seu conteúdo anterior foi restaurado.   Limpar o editor

×   Não é possível colar imagens diretamente. Carregar ou inserir imagens do URL.

  • Quem Está Navegando   0 membros estão online

    Nenhum usuário registrado visualizando esta página.

  • Conteúdo Similar

    • Por Igor Silva Junior
      Ola Galera do TK,tenho um server de Pokemon Dash,so que a SPELL Healarea dele está bugada.
      Ela so Heala o Pokemon,mais seu treinador e os treinadores em volta,ela não heala. Queria pedir a ajuda de vocês pois não não entendo quase nada de Script.
       
      Obs: Qualquer arquivo,Informação ou algo do tipo,pode solicitar nos comentarios que irei fornecer.
       
      Desde já obrigado a todos que poderem me ajudar de tal forma.
       
       
      REP+ QUEM AJUDAR 
×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo