Skip to content

Commit

Permalink
feat: monsters and npcs rotten blood quest (#2686)
Browse files Browse the repository at this point in the history
  • Loading branch information
elsongabriel authored Dec 31, 2024
1 parent c61b1b4 commit 0091ce1
Show file tree
Hide file tree
Showing 54 changed files with 7,201 additions and 31 deletions.
5 changes: 5 additions & 0 deletions data-otservbr-global/lib/core/storages.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2844,6 +2844,11 @@ Storage = {
},
},
},
U13_20 = { -- update 13.20 - Reserved Storages 47952 - 47970
RottenBlood = {
AccessDoor = 47952,
},
},
},
-- Reserved storage from 63951 - 63999
ThaisExhibition = {
Expand Down
159 changes: 159 additions & 0 deletions data-otservbr-global/monster/bosses/bakragore.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,159 @@
local mType = Game.createMonsterType("Bakragore")
local monster = {}

monster.description = "Bakragore"
monster.experience = 15000000
monster.outfit = {
lookType = 1671,
lookHead = 0,
lookBody = 0,
lookLegs = 0,
lookFeet = 0,
lookAddons = 0,
lookMount = 0,
}

monster.events = {
"RottenBloodBakragoreDeath",
}

monster.bosstiary = {
bossRaceId = 2367,
bossRace = RARITY_NEMESIS,
}

monster.health = 660000
monster.maxHealth = 660000
monster.race = "undead"
monster.corpse = 44012
monster.speed = 250
monster.manaCost = 0

monster.changeTarget = {
interval = 10000,
chance = 20,
}

monster.strategiesTarget = {
nearest = 70,
health = 10,
damage = 10,
random = 10,
}

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

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

monster.summon = {
maxSummons = 2,
summons = {
{ name = "Elder Bloodjaw", chance = 20, interval = 2000, count = 2 },
},
}

monster.voices = {
interval = 5000,
chance = 10,
{ text = "Light ... darkens!", yell = false },
{ text = "Light .. the ... darkness!", yell = false },
{ text = "Darkness ... is ... light!", yell = false },
{ text = "WILL ... PUNISH ... YOU!", yell = false },
{ text = "RAAAR!", yell = false },
}

monster.loot = {
{ name = "crystal coin", chance = 8938, maxCount = 200 },
{ name = "supreme health potion", chance = 8938, maxCount = 300 },
{ name = "ultimate mana potion", chance = 11433, maxCount = 300 },
{ name = "ultimate spirit potion", chance = 11433, maxCount = 300 },
{ name = "berserk potion", chance = 10938, maxCount = 90 },
{ name = "bullseye potion", chance = 10938, maxCount = 90 },
{ name = "mastermind potion", chance = 10938, maxCount = 30 },
{ name = "blue gem", chance = 10570, maxCount = 10 },
{ name = "giant amethyst", chance = 10570, maxCount = 10 },
{ name = "giant emerald", chance = 10570, maxCount = 10 },
{ name = "giant ruby", chance = 10570, maxCount = 10 },
{ name = "red gem", chance = 10570, maxCount = 10 },
{ name = "giant sapphire", chance = 10570, maxCount = 10 },
{ name = "giant topaz", chance = 10570, maxCount = 10 },
{ name = "violet gem", chance = 10970, maxCount = 10 },
{ name = "yellow gem", chance = 10970, maxCount = 10 },
{ name = "figurine of bakragore", chance = 10970 },
{ name = "bakragore's amalgamation", chance = 570 },
{ name = "spiritual horseshoe", chance = 470 },
{ id = 43895, chance = 360 }, -- Bag you covet
}

monster.attacks = {
{ name = "melee", interval = 2000, chance = 100, minDamage = 0, maxDamage = -3000 },
{ name = "combat", interval = 3000, chance = 35, type = COMBAT_ICEDAMAGE, minDamage = -900, maxDamage = -1100, range = 7, radius = 7, shootEffect = CONST_ANI_ICE, effect = 243, target = true },
{ name = "combat", interval = 2000, chance = 13, type = COMBAT_DEATHDAMAGE, minDamage = -100, maxDamage = -1000, length = 8, spread = 0, effect = 252, target = false },
{ name = "combat", interval = 3000, chance = 30, type = COMBAT_FIREDAMAGE, minDamage = -1000, maxDamage = -2000, length = 8, spread = 0, effect = 249, target = false },
{ name = "combat", interval = 2000, chance = 30, type = COMBAT_ICEDAMAGE, minDamage = -950, maxDamage = -2400, range = 7, radius = 3, shootEffect = 37, effect = 240, target = true },
{ name = "combat", interval = 2000, chance = 10, type = COMBAT_DEATHDAMAGE, minDamage = -1000, maxDamage = -2500, length = 8, spread = 0, effect = 244, target = false },
}

monster.defenses = {
defense = 135,
armor = 135,
{ name = "combat", interval = 3000, chance = 15, type = COMBAT_HEALING, minDamage = 2500, maxDamage = 3500, effect = 236, target = false },
{ name = "speed", interval = 4000, chance = 80, speedChange = 700, effect = CONST_ME_MAGIC_RED, target = false, duration = 6000 },
}

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

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)
147 changes: 147 additions & 0 deletions data-otservbr-global/monster/bosses/chagorz.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,147 @@
local mType = Game.createMonsterType("Chagorz")
local monster = {}

monster.description = "Chagorz"
monster.experience = 3250000
monster.outfit = {
lookType = 1665,
lookHead = 0,
lookBody = 0,
lookLegs = 0,
lookFeet = 0,
lookAddons = 0,
lookMount = 0,
}

monster.events = {
"RottenBloodBossDeath",
}

monster.bosstiary = {
bossRaceId = 2366,
bossRace = RARITY_ARCHFOE,
}

monster.health = 350000
monster.maxHealth = 350000
monster.race = "undead"
monster.corpse = 44024
monster.speed = 250
monster.manaCost = 0

monster.changeTarget = {
interval = 10000,
chance = 20,
}

monster.strategiesTarget = {
nearest = 70,
health = 10,
damage = 10,
random = 10,
}

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

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

monster.summon = {}

monster.voices = {
interval = 5000,
chance = 10,
{ text = "The light... that... drains!", yell = false },
{ text = "RAAAR!", yell = false },
{ text = "WILL ... PUNISH ... YOU!", yell = false },
{ text = "Darkness ... devours!", yell = false },
}

monster.loot = {
{ name = "crystal coin", chance = 5441, maxCount = 108 },
{ name = "mastermind potion", chance = 5530, maxCount = 28 },
{ name = "supreme health potion", chance = 5044, maxCount = 154 },
{ name = "giant sapphire", chance = 10546, maxCount = 1 },
{ name = "ultimate mana potion", chance = 5752, maxCount = 107 },
{ name = "violet gem", chance = 13217, maxCount = 4 },
{ id = 3039, chance = 13465, maxCount = 1 }, -- red gem
{ name = "yellow gem", chance = 14071, maxCount = 1 },
{ name = "blue gem", chance = 11156, maxCount = 3 },
{ name = "bullseye potion", chance = 6792, maxCount = 21 },
{ name = "giant amethyst", chance = 11603, maxCount = 1 },
{ name = "giant topaz", chance = 12280, maxCount = 1 },
{ name = "green gem", chance = 8348, maxCount = 1 },
{ name = "ultimate spirit potion", chance = 10934, maxCount = 18 },
{ name = "white gem", chance = 9600, maxCount = 3 },
}

monster.attacks = {
{ name = "melee", interval = 2000, chance = 100, minDamage = -1300, maxDamage = -2250 },
{ name = "combat", interval = 2000, chance = 20, type = COMBAT_EARTHDAMAGE, minDamage = -500, maxDamage = -900, radius = 4, effect = CONST_ME_GREEN_RINGS, target = false },
{ name = "combat", interval = 2000, chance = 20, type = COMBAT_DEATHDAMAGE, minDamage = -500, maxDamage = -900, range = 4, radius = 4, effect = 241, target = true },
{ name = "combat", interval = 2000, chance = 20, type = COMBAT_EARTHDAMAGE, minDamage = -1000, maxDamage = -1200, length = 10, spread = 0, effect = CONST_ME_POFF, target = false },
{ name = "combat", interval = 2000, chance = 20, type = COMBAT_LIFEDRAIN, minDamage = -1500, maxDamage = -1900, length = 10, spread = 0, effect = 225, target = false },
{ name = "speed", interval = 2000, chance = 20, speedChange = -600, radius = 7, effect = CONST_ME_MAGIC_GREEN, target = false, duration = 20000 },
}

monster.defenses = {
defense = 105,
armor = 105,
{ name = "combat", interval = 3000, chance = 10, type = COMBAT_HEALING, minDamage = 700, maxDamage = 1500, effect = 236, target = false },
}

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

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)
Loading

0 comments on commit 0091ce1

Please sign in to comment.