Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: missing creatures and bosses #2004

Merged
merged 7 commits into from
Dec 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions data-otservbr-global/monster/amphibics/makara.lua
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ monster.flags = {
canPushCreatures = true,
staticAttackChance = 90,
targetDistance = 1,
runHealth = 10,
runHealth = 0,
healthHidden = false,
isBlockable = false,
canWalkOnEnergy = false,
Expand All @@ -71,12 +71,13 @@ monster.voices = {
interval = 5000,
chance = 10,
{ text = "waddle waddle", yell = false },
{ text = "Nihahaha!", yell = false },
}

monster.loot = {
{ name = "platinum coin", chance = 100000, maxCount = 13 },
{ name = "platinum coin", chance = 100000, maxCount = 18 },
{ name = "makara tongue", chance = 10160 },
{ name = "makara fin", chance = 7420 },
{ name = "makara fin", chance = 7420, maxCount = 2 },
{ name = "meat", chance = 7030, maxCount = 2 },
{ name = "cyan crystal fragment", chance = 4300 },
{ name = "yellow gem", chance = 4100 },
Expand All @@ -90,10 +91,10 @@ monster.loot = {

monster.attacks = {
{ name = "combat", interval = 2000, chance = 100, type = COMBAT_PHYSICALDAMAGE, minDamage = -145, maxDamage = -390, target = true }, -- basic_attack
{ name = "combat", interval = 2000, chance = 25, type = COMBAT_EARTHDAMAGE, minDamage = -305, maxDamage = -390, radius = 3, effect = CONST_ME_STONES, shootEffect = CONST_ANI_EARTH, target = true }, -- stone_shower_ball
{ name = "combat", interval = 2000, chance = 25, type = COMBAT_EARTHDAMAGE, minDamage = -305, maxDamage = -390, radius = 5, effect = CONST_ME_STONES, shootEffect = CONST_ANI_EARTH, target = true }, -- great_stone_shower_ball
{ name = "combat", interval = 2000, chance = 25, type = COMBAT_ICEDAMAGE, minDamage = -360, maxDamage = -390, range = 7, shootEffect = CONST_ANI_SMALLICE, effect = CONST_ME_ICEATTACK, target = true }, -- ice_strike
{ name = "makarawatersplash", interval = 2000, chance = 25, minDamage = -380, maxDamage = -455, target = false }, -- short_water_cone-wave
{ name = "combat", interval = 2500, chance = 25, type = COMBAT_EARTHDAMAGE, minDamage = -305, maxDamage = -390, radius = 3, effect = CONST_ME_STONES, shootEffect = CONST_ANI_EARTH, target = true }, -- stone_shower_ball
{ name = "combat", interval = 3000, chance = 20, type = COMBAT_EARTHDAMAGE, minDamage = -305, maxDamage = -390, radius = 5, effect = CONST_ME_STONES, shootEffect = CONST_ANI_EARTH, target = true }, -- great_stone_shower_ball
{ name = "combat", interval = 3500, chance = 20, type = COMBAT_ICEDAMAGE, minDamage = -360, maxDamage = -390, range = 7, shootEffect = CONST_ANI_SMALLICE, effect = CONST_ME_ICEATTACK, target = true }, -- ice_strike
{ name = "makarawatersplash", interval = 4000, chance = 25, minDamage = -380, maxDamage = -455, target = false }, -- short_water_cone-wave
}

monster.defenses = {
Expand Down
2 changes: 1 addition & 1 deletion data-otservbr-global/monster/aquatics/deathling_scout.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ monster.speed = 155
monster.manaCost = 0

monster.faction = FACTION_DEATHLING
monster.enemyFactions = { FACTION_DEEPLING, FACTION_PLAYER }
monster.enemyFactions = { FACTION_PLAYER, FACTION_DEEPLING }

monster.changeTarget = {
interval = 4000,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ monster.speed = 155
monster.manaCost = 0

monster.faction = FACTION_DEATHLING
monster.enemyFactions = { FACTION_DEEPLING, FACTION_PLAYER }
monster.enemyFactions = { FACTION_PLAYER, FACTION_DEEPLING }

monster.changeTarget = {
interval = 4000,
Expand Down
2 changes: 1 addition & 1 deletion data-otservbr-global/monster/aquatics/deepling_brawler.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ monster.speed = 85
monster.manaCost = 0

monster.faction = FACTION_DEEPLING
monster.enemyFactions = { FACTION_DEATHLING, FACTION_PLAYER }
monster.enemyFactions = { FACTION_PLAYER, FACTION_DEATHLING }

monster.changeTarget = {
interval = 4000,
Expand Down
2 changes: 1 addition & 1 deletion data-otservbr-global/monster/aquatics/deepling_elite.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ monster.speed = 165
monster.manaCost = 0

monster.faction = FACTION_DEEPLING
monster.enemyFactions = { FACTION_DEATHLING, FACTION_PLAYER }
monster.enemyFactions = { FACTION_PLAYER, FACTION_DEATHLING }

monster.changeTarget = {
interval = 4000,
Expand Down
2 changes: 1 addition & 1 deletion data-otservbr-global/monster/aquatics/deepling_guard.lua
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ monster.speed = 135
monster.manaCost = 0

monster.faction = FACTION_DEEPLING
monster.enemyFactions = { FACTION_DEATHLING, FACTION_PLAYER }
monster.enemyFactions = { FACTION_PLAYER, FACTION_DEATHLING }

monster.changeTarget = {
interval = 4000,
Expand Down
2 changes: 1 addition & 1 deletion data-otservbr-global/monster/aquatics/deepling_scout.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ monster.speed = 65
monster.manaCost = 0

monster.faction = FACTION_DEEPLING
monster.enemyFactions = { FACTION_DEATHLING, FACTION_PLAYER }
monster.enemyFactions = { FACTION_PLAYER, FACTION_DEATHLING }

monster.changeTarget = {
interval = 4000,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ monster.speed = 95
monster.manaCost = 0

monster.faction = FACTION_DEEPLING
monster.enemyFactions = { FACTION_DEATHLING, FACTION_PLAYER }
monster.enemyFactions = { FACTION_PLAYER, FACTION_DEATHLING }

monster.changeTarget = {
interval = 4000,
Expand Down
2 changes: 1 addition & 1 deletion data-otservbr-global/monster/aquatics/deepling_tyrant.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ monster.speed = 155
monster.manaCost = 0

monster.faction = FACTION_DEEPLING
monster.enemyFactions = { FACTION_DEATHLING, FACTION_PLAYER }
monster.enemyFactions = { FACTION_PLAYER, FACTION_DEATHLING }

monster.changeTarget = {
interval = 4000,
Expand Down
2 changes: 1 addition & 1 deletion data-otservbr-global/monster/aquatics/deepling_warrior.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ monster.speed = 145
monster.manaCost = 0

monster.faction = FACTION_DEEPLING
monster.enemyFactions = { FACTION_DEATHLING, FACTION_PLAYER }
monster.enemyFactions = { FACTION_PLAYER, FACTION_DEATHLING }

monster.changeTarget = {
interval = 4000,
Expand Down
2 changes: 1 addition & 1 deletion data-otservbr-global/monster/aquatics/deepling_worker.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ monster.speed = 65
monster.manaCost = 0

monster.faction = FACTION_DEEPLING
monster.enemyFactions = { FACTION_DEATHLING, FACTION_PLAYER }
monster.enemyFactions = { FACTION_PLAYER, FACTION_DEATHLING }

monster.changeTarget = {
interval = 4000,
Expand Down
8 changes: 4 additions & 4 deletions data-otservbr-global/monster/birds/dire_penguin.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ monster.raceId = 335
monster.Bestiary = {
class = "Bird",
race = BESTY_RACE_BIRD,
toKill = 500,
FirstUnlock = 25,
SecondUnlock = 250,
CharmsPoints = 15,
toKill = 5,
FirstUnlock = 1,
SecondUnlock = 3,
CharmsPoints = 30,
Stars = 2,
Occurrence = 3,
Locations = "Any place with penguins like, Formorgar Glacier, Helheim, Tyrsung or Svargrond. \z
Expand Down
96 changes: 96 additions & 0 deletions data-otservbr-global/monster/bosses/alchemist_container.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
local mType = Game.createMonsterType("Alchemist Container")
local monster = {}

monster.description = "Alchemist Container"
monster.experience = 0
monster.outfit = {
lookTypeEx = 39952,
}

monster.health = 1200
monster.maxHealth = 1200
monster.race = "undead"
monster.corpse = 39949
monster.speed = 0
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 = false,
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.attacks = {}

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

monster.description = "Antenna"
monster.experience = 0
monster.outfit = {
lookTypeEx = 850,
}

monster.health = 5000
monster.maxHealth = 5000
monster.race = "undead"
monster.corpse = 0
monster.speed = 0
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 = false,
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.attacks = {}

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