• 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][TFS 1.0] Run script when server starts.

Abyss_

Atlantika RPG Owner
Joined
Aug 3, 2014
Messages
195
Reaction score
81
Location
Wonderland
Hello!

I need to know how to run a script in globalevents, every time when the server starts. For example:
  1. The server starts
  2. Map is loaded
  3. Script from Globalevents starts.
Is there a special function for this?

Kind regards,

Abyss :)

//EDIT:

One more question: How do I check if an item (for example with the ItemID 22715) exists on the map and get it's uid afterwards using a loop?
 
I want to check if an item with the ID 22715 exists on the map. There isn't any specific position since it could be located anywhere.

  1. Check the whole map if there is any item with the ID 22715 located.
  2. If the item exists then get the uid of the item.
This has to be done with every item with the ID 22715, that's why I need a loop :D I don't know how to explain it better... Thanks!
 
Back
Top Bottom