• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Premium Account

killing

Member
Joined
Feb 23, 2012
Messages
815
Reaction score
11
Location
BIH
Hello i need a Account Premium Script.
I want when player say !BuyPremium to get 500 days of Premium..But to loss this Item ID (2160,10) + ~Text~
Rep++ Back

Sorry for my Bad English!
 
XML:
<talkaction words="!buypremium" script="buypremium.lua" />

LUA:
local premDays = 500
function onSay(cid, words, param, channel)
	if doPlayerRemoveItem(cid, 2160, 10) then
		doPlayerAddPremiumDays(cid, premDays)
		doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You've just bought ".. premDays .." premium days!")
		doSendMagicEffect(getCreaturePosition(cid), CONST_ME_GIFT_WRAPS)
	else
		doPlayerSendCancel(cid, "It costs 100k for premium account!")
		doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
	end
	return true
end
 
XML:
<talkaction words="!buypremium" script="buypremium.lua" />

LUA:
local premDays = 500
function onSay(cid, words, param, channel)
	if doPlayerRemoveItem(cid, 2160, 10) then
		doPlayerAddPremiumDays(cid, premDays)
		doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You've just bought ".. premDays .." premium days!")
		doSendMagicEffect(getCreaturePosition(cid), CONST_ME_GIFT_WRAPS)
	else
		doPlayerSendCancel(cid, "It costs 100k for premium account!")
		doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
	end
	return true
end

Thanks!!

- - - Updated - - -

It Works
 
Back
Top