• Sign up for TFS Icon Competition! The prize includes Otland Premium time and a medal, as well as obviously taking part in TFS history.
  • 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!

How to read RAIDS?

Scrollia

Member
Joined
Apr 26, 2021
Messages
59
Reaction score
11
Lua:
<raid name="Badger" file="abdendriel/badger.xml" interval2="500" margin="60" />
    <raid name="WarWolf" file="abdendriel/warwolf.xml" interval2="500" margin="30" />
    <raid name="WaspBear" file="abdendriel/wasp_bear.xml" interval2="500" margin="40" />
    <raid name="Dragons" file="abdendriel/dragons.xml" interval2="500" margin="80" />
    <!-- Ankrahmun -->
    <raid name="Bonebeast" file="ankrahmun/bone_beast.xml" interval2="500" margin="70" />
    <raid name="Cobra" file="ankrahmun/cobra.xml" interval2="500" margin="70" />
    <raid name="Gargoyle" file="ankrahmun/gargoyle.xml" interval2="500" margin="70" />
    <raid name="Nomad" file="ankrahmun/nomad.xml" interval2="500" margin="70" />
    <raid name="Scarab" file="ankrahmun/scarab.xml" interval2="500" margin="60" />
    <raid name="Terramite" file="ankrahmun/terramite.xml" interval2="500" margin="70"

Wheres time , how often do they start? if i want to make it start 1 time a week, or meybe each hour?
 
Solution
Lua:
<raid name="Badger" file="abdendriel/badger.xml" interval2="500" margin="60" />
    <raid name="WarWolf" file="abdendriel/warwolf.xml" interval2="500" margin="30" />
    <raid name="WaspBear" file="abdendriel/wasp_bear.xml" interval2="500" margin="40" />
    <raid name="Dragons" file="abdendriel/dragons.xml" interval2="500" margin="80" />
    <!-- Ankrahmun -->
    <raid name="Bonebeast" file="ankrahmun/bone_beast.xml" interval2="500" margin="70" />
    <raid name="Cobra" file="ankrahmun/cobra.xml" interval2="500" margin="70" />
    <raid name="Gargoyle" file="ankrahmun/gargoyle.xml" interval2="500" margin="70" />
    <raid name="Nomad" file="ankrahmun/nomad.xml"...

Xikini

I whore myself out for likes
Support Team
Joined
Nov 17, 2010
Messages
5,242
Solutions
333
Reaction score
3,358
Lua:
<raid name="Badger" file="abdendriel/badger.xml" interval2="500" margin="60" />
    <raid name="WarWolf" file="abdendriel/warwolf.xml" interval2="500" margin="30" />
    <raid name="WaspBear" file="abdendriel/wasp_bear.xml" interval2="500" margin="40" />
    <raid name="Dragons" file="abdendriel/dragons.xml" interval2="500" margin="80" />
    <!-- Ankrahmun -->
    <raid name="Bonebeast" file="ankrahmun/bone_beast.xml" interval2="500" margin="70" />
    <raid name="Cobra" file="ankrahmun/cobra.xml" interval2="500" margin="70" />
    <raid name="Gargoyle" file="ankrahmun/gargoyle.xml" interval2="500" margin="70" />
    <raid name="Nomad" file="ankrahmun/nomad.xml" interval2="500" margin="70" />
    <raid name="Scarab" file="ankrahmun/scarab.xml" interval2="500" margin="60" />
    <raid name="Terramite" file="ankrahmun/terramite.xml" interval2="500" margin="70"

Wheres time , how often do they start? if i want to make it start 1 time a week, or meybe each hour?
I answered this recently.

Check here.
 
Solution
OP
S

Scrollia

Member
Joined
Apr 26, 2021
Messages
59
Reaction score
11
Please, share what you've learned and others might learn it aswell! :)
Lua:
local config = {
    bossPosition = Position(0, 0, 0),
    bossName     = 'Zugurosh',
    spawnTime    = '00:00:00'
}

local spawnBoss = GlobalEvent('spawnBoss')
function spawnBoss.onTime(interval)
    Game.createMonster(config.bossName, config.bossPosition, false, true)
    Game.broadcastMessage(config.bossName .. ' has spawned.', MESSAGE_EVENT_ADVANCE)
    return true
end

spawnBoss:time(config.spawnTime)
spawnBoss:register()

Credits goes to @Snavy
 
Top