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

I got this error :S:S
[16/12/2010 17:08:24] [Error - Action Interface]
[16/12/2010 17:08:24] data/actions/scripts/vipmedal.luanUse
[16/12/2010 17:08:24] Description:
[16/12/2010 17:08:24] data/lib/050-function.lua:12: attempt to call field 'executeQuery' (a nil value)
[16/12/2010 17:08:24] stack traceback:
[16/12/2010 17:08:24] data/lib/050-function.lua:12: in function 'doAddVipDays'
[16/12/2010 17:08:24] data/actions/scripts/vipmedal.lua:5: in function <data/actions/scripts/vipmedal.lua:1>


And for remove vip days too! :S

where i need to put this lines? i think my error is becouse of this :S:S::
getPlayerVipDays(cid) --- Use it to check how many vip days the player have.
doAddVipDays(cid, days) --- Use it to add vip days to someone.
doRemoveVipDays(cid, days) --- Use it to remove vip days to someone.
 
Thats because in 0.4 sources, executeQuery changed, I dont remember how it works now.. xd
 
--- Script by Kekox
function onTimer()
db.executeQuery("UPDATE accounts SET vipdays = vipdays - 1 WHERE vipdays > 0;")
return true
end

i got a bug in TFS 8.6,
the error is dont found function ontimer

and dont remove the vip days =/
you know why?
 
Awesome script...
But I don't understand why not use the real premmium account system, because you don't need to waste time for a new VIP SYSTEM and the vip system may contain a few bugs...
The Vip system have more advantages than real PACC ??!
 
Last edited:
OTSYS_SQLITE3_PREPARE(): SQLITE ERROR: near "DELETEON": syntax error (CREATE TRIGGER "ondelete_accounts"BEFORE DELETEON "accounts"FOR EACH ROWBEGIN DELETE FROM "players" WHERE "account_id" = OLD."id"; DELETE FROM "account_viplist" WHERE "account_id" = OLD."id"; DELETE FROM "bans" WHERE "type" IN (3, 4) AND "value" = OLD."id";END;)
I have this error in the console? :S

edit: i repair the error only create funcion.lua in data/lib and already now thx :D
 
Last edited:
Lua:
[10/04/2011 20:13:18] Lua Script Error: [Action Interface] 
[10/04/2011 20:13:18] data/actions/scripts/vipmedal.lua:onUse
[10/04/2011 20:13:18] data/actions/scripts/vipmedal.lua:3: attempt to call global 'getPlayerVipDays' (a nil value)
[10/04/2011 20:13:18] stack traceback:
[10/04/2011 20:13:18]     [C]: in function 'getPlayerVipDays'
[10/04/2011 20:13:18]     data/actions/scripts/vipmedal.lua:3: in function <data/actions/scripts/vipmedal.lua:2>

Could you help me with this? tfs 0.2.10
 
i have error >>>>>>>

[12/04/2011 11:26:10] [Error - TalkAction Interface]
[12/04/2011 11:26:10] data/talkactions/scripts/removedays.lua:eek:nSay
[12/04/2011 11:26:10] Description:
[12/04/2011 11:26:10] (luaDoPlayerSendTextMessage) Player not found

[12/04/2011 11:26:10] [Error - TalkAction Interface]
[12/04/2011 11:26:10] data/talkactions/scripts/removedays.lua:eek:nSay
[12/04/2011 11:26:10] Description:
[12/04/2011 11:26:10] data/talkactions/scripts/removedays.lua:32: attempt to concatenate global 'sender' (a nil value)
[12/04/2011 11:26:10] stack traceback:
[12/04/2011 11:26:10] data/talkactions/scripts/removedays.lua:32: in function <data/talkactions/scripts/removedays.lua:1>


how i fix it? !!!
 
onTimer should be onTime in removedays.lua and make sure you dont get any unwanted linebreaks when you copy this codes cus it can screw up your sql queries pretty bad and will probably give you an error in the console. Just make sure ur lua files looks like the code posted here. Also, registerCreatureEvent(cid, "VipCheck") must be before the last end in login.lua
 
Back
Top