Skip to content

Commit

Permalink
Merge branch 'main' into feature/tournament-coins-custom
Browse files Browse the repository at this point in the history
  • Loading branch information
elsongabriel authored Dec 4, 2023
2 parents 6b47053 + 62995d6 commit 211df61
Show file tree
Hide file tree
Showing 43 changed files with 1,129 additions and 763 deletions.
4 changes: 4 additions & 0 deletions config.lua.dist
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ maintainModeMessage = ""

-- Combat settings
-- NOTE: valid values for worldType are: "pvp", "no-pvp" and "pvp-enforced"
-- NOTE: removeBeginningWeaponAmmunition: spears, arrows, bolt have endless ammo (allows training for paladins)
-- NOTE: refundManaOnBeginningWeapons: wand of vortex and snakebite refund mana used (allows training for mages)
worldType = "pvp"
hotkeyAimbotEnabled = true
protectionLevel = 7
Expand All @@ -32,6 +34,8 @@ removeChargesFromRunes = true
removeChargesFromPotions = true
removeWeaponAmmunition = true
removeWeaponCharges = true
removeBeginningWeaponAmmunition = true
refundBeginningWeaponMana = false
timeToDecreaseFrags = 24 * 60 * 60 * 1000
whiteSkullTime = 15 * 60 * 1000
stairJumpExhaustion = 2 * 1000
Expand Down
1 change: 1 addition & 0 deletions data-otservbr-global/lib/core/storages.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2767,6 +2767,7 @@ Storage = {
GoshnarMegalomaniaKilled = 47222,
QuestReward = 47223,
OutfitReward = 47224,
MountReward = 47225,
},
},
U12_60 = { -- update 12.60 - Reserved Storages 47501 - 47600
Expand Down
4 changes: 4 additions & 0 deletions data-otservbr-global/monster/demons/vexclaw.lua
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,11 @@ monster.loot = {
{ name = "platinum amulet", chance = 940 },
{ name = "devil helmet", chance = 520 },
{ name = "rift crossbow", chance = 370 },
{ name = "rift bow", chance = 370 },
{ name = "rift shield", chance = 370 },
{ name = "demon shield", chance = 370 },
{ name = "magic plate armor", chance = 70 },
{ name = "golden legs", chance = 50 },
{ name = "demonrage sword", chance = 30 },
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ monster.outfit = {
}

monster.events = {
"VesperothDeath",
"VersperothDeath",
}

monster.health = 100000
Expand Down Expand Up @@ -84,16 +84,16 @@ monster.defenses = {
}

monster.elements = {
{ type = COMBAT_PHYSICALDAMAGE, percent = 0 },
{ type = COMBAT_ENERGYDAMAGE, percent = 0 },
{ type = COMBAT_PHYSICALDAMAGE, percent = 30 },
{ type = COMBAT_ENERGYDAMAGE, percent = 45 },
{ type = COMBAT_EARTHDAMAGE, percent = 0 },
{ type = COMBAT_FIREDAMAGE, percent = 90 },
{ type = COMBAT_FIREDAMAGE, percent = 50 },
{ 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 },
{ type = COMBAT_ICEDAMAGE, percent = 45 },
{ type = COMBAT_HOLYDAMAGE, percent = 40 },
{ type = COMBAT_DEATHDAMAGE, percent = 55 },
}

monster.immunities = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,16 +125,16 @@ monster.defenses = {
}

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

monster.immunities = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,18 +98,4 @@ monster.immunities = {
{ 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)
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ monster.flags = {
hostile = true,
convinceable = false,
pushable = false,
rewardBoss = true,
rewardBoss = false,
illusionable = false,
canPushItems = true,
canPushCreatures = true,
Expand Down
2 changes: 1 addition & 1 deletion data-otservbr-global/monster/raids/ferumbras.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ local mType = Game.createMonsterType("Ferumbras")
local monster = {}

monster.description = "Ferumbras"
monster.experience = 35000
monster.experience = 12000
monster.outfit = {
lookType = 229,
lookHead = 0,
Expand Down
10 changes: 5 additions & 5 deletions data-otservbr-global/monster/trainers/training_machine.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ monster.corpse = 0
monster.speed = 0

monster.changeTarget = {
interval = 1 * 1000,
interval = 1000,
chance = 0,
}

Expand Down Expand Up @@ -49,13 +49,13 @@ monster.voices = {
monster.loot = {}

monster.attacks = {
{ name = "melee", attack = 130, interval = 2 * 1000, minDamage = -1, maxDamage = -2 },
{ name = "melee", interval = 2000, chance = 100, minDamage = -2, maxDamage = -7, attack = 130 },
}

monster.defenses = {
defense = 1,
armor = 1,
{ name = "combat", type = COMBAT_HEALING, chance = 15, interval = 2 * 1000, minDamage = 10000, maxDamage = 50000, effect = CONST_ME_MAGIC_BLUE },
defense = 10,
armor = 7,
{ name = "combat", type = COMBAT_HEALING, chance = 15, interval = 2000, minDamage = 10000, maxDamage = 50000, effect = CONST_ME_MAGIC_BLUE },
}

monster.elements = {}
Expand Down
Loading

0 comments on commit 211df61

Please sign in to comment.