Skip to content
Merged
Show file tree
Hide file tree
Changes from 68 commits
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
45f92db
init
murilo09 Nov 7, 2024
b4b3854
Code format - (Clang-format)
github-actions[bot] Nov 7, 2024
a5dbfc6
send packet
murilo09 Nov 8, 2024
5a8de41
fix: padding
murilo09 Nov 13, 2024
52c9aa0
fix: player icon byte size
murilo09 Dec 1, 2024
d2fb634
Merge branch 'main' into tibia14
murilo09 Dec 1, 2024
94ba4a7
fix: message length
murilo09 Dec 1, 2024
a2d7826
fix sonar
murilo09 Dec 1, 2024
2490102
rename onConnect function
murilo09 Dec 1, 2024
23426c2
feat: version 14.05
dudantas Dec 2, 2024
2b348a5
adjust monsters exp
murilo09 Dec 2, 2024
f24447f
change size in comment
murilo09 Dec 2, 2024
367e59b
change size in sendIconBakragore
murilo09 Dec 2, 2024
451ab14
fix: test icon talkaction
murilo09 Dec 2, 2024
0879a56
feat: new appearances from 14.05
dudantas Dec 2, 2024
0a38ac3
fix: some changes
dudantas Dec 2, 2024
3d81799
fix: login crash
dudantas Dec 2, 2024
ac031cd
fix: docker build
dudantas Dec 3, 2024
a539e36
test: docker create cache
dudantas Dec 3, 2024
e389ec6
fix: better log
dudantas Dec 3, 2024
154606a
test: docker cache
dudantas Dec 3, 2024
a63438a
fix: auto walk
murilo09 Dec 3, 2024
b5fbe16
fix: actionlint
murilo09 Dec 3, 2024
22f6b76
Merge branch 'main' into tibia14
murilo09 Dec 3, 2024
5ca4f67
fix: stash debug
murilo09 Dec 4, 2024
6e3f6a7
Merge branch 'main' into tibia14
murilo09 Dec 7, 2024
011b203
Merge branch 'main' into tibia14
murilo09 Dec 9, 2024
aa3b27a
Merge branch 'main' into tibia14
murilo09 Dec 12, 2024
5aa780f
revert log to error
murilo09 Dec 31, 2024
910522f
Merge branch 'main' into tibia14
murilo09 Jan 12, 2025
1b4a806
Merge branch 'main' into tibia14
murilo09 Jan 30, 2025
4ae1de5
fix: get last message byte
murilo09 Feb 2, 2025
a303aa7
fix: change cast type
murilo09 Mar 4, 2025
b119f13
some fixes
murilo09 Mar 4, 2025
d8815fd
Merge branch 'main' into tibia14
murilo09 Mar 5, 2025
7f09c87
Merge branch 'main' into tibia14
FelipePaluco Mar 11, 2025
e99f6a8
improve: show correctly float version (14.05 instead of 14.5)
dudantas Mar 19, 2025
acd318e
Merge branch 'main' into tibia14
dudantas Apr 7, 2025
dfcf9ea
Code format - (Clang-format)
github-actions[bot] Apr 7, 2025
a837381
fix: compilation
dudantas Apr 20, 2025
7ae9cb3
fix: protocol check
dudantas Apr 20, 2025
a676409
Merge branch 'main' into tibia14
dudantas May 10, 2025
477cfc8
fix: rename
dudantas May 10, 2025
0c98c92
feat: protocol 14.12
murilo09 Mar 3, 2025
6a552ba
add new appearances
dudantas May 10, 2025
b201260
fix: correct appearances
dudantas May 10, 2025
cea4d58
fix: add agony
dudantas May 10, 2025
c290da3
fix: stash retrieve
dudantas May 10, 2025
e9799c1
fix: nil value
dudantas May 11, 2025
2282906
fix: dodge chance
dudantas May 13, 2025
4e2da6b
disable log
dudantas May 13, 2025
8c027f0
fix: getItem crash
dudantas May 13, 2025
fc1f8fa
fix: error
dudantas May 13, 2025
56f4f67
Merge branch 'main' into dudantas/feat-protocol-14.12
dudantas May 14, 2025
0e88a25
fix: conflict error
dudantas May 14, 2025
c9406e6
fix dawnport debug
murilo09 May 19, 2025
6eb7b76
fix: stash containers
dudantas May 21, 2025
9532137
fix: update appearances
dudantas May 21, 2025
8768483
fix: stow containers
dudantas May 22, 2025
893cb0e
remove condition agony
murilo09 May 24, 2025
ecf1371
revert items change
murilo09 May 24, 2025
b3dc548
fix: better logging
dudantas May 26, 2025
0bd49cc
update appearances
murilo09 May 26, 2025
df3011c
fix store cosmetics
murilo09 May 27, 2025
41e51a5
fix: debug item from stash (invalid items)
dudantas May 28, 2025
a4d75af
Code format - (Clang-format)
github-actions[bot] May 28, 2025
6028e9b
fix: migration
majestyotbr May 31, 2025
e80cc0a
update appearances
majestyotbr May 31, 2025
148b716
Merge branch 'main' into dudantas/feat-protocol-14.12
dudantas Jun 6, 2025
2b118ff
fix: use project folder for generate executable
dudantas Jun 6, 2025
bc84cdd
fix: set to false
dudantas Jun 6, 2025
203f35e
fix: some sonar errors
dudantas Jun 8, 2025
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
8 changes: 5 additions & 3 deletions .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ jobs:
uses: gittools/actions/gitversion/[email protected]

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3.7.1
with:
install: true

- name: Login to GitHub Container Registry
uses: docker/login-action@v2
uses: docker/login-action@v3.3.0
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
Expand All @@ -73,6 +73,8 @@ jobs:
tags: ghcr.io/${{ github.repository }}:${{ steps.gitversion.outputs.semVer }}
cache-from: type=gha, scope=${{ github.workflow }}
cache-to: type=gha, scope=${{ github.workflow }}
secrets: |
DEBUG=1

- name: Image digest
if: ${{ github.event_name == 'push' }}
Expand All @@ -97,7 +99,7 @@ jobs:
uses: gittools/actions/gitversion/[email protected]

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3.7.1
with:
install: true

Expand Down
21 changes: 13 additions & 8 deletions config.lua.dist
Original file line number Diff line number Diff line change
Expand Up @@ -177,11 +177,15 @@ momentumChanceFormulaA = 0.05
momentumChanceFormulaB = 1.9
momentumChanceFormulaC = 0.05

transcendanceChanceFormulaA = 0.0127
transcendanceChanceFormulaB = 0.1070
transcendanceChanceFormulaC = 0.0073
transcendenceChanceFormulaA = 0.0127
transcendenceChanceFormulaB = 0.1070
transcendenceChanceFormulaC = 0.0073

transcendanceAvatarDuration = 7000
amplificationChanceFormulaA = 0.4
amplificationChanceFormulaB = 1.7
amplificationChanceFormulaC = 0.4

transcendenceAvatarDuration = 7000

-- Bestiary & Bosstiary system
-- NOTE: bestiaryKillMultiplier, multiplier value of monster killed, default 1
Expand Down Expand Up @@ -258,8 +262,6 @@ tibiadromeConcoctionTickType = "online" -- "online" | "experience"
onlyPremiumAccount = false

-- Customs
-- NOTE: stashMoving = true, stow an container inside your stash
-- NOTE: stashItemCount, the maximum items quantity in stash
-- NOTE: depotChest, the non-stackable items will be moved to the selected depot chest(I - XVIII).
-- NOTE: autoBank = true, the dropped coins from monsters will be automatically deposited to your bank account.
-- NOTE: toggleGoldPouchAllowAnything will allow players to move items or gold to gold pouch
Expand All @@ -276,8 +278,6 @@ onlyPremiumAccount = false
-- NOTE: if showLootsInBestiary is true, will cause all loots to be shown in the bestiary even if the player has not reached the required number of kills
-- NOTE: minTownIdToBankTransferFromMain blocks towns less than defined from receiving money transfers
-- NOTE: enableSupportOutfit enable GODS and GMS to select support outfit (gamemaster, customer support or community manager)
stashMoving = false
stashItemCount = 5000
depotChest = 4
autoLoot = false
autoBank = false
Expand All @@ -298,6 +298,11 @@ showLootsInBestiary = false
minTownIdToBankTransferFromMain = 4
enableSupportOutfit = true

-- NOTE: stashMoving = true, stow an container inside your stash
-- NOTE: stashManageAmount = max items add/remove from stash at once
stashMoving = false
stashManageAmount = 100000

-- Teleport summon
-- Set to true will never remove the summon
teleportSummons = false
Expand Down
58 changes: 58 additions & 0 deletions data-otservbr-global/migrations/50.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
function onUpdateDatabase()
logger.info("Updating database to version 50 (feat: support to 14.12)")

db.query([[
ALTER TABLE `player_charms`
DROP `rune_wound`,
DROP `rune_enflame`,
DROP `rune_poison`,
DROP `rune_freeze`,
DROP `rune_zap`,
DROP `rune_curse`,
DROP `rune_cripple`,
DROP `rune_parry`,
DROP `rune_dodge`,
DROP `rune_adrenaline`,
DROP `rune_numb`,
DROP `rune_cleanse`,
DROP `rune_bless`,
DROP `rune_scavenge`,
DROP `rune_gut`,
DROP `rune_low_blow`,
DROP `rune_divine`,
DROP `rune_vamp`,
DROP `rune_void`
]])

db.query([[
ALTER TABLE `player_charms`
ADD `minor_charm_echoes` SMALLINT NOT NULL DEFAULT '0',
ADD `max_charm_points` SMALLINT NOT NULL DEFAULT '0',
ADD `max_minor_charm_echoes` SMALLINT NOT NULL DEFAULT '0',
ADD `charms` BLOB NULL
]])

db.query([[
ALTER TABLE `player_charms`
MODIFY COLUMN `charm_points` SMALLINT NOT NULL DEFAULT '0',
MODIFY COLUMN `UsedRunesBit` INT NOT NULL DEFAULT '0',
MODIFY COLUMN `UnlockedRunesBit` INT NOT NULL DEFAULT '0',
MODIFY COLUMN `charm_expansion` BOOLEAN NOT NULL DEFAULT FALSE,
CHANGE COLUMN `player_guid` `player_id` int(11) NOT NULL
]])

db.query([[
ALTER TABLE player_charms
ADD CONSTRAINT player_charms_players_fk
FOREIGN KEY (player_id) REFERENCES players (id)
]])

db.query([[
UPDATE `player_charms` pc
JOIN `players` p ON pc.player_id = p.id
SET
pc.minor_charm_echoes = 100,
pc.max_minor_charm_echoes = 100
WHERE p.vocation >= 5
]])
end
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ local mType = Game.createMonsterType("Diamond Servant Replica")
local monster = {}

monster.description = "a diamond servant replica"
monster.experience = 700
monster.experience = 1400
monster.outfit = {
lookType = 397,
lookHead = 0,
Expand Down Expand Up @@ -80,7 +80,7 @@ monster.voices = {
monster.loot = {
{ id = 9655, chance = 5040 }, -- gear crystal
{ id = 8775, chance = 5070 }, -- gear wheel
{ id = 3031, chance = 94130, maxCount = 179 }, -- gold coin
{ id = 3031, chance = 94130, maxCount = 358 }, -- gold coin
{ id = 5944, chance = 44990 }, -- soul orb
{ id = 3061, chance = 9150 }, -- life crystal
{ id = 237, chance = 5980 }, -- strong mana potion
Expand Down Expand Up @@ -108,7 +108,7 @@ monster.defenses = {
defense = 45,
armor = 25,
mitigation = 0.83,
{ name = "combat", interval = 2000, chance = 11, type = COMBAT_HEALING, minDamage = 50, maxDamage = 150, effect = CONST_ME_MAGIC_BLUE, target = false },
{ name = "combat", interval = 2000, chance = 11, type = COMBAT_HEALING, minDamage = 50, maxDamage = 130, effect = CONST_ME_MAGIC_BLUE, target = false },
{ name = "combat", interval = 2000, chance = 10, type = COMBAT_HEALING, effect = CONST_ME_YELLOWENERGY, target = false },
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ local mType = Game.createMonsterType("Golden Servant Replica")
local monster = {}

monster.description = "a golden servant replica"
monster.experience = 450
monster.experience = 1250
monster.outfit = {
lookType = 396,
lookHead = 0,
Expand Down Expand Up @@ -80,7 +80,7 @@ monster.voices = {
monster.loot = {
{ id = 3732, chance = 1450 }, -- green mushroom
{ id = 8775, chance = 940 }, -- gear wheel
{ id = 3031, chance = 85180, maxCount = 140 }, -- gold coin
{ id = 3031, chance = 85180, maxCount = 270 }, -- gold coin
{ id = 266, chance = 4930 }, -- health potion
{ id = 268, chance = 4950 }, -- mana potion
{ id = 3269, chance = 3030 }, -- halberd
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ local mType = Game.createMonsterType("Iron Servant Replica")
local monster = {}

monster.description = "an iron servant replica"
monster.experience = 210
monster.experience = 600
monster.outfit = {
lookType = 395,
lookHead = 0,
Expand Down Expand Up @@ -75,7 +75,7 @@ monster.voices = {

monster.loot = {
{ id = 8775, chance = 4840 }, -- gear wheel
{ id = 3031, chance = 82190, maxCount = 55 }, -- gold coin
{ id = 3031, chance = 82190, maxCount = 130 }, -- gold coin
{ id = 266, chance = 1980 }, -- health potion
{ id = 3269, chance = 1000 }, -- halberd
{ id = 12601, chance = 310 }, -- slime mould
Expand Down
2 changes: 1 addition & 1 deletion data-otservbr-global/monster/giants/orclops_doomhauler.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ local mType = Game.createMonsterType("Orclops Doomhauler")
local monster = {}

monster.description = "an orclops doomhauler"
monster.experience = 1200
monster.experience = 1450
monster.outfit = {
lookType = 934,
lookHead = 0,
Expand Down
2 changes: 1 addition & 1 deletion data-otservbr-global/monster/humanoids/broken_shaper.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ local mType = Game.createMonsterType("Broken Shaper")
local monster = {}

monster.description = "a broken shaper"
monster.experience = 1600
monster.experience = 1800
monster.outfit = {
lookType = 932,
lookHead = 94,
Expand Down
4 changes: 2 additions & 2 deletions data-otservbr-global/monster/humanoids/twisted_shaper.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ local mType = Game.createMonsterType("Twisted Shaper")
local monster = {}

monster.description = "a twisted shaper"
monster.experience = 1750
monster.experience = 2050
monster.outfit = {
lookType = 932,
lookHead = 105,
Expand Down Expand Up @@ -99,7 +99,7 @@ monster.attacks = {
{ name = "melee", interval = 2000, chance = 100, minDamage = 0, maxDamage = -200 },
{ name = "combat", interval = 2000, chance = 10, type = COMBAT_PHYSICALDAMAGE, minDamage = -50, maxDamage = -100, range = 7, shootEffect = CONST_ANI_ENERGY, effect = CONST_ME_ENERGYHIT, target = true },
{ name = "combat", interval = 2000, chance = 35, type = COMBAT_LIFEDRAIN, minDamage = 0, maxDamage = -100, length = 5, spread = 0, effect = CONST_ME_MAGIC_RED, target = false },
{ name = "combat", interval = 2000, chance = 10, type = COMBAT_MANADRAIN, minDamage = -50, maxDamage = -100, radius = 7, effect = CONST_ME_MAGIC_BLUE, target = false },
{ name = "combat", interval = 2000, chance = 8, type = COMBAT_MANADRAIN, minDamage = -50, maxDamage = -100, radius = 7, effect = CONST_ME_MAGIC_BLUE, target = false },
{ name = "speed", interval = 2000, chance = 9, speedChange = -440, effect = CONST_ME_GIANTICE, target = true, duration = 7000 },
}

Expand Down
2 changes: 1 addition & 1 deletion data-otservbr-global/monster/magicals/burning_book.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ local mType = Game.createMonsterType("Burning Book")
local monster = {}

monster.description = "a burning book"
monster.experience = 11934
monster.experience = 13200
monster.outfit = {
lookType = 1061,
lookHead = 79,
Expand Down
12 changes: 6 additions & 6 deletions data-otservbr-global/monster/magicals/feversleep.lua
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ monster.attacks = {
{ name = "melee", interval = 2000, chance = 100, minDamage = 0, maxDamage = -450 },
-- poison
{ name = "condition", type = CONDITION_POISON, interval = 2000, chance = 20, minDamage = -800, maxDamage = -1000, radius = 7, effect = CONST_ME_YELLOW_RINGS, target = false },
{ name = "combat", interval = 2000, chance = 10, type = COMBAT_MANADRAIN, minDamage = -70, maxDamage = -100, radius = 5, effect = CONST_ME_MAGIC_RED, target = false },
{ name = "feversleep skill reducer", interval = 2000, chance = 10, target = false },
-- { name = "combat", interval = 2000, chance = 10, type = COMBAT_MANADRAIN, minDamage = -70, maxDamage = -100, radius = 5, effect = CONST_ME_MAGIC_RED, target = false },
-- { name = "feversleep skill reducer", interval = 2000, chance = 10, target = false },
{ name = "combat", interval = 2000, chance = 10, type = COMBAT_LIFEDRAIN, minDamage = -250, maxDamage = -300, length = 6, spread = 0, effect = CONST_ME_YELLOWENERGY, target = true },
{ name = "combat", interval = 2000, chance = 15, type = COMBAT_DEATHDAMAGE, minDamage = -150, maxDamage = -300, radius = 1, shootEffect = CONST_ANI_SUDDENDEATH, effect = CONST_ME_MORTAREA, target = true },
}
Expand All @@ -105,19 +105,19 @@ monster.defenses = {
defense = 45,
armor = 73,
mitigation = 1.10,
{ name = "combat", interval = 2000, chance = 20, type = COMBAT_HEALING, minDamage = 250, maxDamage = 425, effect = CONST_ME_MAGIC_BLUE, target = false },
{ name = "invisible", interval = 2000, chance = 10, effect = CONST_ME_HITAREA },
{ name = "combat", interval = 2000, chance = 20, type = COMBAT_HEALING, minDamage = 225, maxDamage = 350, effect = CONST_ME_MAGIC_BLUE, target = false },
{ name = "invisible", interval = 2000, chance = 8, effect = CONST_ME_HITAREA },
}

monster.elements = {
{ type = COMBAT_PHYSICALDAMAGE, percent = 15 },
{ type = COMBAT_ENERGYDAMAGE, percent = 10 },
{ type = COMBAT_ENERGYDAMAGE, percent = -5 },
{ type = COMBAT_EARTHDAMAGE, percent = 100 },
{ type = COMBAT_FIREDAMAGE, percent = 35 },
{ type = COMBAT_LIFEDRAIN, percent = 0 },
{ type = COMBAT_MANADRAIN, percent = 0 },
{ type = COMBAT_DROWNDAMAGE, percent = 0 },
{ type = COMBAT_ICEDAMAGE, percent = 20 },
{ type = COMBAT_ICEDAMAGE, percent = 5 },
{ type = COMBAT_HOLYDAMAGE, percent = -10 },
{ type = COMBAT_DEATHDAMAGE, percent = 55 },
}
Expand Down
2 changes: 1 addition & 1 deletion data-otservbr-global/monster/magicals/forest_fury.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ local mType = Game.createMonsterType("Forest Fury")
local monster = {}

monster.description = "a forest fury"
monster.experience = 235
monster.experience = 330
monster.outfit = {
lookType = 569,
lookHead = 0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ local mType = Game.createMonsterType("Guardian of Tales")
local monster = {}

monster.description = "a guardian of tales"
monster.experience = 9204
monster.experience = 10600
monster.outfit = {
lookType = 1063,
lookHead = 92,
Expand Down
2 changes: 1 addition & 1 deletion data-otservbr-global/monster/magicals/rage_squid.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ local mType = Game.createMonsterType("Rage Squid")
local monster = {}

monster.description = "a rage squid"
monster.experience = 14820
monster.experience = 16300
monster.outfit = {
lookType = 1059,
lookHead = 94,
Expand Down
8 changes: 4 additions & 4 deletions data-otservbr-global/monster/magicals/shiversleep.lua
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,14 @@ monster.defenses = {

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

Expand Down
12 changes: 6 additions & 6 deletions data-otservbr-global/monster/magicals/terrorsleep.lua
Original file line number Diff line number Diff line change
Expand Up @@ -101,32 +101,32 @@ monster.loot = {
}

monster.attacks = {
{ name = "melee", interval = 2000, chance = 100, minDamage = 0, maxDamage = -450 },
{ name = "melee", interval = 2000, chance = 100, minDamage = 0, maxDamage = -400 },
-- poison
{ name = "condition", type = CONDITION_POISON, interval = 2000, chance = 20, minDamage = -1000, maxDamage = -1500, radius = 7, effect = CONST_ME_YELLOW_RINGS, target = false },
{ name = "combat", interval = 2000, chance = 10, type = COMBAT_MANADRAIN, minDamage = -100, maxDamage = -300, radius = 5, effect = CONST_ME_MAGIC_RED, target = false },
{ name = "feversleep skill reducer", interval = 2000, chance = 10, target = false },
{ name = "feversleep skill reducer", interval = 2000, chance = 7, target = false },
{ name = "combat", interval = 2000, chance = 10, type = COMBAT_LIFEDRAIN, minDamage = -350, maxDamage = -500, length = 6, spread = 0, effect = CONST_ME_YELLOWENERGY, target = true },
{ name = "combat", interval = 2000, chance = 20, type = COMBAT_DEATHDAMAGE, minDamage = -200, maxDamage = -450, radius = 1, shootEffect = CONST_ANI_SUDDENDEATH, effect = CONST_ME_MORTAREA, target = true },
}

monster.defenses = {
defense = 50,
armor = 50,
{ name = "combat", interval = 2000, chance = 15, type = COMBAT_HEALING, minDamage = 350, maxDamage = 600, effect = CONST_ME_MAGIC_BLUE, target = false },
{ name = "invisible", interval = 2000, chance = 15, effect = CONST_ME_HITAREA },
{ name = "combat", interval = 2000, chance = 15, type = COMBAT_HEALING, minDamage = 300, maxDamage = 500, effect = CONST_ME_MAGIC_BLUE, target = false },
-- { name = "invisible", interval = 2000, chance = 15, effect = CONST_ME_HITAREA },
{ name = "speed", interval = 2000, chance = 15, speedChange = 300, effect = CONST_ME_MAGIC_RED, target = false, duration = 5000 },
}

monster.elements = {
{ type = COMBAT_PHYSICALDAMAGE, percent = 15 },
{ type = COMBAT_ENERGYDAMAGE, percent = 10 },
{ type = COMBAT_ENERGYDAMAGE, percent = -5 },
{ type = COMBAT_EARTHDAMAGE, percent = 100 },
{ type = COMBAT_FIREDAMAGE, percent = 35 },
{ type = COMBAT_LIFEDRAIN, percent = 0 },
{ type = COMBAT_MANADRAIN, percent = 0 },
{ type = COMBAT_DROWNDAMAGE, percent = 0 },
{ type = COMBAT_ICEDAMAGE, percent = 20 },
{ type = COMBAT_ICEDAMAGE, percent = 5 },
{ type = COMBAT_HOLYDAMAGE, percent = -10 },
{ type = COMBAT_DEATHDAMAGE, percent = 55 },
}
Expand Down
7 changes: 4 additions & 3 deletions data-otservbr-global/monster/mammals/exotic_bat.lua
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,15 @@ monster.loot = {
}

monster.attacks = {
{ name = "melee", interval = 2000, chance = 100, minDamage = 0, maxDamage = -100 },
{ name = "combat", interval = 2000, chance = 15, type = COMBAT_EARTHDAMAGE, minDamage = -80, maxDamage = -150, length = 5, spread = 2, effect = CONST_ME_GREEN_RINGS, target = false },
{ name = "combat", interval = 2000, chance = 10, type = COMBAT_PHYSICALDAMAGE, minDamage = -60, maxDamage = -150, range = 7, radius = 3, effect = CONST_ME_YELLOW_RINGS, target = true },
{ name = "melee", interval = 2000, chance = 100, minDamage = -10, maxDamage = -130 },
{ name = "combat", interval = 2000, chance = 15, type = COMBAT_EARTHDAMAGE, minDamage = -90, maxDamage = -170, length = 5, spread = 2, effect = CONST_ME_GREEN_RINGS, target = false },
{ name = "combat", interval = 2000, chance = 10, type = COMBAT_PHYSICALDAMAGE, minDamage = -70, maxDamage = -170, range = 7, radius = 3, effect = CONST_ME_YELLOW_RINGS, target = true },
}

monster.defenses = {
defense = 40,
armor = 40,
mitigation = 1.18,
}

monster.elements = {
Expand Down
2 changes: 1 addition & 1 deletion data-otservbr-global/monster/plants/wilting_leaf_golem.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ local mType = Game.createMonsterType("Wilting Leaf Golem")
local monster = {}

monster.description = "a wilting leaf golem"
monster.experience = 145
monster.experience = 225
monster.outfit = {
lookType = 573,
lookHead = 0,
Expand Down
Loading