• 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!

Healing Tile script help

tsb0314

New Member
Joined
Oct 21, 2009
Messages
220
Reaction score
4
Hi i have been to a server and the on the tiles there are flames coming up and it is healing when you go over the tiles. i just want to know if someone has the script and if they can give it to me and tell me where to go with it thanks
 
LUA:
local pos {x=1000, y=1000, z=7} -- edit this to your position

function onStepIn(cid, item, frompos, itemEx, topos)
     if item.itemid == tile_id then -- put your tile_id here
          doCreatureAddHealth(getCreatureMaxHealth(cid) - getCreatureHealth(cid))
       doSendMagicEffect(pos, effect_id) -- put your effect_id here
    end
        return true
    end
 
Movements.xml

Code:
<movement type="stepin" uniqueid="11000" event="script" value="townsq.lua"/>

you don't have to use uniqueid though can be itemid or aid if you are gonna use the same tile in every location since i'm assuming its for temple square. put example in the quote

<movement type="stepIn" itemid="6754-6755" event="script" value="igloo.lua"/>
<movevent type="StepIn" itemid="9738" event="script" value="none.lua"/>
<movevent type="StepIn" actionid="58262" event="script" value="none.lua"/>
remember up ^ are just examples.

data/movements/scripts
townsq.lua

Code:
local pos1 = {x=0,y=0,z=7}-- put location of your tile

function onStepIn(cid, item, position, fromPosition)
	if item.uid == 11000 then --you'll need to change uid to aid or itemid which ever you use and the number to whatever.
	doCreatureAddHealth(cid,10000)
	doCreatureAddMana(cid,10000)
	doSendAnimatedText(pos1, "Welcome",-1)-- just says welcome when you walk on tile -1 just means it is diff color everytime. you can delete this 
	doSendMagicEffect(pos1, 15) -- not sure if that's the effect you wanted
	end
	return true
	end

not tested but should work I'm using the same thing minus the magic effect on my server .
 
LUA:
local pos = getCreaturePosition(cid) -- the players xx.xy.xz position
local health = 50 -- how much health add per step in
local tileid = 450 -- item tile id
function onStepIn(cid, item, frompos, itemEx, topos)
     if item.itemid == tileid then
          doCreatureAddHealth(cid, health)
       doSendMagicEffect(pos, 14)
    end
        return true
    end
XML:
 Code:
<movement type="StepIn" actionid="6228" event="script" value="hptile.lua"/>
 
Last edited:
Not workin :(

EDIT : no errors.. Nothing

EDIT : Can it be like on forgottenl.. I'm not trying to steal ideas i just like how it looks.. i will change how many mana and health it adds and magic effect i just think it shud be like in globalevents.. every 1 second a magic effect pops out and if someone was on this tile it adds him a certain hps and mps.. i hope u guys get me
 
nop.. its onstepin nub.. u have to step on the tile so it heals u.. but in the evolution temple its a globalevent it checks if the player is standing on the tile and it starts to auto heal every one second i want it to be like this
 
Back
Top