forked from opentibiabr/canary
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into Tibia-Quests-Review-7.26-to-7.92
- Loading branch information
Showing
20 changed files
with
177 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
37 changes: 37 additions & 0 deletions
37
data-otservbr-global/scripts/quests/the_paradox_tower/move_let_the _quest.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
local teleportTileBack = MoveEvent() | ||
|
||
function teleportTileBack.onStepIn(creature, item, position, fromPosition) | ||
local player = creature:getPlayer() | ||
if not player then | ||
return true | ||
end | ||
|
||
-- UIDs específicos do tile | ||
local specificUIDs = { 25034, 25035, 25036, 25037 } | ||
|
||
-- Posições específicas | ||
local specificPositions = { | ||
{ x = 32486, y = 31927, z = 7 }, | ||
{ x = 32487, y = 31927, z = 7 }, | ||
{ x = 32486, y = 31928, z = 7 }, | ||
{ x = 32487, y = 31928, z = 7 }, | ||
} | ||
|
||
-- Posição de teletransporte | ||
local teleportPosition = { x = 32566, y = 31959, z = 1 } | ||
|
||
-- Verifica se a posição, o UID e o itemID coincidem | ||
for _, pos in ipairs(specificPositions) do | ||
if position.x == pos.x and position.y == pos.y and position.z == pos.z and item:getId() == 599 and table.contains(specificUIDs, item.uid) then | ||
player:teleportTo(teleportPosition) | ||
player:getPosition():sendMagicEffect(CONST_ME_TELEPORT) | ||
break | ||
end | ||
end | ||
|
||
return true | ||
end | ||
|
||
-- Registra o evento para os UIDs específicos | ||
teleportTileBack:uid(25034, 25035, 25036, 25037) | ||
teleportTileBack:register() |
32 changes: 0 additions & 32 deletions
32
data-otservbr-global/scripts/quests/the_paradox_tower/movement-poison.lua
This file was deleted.
Oops, something went wrong.
42 changes: 0 additions & 42 deletions
42
data-otservbr-global/scripts/quests/the_paradox_tower/movement-sacrifice_skulls.lua
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
41 changes: 41 additions & 0 deletions
41
data-otservbr-global/scripts/quests/the_paradox_tower/movement_sacrifice_skulls.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
local positions = { | ||
{ x = 32563, y = 31957, z = 1 }, | ||
{ x = 32565, y = 31957, z = 1 }, | ||
{ x = 32567, y = 31957, z = 1 }, | ||
{ x = 32569, y = 31957, z = 1 }, | ||
} | ||
|
||
local sacrificeSkulls = MoveEvent() | ||
|
||
function sacrificeSkulls.onStepIn(creature, item, position, fromPosition) | ||
local player = creature:getPlayer() | ||
if not player then | ||
return true | ||
end | ||
|
||
for i = 1, #positions do | ||
local tile = Tile(positions[i]) | ||
if not tile or not tile:getItemById(3114) then | ||
return true | ||
end | ||
end | ||
|
||
if player:getStorageValue(FirstParadoxAcess) < 1 then | ||
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "One of the toxic salt seas in Krailos carries fresh and clean water again. The ogres' water supply is ensured for now") | ||
player:setStorageValue(FirstParadoxAcess, 1) | ||
end | ||
|
||
for i = 1, #positions do | ||
local skull = Tile(positions[i]):getItemById(3114) | ||
if skull then | ||
Game.createItem(105, 1, positions[i]) | ||
skull:remove(1) | ||
end | ||
end | ||
|
||
player:teleportTo({ x = 32479, y = 31923, z = 7 }) | ||
return true | ||
end | ||
|
||
sacrificeSkulls:uid(25012) | ||
sacrificeSkulls:register() |
30 changes: 30 additions & 0 deletions
30
...r-global/scripts/quests/the_paradox_tower/movement_strange_carvings_in _the_southeast.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
local teleportTile = MoveEvent() | ||
|
||
function teleportTile.onStepIn(creature, item, position, fromPosition) | ||
local player = creature:getPlayer() | ||
if not player then | ||
return true | ||
end | ||
|
||
local specificUIDs = { 25031, 25032 } | ||
|
||
local specificPositions = { | ||
{ x = 32477, y = 31905, z = 7 }, | ||
{ x = 32476, y = 31906, z = 7 }, | ||
} | ||
|
||
local teleportPosition = { x = 32478, y = 31908, z = 7 } | ||
|
||
for _, pos in ipairs(specificPositions) do | ||
if position.x == pos.x and position.y == pos.y and position.z == pos.z and item:getId() == 599 and table.contains(specificUIDs, item.uid) then | ||
player:teleportTo(teleportPosition) | ||
player:getPosition():sendMagicEffect(CONST_ME_TELEPORT) | ||
break | ||
end | ||
end | ||
|
||
return true | ||
end | ||
|
||
teleportTile:uid(25031, 25032) | ||
teleportTile:register() |
File renamed without changes.
23 changes: 23 additions & 0 deletions
23
data-otservbr-global/scripts/quests/the_paradox_tower/trap_in_the_tree.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
local trap_in_the_tree = MoveEvent() | ||
|
||
local trapPositions = { | ||
{ x = 32497, y = 31889, z = 07 }, | ||
{ x = 32499, y = 31890, z = 07 }, | ||
{ x = 32497, y = 31890, z = 07 }, | ||
{ x = 32498, y = 31890, z = 07 }, | ||
{ x = 32496, y = 31890, z = 07 }, | ||
{ x = 32494, y = 31888, z = 07 }, | ||
{ x = 32502, y = 31890, z = 07 }, | ||
} | ||
|
||
function trap_in_the_tree.onStepIn(creature, item, toPosition, fromPosition) | ||
if creature:isPlayer() and Tile({ x = 32502, y = 31890, z = 07 }):getThingCount() == 2 then | ||
doTargetCombatHealth(0, creature, COMBAT_EARTHDAMAGE, -200, -200) | ||
for _, pos in ipairs(trapPositions) do | ||
Game.createItem(2121, 1, pos) | ||
end | ||
end | ||
end | ||
|
||
trap_in_the_tree:uid(25011) | ||
trap_in_the_tree:register() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters