-
-
Notifications
You must be signed in to change notification settings - Fork 651
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: move multiple raids to new system (#2002)
New config: `disableLegacyRaids` to disable the old XML based system. New command: `/simraid` you can "simulate" raid parameters to see how often your raid would run: ``` 18:13 Raid triggered 10 times in 31931 rolls (23.138405797101 days or once every 2.3138405797101 days) ``` Raids added can be seen in `scripts/raids`: ![CleanShot 2023-12-09 at 18 45 34@2x](https://github.com/opentibiabr/canary/assets/223760/fe43b632-da3b-4ed5-8bac-37cbce8bd38f)
- Loading branch information
Showing
26 changed files
with
733 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
data-otservbr-global/scripts/raids/bosses/arachir_the_ancient_one.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
local zone = Zone("drefia.arachir") | ||
zone:addArea(Position(32963, 32399, 12), Position(32965, 32401, 12)) | ||
|
||
local raid = Raid("drefia.arachir", { | ||
zone = zone, | ||
allowedDays = { "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday" }, | ||
minActivePlayers = 3, | ||
initialChance = 0.02, | ||
targetChancePerDay = 0.02, | ||
maxChancePerCheck = 0.8, | ||
}) | ||
|
||
raid | ||
:addSpawnMonsters({ | ||
{ | ||
name = "Arachir the Ancient One", | ||
amount = 1, | ||
position = Position(32964, 32400, 12), | ||
}, | ||
}) | ||
:autoAdvance("24h") | ||
|
||
raid:register() |
23 changes: 23 additions & 0 deletions
23
data-otservbr-global/scripts/raids/bosses/diblis_the_fair.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
local zone = Zone("nargor.diblis") | ||
zone:addArea(Position(32008, 32794, 10), Position(32010, 32797, 10)) | ||
|
||
local raid = Raid("nargor.diblis", { | ||
zone = zone, | ||
allowedDays = { "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday" }, | ||
minActivePlayers = 3, | ||
initialChance = 0.02, | ||
targetChancePerDay = 0.02, | ||
maxChancePerCheck = 0.8, | ||
}) | ||
|
||
raid | ||
:addSpawnMonsters({ | ||
{ | ||
name = "Diblis The Fair", | ||
amount = 1, | ||
position = Position(32009, 32795, 10), | ||
}, | ||
}) | ||
:autoAdvance("24h") | ||
|
||
raid:register() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
local zone = Zone("fury-gates.furiosa") | ||
zone:addArea(Position(33257, 32659, 14), Position(33342, 31867, 15)) | ||
|
||
local raid = Raid("fury-gates.furiosa", { | ||
zone = zone, | ||
allowedDays = { "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday" }, | ||
minActivePlayers = 3, | ||
initialChance = 0.01, | ||
targetChancePerDay = 0.01, | ||
maxChancePerCheck = 0.6, | ||
}) | ||
|
||
raid | ||
:addSpawnMonsters({ | ||
{ | ||
name = "Demon", | ||
amount = 80, | ||
}, | ||
}) | ||
:autoAdvance("1m") | ||
|
||
raid | ||
:addSpawnMonsters({ | ||
{ | ||
name = "Furyosa", | ||
amount = 1, | ||
position = Position(33281, 31804, 15), | ||
}, | ||
}) | ||
:autoAdvance("24h") | ||
|
||
raid:register() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
local zone = Zone("svargrond.hirintror") | ||
zone:addArea(Position(32100, 31166, 9), Position(32102, 31168, 9)) | ||
|
||
local raid = Raid("svargrond.hirintror", { | ||
zone = zone, | ||
allowedDays = { "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday" }, | ||
minActivePlayers = 3, | ||
initialChance = 0.02, | ||
targetChancePerDay = 0.02, | ||
maxChancePerCheck = 0.8, | ||
}) | ||
|
||
raid | ||
:addSpawnMonsters({ | ||
{ | ||
name = "Hirintror", | ||
amount = 1, | ||
position = Position(32101, 31167, 9), | ||
}, | ||
}) | ||
:autoAdvance("24h") | ||
|
||
raid:register() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
local zone = Zone("roshamuul.mawhawk") | ||
zone:addArea(Position(33702, 32460, 7), Position(33704, 32462, 7)) | ||
|
||
local raid = Raid("roshamuul.mawhawk", { | ||
zone = zone, | ||
allowedDays = { "Monday", "Tuesday", "Thursday", "Friday", "Saturday", "Sunday" }, | ||
minActivePlayers = 2, | ||
initialChance = 0.04, | ||
targetChancePerDay = 0.02, | ||
maxChancePerCheck = 0.4, | ||
}) | ||
|
||
raid | ||
:addSpawnMonsters({ | ||
{ | ||
name = "Mawhawk", | ||
amount = 1, | ||
}, | ||
}) | ||
:autoAdvance("24h") | ||
|
||
raid:register() |
23 changes: 23 additions & 0 deletions
23
data-otservbr-global/scripts/raids/bosses/sir_valorcrest.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
local zone = Zone("edron.valorcrest") | ||
zone:addArea(Position(33263, 31767, 10), Position(33265, 31769, 10)) | ||
|
||
local raid = Raid("edron.valorcrest", { | ||
zone = zone, | ||
allowedDays = { "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday" }, | ||
minActivePlayers = 3, | ||
initialChance = 0.02, | ||
targetChancePerDay = 0.02, | ||
maxChancePerCheck = 0.8, | ||
}) | ||
|
||
raid | ||
:addSpawnMonsters({ | ||
{ | ||
name = "Sir Valorcrest", | ||
amount = 1, | ||
position = Position(33264, 31768, 10), | ||
}, | ||
}) | ||
:autoAdvance("24h") | ||
|
||
raid:register() |
38 changes: 38 additions & 0 deletions
38
data-otservbr-global/scripts/raids/bosses/the_old_widow.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
local zone = Zone("venore.the-old-widow") | ||
zone:addArea(Position(32292, 32292, 12), Position(32796, 32306, 12)) | ||
|
||
local raid = Raid("venore.the-old-widow", { | ||
zone = zone, | ||
allowedDays = { "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday" }, | ||
minActivePlayers = 3, | ||
initialChance = 0.02, | ||
targetChancePerDay = 0.02, | ||
maxChancePerCheck = 0.8, | ||
}) | ||
|
||
raid:addBroadcast("The mating season of the giant spiders is at hand. Leave the plains of havoc as fast as you can."):autoAdvance("30s") | ||
|
||
raid:addBroadcast("Giant spiders have gathered on the plains of havoc for their mating season. Beware!"):autoAdvance("3m") | ||
|
||
for _ = 1, 4 do | ||
raid | ||
:addSpawnMonsters({ | ||
{ | ||
name = "Giant Spider", | ||
amount = 8, | ||
}, | ||
}) | ||
:autoAdvance("10s") | ||
end | ||
|
||
raid | ||
:addSpawnMonsters({ | ||
{ | ||
name = "The Old Widow", | ||
amount = 1, | ||
position = Position(32776, 32296, 7), | ||
}, | ||
}) | ||
:autoAdvance("24h") | ||
|
||
raid:register() |
23 changes: 23 additions & 0 deletions
23
data-otservbr-global/scripts/raids/bosses/the_pale_count.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
local zone = Zone("drefia.the-pale-count") | ||
zone:addArea(Position(32968, 32419, 15), Position(32970, 32421, 15)) | ||
|
||
local raid = Raid("drefia.the-pale-count", { | ||
zone = zone, | ||
allowedDays = { "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday" }, | ||
minActivePlayers = 3, | ||
initialChance = 0.01, | ||
targetChancePerDay = 0.02, | ||
maxChancePerCheck = 0.7, | ||
}) | ||
|
||
raid | ||
:addSpawnMonsters({ | ||
{ | ||
name = "The Pale Count", | ||
amount = 1, | ||
position = Position(32969, 32420, 15), | ||
}, | ||
}) | ||
:autoAdvance("24h") | ||
|
||
raid:register() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
local zone = Zone("ankrahmun.the-welter") | ||
zone:addArea(Position(33025, 32659, 5), Position(33027, 32661, 5)) | ||
|
||
local raid = Raid("ankrahmun.the-welter", { | ||
zone = zone, | ||
allowedDays = { "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday" }, | ||
minActivePlayers = 3, | ||
initialChance = 0.01, | ||
targetChancePerDay = 0.01, | ||
maxChancePerCheck = 0.6, | ||
}) | ||
|
||
raid | ||
:addSpawnMonsters({ | ||
{ | ||
name = "The Welter", | ||
amount = 1, | ||
}, | ||
}) | ||
:autoAdvance("24h") | ||
|
||
raid:register() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
local zone = Zone("darashia.tyrn") | ||
zone:addArea(Position(33055, 32392, 14), Position(33057, 32394, 14)) | ||
|
||
local raid = Raid("darashia.tyrn", { | ||
zone = zone, | ||
allowedDays = { "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday" }, | ||
minActivePlayers = 2, | ||
initialChance = 0.04, | ||
targetChancePerDay = 0.02, | ||
maxChancePerCheck = 0.4, | ||
}) | ||
|
||
raid | ||
:addSpawnMonsters({ | ||
{ | ||
name = "Tyrn", | ||
amount = 1, | ||
}, | ||
}) | ||
:autoAdvance("24h") | ||
|
||
raid:register() |
23 changes: 23 additions & 0 deletions
23
data-otservbr-global/scripts/raids/bosses/weakened_shlorg.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
local zone = Zone("edron.weakened-shlorg") | ||
zone:addArea(Position(33163, 31715, 9), Position(33165, 31717, 9)) | ||
|
||
local raid = Raid("edron.weakened-shlorg", { | ||
zone = zone, | ||
allowedDays = { "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday" }, | ||
minActivePlayers = 3, | ||
initialChance = 0.02, | ||
targetChancePerDay = 0.02, | ||
maxChancePerCheck = 0.8, | ||
}) | ||
|
||
raid | ||
:addSpawnMonsters({ | ||
{ | ||
name = "Weakened Shlorg", | ||
amount = 1, | ||
position = Position(33164, 31716, 9), | ||
}, | ||
}) | ||
:autoAdvance("24h") | ||
|
||
raid:register() |
Oops, something went wrong.