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

Close Thread Please.

Lava Titan

Developer
Joined
Jul 25, 2009
Messages
1,529
Solutions
1
Reaction score
85
Location
Portugal
How can i make a healing spot on temple?
with the same size as
PHP:
"exura gran mas res"
?

Temple Pos: 1000 1000 7
TFS: 0.3.4
 
Code:
-- By Chojrak :P

dofile(getDataDir() .. "spells/lib/spells.lua")

function onThink(interval, lastExecution)
	local massHealer = {
		area = createCombatArea(AREA_CIRCLE3X3),
		min = 500,
		max = 1000,
		centerPos = {x = 1000, y = 1000, 7}
	}

	doAreaCombatHealth(0, COMBAT_HEALING, massHealer.centerPos, massHealer.area, massHealer.min, massHealer.max, CONST_ME_MAGIC_BLUE)
	return TRUE
end
 
This works on both 0.2 and 0.3

This use much less resources than the previous alternative:

Enter mapeditor, find your temple, double click on the titles (floor) inside the temple.

Give all titles action id XXXX which is already not launched by another script.

Enter data/movements scripts and create
Lua:
function onStepIn(cid, item, position, fromPosition)
        doCreatureAddHealth(cid, 50) --- This is 50+ hp every time you enter title. 
        doPlayerAddMana(cid, 50) --- Just change 50 to a value that fit your server more.
    end

Then enter movements.xml and add this:
PHP:
	<!-- Temple Healing -->
	<movevent event="StepIn" actionid="XXXX" script="templeh.lua"/>
 
Back
Top