WiLDTuRTLE
Member
- Joined
- Feb 26, 2011
- Messages
- 478
- Reaction score
- 5
Well I got a promotion BOX , it works fine but i noticed that once you used it on one char, you cant use it on another non-promoted char it says "already vip" any way i can make it that it only promote the char and not the account? thanks
Code:
function onUse(cid, item, frompos, item2, topos)
if getPlayerGroupId(cid) ~= 1 then
doPlayerSetGroupId(cid, 1)
doPlayerSetPromotionLevel(cid, 2)
doCreatureSay(cid, "You are now VIP!", TALKTYPE_ORANGE_1)
doSendMagicEffect(getCreaturePosition(cid), 14)
doRemoveItem(item.uid)
else
doCreatureSay(cid, "You are already VIP!", TALKTYPE_ORANGE_1)
return true
end
return 1
end