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

Full working VIP System by Shawak

Where should i add
Code:
setPlayerVipDays(cid, days)    -- set player XXX Vip days // return days
getPlayerVipDays(cid)          -- get player current Vip days left // return days
isPlayerVip(cid)               -- check if player is vip // return TRUE (if player is Vip) or FALSE (if player isn't Vip)
doPlayerAddVipDays(cid, days)  -- add player vip days // return days
doPlayerRemoveVip(cid)         -- remove player Vip and set Vip days to 0 // return TRUE
:p?

I havn't added the things above, might be why i get this error if not idk
Code:
[12/08/2009 14:18:14] Lua Script Error: [TalkAction Interface] 
[12/08/2009 14:18:14] data/talkactions/scripts/vip/get.lua:onSay

[12/08/2009 14:18:14] data/talkactions/scripts/vip/get.lua:2: attempt to call global 'getPlayerVipDays' (a nil value)
[12/08/2009 14:18:14] stack traceback:
[12/08/2009 14:18:14] 	data/talkactions/scripts/vip/get.lua:2: in function <data/talkactions/scripts/vip/get.lua:1>
please help me, im offering REP! :O!!?
 
Last edited:
Where should i add
Code:
setPlayerVipDays(cid, days)    -- set player XXX Vip days // return days
getPlayerVipDays(cid)          -- get player current Vip days left // return days
isPlayerVip(cid)               -- check if player is vip // return TRUE (if player is Vip) or FALSE (if player isn't Vip)
doPlayerAddVipDays(cid, days)  -- add player vip days // return days
doPlayerRemoveVip(cid)         -- remove player Vip and set Vip days to 0 // return TRUE
:p?

I havn't added the things above, might be why i get this error if not idk
Code:
[12/08/2009 14:18:14] Lua Script Error: [TalkAction Interface] 
[12/08/2009 14:18:14] data/talkactions/scripts/vip/get.lua:onSay

[12/08/2009 14:18:14] data/talkactions/scripts/vip/get.lua:2: attempt to call global 'getPlayerVipDays' (a nil value)
[12/08/2009 14:18:14] stack traceback:
[12/08/2009 14:18:14] 	data/talkactions/scripts/vip/get.lua:2: in function <data/talkactions/scripts/vip/get.lua:1>
please help me, im offering REP! :O!!?

This is only an information :D.
 
[16/08/2009 13:14:29] Lua Script Error: [TalkAction Interface]
[16/08/2009 13:14:29] data/talkactions/scripts/add.lua:eek:nSay

[16/08/2009 13:14:29] data/lib/function.lua:485: attempt to perform arithmetic on local 'days' (a string value)
[16/08/2009 13:14:29] stack traceback:
[16/08/2009 13:14:29] data/lib/function.lua:485: in function <data/lib/function.lua:484>
[16/08/2009 13:14:29] (tail call): ?

[16/08/2009 13:14:35] Lua Script Error: [TalkAction Interface]
[16/08/2009 13:14:35] data/talkactions/scripts/add.lua:eek:nSay

[16/08/2009 13:14:35] data/lib/function.lua:485: attempt to perform arithmetic on local 'days' (a string value)
[16/08/2009 13:14:35] stack traceback:
[16/08/2009 13:14:35] data/lib/function.lua:485: in function <data/lib/function.lua:484>
[16/08/2009 13:14:35] (tail call): ?


Always I had Errors On vip scripts :S
 
TFS 0.3.5: data/lib/luafunctions.lua

i HAVEN'T functions I have (function) man :S I have to add?
 
Are you using "doPlayerAddVipDays(cid, 7) not "7" ?

EDIT: Command is !add 7 not !add "7 ...
 
But I Don't whant To agree to TFS only In tibia game, Or I have to adD? :S
 
I don't Know you :S

Are you using "doPlayerAddVipDays(cid, 7) not "7" ?

EDIT: Command is !add 7 not !add "7 ...


Where is this Script that you are talking ?
 
Last edited by a moderator:
Thanks :D You are Very Help full :D

[16/08/2009 13:27:06] Lua Script Error: [TalkAction Interface]
[16/08/2009 13:27:06] data/talkactions/scripts/add.lua:eek:nSay

[16/08/2009 13:27:06] data/lib/function.lua:485: attempt to perform arithmetic on local 'days' (a string value)
[16/08/2009 13:27:06] stack traceback:
[16/08/2009 13:27:06] data/lib/function.lua:485: in function <data/lib/function.lua:484>
[16/08/2009 13:27:06] (tail call): ?


But why?

And another Problem man, How will do the Player For look days or if is Vip -.-,

Man I think that I don't Will Use :S
 
Last edited by a moderator:
[16/08/2009 13:27:06] Lua Script Error: [TalkAction Interface]
[16/08/2009 13:27:06] data/talkactions/scripts/add.lua:eek:nSay

[16/08/2009 13:27:06] data/lib/function.lua:485: attempt to perform arithmetic on local 'days' (a string value)
[16/08/2009 13:27:06] stack traceback:
[16/08/2009 13:27:06] data/lib/function.lua:485: in function <data/lib/function.lua:484>
[16/08/2009 13:27:06] (tail call): ?

But why?

!add 7 NOT !add "7".

And another Problem man, How will do the Player For look days or if is Vip -.-,

look first page, "isPlayerVip(cid)", and "getPlayerVipDays(cid)".
 
Back
Top