• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

The best VIP system ever! [Action/Movevent/Globalevent]

Add/Remove vip command for gods..
Also added some effect to the vip medal..
 
first of all great script works perfect exept one little thing for me, it keeps spamming

"Error - MoveEvents Interface]
data/movements/scripts/viptile.lua:eek:nStepIn
Description:
data/lib/function.lua:721: attempt to concatenate a boolean value
stack traceback:
data/lib/function.lua:721 in function ´getPlayerVipDays´
dara/movements/scripts/viptile.lua:3: in function <data/movements/scripts/viptile.lua:2"

which is kinda annyoing you know how to fix it ? :) (A) anyways thank you very much
 
Last edited:
I tried it and it all works but I doubt it not work with the other character that is in the same account? :S

Image:

My Account:
My Character 1:
test1yj.jpg


My Character 2:
test2y.jpg


The actions medal I get the message but I add the days, those 58 days that he had come there before and had added to the script Shawak :(!

I could tell if the script is wrong or am I that I did wrong :S
 
my bad English and I risking more
gave this error here on my server:

[27/03/2010 23:59:27] [Error - GlobalEvent: configureEvent] The interval for GlobalEvent.
[27/03/2010 23:59:27] [Warning - BaseEvents: LoadFromXML] Can not configure event

use the The Forgotten Server, version 0.3.1 (Crying Damson)
is to help me convert?

my server does not have the function to calculate "time" so has "interval" what i do?
 
Last edited:
Ye, the function onTimer changed in 0.4_SVN..

Just go on globalevents/daysremover.lua
Replace:
Code:
onTimer

With:
Code:
onTime
 
Can you make the vip tiles for to door?
is that possibel?:)
 
Last edited:
Here you are :)
Lua:
function onUse(cid, item, frompos, item2, topos)
         if getPlayerVipDays(cid) >= 1 then
            pos = getPlayerPosition(cid)
            if pos.x == topos.x then
               if pos.y < topos.y then
                  pos.y = topos.y + 1
               else
                  pos.y = topos.y - 1
               end
            elseif pos.y == topos.y then
                   if pos.x < topos.x then
                      pos.x = topos.x + 1
                   else
                      pos.x = topos.x - 1
                   end
            else
                doPlayerSendTextMessage(cid,22,"Stand in front of the door.")
            return true
            end
            doTeleportThing(cid,pos)
            doSendMagicEffect(topos,12)
         else
            doPlayerSendTextMessage(cid,22,'Only VIP Account can go there.')
         end
         return true
end
 
Do i need to add it in movement or where do i add it?:p
i just add it in action?:)
Works fine thanks dude for making this awsome script!:)
 
Last edited:
ok i got errors :S
Code:
[09/04/2010 18:46:06] [Error - LuaScriptInterface::loadFile] data/creaturescripts/scripts/login.lua:47: 'end' expected (to close 'function' at line 6) near 'registerCreatureEvent'
[09/04/2010 18:46:06] [Warning - Event::loadScript] Cannot load script (data/creaturescripts/scripts/login.lua)
[09/04/2010 18:46:06] data/creaturescripts/scripts/login.lua:47: 'end' expected (to close 'function' at line 6) near 'registerCreatureEvent'
[09/04/2010 18:46:06] [Error - LuaScriptInterface::loadFile] data/globalevents/scripts/daysremover.lua:4: 'end' expected (to close 'function' at line 2) near '<eof>'
[09/04/2010 18:46:06] [Warning - Event::loadScript] Cannot load script (data/globalevents/scripts/daysremover.lua)
[09/04/2010 18:46:06] data/globalevents/scripts/daysremover.lua:4: 'end' expected (to close 'function' at line 2) near '<eof>'
i use tfs 3.6
EDIT: the reason for errors: i suck.
 
Back
Top