• 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!

Vip System

swordman

Member
Joined
Jun 5, 2011
Messages
394
Reaction score
7
Hi,

Does anyone know how to make two vip systems
1. -1st vip system is u get 10% more cash when selling items at npc
-they get an vip channel
-they have 5000 slots on every dp
-They can add 7x more vip friends than before
- All chars in the account get vip
- U can acces to vip area like an area for training monks


2. -2nd vip system is people get 10% more exp and 10% faster loot

I am ready to give some real money for the person which can make this for me.
my msn: [email protected]
 
Lua:
local newstorage = 20931 -- Change to free storage
local extraExp = 0.1 -- 10%
local extratime = 24 * 60 * 60 * 1000 -- 24 hours.
function onUse(cid, item, fromPosition, itemEx, toPosition)
        if getPlayerStorageValue(cid, extraExp, newstorage) == 1 then
                return  doPlayerSendCancel(cid, "You have already used this item once today!") and doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POOF)
        elseif getPlayerStorageValue(cid, extraExp, newstorage) == -1 then
                doPlayerSetStorageValue(cid, extraExp, newstorage)
                doPlayerSetExtraExpRate(cid, extraExp)
                addEvent(extraExp, extratime)
        end
        return true
end
 
Lua:
local newstorage = 20931 -- Change to free storage
local extraExp = 0.1 -- 10%
local extratime = 24 * 60 * 60 * 1000 -- 24 hours.
function onUse(cid, item, fromPosition, itemEx, toPosition)
        if getPlayerStorageValue(cid, extraExp, newstorage) == 1 then
                return  doPlayerSendCancel(cid, "You have already used this item once today!") and doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POOF)
        elseif getPlayerStorageValue(cid, extraExp, newstorage) == -1 then
                doPlayerSetStorageValue(cid, extraExp, newstorage)
                doPlayerSetExtraExpRate(cid, extraExp)
                addEvent(extraExp, extratime)
        end
        return true
end

what script to use?
could u give the line of the script to put in creaturescript.xml or actions.xml

ty for helping. repp+
 
what script to use?
could u give the line of the script to put in creaturescript.xml or actions.xml

ty for helping. repp+
It's an action.
Make a lua file called "extraexp.lua" and paste the content there.
In actions.xml put
XML:
<action itemid="ITEMID" event="script" value="extraexp.lua"/>
Just change "ITEMID".
 
It's an action.
Make a lua file called "extraexp.lua" and paste the content there.
In actions.xml put
XML:
<action itemid="ITEMID" event="script" value="extraexp.lua"/>
Just change "ITEMID".

ty dude,
two more things I want to say,

u know also how to make +15% lootchance and make it so it shows everytime u logg in how many days vip u have left.

Ty !
 
ty dude,
two more things I want to say,

u know also how to make +15% lootchance and make it so it shows everytime u logg in how many days vip u have left.

Ty !
For second:
Put it in Creaturescripts.
Lua:
function onLogin(cid)
	if getPlayerVipDays(cid) >= 1 then
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "You have " .. getPlayerVipDays(cid) .. " days of VIP left!")
	end
	return true
end
Should work if you use Kekox VIP system.
For first, there's no Lua function for extra loot so I guess source editing next.
 
PHP:
[22:28:06.718] [Error - Action Interface]
[22:28:06.718] data/actions/scripts/extraexp.lua:onUse
[22:28:06.718] Description:
[22:28:06.718] (luaGetCreatureStorage) Creature not found
 
Back
Top