-- Credits StreamSide, Empty and Kaorus
function onUse(cid, item, fromPosition, itemEx, toPosition)
local name = getCreatureName(cid)
-- if getPlayerStorageValue(cid,19551) < 1 then
if getPlayerLevel(cid) > 1 then
getPlayerStorageValue(cid, 19551)
doSendAnimatedText(getPlayerPosition(cid), ".V.I.P.!", TEXTCOLOR_RED)
doSendAnimatedText(getPlayerPosition(cid), ".V.I.P.", TEXTCOLOR_RED)
doSendMagicEffect(getPlayerPosition(cid),27)
doCreatureSay(cid, "CONGRATULATIONS " .. name .. "! Now you are a member of the VIP City!!Now you can enter VIP and use unique features!", TALKTYPE_ORANGE_1)
doBroadcastMessage("CONGRATULATIONS " .. name .. "! Now you are a member of the VIP City!!Now you can enter VIP and use unique features!")
setPlayerStorageValue(cid, 19551, (getPlayerStorageValue(cid,19551) + 999))
doSendMagicEffect(getPlayerPosition(cid),27)
doRemoveItem(item.uid, 1)
else
doPlayerSendCancel(cid,"You need to be at least level 2 to use this.")
doRemoveItem(item.uid, 1)
end
-- else
-- doPlayerSendCancel(cid,"You are already a donator.")
-- end
return TRUE
end