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

Need a script, Help me!

Status
Not open for further replies.

Pretx

Active Member
Joined
May 5, 2011
Messages
184
Solutions
2
Reaction score
29
Hi members of OtLand, I need a script that if a player less to lvl 50 is killed for other player, This don't die ! if not that automatically go to the temple, and the player who defeated him win no frags.

tibia 8.6 & dev 0.4i



Code:
 function onPrepareDeath(cid, deathList)
	if getPlayerLevel(cid) < 50 then
		doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid)))
		doCreatureAddHealth(cid, getCreatureMaxHealth(cid), 11719, 256, true)
		doCreatureAddMana(cid, getCreatureMaxMana(cid))
		doRemoveConditions(cid, false)
		return false
	end
	return true
end

Not work for me :(
 
Status
Not open for further replies.
Back
Top