I wanna know too, and if it is the right way...
I have a suggestion to you, to use this script i'll use too (idk its all right, if isnt pls tell me, but i think its perfect)
A donate amulet, to you sell on blazera to set your loot +50%
(You loot was 10x, with 15x to players who buy the donate amulet)
Suggestion amulet ID:
11393
Script:
Code:
<!-- loot amulet -->
<movevent type="Equip" itemid="11393" slot="backpack" event="script" value="lootamulet.lua" />
<movevent type="DeEquip" itemid="11393" slot="backpack" event="script" value="lootamulet.lua"/>
lootamulet.lua
Code:
local storage = 123
function onEquip(cid, item, slot)
if getPlayerStorageValue(cid, storage) < 1 then
if getPlayerSlotItem(cid, slot).itemid == item.itemid then
setPlayerStorageValue(cid, storage, 50)
doPlayerSave(cid)
end
end
return true
end
function onDeEquip(cid, item, slot)
if getPlayerStorageValue(cid, storage) > 0 then
setPlayerStorageValue(cid, storage, 1)
doPlayerSave(cid)
end
return true
end