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

Globalevent spam on server start!

Burdin

New Member
Joined
Jan 7, 2014
Messages
47
Reaction score
4
When my server starts up I get this :eek:

all my globalevent scripts run over and over with no delay or interval

Code:
[9:4:48.948] > Saving server...
[9:4:49.018] > SAVE: Complete in 0.07 seconds using binary house storage.
> Broadcasted message: "Remember to visit the king of Edoras to uptain free items from his armory!'".
> Broadcasted message: "Ranks: !rank level / !rank axe / !rank magic...".
[9:4:50.060] > Saving server...
[9:4:50.129] > SAVE: Complete in 0.069 seconds using binary house storage.
> Broadcasted message: "Bot is illegal and botters will be punished if notified!".
> Broadcasted message: "For help use the help channel or message a member of the staff team!".
[9:4:51.145] > Saving server...
[9:4:51.214] > SAVE: Complete in 0.069 seconds using binary house storage.
> Broadcasted message: "Obtain rewards by reporting in-game bugs to the staff team!".
[9:4:52.223] > Saving server...
[9:4:52.293] > SAVE: Complete in 0.07 seconds using binary house storage.
> Broadcasted message: "Bot is illegal and botters will be punished if notified!".
> Broadcasted message: "Bot is illegal and botters will be punished if notified!".
[9:4:53.316] > Saving server...
[9:4:53.386] > SAVE: Complete in 0.07 seconds using binary house storage.
> Broadcasted message: "Can't find a spawn for you level? Visit the download section on the offical everlon online site, to find a spawn map for you level!".
[9:4:54.401] > Saving server...
[9:4:54.472] > SAVE: Complete in 0.071 seconds using binary house storage.
> Broadcasted message: "Ranks: !rank level / !rank axe / !rank magic...".
> Broadcasted message: "ClEAN IN 30 SECONDS".
> Broadcasted message: "Remember to visit the king of Edoras to uptain free items from his armory!'".
[9:4:55.492] > Saving server...
[9:4:55.566] > SAVE: Complete in 0.073 seconds using binary house storage.
> Broadcasted message: "Ranks: !rank level / !rank axe / !rank magic...".
[9:4:56.596] > Saving server...
[9:4:56.668] > SAVE: Complete in 0.072 seconds using binary house storage.
> Broadcasted message: "Can't find a spawn for you level? Visit the download section on the offical everlon online site, to find a spawn map for you level!".
> Broadcasted message: "Bot is illegal and botters will be punished if notified!".
[9:4:57.695] > Saving server...
[9:4:57.766] > SAVE: Complete in 0.071 seconds using binary house storage.
> Broadcasted message: "Ranks: !rank level / !rank axe / !rank magic...".
> Broadcasted message: "Ranks: !rank level / !rank axe / !rank magic...".
[9:4:58.784] > Saving server...
[9:4:58.854] > SAVE: Complete in 0.07 seconds using binary house storage.
> Broadcasted message: "For help use the help channel or message a member of the staff team!".
[9:4:59.877] > Saving server...
[9:4:59.941] > SAVE: Complete in 0.064 seconds using binary house storage.
> Broadcasted message: "Bot is illegal and botters will be punished if notified!".
> Broadcasted message: "Obtain rewards by reporting in-game bugs to the staff team!".
 
Edit the intervals in globalevents.xml
On tfs 1.0/0.2/0.4: 1000 equal 1sec
while 0.3.6 1 equal 1sec
 
That solved my problem! But now I ran into new problems :/

Code:
[13:4:51.609] Burdin has logged in.

[13:4:51.609] [Error - CreatureScript Interface]
[13:4:51.609] data/creaturescripts/scripts/login.lua:onLogin
[13:4:51.609] Description:
[13:4:51.609] data/lib/050-function.lua:315: attempt to call global 'getCreatureCondition' (a nil value)
[13:4:51.609] stack traceback:
[13:4:51.609]  data/lib/050-function.lua:315: in function 'isPlayerGhost'
[13:4:51.609]  data/creaturescripts/scripts/login.lua:32: in function <data/creaturescripts/scripts/login.lua:6>
[13:4:51.610] Burdin has logged out.
 
Go into your lib/050-functions.lua and paste this:
Code:
function isPlayerGhost(cid)
    return isPlayer(cid) and (getCreatureCondition(cid, CONDITION_GAMEMASTER, GAMEMASTER_INVISIBLE, CONDITIONID_DEFAULT) or getPlayerFlagValue(cid, PLAYERFLAG_CANNOTBESEEN))
end
 
Now I get this :/

Code:
[14:4:03.992] [Error - GlobalEvent Interface]
[14:4:03.992] data/globalevents/scripts/record.lua:onRecord
[14:4:03.992] Description:
[14:4:03.992] data/globalevents/scripts/record.lua:2: attempt to call field 'executeQuery' (a nil value)
[14:4:03.992] stack traceback:
[14:4:03.992]  data/globalevents/scripts/record.lua:2: in function <data/globalevents/scripts/record.lua:1>
[14:4:03.994] Burdin has logged in.

[14:4:03.994] [Error - CreatureScript Interface]
[14:4:03.994] data/creaturescripts/scripts/login.lua:onLogin
[14:4:03.994] Description:
[14:4:03.994] data/lib/050-function.lua:311: attempt to call global 'getCreatureCondition' (a nil value)
[14:4:03.994] stack traceback:
[14:4:03.994]  data/lib/050-function.lua:311: in function 'isPlayerGhost'
[14:4:03.994]  data/creaturescripts/scripts/login.lua:32: in function <data/creaturescripts/scripts/login.lua:6>
[14:4:03.996] Burdin has logged out.
 
@Techrlz that fixed the first problem! :)

But still got

Code:
[14:33:01.589] Burdin has logged in.

[14:33:01.589] [Error - CreatureScript Interface]
[14:33:01.589] data/creaturescripts/scripts/login.lua:onLogin
[14:33:01.589] Description:
[14:33:01.589] data/lib/050-function.lua:311: attempt to call global 'getCreatureCondition' (a nil value)
[14:33:01.589] stack traceback:
[14:33:01.589]  data/lib/050-function.lua:311: in function 'isPlayerGhost'
[14:33:01.589]  data/creaturescripts/scripts/login.lua:32: in function <data/creaturescripts/scripts/login.lua:6>
[14:33:01.589] Burdin has logged out.
> Broadcasted message: "New record: 1 players are logged in.".
 
It worked changing my libs!
So now I can log in, but I can't use most of my scripts..

I get the following error

Code:
[15:6:43.337] [Error - Action Interface]
[15:6:43.337] data/actions/scripts/outfit.lua:onUse
[15:6:43.337] Description:
[15:6:43.337] data/actions/scripts/outfit.lua:2: attempt to call global 'getPlayerStorageValue' (a nil value)
[15:6:43.337] stack traceback:
[15:6:43.337]  data/actions/scripts/outfit.lua:2: in function <data/actions/scripts/outfit.lua:1>

[15:6:43.567] [Error - Action Interface]
[15:6:43.567] data/actions/scripts/outfit.lua:onUse
[15:6:43.567] Description:
[15:6:43.567] data/actions/scripts/outfit.lua:2: attempt to call global 'getPlayerStorageValue' (a nil value)
[15:6:43.567] stack traceback:
[15:6:43.567]  data/actions/scripts/outfit.lua:2: in function <data/actions/scripts/outfit.lua:1>

[15:6:44.137] [Error - Action Interface]
[15:6:44.137] data/actions/scripts/other/doors.lua:onUse
[15:6:44.137] Description:
[15:6:44.137] data/actions/scripts/other/doors.lua:86: attempt to call global 'isInArray' (a nil value)
[15:6:44.137] stack traceback:
[15:6:44.137]  data/actions/scripts/other/doors.lua:86: in function <data/actions/scripts/other/doors.lua:11>
 
Your libs are really bad.
What is happening is that the functions you are calling in your scripts should already be defined in the libs.

Per exemple


Code:
onDeath()

do something

end

that onDeath() should be defined in the libs, or it won't do anything. So that is what is happening.
 
Back
Top