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

Lua Vip Sistem

darksta

New Member
Joined
Feb 10, 2010
Messages
39
Reaction score
0
Well I just switched system to a system premium vip "http://otland.net/threads/the-best-vip-system-ever-action-movevent-globalevent.71638/", well the point is that the system works well vip me


the problem is with the scripts that already had before my server, Nose many scripts as I have not deleted any
and by the way the server sends me some errors

1. - The Statue telestransporta me to the Premium Zone, so is wearing the Vip and this tells me that I have not Vip.


Scripts
Code:
<action actionid="9698" script="premium.lua" />
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
    local newpos
    if isPremium(cid) then
        newpos = {x=711, y=149, z=6}
        doPlayerSendTextMessage(cid, 22, "Welcome to Premia City.")
        doTeleportThing(cid, newpos)
        doSendMagicEffect(newpos, 12)
    else
        newpos = {x=370, y=213, z=7}
        doPlayerSendTextMessage(cid, 22, "Sorry, only premium players are allowed.")
        doTeleportThing(cid, newpos)
        doSendMagicEffect(newpos, 12)
    end
    return 1
end


2.-When I want to use the premium spells, tells me that I have no premium

3.-Royal Paladin should get out as having vip but I get like free

1t5euv
http://prntscr.com/1t5euv

If you missed me upload any scripts
the console does not send any errors ...
-Server Version 8.60
-The Forgotten Server, version 0.4.0 (Crying Damson)

helpme
 
Last edited:
For that vip system use
Code:
getPlayerVipDays(cid) > 0
to check if someone has vip (instead of isPremium(cid)).

Btw the second picture doesn't load.
 
For that vip system use
Code:
getPlayerVipDays(cid) > 0
to check if someone has vip (instead of isPremium(cid)).

Btw the second picture doesn't load.

Error - LuaScriptInterface::loadFile] data/actions/scripts/premium.lua:4: 'then' expected near 'newpos'
[Warning - Event::loadScript] Cannot load script (data/actions/scripts/premium.lua)
data/actions/scripts/premium.lua:4: 'then' expected near 'newpos'

error in console
 
2. Do you have premium, as in premium days, so not vip?
At least I assume you are talking about normal spells where people need to be premium to use it.

3. I don't understand what you mean here, also the picture doesn't load.
 
2. Do you have premium, as in premium days, so not vip?
At least I assume you are talking about normal spells where people need to be premium to use it.

3. I don't understand what you mean here, also the picture doesn't load.

2.-Spells premium
one player which should Vip them, but can not use having VIP

3.-example :
player free= paladin - knight - sorcerer - druid
player Vip= Royal paladin - elite knight - master sorcerer - elder druid

in the picture look at the player who has vip
should say royal paladin

2w7k6bl.png
 
Back
Top