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

fix: review quests version 11 #3049

Merged
merged 80 commits into from
Nov 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
80 commits
Select commit Hold shift + click to select a range
f05de75
Fix: ferumbras Ascendant Quest - review 10
htc16 Oct 3, 2024
e001b9a
More Fix: ferumbras Ascendant Quest - review 10
htc16 Oct 3, 2024
616b1bb
Fix: mission 02 of The Djinn War Quest, Efreet Faction (Green Djinns)…
htc16 Oct 3, 2024
a07880a
Fix: Barbarian Test - review 8
htc16 Oct 3, 2024
e07171b
Festive Outfits Quest and The First Dragon Quest
htc16 Oct 3, 2024
1681bbf
Lua code format - (Stylua)
github-actions[bot] Oct 3, 2024
0460de4
More Fix: ferumbras Ascendant Quest - review 10
htc16 Oct 4, 2024
977f8b5
Fix Bosslever system
htc16 Oct 5, 2024
a1be8af
Lua code format - (Stylua)
github-actions[bot] Oct 5, 2024
77eec06
More Fix: ferumbras Ascendant Quest - review 10
htc16 Oct 5, 2024
57b250d
Lua code format - (Stylua)
github-actions[bot] Oct 5, 2024
7e83fd9
Forgotten Knowledge Quest
htc16 Oct 7, 2024
773e292
Lua code format - (Stylua)
github-actions[bot] Oct 7, 2024
9b9685e
Cults of Tibia Quest
htc16 Oct 10, 2024
527fe6a
Lua code format - (Stylua)
github-actions[bot] Oct 10, 2024
6eae658
Update storages.lua
htc16 Oct 10, 2024
2ba6751
Threatened Dreams Quest
htc16 Oct 10, 2024
aaeaca5
Dangerous Depths Quest
htc16 Oct 13, 2024
4c4a08f
Lua code format - (Stylua)
github-actions[bot] Oct 13, 2024
affa57e
Makeshift Warrior Outfits Quest
htc16 Oct 13, 2024
c3e111b
Update storages.lua
htc16 Oct 13, 2024
6a2c399
Merge branch 'main' into Review-Quests-V12
murilo09 Oct 14, 2024
92c0fa2
The Secret Library Quest - part 1
htc16 Oct 14, 2024
27842ab
Lua code format - (Stylua)
github-actions[bot] Oct 14, 2024
a20769a
more
htc16 Oct 15, 2024
fdaad86
The Secret Library Quest - part 1
htc16 Oct 15, 2024
9da503a
Merge branch 'Review-Quests-V12' of https://github.com/htc16/canary i…
htc16 Oct 15, 2024
de8bd5f
The Secret Library Quest - more
htc16 Oct 15, 2024
1be924d
Lua code format - (Stylua)
github-actions[bot] Oct 15, 2024
0e08c51
The Secret Library Quest - more
htc16 Oct 16, 2024
2cd367c
Lua code format - (Stylua)
github-actions[bot] Oct 16, 2024
48c4de2
The Secret Library Quest - more
htc16 Oct 16, 2024
ed9add2
Lua code format - (Stylua)
github-actions[bot] Oct 16, 2024
ec0ec38
The Secret Library Quest - more
htc16 Oct 16, 2024
30de131
The Secret Library - quest log
htc16 Oct 16, 2024
f2e6d49
Lua code format - (Stylua)
github-actions[bot] Oct 16, 2024
ffa8595
Update quests.lua
htc16 Oct 16, 2024
a8221f5
Update quests.lua
htc16 Oct 16, 2024
603f55b
@omarcopires
htc16 Oct 16, 2024
09be97f
Merge branch 'main' into Review-Quests-V12
majestyotbr Oct 16, 2024
b1ff27a
The Secret Library Quest - Liquid Death
htc16 Oct 16, 2024
e7a633d
Lua code format - (Stylua)
github-actions[bot] Oct 16, 2024
381d00f
The Secret Library Quest - Bursting at the Seams
htc16 Oct 17, 2024
34f0411
Lua code format - (Stylua)
github-actions[bot] Oct 17, 2024
21e6adc
The Secret Library Quest - The Lament
htc16 Oct 19, 2024
1db20ba
Lua code format - (Stylua)
github-actions[bot] Oct 19, 2024
e3b5496
The Secret Library Quest - The Order of the Falcon
htc16 Oct 22, 2024
e8db3b3
Lua code format - (Stylua)
github-actions[bot] Oct 22, 2024
e2a842c
The Secret Library Quest - The Path of Defiances
htc16 Oct 22, 2024
cd8a1c8
Lua code format - (Stylua)
github-actions[bot] Oct 22, 2024
f3fa6ef
The Secret Library Quest - High and Dry
htc16 Oct 22, 2024
152c02e
Lua code format - (Stylua)
github-actions[bot] Oct 22, 2024
1e174c0
The Secret Library Quest - The Veiled Hoard of Zathroth
htc16 Oct 22, 2024
bb5ccba
Lua code format - (Stylua)
github-actions[bot] Oct 22, 2024
a9c2c82
The Secret Library Quest - The Secret Library: Bosses - 1º Part
htc16 Oct 22, 2024
7ebef3b
Merge branch 'Review-Quests-V12' of https://github.com/htc16/canary i…
htc16 Oct 22, 2024
9af8d53
The Secret Library Quest - Addons and more
htc16 Oct 22, 2024
d5859ee
Merge branch 'main' into Review-Quests-V12
murilo09 Oct 22, 2024
8d842dd
Update door_quest.lua
htc16 Oct 23, 2024
4b57c4e
Ferumbras Ascension - Levers
htc16 Oct 23, 2024
e116471
Lua code format - (Stylua)
github-actions[bot] Oct 23, 2024
6955154
Update actions_zamulosh.lua
htc16 Oct 23, 2024
e7115dd
Merge branch 'Review-Quests-V12' of https://github.com/htc16/canary i…
htc16 Oct 23, 2024
64ff86d
Ferumbras Ascension - Levers - final
htc16 Oct 23, 2024
2e48c05
Update actions_ragiaz.lua
htc16 Oct 23, 2024
c432996
Lua code format - (Stylua)
github-actions[bot] Oct 23, 2024
d7d1e7c
Update actions_razzagorn.lua
htc16 Oct 23, 2024
ccc3c49
Lua code format - (Stylua)
github-actions[bot] Oct 23, 2024
7621cac
Forgotten Knowledge Quest - new levers
htc16 Oct 23, 2024
421107e
Lua code format - (Stylua)
github-actions[bot] Oct 23, 2024
d3e27a9
Update actions_the_time_guardian.lua
htc16 Oct 23, 2024
7b0f3c4
Update actions_frozen_horror.lua
htc16 Oct 23, 2024
66d23b5
Merge branch 'main' into Review-Quests-V12
murilo09 Oct 29, 2024
f23bfef
updated the levers to bossLever and fixed some conflicts
Glatharth Oct 30, 2024
342c5a4
Lua code format - (Stylua)
github-actions[bot] Oct 30, 2024
bf9b85c
Merge remote-tracking branch 'origin/main' into Review-Quests-V12
Glatharth Nov 1, 2024
4c7c51e
minor fix
Glatharth Nov 1, 2024
1adfef1
merge
Glatharth Nov 1, 2024
c1b635b
Lua code format - (Stylua)
github-actions[bot] Nov 1, 2024
8c90ab8
Merge branch 'main' into Review-Quests-V12
Glatharth Nov 8, 2024
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
23 changes: 0 additions & 23 deletions data-otservbr-global/scripts/actions/bosses_levers/brokul.lua

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,91 +1,69 @@
local crystals = {
[1] = { crystalPosition = Position(33390, 31468, 14), globalStorage = Storage.Quest.U10_90.FerumbrasAscension.Crystals.Crystal1 },
[2] = { crystalPosition = Position(33394, 31468, 14), globalStorage = Storage.Quest.U10_90.FerumbrasAscension.Crystals.Crystal2 },
[3] = { crystalPosition = Position(33397, 31471, 14), globalStorage = Storage.Quest.U10_90.FerumbrasAscension.Crystals.Crystal3 },
[4] = { crystalPosition = Position(33397, 31475, 14), globalStorage = Storage.Quest.U10_90.FerumbrasAscension.Crystals.Crystal4 },
[5] = { crystalPosition = Position(33394, 31478, 14), globalStorage = Storage.Quest.U10_90.FerumbrasAscension.Crystals.Crystal5 },
[6] = { crystalPosition = Position(33390, 31478, 14), globalStorage = Storage.Quest.U10_90.FerumbrasAscension.Crystals.Crystal6 },
[7] = { crystalPosition = Position(33387, 31475, 14), globalStorage = Storage.Quest.U10_90.FerumbrasAscension.Crystals.Crystal7 },
[8] = { crystalPosition = Position(33387, 31471, 14), globalStorage = Storage.Quest.U10_90.FerumbrasAscension.Crystals.Crystal8 },
}

local config = {
centerRoom = Position(33392, 31473, 14),
BossPosition = Position(33392, 31473, 14),
boss = {
name = "Ascending Ferumbras",
position = Position(33392, 31473, 14),
},
timeToFightAgain = 60 * 60 * 20 * 24,
playerPositions = {
Position(33269, 31477, 14),
Position(33269, 31478, 14),
Position(33269, 31479, 14),
Position(33269, 31480, 14),
Position(33269, 31481, 14),
Position(33270, 31477, 14),
Position(33270, 31478, 14),
Position(33270, 31479, 14),
Position(33270, 31480, 14),
Position(33270, 31481, 14),
Position(33271, 31477, 14),
Position(33271, 31478, 14),
Position(33271, 31479, 14),
Position(33271, 31480, 14),
Position(33271, 31481, 14),
{ pos = Position(33270, 31477, 14), teleport = Position(33392, 31479, 14) },
{ pos = Position(33269, 31477, 14), teleport = Position(33392, 31479, 14) },
{ pos = Position(33269, 31478, 14), teleport = Position(33392, 31479, 14) },
{ pos = Position(33269, 31479, 14), teleport = Position(33392, 31479, 14) },
{ pos = Position(33269, 31480, 14), teleport = Position(33392, 31479, 14) },
{ pos = Position(33269, 31481, 14), teleport = Position(33392, 31479, 14) },
{ pos = Position(33270, 31478, 14), teleport = Position(33392, 31479, 14) },
{ pos = Position(33270, 31479, 14), teleport = Position(33392, 31479, 14) },
{ pos = Position(33270, 31480, 14), teleport = Position(33392, 31479, 14) },
{ pos = Position(33270, 31481, 14), teleport = Position(33392, 31479, 14) },
{ pos = Position(33271, 31477, 14), teleport = Position(33392, 31479, 14) },
{ pos = Position(33271, 31478, 14), teleport = Position(33392, 31479, 14) },
{ pos = Position(33271, 31479, 14), teleport = Position(33392, 31479, 14) },
{ pos = Position(33271, 31480, 14), teleport = Position(33392, 31479, 14) },
{ pos = Position(33271, 31481, 14), teleport = Position(33392, 31479, 14) },
},
newPosition = Position(33392, 31479, 14),
}

local leverFerumbras = Action()

function leverFerumbras.onUse(player, item, fromPosition, target, toPosition, isHotkey)
local playersTable = {}
if item.itemid == 8911 then
if player:getPosition() ~= Position(33270, 31477, 14) then
item:transform(8912)
return true
end
end
if item.itemid == 8911 then
if player:doCheckBossRoom("Ascending Ferumbras", Position(33379, 31460, 14), Position(33405, 31485, 14)) then
Game.createMonster("Ascending Ferumbras", config.BossPosition, true, true)
for b = 1, 10 do
local xrand = math.random(-10, 10)
local yrand = math.random(-10, 10)
local position = Position(33392 + xrand, 31473 + yrand, 14)
if Game.createMonster("rift invader", position) then
end
end
for x = 33269, 33271 do
for y = 31477, 31481 do
local playerTile = Tile(Position(x, y, 14)):getTopCreature()
if playerTile and playerTile:isPlayer() then
playerTile:getPosition():sendMagicEffect(CONST_ME_POFF)
playerTile:teleportTo(config.newPosition)
playerTile:getPosition():sendMagicEffect(CONST_ME_TELEPORT)
playerTile:setStorageValue(Storage.Quest.U10_90.FerumbrasAscension.FerumbrasTimer, os.time() + 60 * 60 * 20 * 24)
table.insert(playersTable, playerTile:getId())
end
end
end
Game.setStorageValue(Storage.Quest.U10_90.FerumbrasAscension.Crystals.AllCrystals, 0)
Game.setStorageValue(Storage.Quest.U10_90.FerumbrasAscension.FerumbrasEssence, 0)
for _, crystal in pairs(crystals) do
local pos = crystal.crystalPosition
local stg = crystal.globalStorage
local sqm = Tile(pos)
if sqm then
local item = sqm:getItemById(14961)
if item then
item:transform(14955)
end
specPos = {
from = Position(33379, 31460, 14),
to = Position(33405, 31485, 14),
},
exit = Position(33319, 32318, 13),
monsters = {
{ name = "rift invader", pos = Position(33385, 31466, 14) },
{ name = "rift invader", pos = Position(33396, 31466, 14) },
{ name = "rift invader", pos = Position(33392, 31480, 14) },
{ name = "rift invader", pos = Position(33392, 31468, 14) },
{ name = "rift invader", pos = Position(33385, 31473, 14) },
{ name = "rift invader", pos = Position(33398, 31478, 14) },
{ name = "rift invader", pos = Position(33384, 31478, 14) },
{ name = "rift invader", pos = Position(33390, 31463, 14) },
{ name = "rift invader", pos = Position(33400, 31473, 14) },
{ name = "rift invader", pos = Position(33400, 31465, 14) },
},
onUseExtra = function(player)
local crystals = {
[1] = { crystalPosition = Position(33390, 31468, 14), globalStorage = Storage.Quest.U10_90.FerumbrasAscension.Crystals.Crystal1 },
[2] = { crystalPosition = Position(33394, 31468, 14), globalStorage = Storage.Quest.U10_90.FerumbrasAscension.Crystals.Crystal2 },
[3] = { crystalPosition = Position(33397, 31471, 14), globalStorage = Storage.Quest.U10_90.FerumbrasAscension.Crystals.Crystal3 },
[4] = { crystalPosition = Position(33397, 31475, 14), globalStorage = Storage.Quest.U10_90.FerumbrasAscension.Crystals.Crystal4 },
[5] = { crystalPosition = Position(33394, 31478, 14), globalStorage = Storage.Quest.U10_90.FerumbrasAscension.Crystals.Crystal5 },
[6] = { crystalPosition = Position(33390, 31478, 14), globalStorage = Storage.Quest.U10_90.FerumbrasAscension.Crystals.Crystal6 },
[7] = { crystalPosition = Position(33387, 31475, 14), globalStorage = Storage.Quest.U10_90.FerumbrasAscension.Crystals.Crystal7 },
[8] = { crystalPosition = Position(33387, 31471, 14), globalStorage = Storage.Quest.U10_90.FerumbrasAscension.Crystals.Crystal8 },
}
Game.setStorageValue(Storage.Quest.U10_90.FerumbrasAscension.Crystals.AllCrystals, 0)
Game.setStorageValue(Storage.Quest.U10_90.FerumbrasAscension.FerumbrasEssence, 0)
for _, crystal in pairs(crystals) do
local tile = Tile(crystal.crystalPosition)
if tile then
local item = tile:getItemById(14961)
if item then
item:transform(14955)
end
Game.setStorageValue(stg, 0)
end
addEvent(kickPlayersAfterTime, 30 * 60 * 1000, playersTable, Position(33379, 31460, 14), Position(33405, 31485, 14), Position(33319, 32318, 13))
item:transform(8912)
Game.setStorageValue(crystal.globalStorage, 0)
end
elseif item.itemid == 8912 then
item:transform(8911)
end
return true
end
end,
}

leverFerumbras:uid(1021)
local leverFerumbras = BossLever(config)
leverFerumbras:position(Position(33270, 31476, 14))
leverFerumbras:register()
Original file line number Diff line number Diff line change
@@ -1,57 +1,23 @@
local config = {
centerRoom = Position(33215, 31456, 12),
BossPosition = Position(33220, 31460, 12),
boss = {
name = "The Lord of the Lice",
position = Position(33220, 31460, 12),
},
timeToFightAgain = 2 * 24 * 60 * 60,
playerPositions = {
Position(33197, 31475, 11),
Position(33198, 31475, 11),
Position(33199, 31475, 11),
Position(33200, 31475, 11),
Position(33201, 31475, 11),
{ pos = Position(33201, 31475, 11), teleport = Position(33215, 31470, 12) },
{ pos = Position(33197, 31475, 11), teleport = Position(33215, 31470, 12) },
{ pos = Position(33198, 31475, 11), teleport = Position(33215, 31470, 12) },
{ pos = Position(33199, 31475, 11), teleport = Position(33215, 31470, 12) },
{ pos = Position(33200, 31475, 11), teleport = Position(33215, 31470, 12) },
},
specPos = {
from = Position(33187, 31429, 12),
to = Position(33242, 31487, 12),
},
newPosition = Position(33215, 31470, 12),
exit = Position(33319, 32318, 13),
}

local ferumbrasAscendantRatLever = Action()

function ferumbrasAscendantRatLever.onUse(player, item, fromPosition, target, toPosition, isHotkey)
if item.itemid == 8911 then
if player:getPosition() ~= Position(33201, 31475, 11) then
item:transform(8912)
return true
end
end

if item.itemid == 8911 then
local playersTable = {}
if player:doCheckBossRoom("The Lord of the Lice", Position(33187, 31429, 12), Position(33242, 31487, 12)) then
local specs, spec = Game.getSpectators(config.centerRoom, false, false, 30, 30, 30, 30)
for i = 1, #specs do
spec = specs[i]
if spec:isPlayer() then
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Someone is fighting with The Lord of The Lice.")
return true
end
end
Game.createMonster("the lord of the lice", config.BossPosition, true, true)
for x = 33197, 33201 do
local playerTile = Tile(Position(x, 31475, 11)):getTopCreature()
if playerTile and playerTile:isPlayer() then
playerTile:getPosition():sendMagicEffect(CONST_ME_POFF)
playerTile:teleportTo(config.newPosition)
playerTile:getPosition():sendMagicEffect(CONST_ME_TELEPORT)
playerTile:setStorageValue(Storage.Quest.U10_90.FerumbrasAscension.TheLordOfTheLiceTimer, os.time() + 60 * 60 * 2 * 24)
table.insert(playersTable, playerTile:getId())
end
end
addEvent(kickPlayersAfterTime, 30 * 60 * 1000, playersTable, Position(33187, 31429, 12), Position(33242, 31487, 12), Position(33319, 32318, 13))
item:transform(8912)
end
elseif item.itemid == 8912 then
item:transform(8911)
end

return true
end

ferumbrasAscendantRatLever:uid(1030)
ferumbrasAscendantRatLever:register()
local leverLordOfTheLice = BossLever(config)
leverLordOfTheLice:position(Position(33202, 31475, 11))
leverLordOfTheLice:register()
Original file line number Diff line number Diff line change
@@ -1,56 +1,23 @@
local config = {
centerRoom = Position(33406, 32418, 14),
BossPosition = Position(33406, 32418, 14),
boss = {
name = "The Shatterer",
position = Position(33406, 32418, 14),
},
timeToFightAgain = 2 * 24 * 60 * 60,
playerPositions = {
Position(33403, 32465, 13),
Position(33404, 32465, 13),
Position(33405, 32465, 13),
Position(33406, 32465, 13),
Position(33407, 32465, 13),
{ pos = Position(33403, 32465, 13), teleport = Position(33398, 32414, 14) },
{ pos = Position(33404, 32465, 13), teleport = Position(33398, 32414, 14) },
{ pos = Position(33405, 32465, 13), teleport = Position(33398, 32414, 14) },
{ pos = Position(33406, 32465, 13), teleport = Position(33398, 32414, 14) },
{ pos = Position(33407, 32465, 13), teleport = Position(33398, 32414, 14) },
},
specPos = {
from = Position(33377, 32390, 14),
to = Position(33446, 32447, 14),
},
newPosition = Position(33398, 32414, 14),
exit = Position(33319, 32318, 13),
}

local ferumbrasAscendantTheShattererLever = Action()

function ferumbrasAscendantTheShattererLever.onUse(player, item, fromPosition, target, toPosition, isHotkey)
if item.itemid == 8912 then
if player:getPosition() ~= Position(33403, 32465, 13) then
item:transform(8911)
return true
end
end
if item.itemid == 8912 then
local playersTable = {}
if player:doCheckBossRoom("The Shatterer", Position(33377, 32390, 14), Position(33446, 32447, 14)) then
local specs, spec = Game.getSpectators(config.centerRoom, false, false, 30, 30, 30, 30)
for i = 1, #specs do
spec = specs[i]
if spec:isPlayer() then
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Someone is fighting with The Shatterer.")
return true
end
end
Game.createMonster("The Shatterer", config.BossPosition, true, true)
for x = 33403, 33407 do
local playerTile = Tile(Position(x, 32465, 13)):getTopCreature()
if playerTile and playerTile:isPlayer() then
playerTile:getPosition():sendMagicEffect(CONST_ME_POFF)
playerTile:teleportTo(config.newPosition)
playerTile:getPosition():sendMagicEffect(CONST_ME_TELEPORT)
playerTile:setStorageValue(Storage.Quest.U10_90.FerumbrasAscension.TheShattererTimer, os.time() + 60 * 60 * 2 * 24)
table.insert(playersTable, playerTile:getId())
end
end
addEvent(kickPlayersAfterTime, 30 * 60 * 1000, playersTable, Position(33377, 32390, 14), Position(33446, 32447, 14), Position(33319, 32318, 13))
item:transform(8911)
end
elseif item.itemid == 8911 then
item:transform(8912)
end

return true
end

ferumbrasAscendantTheShattererLever:uid(1029)
ferumbrasAscendantTheShattererLever:register()
local leverShatterer = BossLever(config)
leverShatterer:position(Position(33402, 32465, 13))
leverShatterer:register()
Loading
Loading