mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-10-21 09:33:26 +02:00
finish hunter outfit quest
This commit is contained in:
18
data/actions/scripts/liberty_bay/cult_piano_teleport.lua
Normal file
18
data/actions/scripts/liberty_bay/cult_piano_teleport.lua
Normal file
@@ -0,0 +1,18 @@
|
||||
local storages = {1053, 1054, 1055, 1056}
|
||||
|
||||
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
|
||||
local playerPosition = player:getPosition()
|
||||
|
||||
for i = 1, #storages do
|
||||
if player:getStorageValue(storages[i]) ~= 1 then
|
||||
player:say("You have not learned all the verses of the hymn.", TALKTYPE_MONSTER_SAY, false, 0, toPosition)
|
||||
playerPosition:sendMagicEffect(CONST_ME_POFF)
|
||||
return true
|
||||
end
|
||||
end
|
||||
|
||||
player:teleportTo(Position(32402, 32794, 9))
|
||||
player:say("You have sucessfully played the secret hymn of the cult.", TALKTYPE_MONSTER_SAY)
|
||||
Game.sendMagicEffect({x = 32402, y = 32794, z = 9}, CONST_ME_SOUND_PURPLE)
|
||||
return true
|
||||
end
|
Reference in New Issue
Block a user