Xeikh
詠春 ☯
- Joined
- Oct 23, 2009
- Messages
- 724
- Reaction score
- 17
Hello, im looking for a item that promote a VIP Player to a second promotion...
The features would be the item can be only used by a VIP Player, that player need level 100 and that player have to be first promoted (master, elder, elite or royal)
something else i want to know if is possible... If player vip time ends, the vip promotion goes -1? (Like premium when have promotion and when the premium time ends, the promotion get off untill get premium time again)
this something i tried to use but theres errors:S
Please help me *-*
The features would be the item can be only used by a VIP Player, that player need level 100 and that player have to be first promoted (master, elder, elite or royal)
something else i want to know if is possible... If player vip time ends, the vip promotion goes -1? (Like premium when have promotion and when the premium time ends, the promotion get off untill get premium time again)
this something i tried to use but theres errors:S
LUA:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local a = getPlayerPromotionLevel(cid)
if getPlayerVipDays(cid) > 0 then
if a == 0 then else
doPlayerSendCancel(cid, 'You need to be promoted in order and have VIP account to use this item.')
elseif a == 1 then
doPlayerSendCancel(cid, 'Your\'re already promoted!')
else
doPlayerSetPromotionLevel(cid, 1)
doCreatureSay(cid, 'You are now ' .. getVocationInfo(getPlayerVocation(cid)).description .. '!', TALKTYPE_ORANGE_1)
doRemoveItem(item.uid)
end
return true
end
end
Please help me *-*
Last edited: