mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-10-19 16:53:26 +02:00
finish serpentine tower event and quest
This commit is contained in:
@@ -1,11 +1,9 @@
|
||||
function onUse(player, item, fromPosition, target, toPosition)
|
||||
if item:getId() == 2772 and Game.isItemThere({x = 33148, y = 32867, z = 09}, 2129) and Game.isItemThere ({x = 33149, y = 32867, z = 09}, 2129) and Game.isItemThere ({x = 33148, y = 32868, z = 09}, 2129) and Game.isItemThere ({x = 33149, y = 32868, z = 09}, 2129) then
|
||||
if item:getId() == 2772 and Game.isItemThere({x = 33148, y = 32867, z = 09}, 2129) and Game.isItemThere ({x = 33149, y = 32867, z = 09}, 2129) then
|
||||
item:transform(2773, 1)
|
||||
item:decay()
|
||||
Game.removeItemOnMap({x = 33148, y = 32867, z = 09}, 2129)
|
||||
Game.removeItemOnMap({x = 33149, y = 32867, z = 09}, 2129)
|
||||
Game.removeItemOnMap({x = 33148, y = 32868, z = 09}, 2129)
|
||||
Game.removeItemOnMap({x = 33149, y = 32868, z = 09}, 2129)
|
||||
elseif item:getId() == 2772 then
|
||||
item:transform(2773, 1)
|
||||
item:decay()
|
||||
@@ -17,12 +15,8 @@ function onUse(player, item, fromPosition, target, toPosition)
|
||||
item:decay()
|
||||
doRelocate({x = 33148, y = 32867, z = 09}, {x = 33148, y = 32869, z = 09})
|
||||
doRelocate({x = 33149, y = 32867, z = 09}, {x = 33149, y = 32869, z = 09})
|
||||
doRelocate({x = 33148, y = 32868, z = 09}, {x = 33148, y = 32869, z = 09})
|
||||
doRelocate({x = 33149, y = 32868, z = 09},{x = 33149, y = 32869, z = 09})
|
||||
Game.createItem(2129, 1, {x = 33148, y = 32867, z = 09})
|
||||
Game.createItem(2129, 1, {x = 33149, y = 32867, z = 09})
|
||||
Game.createItem(2129, 1, {x = 33148, y = 32868, z = 09})
|
||||
Game.createItem(2129, 1, {x = 33149, y = 32868, z = 09})
|
||||
end
|
||||
return true
|
||||
end
|
Reference in New Issue
Block a user