zDeluxe
Member
- Joined
- Sep 29, 2012
- Messages
- 18
- Reaction score
- 11
Is anyone aware of how I can make the following script only apply to the item (Starlight amulet) that is being worn? Currently, it will remove items from the players bag as well, and I only intend for this script to activate if someone is wearing an SL. Thank you!
Lua:
function onAdvance(cid, skill, oldlevel, newlevel)
if skill == SKILL__LEVEL and newlevel > 50000 then
doPlayerRemoveItem(cid, 2138,1)
doPlayerSendTextMessage(cid,22, '!! ******WARNING****** !!')
doPlayerSendTextMessage(cid,18, '!!-- You are now over 50K Lv, your SL Has been REMOVED please buy a Protector -- !!')
return false
end
return true
end