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

Lua Best VIP System Error

Blysco

New Member
Joined
Oct 12, 2013
Messages
163
Reaction score
2
I did all how the tutorial said but i get 2 Errors.
You see them in the Screen.

Server is running but 1 Error is spaming the console.. Server dont crash.

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

View attachment 22971
 
Could you post the first one a bit better? and what version of TFS are you using?

The second one is from the vip effect, just delete the script and unregister it.
 
if getPlayerVipDays(cid) >= 1 then
doSendMagicEffect(getPlayerPosition(cid), 1)
doSendAnimatedText(getPlayerPosition(cid), "VIP!", TEXTCOLOR_RED)
end

I deleted this and now the "Do send Text blabla" Error are gone.

But still have the "onTime not found (Data/globalevents/scripts/daysremover.lua
I already tried all but nothing works.

TFS Version 0.3.7 SVN crying damson Tibia 9.83
 
<globalevent name="vipEffect" interval="800000" script="vipEffect.lua"/>
I tried to use a higher Interval but the Error still is there (i dont want to delete the Effect :D)
 
Ok i have found a fix
For all who want this fix.

Just paste this in daysremover and error is gone !
Code:
function onTime()
  db.executeQuery("UPDATE accounts SET vipdays = vipdays - 1 WHERE vipdays > 0;")
  return true
end
 
<globalevent name="vipEffect" interval="800000" script="vipEffect.lua"/>
I tried to use a higher Interval but the Error still is there (i dont want to delete the Effect :D)

This error is always going to appear because the function used to display floaty text like that is no longer used in 0.3.7.

And change the thing that says "onTime" to "onTimer" sometimes that works
 
if getPlayerVipDays(cid) >= 1 then
doSendMagicEffect(getPlayerPosition(cid), 1)
doSendAnimatedText(getPlayerPosition(cid), "VIP!", TEXTCOLOR_RED)
end

I deleted this and now the "Do send Text blabla" Error are gone.

But still have the "onTime not found (Data/globalevents/scripts/daysremover.lua
I already tried all but nothing works.

TFS Version 0.3.7 SVN crying damson Tibia 9.83

As dominique change onTime to OnTimer, the function onTime is no longer installed, its replaced by onTimer.

But DONT do as you said, just remove the 4 lines, that script is only a few lines, remove the full script insted via the xml file, you could get crashes etc if someone knows how to abuse the file.(I think)
Regards WibbenZ
 
A way to fix that is to make a modded version of the AFK script, talking about the !on !off switch. Easy thing to add.
WibbenZ
 
Back
Top