-
-
Notifications
You must be signed in to change notification settings - Fork 647
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: implement OTBM Zones, encounters, and raids systems (#1712)
This introduces three new systems: • OTBM Zones: Enables direct editing of zones into the map binary, facilitating the creation of large or irregularly shaped zones. A companion PR has been submitted to RME (opentibiabr/remeres-map-editor#56). • Encounters: Introduces a flexible framework for defining scripted fights, simplifying the API for easy understanding and implementation. Encounters are tied to Zones and can be triggered via a boss lever. See the Magma Bubble script in this PR for a comprehensive example. • Raids: A specialized subset of Encounters, Raids are self-scheduling and can spawn within defined zones. This PR replaces Thais' Wild Horse and Rat raids with examples utilizing the new system.
- Loading branch information
Showing
53 changed files
with
1,159 additions
and
440 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
local zone = Zone("thais.rats") | ||
zone:addArea(Position(32331, 32182, 7), Position(32426, 32261, 7)) | ||
|
||
local raid = Raid("thais.rats", { | ||
zone = zone, | ||
allowedDays = { "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday" }, | ||
minActivePlayers = 0, | ||
targetChancePerDay = 30, | ||
maxChancePerCheck = 50, | ||
minGapBetween = "36h", | ||
}) | ||
|
||
raid:addBroadcast("Rat Plague in Thais!"):autoAdvance("5s") | ||
|
||
raid | ||
:addSpawnMonsters({ | ||
{ | ||
name = "Rat", | ||
amount = 10, | ||
}, | ||
{ | ||
name = "Cave Rat", | ||
amount = 10, | ||
}, | ||
}) | ||
:autoAdvance("10m") | ||
|
||
raid | ||
:addSpawnMonsters({ | ||
{ | ||
name = "Rat", | ||
amount = 20, | ||
}, | ||
{ | ||
name = "Cave Rat", | ||
amount = 20, | ||
}, | ||
}) | ||
:autoAdvance("10m") | ||
|
||
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,27 @@ | ||
local zone = Zone("thais.wild-horses") | ||
zone:addArea(Position(32456, 32193, 7), Position(32491, 32261, 7)) | ||
zone:addArea(Position(32431, 32240, 7), Position(32464, 32280, 7)) | ||
|
||
local raid = Raid("thais.wild-horses", { | ||
zone = zone, | ||
allowedDays = { "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday" }, | ||
minActivePlayers = 0, | ||
initialChance = 30, | ||
targetChancePerDay = 50, | ||
maxChancePerCheck = 50, | ||
maxChecksPerDay = 2, | ||
minGapBetween = "23h", | ||
}) | ||
|
||
for _ = 1, 7 do | ||
raid | ||
:addSpawnMonsters({ | ||
{ | ||
name = "Wild Horse", | ||
amount = 3, | ||
}, | ||
}) | ||
:autoAdvance("3h") | ||
end | ||
|
||
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
Oops, something went wrong.
393179c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-zones.xml: File was not found
393179c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For these modifications to work correctly, it is necessary to open and save the map using the remeres in this pull:
opentibiabr/remeres-map-editor#56
393179c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
its still open, will w8 untill merged. thanks