Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mattyx14 committed Nov 2, 2023
1 parent 6ec6726 commit 98f0128
Show file tree
Hide file tree
Showing 185 changed files with 1,124 additions and 251 deletions.
10 changes: 9 additions & 1 deletion data-otxserver/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-otxserver/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-otxserver/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-otxserver/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-otxserver/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-otxserver/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
110 changes: 110 additions & 0 deletions data-otxserver/monster/bosses/doctor_marrow.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
local mType = Game.createMonsterType("Doctor Marrow")
local monster = {}

monster.description = "Doctor Marrow"
monster.experience = 0
monster.outfit = {
lookType = 1611,
lookHead = 57,
lookBody = 0,
lookLegs = 0,
lookFeet = 95,
lookAddons = 0,
lookMount = 0,
}

monster.health = 120000
monster.maxHealth = 120000
monster.race = "blood"
monster.corpse = 18074
monster.speed = 180
monster.manaCost = 0

monster.changeTarget = {
interval = 4000,
chance = 15,
}

monster.strategiesTarget = {
nearest = 60,
health = 30,
damage = 10,
}

monster.flags = {
summonable = false,
attackable = true,
hostile = true,
convinceable = false,
pushable = false,
rewardBoss = true,
illusionable = false,
canPushItems = true,
canPushCreatures = true,
critChance = 10,
staticAttackChance = 90,
targetDistance = 1,
runHealth = 0,
healthHidden = false,
isBlockable = false,
canWalkOnEnergy = true,
canWalkOnFire = true,
canWalkOnPoison = true,
}

monster.light = {
level = 0,
color = 0,
}

monster.voices = {
interval = 5000,
chance = 10,
{ text = "You can't stop the future!", yell = false },
}

monster.attacks = {
{ name = "melee", interval = 2000, chance = 100, minDamage = 0, maxDamage = -2800 },
}

monster.defenses = {
defense = 54,
armor = 59,
mitigation = 3.7,
}

monster.elements = {
{ type = COMBAT_PHYSICALDAMAGE, percent = 0 },
{ type = COMBAT_ENERGYDAMAGE, percent = 0 },
{ type = COMBAT_EARTHDAMAGE, percent = 0 },
{ type = COMBAT_FIREDAMAGE, percent = 0 },
{ type = COMBAT_LIFEDRAIN, percent = 0 },
{ type = COMBAT_MANADRAIN, percent = 0 },
{ type = COMBAT_DROWNDAMAGE, percent = 0 },
{ type = COMBAT_ICEDAMAGE, percent = 0 },
{ type = COMBAT_HOLYDAMAGE, percent = 0 },
{ type = COMBAT_DEATHDAMAGE, percent = 0 },
}

monster.immunities = {
{ type = "paralyze", condition = true },
{ type = "outfit", condition = false },
{ type = "invisible", condition = true },
{ type = "bleed", condition = false },
}

mType.onThink = function(monster, interval) end

mType.onAppear = function(monster, creature)
if monster:getType():isRewardBoss() then
monster:setReward(true)
end
end

mType.onDisappear = function(monster, creature) end

mType.onMove = function(monster, creature, fromPosition, toPosition) end

mType.onSay = function(monster, creature, type, message) end

mType:register(monster)
4 changes: 4 additions & 0 deletions data-otxserver/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-otxserver/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-otxserver/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-otxserver/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-otxserver/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-otxserver/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
4 changes: 4 additions & 0 deletions data-otxserver/monster/constructs/diamond_servant_replica.lua
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
4 changes: 4 additions & 0 deletions data-otxserver/monster/constructs/golden_servant_replica.lua
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-otxserver/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-otxserver/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-otxserver/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-otxserver/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-otxserver/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-otxserver/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-otxserver/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
4 changes: 4 additions & 0 deletions data-otxserver/monster/humanoids/minotaur_cult_follower.lua
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
4 changes: 4 additions & 0 deletions data-otxserver/monster/humanoids/minotaur_cult_prophet.lua
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
4 changes: 4 additions & 0 deletions data-otxserver/monster/humanoids/minotaur_cult_zealot.lua
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-otxserver/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-otxserver/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
Loading

0 comments on commit 98f0128

Please sign in to comment.