Acubens
Old Penguin
Many new users in the world of open tibia, sometimes not have the facility to implement a system that provide support in the form of monetizing your server, So here I bring a simple script with which you can change your VIP days for credits on the server ...
Example: You want a weapon that is being sold in thewebsite of the server but you do not have a paypal or pay dao that can add points to your account? then come into play here! "change" making this
talkactions 5 DAYS VIP will be removed from your account and be added 10 points in your Premiums points.
What you need?
You need install all Kekox VIP System
and Save this in your Talkactions/scripts with name "change.lua"
and add this to your Talkactions.xml
Example: You want a weapon that is being sold in thewebsite of the server but you do not have a paypal or pay dao that can add points to your account? then come into play here! "change" making this
talkactions 5 DAYS VIP will be removed from your account and be added 10 points in your Premiums points.
What you need?
You need install all Kekox VIP System
and Save this in your Talkactions/scripts with name "change.lua"
LUA:
local t = {
days = 5,
points = 10
}
function onSay(cid, words, param)
if doRemoveVipDays(cid,t.days) then
db.executeQuery("UPDATE `accounts` SET `premium_points` = `premium_points` + " .. t.points .. " WHERE `id` = " .. getPlayerAccountId(cid) .. ";")
doPlayerPopupFYI(cid, "Succesfull Change now you have now\n~~~~~~~~ " .. getPlayerVipDays(cid) .. " VIP Days left~~~~~~~")
doSendMagicEffect(getPlayerPosition(cid), 10)
else
doPlayerPopupFYI(cid, "You dont have VIP days to change!")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
return TRUE
end
and add this to your Talkactions.xml
LUA:
<talkaction words="!change;/change" event="script" value="change.lua"/>
Last edited: