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

Lua Aol With rs/bs protect! (creaturescripts)

TKO

Syphero Owner!
Joined
Mar 10, 2008
Messages
2,252
Reaction score
27
Location
Sweden
hey any one can make a script for amulet that has id 115 and If you die you dont lose any even when you have rs/bs i got a script but it's bugged!
The script is called preparedeath im using creaturescripts

script:
Code:
function onPrepareDeath(cid, deathList)
	if isPlayer(cid) then
		if getPlayerSlotItem(cid, 2).itemid == 115 then
			doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, getPlayerExperience(cid))
			doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid)), true)
			doCreatureAddHealth(cid, getCreatureMaxHealth(cid), true)
			doCreatureAddMana(cid, (getCreatureMaxMana(cid) - getCreatureMana(cid)))
			doRemoveConditions(cid, FALSE)
			doSendMagicEffect(getCreaturePosition(cid), CONST_ME_HOLYAREA)
			doPlayerPopupFYI(cid, "You are dead.")
			doRemoveCreature(cid)
			return false
		end
	end
	return true
end
 
Back
Top