galsegal90
New Member
- Joined
- Aug 21, 2007
- Messages
- 130
- Reaction score
- 3
Someone can please make me a short script for Premium NPC of a command?
I'm using OTserv version 8.6..
The problem I have is when you buy premium its not showing in the char list.. and when you try to buy promotion its telling you that you're not premmy
if you wish this is the command I have now:
I'm using OTserv version 8.6..
The problem I have is when you buy premium its not showing in the char list.. and when you try to buy promotion its telling you that you're not premmy
if you wish this is the command I have now:
function onSay(cid, words, param)
if getPlayerPremiumDays(cid) <= 350 then
if doPlayerRemoveMoney(cid, 10000) == TRUE then
doPlayerAddPremiumDays(cid, 90)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have bought 90 days of premium account.")
else
doPlayerSendCancel(cid, "You don't have enough money, 90 days premium account costs 10000 gold coins.")
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
end
else
doPlayerSendCancel(cid, "You can not buy more than one year of Premium Account.")
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
end
end