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

Raids and it's configuration

kito2

www.masteria.net
Joined
Mar 9, 2009
Messages
3,764
Solutions
1
Reaction score
227
Location
Chile, Santiago
Hello,

I have been trying to get how raids actually works, but can't get it yet... Why?

Code:
    <raid name="Titanica" file="special/Titanica.xml" interval2="250" margin="60"/>

Actually I have been running the server for around 4-8 hours for about 20 days. And this raid just happened once.

As far as I have been checking and reading the forum:

- Interval2 are the minutes after the server opens.
- Margin couldn't find it.

But it is not happening always... So there is a chance to make it happen? How does this works? How do you create a raid with more chance to be cast rather than another one? Also could you add a raid with a specific date and hour day?
 
<raid name="Titanica" file="special/Titanica.xml" interval2="250" margin="60"/>
Actually I have been running the server for around 4-8 hours for about 20 days. And this raid just happened once.

As far as I have been checking and reading the forum:

- Interval2 are the minutes after the server opens.
- Margin couldn't find it.

margin = minutes that a raid can start before it starts again.
- Interval2 are the minutes after the server opens.
interval2 are not minutes after server starts, it is a average chance to start, lets say your raid will start on average 4.1 hours (250 mins), the formula to decide if it will start is:
if 10000000 * 60 / interval2 be greater than a random number between 0, 10000000 then it start, how big interval2 is, lower will be the result so lower the probability of it starts.
Also could you add a raid with a specific date and hour day?
maybe you can do workarounds with a lua script, better you go for a globalevent onTime instead of onRaid event.
 
interval2 are not minutes after server starts, it is a average chance to start, lets say your raid will start on average 4.1 hours (250 mins), the formula to decide if it will start is:
if 10000000 * 60 / interval2 be greater than a random number between 0, 10000000 then it start, how big interval2 is, lower will be the result so lower the probability of it starts.

Ok, got some of the things you said. Just got some confused in the formula, which on this escenario would be: 10000000 * 60 / 250 = 2400000? On this escenario would be like 24% of the times every 60 minutes (margin) would be a chance of it to be executed, I am right?
 
Ok, got some of the things you said. Just got some confused in the formula, which on this escenario would be: 10000000 * 60 / 250 = 2400000? On this escenario would be like 24% of the times every 60 minutes (margin) would be a chance of it to be executed, I am right?
notice that 10000000 and 60 are constant, 60 has nothing to do with margin to be more clear about the system.
if (timeNow >= (lastTimeRaidEnd + margin) then
if (10000000 * 60) / interval2 ) >= random number between(0, 10000000) then raidStart

its coded something like that, lets suppose timeNow are 10 on clock, lastTimeRaidEnd were 9:55 and our margin are 15, so this raid can only go further 10:05, else it will never happen.
 
Back
Top