forked from opentibiabr/canary
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7ceabb7
commit a6e9f2e
Showing
21 changed files
with
3,201 additions
and
333 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
61 changes: 38 additions & 23 deletions
61
data-otservbr-global/scripts/actions/tools/luminescent_crystal_ pickaxe.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
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
26 changes: 0 additions & 26 deletions
26
data-otservbr-global/scripts/movements/teleport/dragolisk_teleport.lua
This file was deleted.
Oops, something went wrong.
30 changes: 30 additions & 0 deletions
30
data-otservbr-global/scripts/quests/20_years_a_cook_quest/movevent_breeding_ground.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 entrances = { | ||
{ position = Position(33187, 31190, 7), destination = Position(33217, 31124, 14) }, --entrance | ||
{ position = Position(33217, 31124, 14), destination = Position(33185, 31191, 7) }, -- exit | ||
} | ||
|
||
local teleportEvent = MoveEvent() | ||
|
||
function teleportEvent.onStepIn(creature, item, position, fromPosition) | ||
local player = creature:getPlayer() | ||
if not player then | ||
return false | ||
end | ||
|
||
for _, entrance in pairs(entrances) do | ||
if entrance.position == position then | ||
player:teleportTo(entrance.destination) | ||
-- position:sendMagicEffect(CONST_ME_WATERSPLASH) | ||
-- entrance.destination:sendMagicEffect(CONST_ME_WATERSPLASH) | ||
break | ||
end | ||
end | ||
|
||
return true | ||
end | ||
|
||
teleportEvent:type("stepin") | ||
for _, entrance in pairs(entrances) do | ||
teleportEvent:position(entrance.position) | ||
end | ||
teleportEvent:register() |
30 changes: 30 additions & 0 deletions
30
data-otservbr-global/scripts/quests/20_years_a_cook_quest/movevent_bulltaur_lair.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 entrances = { | ||
{ position = Position(32799, 32365, 8), destination = Position(32872, 32374, 8) }, --to bulltaur lair | ||
{ position = Position(32875, 32376, 8), destination = Position(32800, 32367, 8) }, -- exit bulltaur lair | ||
} | ||
|
||
local teleportEvent = MoveEvent() | ||
|
||
function teleportEvent.onStepIn(creature, item, position, fromPosition) | ||
local player = creature:getPlayer() | ||
if not player then | ||
return false | ||
end | ||
|
||
for _, entrance in pairs(entrances) do | ||
if entrance.position == position then | ||
player:teleportTo(entrance.destination) | ||
-- position:sendMagicEffect(CONST_ME_WATERSPLASH) | ||
-- entrance.destination:sendMagicEffect(CONST_ME_WATERSPLASH) | ||
break | ||
end | ||
end | ||
|
||
return true | ||
end | ||
|
||
teleportEvent:type("stepin") | ||
for _, entrance in pairs(entrances) do | ||
teleportEvent:position(entrance.position) | ||
end | ||
teleportEvent:register() |
7 changes: 7 additions & 0 deletions
7
data-otservbr-global/scripts/quests/adventures_of_galthen/actions_iksupan_entrance.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
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
23 changes: 23 additions & 0 deletions
23
data-otservbr-global/scripts/quests/podzilla_quest/action_rootkraken_lever.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 config = { | ||
boss = { | ||
name = "The Rootkraken", | ||
position = Position(32623, 32950, 15), | ||
}, | ||
requiredLevel = 500, | ||
playerPositions = { | ||
{ pos = Position(32618, 32909, 14), teleport = Position(32618, 32941, 15) }, | ||
{ pos = Position(32618, 32910, 14), teleport = Position(32618, 32941, 15) }, | ||
{ pos = Position(32618, 32911, 14), teleport = Position(32618, 32941, 15) }, | ||
{ pos = Position(32618, 32912, 14), teleport = Position(32618, 32941, 15) }, | ||
{ pos = Position(32618, 32913, 14), teleport = Position(32618, 32941, 15) }, | ||
}, | ||
specPos = { | ||
from = Position(32605, 32929, 15), | ||
to = Position(32642, 32967, 15), | ||
}, | ||
exit = Position(33852, 31983, 11), | ||
} | ||
|
||
lever = BossLever(config) | ||
lever:position(Position(32618, 32908, 15)) | ||
lever: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
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
24 changes: 0 additions & 24 deletions
24
data-otservbr-global/scripts/quests/primal_ordeal_quest/the_primal_manace.lua
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.