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

Amulet of Loss

xelaryn

New Member
Joined
Apr 3, 2009
Messages
33
Reaction score
0
Location
Poland
i have problem with my amulet of loss, since when someone die, they dont loose it, if i change it, they loose all their eq and have aol on them... what do i need to change in Items? thanks in advence.
 
It depends on what server version you are using; but for 0.3.2+ use this

in items.xml
Code:
<item id="2173" article="an" name="amulet of loss">
		<attribute key="weight" value="420"/>
		<attribute key="slotType" value="necklace"/>
		<attribute key="preventDrop" value="1"/>
	</item>

For the problem of the aol not dissapearing after death, add this to data/creaturescripts/scripts/playerdeath.lua
PHP:
if getPlayerSlotItem(cid, 2).itemid == 2173 then
                doPlayerRemoveItem(cid, 2173, 1)
end
 
It depends on what server version you are using; but for 0.3.2+ use this

in items.xml
Code:
<item id="2173" article="an" name="amulet of loss">
		<attribute key="weight" value="420"/>
		<attribute key="slotType" value="necklace"/>
		<attribute key="preventDrop" value="1"/>
	</item>

For the problem of the aol not dissapearing after death, add this to data/creaturescripts/scripts/playerdeath.lua
PHP:
if getPlayerSlotItem(cid, 2).itemid == 2173 then
                doPlayerRemoveItem(cid, 2173, 1)
end


It works, You dont loose eq when You using aol... but also You dont loose aol...
 
but i have got 1 more question for ya guys... how to fix the player death? because when player will die he dont loose any exp, i would like to change it, if player will die, he will loose about 5 lvls without blessing and 1 lvl with blessing, is it possible? thanks in advence ;)
 
In your config.lua make sure you set this:
Code:
deathLostPercent = 10
and add this to data/creaturescripts/login.lua
PHP:
local loss = getConfigValue('deathLostPercent')
	if(loss ~= nil) then
		doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 10)
	end
 
Back
Top