• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

GlobalEvent Heal and Mana in Area By Pharos

Eduardo170

Well-Known Member
Joined
Jan 7, 2014
Messages
422
Solutions
3
Reaction score
66
Location
Caracas, Venezuela
Hi, Otland Comunity, I am newbie in this of the scripts, this is my first script I hope you enjoy
Code:
--[[ Script by Pharos]]--
local area = {
   fromPos = {x= 794, y= 796, z= 7}, -- Esquina superior izquierda de la zona.
   toPos = {x= 815, y= 814, z= 7} -- Esquina inferior derecha de la zona.
}

function onThink (cid, interval, lastExecution, pos, frompos, topos)

   for x = area.fromPos.x, area.toPos.x do
       for y = area.fromPos.y, area.toPos.y do

         local pos = {x = x, y = y, z = area.fromPos.z}
         local player = getTopCreature(pos).uid

           if isPlayer(player) then
          doAreaCombatMana (COMBAT_MANADRIAN, pos, .0, 200, 300, CONST_ME_PURPLEENERGY);
          doAreaCombatHealth (COMBAT_LIFEDRIAN, pos, .0, 200, 300, CONST_ME_YELLOWENERGY)
                      end
       end
   end

return true
end
86cf8884f1f6353f4b233d7263770dc6.gif
 
Back
Top