finish serpentine tower event and quest

This commit is contained in:
ErikasKontenis
2020-03-20 00:17:07 +02:00
parent d9686f1d07
commit 0a680a4c0b
84 changed files with 4845 additions and 28 deletions

View File

@@ -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

View File

@@ -1,7 +1,15 @@
function onUse(player, item, fromPosition, target, toPosition)
if item:getId() == 2772 then
if item:getId() == 2772 and Game.isItemThere({x = 33147, y = 32862, z = 9}, 3246) and Game.isItemThere({x = 33144, y = 32868, z = 8}, 1653) and getGlobalStorageValue(21411) == -1 then
item:transform(2773, 1)
item:decay()
Game.sendMagicEffect({x = 33147, y = 32862, z = 9}, CONST_ME_SOUND_WHITE)
Game.sendMagicEffect({x = 33145, y = 32870, z = 8}, CONST_ME_SOUND_YELLOW)
doRelocate({x = 33147, y = 32862, z = 9}, {x = 33145, y = 32870, z = 8})
Game.removeItemOnMap({x = 33144, y = 32868, z = 8}, 1653)
Game.createItem(1654, 1, {x = 33144, y = 32868, z = 8})
setGlobalStorageValue(21411, 1)
player:setStorageValue(17605, 1)
broadcastMessage("The player " .. player:getName() .. " have solved the Serpentine Tower!", MESSAGE_STATUS_WARNING)
elseif item:getId() == 2773 then
item:transform(2772, 1)
item:decay()

View File

@@ -0,0 +1,22 @@
function onUse(player, item, fromPosition, target, toPosition)
if item:getId() == 2772 and Game.isItemThere ({x = 33148, y = 32868, z = 09}, 2129) and Game.isItemThere ({x = 33149, y = 32868, z = 09}, 2129) then
item:transform(2773, 1)
item:decay()
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()
elseif item:getId() == 2773 and Game.isItemThere({x = 33148, y = 32868, z = 9}, 2129) then
item:transform(2772, 1)
item:decay()
elseif item:getId() == 2773 then
item:transform(2772, 1)
item:decay()
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 = 32868, z = 09})
Game.createItem(2129, 1, {x = 33149, y = 32868, z = 09})
end
return true
end

View File

@@ -0,0 +1,9 @@
function onUse(player, item, fromPosition, target, toPosition)
if item:getId() == 2931 and Game.isItemThere({x = 33151, y = 32864, z = 8},1345) then
Game.removeItemOnMap({x = 33151, y = 32864, z = 8}, 1345)
Game.sendMagicEffect({x = 33146, y = 32871, z = 8}, 14)
elseif item:getId() == 2931 then
Game.sendMagicEffect({x = 33146, y = 32871, z = 8}, 3)
end
return true
end

View File

@@ -0,0 +1,9 @@
function onUse(player, item, fromPosition, target, toPosition)
if item:getId() == 2929 and Game.isItemThere({x = 33151, y = 32866, z = 08},1345) then
Game.removeItemOnMap({x = 33151, y = 32866, z = 08}, 1345)
Game.sendMagicEffect({x = 33148, y = 32861, z = 8}, 14)
elseif item:getId() == 2929 then
Game.sendMagicEffect({x = 33148, y = 32861, z = 8}, 3)
end
return true
end

View File

@@ -0,0 +1,9 @@
function onUse(player, item, fromPosition, target, toPosition)
if item:getId() == 2931 and Game.isItemThere({x = 33151, y = 32868, z = 8}, 1345) then
Game.removeItemOnMap({x = 33151, y = 32868, z = 8}, 1345)
Game.sendMagicEffect({x = 33145, y = 32865, z = 8}, 14)
elseif item:getId() == 2931 then
Game.sendMagicEffect({x = 33145, y = 32865, z = 8}, 3)
end
return true
end

View File

@@ -0,0 +1,7 @@
function onUse(player, item, fromPosition, target, toPosition)
if item:getId() == 2772 and Game.isItemThere({x = 33145, y = 32863, z = 8}, 1650) then
Game.removeItemOnMap({x = 33145, y = 32863, z = 8}, 1650)
Game.createItem(1651, 1, {x = 33145, y = 32863, z = 8})
end
return true
end