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

u can add movement for vip if player nStepIn he can enter tp ?? i wont to use door
 
So I got this working and I must say, fantastic work! I have a question tough, is there a way to be able to let players purchase VIP days on Znote's ACC? Thanks!
 
error in console
user commands /addays and /removedays


Code:
[Error - TalkAction Interface]
data/talkactions/scripts/removedays.lua:onSay
Description:
(luaDoPlayerSendTextMessage) Player not found

[Error - TalkAction Interface]
data/talkactions/scripts/removedays.lua:onSay
Description:
data/talkactions/scripts/removedays.lua:33: attempt to concatenate global 'sender' (a nil value)
stack traceback:
data/talkactions/scripts/removedays.lua:33: in function <data/talkactions/scripts/removedays.lua:2>

[Error - TalkAction Interface]
data/talkactions/scripts/adddays.lua:onSay
Description:
(luaDoPlayerSendTextMessage) Player not found

[Error - TalkAction Interface]
data/talkactions/scripts/adddays.lua:onSay

use ot server 8.60

The Forgotten Server, version 0.4.0 (Crying Damson)
 
guys this movements for this scripts
Code:
function onStepIn(cid, item, pos, fromPos)
    if getPlayerVipDays(cid) >= 1 then        doSendMagicEffect(pos, CONST_ME_TELEPORT)
        doTeleportThing(cid, {x=xxxx, y=xxxx, z=x})
    doCreatureSay(cid, "Welcome to vip!", TALKTYPE_ORANGE_1)    doSendMagicEffect({x=xxx,x y=xxxx, z=x}, CONST_ME_TELEPORT)
    else
        doTeleportThing(cid, {x=xxxx, y=xxxx, z=x})
        doSendMagicEffect({x=xxx,x y=xxxx, z=x}, CONST_ME_TELEPORT)
        doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "Only vip player can neter here.")
    end
end

function onAddItem(moveitem, tileitem, position)
    if hasProperty(moveitem.uid, CONST_PROP_BLOCKSOLID) then
        doRemoveItem(moveitem.uid)
    else
        doTeleportThing(moveitem.uid, {x=xxx,x y=xxxx, z=x})
        doSendMagicEffect({x=xxx,x y=xxxx, z=x}, CONST_ME_TELEPORT)
    end
end
 
What if I would set vipremoval at exactly 12:00 and then the server crashes at 11:59 and comes back up at 12:01, it won't be removed I guess?
 
None of your solutions work.
Whats wrong ?
After i log in i got tons of the same Error please help.

All works but after i use the item to get Premium i got little stars on my character and tons of the same Error see here

Unbenannt.png
 
Remove this

globalevents/scripts/vipEffect.lua
PHP:
function onThink(interval, lastExecution)
for _, name in ipairs(getOnlinePlayers()) do
local cid = getPlayerByName(name)
if getPlayerVipDays(cid) >= 1 then
doSendMagicEffect(getPlayerPosition(cid), 27)
doSendAnimatedText(getPlayerPosition(cid), "VIP!", TEXTCOLOR_RED)
end
end
return true
end
 
help im use the vip sistem all its good but this its my problem :S on consele say

[Error - Event::checkScript] Event onThink not found (data/globalevents/scripts/daysremover.lua)

im tri change ontimer() and ontime() but have the same problem :S how to fix plis help

Sorry for my inglish xD

im fixet jun need to change ontimer() to onThink()
like tha error and
now I have this other error and not managed to repair the morning des help
that's how my daysremover stay

function onThink()
db.executeQuery("UPDATE accounts SET vipdays = vipdays - 1 WHERE vipdays > 0;")
return true
end


now my new error when connecting a console player throws me this error

Error during getdataInt<vip_time>
plis help
im create a colum on phpadmin

ALTER TABLE `accounts` ADD
`vip_time` int(15) NOT NULL DEFAULT 0;

plis help tnx +rep a and sorry for my inglis xD
 
Last edited:
Something is wrong.

When i try to log in, the screen freeze at "loading please wait" and it is shown this in the console:

2l942v5.png
 
Which server do you use?
If it's TFS 0.3/0.4, you can try to add this in 050-function.lua.
Code:
function getOnlinePlayers()
   local tmp = getPlayersOnline()
   local players = {}
   for i, cid in ipairs(tmp) do
     table.insert(players, getCreatureName(cid))
   end

   return players
end
 
Which server do you use?
If it's TFS 0.3/0.4, you can try to add this in 050-function.lua.
Code:
function getOnlinePlayers()
   local tmp = getPlayersOnline()
   local players = {}
   for i, cid in ipairs(tmp) do
     table.insert(players, getCreatureName(cid))
   end

   return players
end

LOL i had deleted by the face the "050-" xdddd. Thank you, solved.
 
I have tested the tile with a teleport with a free action id and it let NOT VIP PLAYERS pass, what the...? D:

There are no errors in the console.

EDITED: Something strange, it's supposed that i have to have several tables in which are contained the "vip" word. For example "player_viplist".

AND THEY ALL ARE EMPTY, even when i used the medal and i have 2 vip days left.
 
Last edited:
I get error *[04/02/2014 16:33:37] Error during getDataInt(vipdays).*
when using command /addvip and /removedays~~~~ Why !?!?!?! :( Im using TFS Verision 0.3.6 - Help Please :)!
Kind Regards,
Royal Fredde
 
[06/02/2014 23:56:51] [Error - Action Interface]
[06/02/2014 23:56:51] data/actions/scripts/vip/vipmedal.lua:eek:nUse
[06/02/2014 23:56:51] Description:
[06/02/2014 23:56:51] data/lib/050-function.lua:776: attempt to call field 'executeQuery' (a nil value)
[06/02/2014 23:56:51] stack traceback:
[06/02/2014 23:56:51] data/lib/050-function.lua:776: in function 'doAddVipDays'
[06/02/2014 23:56:51] data/actions/scripts/vip/vipmedal.lua:6: in function <data/actions/scripts/vip/vipmedal.lua:2>

[06/02/2014 23:57:35] [Error - TalkAction Interface]
[06/02/2014 23:57:35] data/talkactions/scripts/adddays.lua:eek:nSay
[06/02/2014 23:57:35] Description:
[06/02/2014 23:57:35] data/lib/050-function.lua:776: attempt to call field 'executeQuery' (a nil value)
[06/02/2014 23:57:35] stack traceback:
[06/02/2014 23:57:35] data/lib/050-function.lua:776: in function 'doAddVipDays'
[06/02/2014 23:57:35] data/talkactions/scripts/adddays.lua:31: in function <data/talkactions/scripts/adddays.lua:2>

[06/02/2014 23:57:50] [Error - TalkAction Interface]
[06/02/2014 23:57:50] data/talkactions/scripts/adddays.lua:eek:nSay
[06/02/2014 23:57:50] Description:
[06/02/2014 23:57:50] data/lib/050-function.lua:776: attempt to call field 'executeQuery' (a nil value)
[06/02/2014 23:57:50] stack traceback:
[06/02/2014 23:57:50] data/lib/050-function.lua:776: in function 'doAddVipDays'
[06/02/2014 23:57:50] data/talkactions/scripts/adddays.lua:31: in function <data/talkactions/scripts/adddays.lua:2>

[06/02/2014 23:58:09] [Error - TalkAction Interface]
[06/02/2014 23:58:09] data/talkactions/scripts/adddays.lua:eek:nSay
[06/02/2014 23:58:09] Description:
[06/02/2014 23:58:09] data/lib/050-function.lua:776: attempt to call field 'executeQuery' (a nil value)
[06/02/2014 23:58:09] stack traceback:
[06/02/2014 23:58:09] data/lib/050-function.lua:776: in function 'doAddVipDays'
[06/02/2014 23:58:09] data/talkactions/scripts/adddays.lua:31: in function <data/talkactions/scripts/adddays.lua:2>

[06/02/2014 23:59:45] [Error - Action Interface]
[06/02/2014 23:59:45] data/actions/scripts/vip/vipmedal.lua:eek:nUse
[06/02/2014 23:59:46] Description:
[06/02/2014 23:59:46] data/lib/050-function.lua:776: attempt to call field 'executeQuery' (a nil value)
[06/02/2014 23:59:46] stack traceback:
[06/02/2014 23:59:46] data/lib/050-function.lua:776: in function 'doAddVipDays'
[06/02/2014 23:59:46] data/actions/scripts/vip/vipmedal.lua:6: in function <data/actions/scripts/vip/vipmedal.lua:2>
 
@murat65
Just use the search you will find plenty of answers.

@ topic
Probably the most outdated title ever.
 
i already searched... thats the point why im post that or do you think other? i wouldnt post it if i found any other options

so my problem again
im using 3.6
:
when i use: vip medal
[07/02/2014 00:53:12] [Error - Action Interface]
[07/02/2014 00:53:12] data/actions/scripts/vip/vipmedal.lua:eek:nUse
[07/02/2014 00:53:12] Description:
[07/02/2014 00:53:12] data/lib/050-function.lua:776: attempt to call field 'executeQuery' (a nil value)
[07/02/2014 00:53:12] stack traceback:
[07/02/2014 00:53:12] data/lib/050-function.lua:776: in function 'doAddVipDays'
[07/02/2014 00:53:12] data/actions/scripts/vip/vipmedal.lua:6: in function <data/actions/scripts/vip/vipmedal.lua:2>

when i make /adddays
[07/02/2014 00:53:23] [Error - TalkAction Interface]
[07/02/2014 00:53:23] data/talkactions/scripts/adddays.lua:eek:nSay
[07/02/2014 00:53:23] Description:
[07/02/2014 00:53:23] data/lib/050-function.lua:776: attempt to call field 'executeQuery' (a nil value)
[07/02/2014 00:53:23] stack traceback:
[07/02/2014 00:53:23] data/lib/050-function.lua:776: in function 'doAddVipDays'
[07/02/2014 00:53:23] data/talkactions/scripts/adddays.lua:30: in function <data/talkactions/scripts/adddays.lua:1>
 
Back
Top