• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

TFS 1.X+ Help with creature invasion.

Pifafa

Well-Known Member
Joined
Nov 9, 2010
Messages
108
Reaction score
51
Good morning everyone, I'm writing to ask if there's a way to add a counter to the server's RAID arrays. I'd like to be able to display on the website what has been activated, something simple that shows the last 3 raids the server has had. Unfortunately, I've tried a few approaches but none have been successful. I've included an example of my RAID files.


LUA:
<raid name="gholnocimiterio" repeat="false" margin="60" interval2="600" file="gholnocimiterio.xml"/>

XML:
<?xml version="1.0" encoding="UTF-8"?>
<raid>
    <announce delay="0" type="event" message="The undead are hungry for life."/>
    <areaspawn delay="0" radius="10" centerx="5965" centery="6092" centerz="7">
        <monster name="ghoul" minamount="6" maxamount="12"/>
    </areaspawn>
</raid>
 
It's probably easiest to launch the raid from globalevents and include Game.setStorageValue(123, 1) in the script.

And then send the storage to the database:
LUA:
updateGlobalStorage(123, Game.getStorageValue(123))
 
Back
Top