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

GlobalEvent Vip System

Nice script dude ;D
but i prefered to put only vip with premmy, much easier xP
 
"Also you can change this: "if getPlayerLevel(cid) > 1 then" for the determinated level...

OK, then go to globalevents/scripts and create 2 lua files"

My Server dont have globalevents (i think) What do i do?
Forgotten Server 0.1 or something :p
 
how can you make that when the vip runs out he is teleported to temple or how can you check your time left.?

thanks in advance
 
Hi
i use roxor 8.4
that means i use tfs 0.2
could you make a guide how to do it with 0.2?
Because i dont got Global/events
I give rep++ If you help me
 
=/

removevipdays is not working it dosnt removes the vip days.


Code:
-- Credits StreamSide and Empty
function onThink(cid, item, fromPosition, toPosition)

	for _, name in ipairs(getOnlinePlayers()) do
		local player = getPlayerByName(name)
		if getPlayerStorageValue(player,11551) > 1 then
			setPlayerStorageValue(player,11551,getPlayerStorageValue(player) - 1)
		end
	end
end

Error:
[11/03/2009 21:16:37] Lua Script Error: [GlobalEvent Interface]
[11/03/2009 21:16:37] data/globalevents/scripts/removevipdays.lua:eek:nThink

[11/03/2009 21:16:37] luaGetPlayerStorageValue(). Player not found

[11/03/2009 21:16:37] Lua Script Error: [GlobalEvent Interface]
[11/03/2009 21:16:37] data/globalevents/scripts/removevipdays.lua:eek:nThink
[11/03/2009 21:16:37] [Error - GlobalEvents::eek:nThink] Couldn't execute event: checkvip
[11/03/2009 21:16:46] [Error - GlobalEvents::eek:nThink] Couldn't execute event: checkvip
[11/03/2009 21:16:55] [Error - GlobalEvents::eek:nThink] Couldn't execute event: checkvip
 
Last edited:
:thumbup:Watch a problem?
PLX HELP :)

Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)

    if getPlayerStorageValue(cid,11551) < 1 then
        if getPlayerLevel(cid) > 1 then
            getPlayerStorageValue(cid, 11551)
            doSendAnimatedText(getPlayerPosition(cid), "Bem Vindo!", TEXTCOLOR_RED) 
            doCreatureSay(cid, "Parabens! Está agora um VIP por 15 dias! Voce agora pode entrar na area VIP! ", TALKTYPE_ORANGE_1)
            setPlayerStorageValue(cid, 11551, (getPlayerStorageValue(cid,11551) + 15))
                          voc = getPlayerVocation(cid)
              if queststatus == -1 and voc > 4 and voc < 12 then
                  doPlayerSetVocation(cid, voc+4) 
                  elseif queststatus == -1 and voc > 22 then
                doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, "Por Favor, retire sua Elemental weapon para se tornar VIP.")
       else
                doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, "Você deve adiquirir promotion antes de se tornar um VIP.")
        end
return TRUE
end
            doRemoveItem(item.uid, 1)
        else
            doPlayerSendCancel(cid,"Voce tem de ter no minimo level 2.")
            doRemoveItem(item.uid, 1)
        end
    else
        doPlayerSendCancel(cid,"Voce ja eh um Vip.")
    end    
return TRUE
end
 
Last edited by a moderator:
Where i need to put the coordinates for where to teleport when clicking on the door.
 
Can anyone add here script to Gesior ACC. Like ->:
Buy VIP Mode -> Become a VIP
 
Where i need to put the coordinates for where to teleport when clicking on the door.
 
You dot need to put coordiates,you just need set the unique id to the door.
 

Similar threads

Back
Top