Skip to content

Commit

Permalink
Merge branch 'main' into custom-pvp-system
Browse files Browse the repository at this point in the history
  • Loading branch information
dudantas authored Nov 11, 2023
2 parents 3f2a029 + fa0e120 commit 93351d8
Show file tree
Hide file tree
Showing 360 changed files with 3,028 additions and 2,711 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/clean-cache.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
name: Cleanup caches by a branch
on:
pull_request:
types:
- closed

jobs:
cleanup:
runs-on: ubuntu-latest
steps:
- name: Cleanup
run: |
gh extension install actions/gh-actions-cache
echo "Fetching list of cache key"
cacheKeysForPR=$(gh actions-cache list -R "$REPO" -B "$BRANCH" -L 100 | cut -f 1 )
## Setting this to not fail the workflow while deleting cache keys.
set +e
echo "Deleting caches..."
for cacheKey in $cacheKeysForPR
do
gh actions-cache delete "$cacheKey" -R "$REPO" -B "$BRANCH" --confirm
done
echo "Done"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPO: ${{ github.repository }}
BRANCH: refs/pull/${{ github.event.pull_request.number }}/merge
9 changes: 9 additions & 0 deletions config.lua.dist
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,15 @@ coreDirectory = "data"
-- NOTE: Will only display logs with level higher or equal the one set.
logLevel = "info"

--- Toggles the server's maintenance mode.
-- When enabled, it restricts user access and indicates maintenance operations.
-- @field [parent=#global] #boolean toggleMaintainMode false by default, set to true to enable maintenance mode.
toggleMaintainMode = false
--- Message displayed during maintenance mode.
-- Should inform the expected downtime or resumption details succinctly.
-- @field [parent=#global] #string maintainModeMessage an empty string by default, set a custom message if needed.
maintainModeMessage = ""

-- Combat settings
-- NOTE: valid values for worldType are: "pvp", "no-pvp" and "pvp-enforced"
worldType = "pvp"
Expand Down
10 changes: 9 additions & 1 deletion data-otservbr-global/migrations/41.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
function onUpdateDatabase()
return false -- true = There are others migrations file | false = this is the last migration file
logger.info("Updating database to version 42 (fix xpboost types)")

db.query([[
ALTER TABLE `players`
MODIFY `xpboost_stamina` smallint(5) UNSIGNED DEFAULT NULL,
MODIFY `xpboost_value` tinyint(4) UNSIGNED DEFAULT NULL
]])

return true
end
3 changes: 3 additions & 0 deletions data-otservbr-global/migrations/42.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
function onUpdateDatabase()
return false -- true = There are others migrations file | false = this is the last migration file
end
4 changes: 4 additions & 0 deletions data-otservbr-global/monster/bosses/black_knight.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ monster.outfit = {
lookMount = 0,
}

monster.events = {
"BlackKnightDeath",
}

monster.bosstiary = {
bossRaceId = 46,
bossRace = RARITY_BANE,
Expand Down
4 changes: 4 additions & 0 deletions data-otservbr-global/monster/bosses/diseased_bill.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ monster.outfit = {
lookMount = 0,
}

monster.events = {
"DiseasedTrioDeath",
}

monster.bosstiary = {
bossRaceId = 485,
bossRace = RARITY_BANE,
Expand Down
4 changes: 4 additions & 0 deletions data-otservbr-global/monster/bosses/diseased_dan.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ monster.outfit = {
lookMount = 0,
}

monster.events = {
"DiseasedTrioDeath",
}

monster.bosstiary = {
bossRaceId = 486,
bossRace = RARITY_BANE,
Expand Down
4 changes: 4 additions & 0 deletions data-otservbr-global/monster/bosses/diseased_fred.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ monster.outfit = {
lookMount = 0,
}

monster.events = {
"DiseasedTrioDeath",
}

monster.bosstiary = {
bossRaceId = 484,
bossRace = RARITY_BANE,
Expand Down
4 changes: 4 additions & 0 deletions data-otservbr-global/monster/bosses/energized_raging_mage.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ monster.outfit = {
lookMount = 0,
}

monster.events = {
"EnergizedRagingMageDeath",
}

monster.health = 3500
monster.maxHealth = 3500
monster.race = "blood"
Expand Down
4 changes: 4 additions & 0 deletions data-otservbr-global/monster/bosses/kroazur.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ monster.outfit = {
lookMount = 0,
}

monster.events = {
"ThreatenedDreamsNightmareMonstersDeath",
}

monster.bosstiary = {
bossRaceId = 1515,
bossRace = RARITY_BANE,
Expand Down
4 changes: 4 additions & 0 deletions data-otservbr-global/monster/bosses/pythius_the_rotten.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ monster.outfit = {
lookMount = 0,
}

monster.events = {
"PythiusTheRottenDeath",
}

monster.health = 9000
monster.maxHealth = 9000
monster.race = "undead"
Expand Down
4 changes: 4 additions & 0 deletions data-otservbr-global/monster/bosses/raging_mage.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ monster.outfit = {
lookMount = 0,
}

monster.events = {
"RagingMageDeath",
}

monster.health = 3500
monster.maxHealth = 3500
monster.race = "blood"
Expand Down
4 changes: 4 additions & 0 deletions data-otservbr-global/monster/bosses/renegade_orc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ monster.outfit = {
lookMount = 0,
}

monster.events = {
"RenegadeOrcDeath",
}

monster.health = 450
monster.maxHealth = 450
monster.race = "blood"
Expand Down
4 changes: 4 additions & 0 deletions data-otservbr-global/monster/bosses/splasher.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ monster.outfit = {
lookMount = 0,
}

monster.events = {
"QuaraLeadersDeath",
}

monster.health = 1700
monster.maxHealth = 1700
monster.race = "blood"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ monster.outfit = {
lookMount = 0,
}

monster.events = {
"ReplicaServantDeath",
}

monster.raceId = 1326
monster.Bestiary = {
class = "Construct",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ monster.outfit = {
lookMount = 0,
}

monster.events = {
"ReplicaServantDeath",
}

monster.raceId = 1327
monster.Bestiary = {
class = "Construct",
Expand Down
4 changes: 4 additions & 0 deletions data-otservbr-global/monster/dawnport/mountain_troll.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ monster.outfit = {
lookMount = 0,
}

monster.events = {
"MorrisTrollDeath",
}

monster.health = 30
monster.maxHealth = 30
monster.race = "blood"
Expand Down
4 changes: 4 additions & 0 deletions data-otservbr-global/monster/dawnport/muglex_clan_footman.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ monster.outfit = {
lookMount = 0,
}

monster.events = {
"MorrisGoblinDeath",
}

monster.health = 50
monster.maxHealth = 50
monster.race = "blood"
Expand Down
5 changes: 5 additions & 0 deletions data-otservbr-global/monster/dragons/dragon.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ monster.outfit = {
lookMount = 0,
}

monster.events = {
"TheGreatDragonHuntDeath",
"TheFirstDragonDragonTaskDeath",
}

monster.raceId = 34
monster.Bestiary = {
class = "Dragon",
Expand Down
4 changes: 4 additions & 0 deletions data-otservbr-global/monster/dragons/dragon_lord.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ monster.outfit = {
lookMount = 0,
}

monster.events = {
"TheGreatDragonHuntDeath",
}

monster.raceId = 39
monster.Bestiary = {
class = "Dragon",
Expand Down
4 changes: 4 additions & 0 deletions data-otservbr-global/monster/extra_dimensional/yielothax.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ monster.outfit = {
lookMount = 0,
}

monster.events = {
"YielothaxDeath",
}

monster.raceId = 717
monster.Bestiary = {
class = "Extra Dimensional",
Expand Down
4 changes: 4 additions & 0 deletions data-otservbr-global/monster/humanoids/lost_exile.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ monster.outfit = {
lookMount = 0,
}

monster.events = {
"LastExileDeath",
}

monster.raceId = 1529
monster.Bestiary = {
class = "Humanoid",
Expand Down
4 changes: 4 additions & 0 deletions data-otservbr-global/monster/humanoids/minotaur_bruiser.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ monster.outfit = {
lookMount = 0,
}

monster.events = {
"MorrisMinotaurDeath",
}

monster.health = 100
monster.maxHealth = 100
monster.race = "blood"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ monster.outfit = {
lookMount = 0,
}

monster.events = {
"MinotaurCultTaskDeath",
}

monster.raceId = 1508
monster.Bestiary = {
class = "Humanoid",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ monster.outfit = {
lookMount = 0,
}

monster.events = {
"MinotaurCultTaskDeath",
}

monster.raceId = 1509
monster.Bestiary = {
class = "Humanoid",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ monster.outfit = {
lookMount = 0,
}

monster.events = {
"MinotaurCultTaskDeath",
}

monster.raceId = 1510
monster.Bestiary = {
class = "Humanoid",
Expand Down
4 changes: 4 additions & 0 deletions data-otservbr-global/monster/humans/burning_gladiator.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ monster.outfit = {
lookMount = 0,
}

monster.events = {
"FafnarMissionsDeath",
}

monster.raceId = 1798
monster.Bestiary = {
class = "Human",
Expand Down
4 changes: 4 additions & 0 deletions data-otservbr-global/monster/humans/nomad.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ monster.outfit = {
lookMount = 0,
}

monster.events = {
"NomadDeath",
}

monster.raceId = 310
monster.Bestiary = {
class = "Human",
Expand Down
6 changes: 5 additions & 1 deletion data-otservbr-global/monster/humans/nomad_blue.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ monster.outfit = {
lookMount = 0,
}

monster.raceId = 777
monster.events = {
"NomadDeath",
}

monster.raceId = 776
monster.Bestiary = {
class = "Human",
race = BESTY_RACE_HUMAN,
Expand Down
6 changes: 5 additions & 1 deletion data-otservbr-global/monster/humans/nomad_female.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ monster.outfit = {
lookMount = 0,
}

monster.raceId = 776
monster.events = {
"NomadDeath",
}

monster.raceId = 777
monster.Bestiary = {
class = "Human",
race = BESTY_RACE_HUMAN,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ monster.outfit = {
lookMount = 0,
}

monster.events = {
"FafnarMissionsDeath",
}

monster.raceId = 1799
monster.Bestiary = {
class = "Human",
Expand Down
4 changes: 4 additions & 0 deletions data-otservbr-global/monster/magicals/crystalcrusher.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ monster.outfit = {
lookMount = 0,
}

monster.events = {
"MiddleSpikeDeath",
}

monster.raceId = 869
monster.Bestiary = {
class = "Magical",
Expand Down
4 changes: 4 additions & 0 deletions data-otservbr-global/monster/magicals/enfeebled_silencer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ monster.outfit = {
lookMount = 0,
}

monster.events = {
"ThreatenedDreamsNightmareMonstersDeath",
}

monster.raceId = 1443
monster.Bestiary = {
class = "Magical",
Expand Down
4 changes: 4 additions & 0 deletions data-otservbr-global/monster/magicals/frazzlemaw.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ monster.outfit = {
lookMount = 0,
}

monster.events = {
"RoshamuulKillsDeath",
}

monster.raceId = 1022
monster.Bestiary = {
class = "Magical",
Expand Down
Loading

0 comments on commit 93351d8

Please sign in to comment.