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

Explosions on some areas, bosse's phases, summons and other stuff

lycefur

New Member
Joined
Jul 13, 2010
Messages
99
Reaction score
2
Hey there. I'm searching for few script-answers for some complicated things: (btw if you will be pasting code and stuff please describe where should I put it and etc, I'm an ots newbie - working on TFS 0.3.6, RME and tibia 8.54)

1.How can I make 'explosions' which damage players in some locations I will list, in interval I will give it? Solved

2.Is it possible to make a location to which for example only 5 ppl can go at the same time and if more people would like to enter they would receive a message that the location is full?

3.Can I make my boss encounters have 'phases'? For example when boss is at 75% he begins to use different abilities?

4.How can I make creatures get summoned when boss is for example at 50% of his health?

Thanks a lot for all attempts to help me.
 
Last edited:
LUA:
local positions = {
	[1] = {x = 100, y = 100, z = 7},
	[2] = {x = 200, y = 200, z = 8}
}
local damage = {-100, -300}

function onThink(interval)
	for _, position in ipairs(positions) do
		local player = getTopCreature(position).uid
		if isPlayer(player) then
			doTargetCombatHealth(0, player, COMBAT_PHYSICALDAMAGE, damage[1], damage[2], CONST_ME_EXPLOSIONAREA)
		end
	end
	return true
end
 
Ty for all teh people that helped me. I approve your life. Halp tiem nao:

2.Is it possible to make a location to which for example only 5 ppl can go at the same time and if more people would like to enter they would receive a message that the location is full?

3.Can I make my boss encounters have 'phases'? For example when boss is at 75% he begins to use different abilities?

4.How can I make creatures get summoned when boss is for example at 50% of his health?

You will be rewarded with reputation as it's the only thing I can offer you aside from my naked pictures :C.
 
Back
Top