Ir para conteúdo
  • 0

Heal Bugado


DelPupo

Pergunta

Na minha cidade tem uma fonte com heal mais toda vez que alguem entra nela para se healar aprece esse error alguem me ajuda.

 

 

 

[23/07/2012 17:17:29] [Error - GlobalEvent Interface]

[23/07/2012 17:17:29] data/globalevents/scripts/heal.lua:onThink

[23/07/2012 17:17:29] Description:

[23/07/2012 17:17:29] data/globalevents/scripts/heal.lua:35: bad argument #1 to 'lower' (string expected, got boolean)

[23/07/2012 17:17:29] stack traceback:

[23/07/2012 17:17:29] [C]: in function 'lower'

[23/07/2012 17:17:29] data/globalevents/scripts/heal.lua:35: in function <data/globalevents/scripts/heal.lua:24>

[23/07/2012 17:17:29] [Error - GlobalEvents::think] Couldn't execute event: heal

 

 

______________________________________________________________________________________________

Outra coisa também é que o templo da minha cidade está no lugar errado eu ja mudei no config mais continua assim, nasce em outra cidade sem ser a que eu selecionei

 

 

 

 

 

 

Esperando AJuda

Link para o comentário
Compartilhar em outros sites

5 respostass a esta questão

Posts Recomendados

  • 0

E isso aki

 

 --[[
       Idea by Pitufo
       Script by Shawak
]]--

local config = {

       healHP = 10000000,
       healPlayers = "yes",
       healMonsters = "yes",
}

local healthArea = {

       fromX = 165,
       fromY = 51,
       fromZ = 7,
       toX = 169,
       toY = 54,
       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 

Editado por Euqueriaumnomepiqueno
Link para o comentário
Compartilhar em outros sites

  • 0

hm essa script é para trainers?

caso seja é um pouco util.

pois basta modificar aqui caso você queira heal

 

Monster:


<?xml version="1.0" encoding="UTF-8"?>
 <monster name="xxxxx" nameDescription="xxxxxx" race="blood" experience="0" speed="0" manacost="0">
   <health now="10000000" max="10000000"/>
   <look type="300" head="20" body="30" legs="40" feet="50" corpse="3128"/>
   <targetchange interval="60000" chance="0"/>
   <strategy attack="100" defense="0"/>
   <flags>
     <flag summonable="0"/>
     <flag attackable="1"/>
     <flag hostile="1"/>
     <flag illusionable="0"/>
     <flag convinceable="0"/>
     <flag pushable="0"/>
     <flag canpushitems="1"/>
     <flag staticattack="50"/>
     <flag lightlevel="0"/>
     <flag lightcolor="0"/>
     <flag targetdistance="1"/>
     <flag runonhealth="0"/>
   </flags>
   <attacks>
     <attack name="melee" interval="500" min="0" max="-1"/>
<attack name="physical" interval="500" chance="100" range="7" target="1" min="0" max="0">
<attribute key="shootEffect" value="suddendeath"/>
      <attribute key="areaEffect" value="mortarea"/>
   </attack>
<attack name="physical" interval="3000" chance="19" length="7" spread="3" min="0" max="0">
<attribute key="areaEffect" value="explosionarea"/>
   </attack>
   </attacks>
   <defenses armor="0" defense="0">
     <defense name="healing" interval="100" chance="100" min="200000" max="200000"/>
   </defenses>
   <immunities>
     <immunity physical="0"/>
     <immunity energy="0"/>
     <immunity fire="0"/>
     <immunity poison="0"/>
     <immunity lifedrain="0"/>
     <immunity paralyze="0"/>
     <immunity outfit="0"/>
     <immunity drunk="0"/>
     <immunity invisible="1"/>
   </immunities>
   <voices interval="2000" chance="5">
   </voices>
   <loot>
     <item id="2148" countmax="20" chance1="100000" chancemax="0"/>
     <item id="1949" chance="10000"/>
     <item id="2467" chance="10000"/>
     <item id="2642" chance="6666"/>
     <item id="1987" chance="100000">
       <inside>
         <item id="2044" chance="6666"/>
         <item id="2689" countmax="3" chance1="20000" chancemax="0"/>
         <item id="2401" chance="3333"/>
         <item id="2166" chance="1428"/>
       </inside>
     </item>
   </loot>
 </monster>


 

monsters.xml

<monster name="xxxxx" file="xxxxx.xml"/>

---------------------------------------

ta testado.

Editado por HarpiaLOOK
Link para o comentário
Compartilhar em outros sites

Visitante
Este tópico está impedido de receber novos posts.
×
×
  • Criar Novo...