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

Broken Amulet for Red Skulls!

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 ;)
 
Try this, fast made script. Maybe wont work, but give it a try.

Code:
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
 
Script:
data/creaturescripts/scripts

XML:
Lua:
<event type="death" name="PlayerDeath" event="script" value="amulet.lua"/>

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

Fixed :thumbup:
 
Last edited:
Code:
doPlayerSetLossPercent(cid, PLAYERLOSS_ITEMS, 0)

Would this not keep the players losspercent 0 for ever? Or am i wrong on this? =p
 
none of them works :( please someone, can someone make for me an AOL WITH IT 2196 infinite, and even if u have redskull you wont lose items when you die!
 
Last edited:
Back
Top