danyelrune
New Member
- Joined
- Jul 6, 2008
- Messages
- 30
- Reaction score
- 1
i need a script or something for broken amulet for red skulls (not lossing equip) plx 

local itemid = ????
function onDeath(cid, corpse, lastHitKiller, mostDamageKiller)
if getPlayerSlotItem(cid, 2) == config.itemid then
doPlayerSetLossPercent(cid, PLAYERLOSS_CONTAINERS, 0)
doPlayerSetLossPercent(cid, PLAYERLOSS_ITEMS, 0)
doPlayerRemoveItem(cid, config.itemid, 1)
end
end
<event type="death" name="PlayerDeath" event="script" value="amulet.lua"/>
local item_id = xxxx
function onDeath(cid, corpse, lastHitKiller, mostDamageKiller)
if getPlayerSlotItem(cid, 2) == item_id then
doPlayerSetLossPercent(cid, PLAYERLOSS_CONTAINERS, 0)
doPlayerSetLossPercent(cid, PLAYERLOSS_ITEMS, 0)
doPlayerRemoveItem(cid, item_id, 1)
end
end
Code:doPlayerSetLossPercent(cid, PLAYERLOSS_ITEMS, 0)
Would this not keep the players losspercent 0 for ever? Or am i wrong on this? =p