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

Forever Amulet of loss

andurz

Senior Member
Joined
Nov 1, 2008
Messages
126
Reaction score
0
Location
$wedeN
Hello
I got a problem with my forever amulet of loss(FAOL)
The problem is that it dosent work.
I got 1337server
 
If you don't want edit sources...
in data/creaturescripts/scripts/login.lua under:
PHP:
function onLogin(cid)
add:
PHP:
registerCreatureEvent(cid, "PlayerDeathPrepare")
in data/creaturescripts/scripts/ make file playerpreparedeath.lua and in this file:
PHP:
function onPrepareDeath(cid, killer)
	if getPlayerItemCount(cid, 8889) >= 1 then
		doSetCreatureDropLoot(cid, 0)
	end
end
getPlayerItemCount(cid, 8889) - with item 8889 (skullcracker armor) players dont lose eq - tested (player can wear this item in backpack, not only armor slot!)
in file data/creaturescripts/creaturescripts.xml under:
PHP:
<creaturescripts>
add:
PHP:
<event type="preparedeath" name="PlayerDeathPrepare" script="playerpreparedeath.lua"/>

Just search next time
 
Back
Top