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

Under protection Level [wont lose ITEMS,Levels,Skills]

ugurdrahs

New Member
Joined
May 6, 2010
Messages
555
Reaction score
2
Location
Netherland
Hi otlanders,

How to make it so, when someone is under protection level he doesnt lose any Items, Levels and skills?

repp+ for the helper
 
Last edited:
Code:
function onPrepareDeath(cid, lastHitKiller, mostDamageKiller)
	if getPlayerLevel(cid) < 75 then 
	doTeleportThing(cid, {x = 1000, y = 1000, z = 7})
	return FALSE
        end
return TRUE
end

Itz creaturescript
Change position to your temple position if it will appear to work
 
@Up will only teleport you to temple and it wont kill you since it returns false..

i made one to actually remove the losses instaed so try this one;
Code:
--By Milice
function onPrepareDeath(cid, lastHitKiller, mostDamageKiller)
	if(getPlayerLevel(cid) < getConfigInfo("protectionLevel")) then
	doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, 0)
	doPlayerSetLossPercent(cid, PLAYERLOSS_SKILLS, 0)
	doPlayerSetLossPercent(cid, PLAYERLOSS_CONTAINERS, 0)
	doPlayerSetLossPercent(cid, PLAYERLOSS_ITEMS, 0)
	return true
	end
return true
end
--If you return false, the player wont die.
 
.

@Up will only teleport you to temple and it wont kill you since it returns false..

i made one to actually remove the losses instaed so try this one;
Code:
--By Milice
function onPrepareDeath(cid, lastHitKiller, mostDamageKiller)
	if(getPlayerLevel(cid) < getConfigInfo("protectionLevel")) then
	doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, 0)
	doPlayerSetLossPercent(cid, PLAYERLOSS_SKILLS, 0)
	doPlayerSetLossPercent(cid, PLAYERLOSS_CONTAINERS, 0)
	doPlayerSetLossPercent(cid, PLAYERLOSS_ITEMS, 0)
	return true
	end
return true
end
--If you return false, the player wont die.


this one is good?
 
Back
Top