Hello hello !
well I'm new OtLand,
And I was wondering if it was posible to buy premium time with an iteam like ''medal of honour''.. i wouldn't like to use money to buy it..
I hope you'll take a moment for answer me ! :'D
XML CODE :
<?xml version="1.0" encoding="UTF-8"?>
<mod name="Buy premium command" version="1.0" author="" contact="" enabled="yes">
<config name="buypremium_config"><![CDATA[
config = {
days = 30,
cost = 1, < I think that i have to change this ?
maxDays = 360
}
]]></config>
<talkaction words="!buypremium; !pacc; !vip" event="buffer"><![CDATA[
domodlib('buypremium_config')
if(getPlayerPremiumDays(cid) > config.maxDays) then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You can not buy more than " .. config.days + config.maxDays .. " days of Premium Account.")
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
return
end
if(not doPlayerRemoveMoney(cid, config.cost)) then
doPlayerSendCancel(cid, "You don't have premium medal of honour, " .. config.days .. " days premium account costs " .. config.cost .. " medal of honour.")
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
return
end
doPlayerAddPremiumDays(cid, config.days)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have bought " .. config.days .. " days of premium account.")
]]></talkaction>
</mod>
Thank you !!
well I'm new OtLand,
And I was wondering if it was posible to buy premium time with an iteam like ''medal of honour''.. i wouldn't like to use money to buy it..
I hope you'll take a moment for answer me ! :'D
XML CODE :
<?xml version="1.0" encoding="UTF-8"?>
<mod name="Buy premium command" version="1.0" author="" contact="" enabled="yes">
<config name="buypremium_config"><![CDATA[
config = {
days = 30,
cost = 1, < I think that i have to change this ?
maxDays = 360
}
]]></config>
<talkaction words="!buypremium; !pacc; !vip" event="buffer"><![CDATA[
domodlib('buypremium_config')
if(getPlayerPremiumDays(cid) > config.maxDays) then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You can not buy more than " .. config.days + config.maxDays .. " days of Premium Account.")
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
return
end
if(not doPlayerRemoveMoney(cid, config.cost)) then
doPlayerSendCancel(cid, "You don't have premium medal of honour, " .. config.days .. " days premium account costs " .. config.cost .. " medal of honour.")
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
return
end
doPlayerAddPremiumDays(cid, config.days)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have bought " .. config.days .. " days of premium account.")
]]></talkaction>
</mod>
Thank you !!
Last edited: