mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-10-18 08:13:27 +02:00
99% poi quest done. Missing bureaucrats npcs, maybe some exit tps and quest log
This commit is contained in:
30
data/actions/scripts/pits_of_inferno/bazirMirror.lua
Normal file
30
data/actions/scripts/pits_of_inferno/bazirMirror.lua
Normal file
@@ -0,0 +1,30 @@
|
||||
local config = {
|
||||
[39511] = {
|
||||
fromPosition = Position(32739, 32392, 14),
|
||||
toPosition = Position(32739, 32391, 14)
|
||||
},
|
||||
[39512] = {
|
||||
teleportPlayer = true,
|
||||
fromPosition = Position(32739, 32391, 14),
|
||||
toPosition = Position(32739, 32392, 14)
|
||||
}
|
||||
}
|
||||
|
||||
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
|
||||
local useItem = config[item:getActionId()]
|
||||
if not useItem then
|
||||
return true
|
||||
end
|
||||
|
||||
if useItem.teleportPlayer then
|
||||
player:teleportTo(Position(32712, 32392, 13))
|
||||
player:getPosition():sendMagicEffect(CONST_ME_TELEPORT)
|
||||
player:say('Beauty has to be rewarded! Muahahaha!', TALKTYPE_MONSTER_SAY)
|
||||
end
|
||||
|
||||
local tapestry = Tile(useItem.fromPosition):getItemById(6433)
|
||||
if tapestry then
|
||||
tapestry:moveTo(useItem.toPosition)
|
||||
end
|
||||
return true
|
||||
end
|
Reference in New Issue
Block a user