Full Distribution

This commit is contained in:
rasanpedromujica
2019-01-16 17:16:38 -05:00
commit 009a571331
1258 changed files with 185603 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
function onUse(player, item, fromPosition, target, toPosition)
if item:getId() == 2772 and Game.isItemThere({x = 32627, y = 31699, z = 10}, 1771) then
item:transform(2773, 1)
item:decay()
doRelocate({x = 32627, y = 31699, z = 10},{x = 32626, y = 31699, z = 10})
doRelocate({x = 32628, y = 31699, z = 10},{x = 32626, y = 31699, z = 10})
doRelocate({x = 32629, y = 31699, z = 10},{x = 32626, y = 31699, z = 10})
Game.transformItemOnMap({x = 32627, y = 31699, z = 10}, 1771, 622)
Game.createItem(4788, 1, {x = 32627, y = 31699, z = 10})
Game.transformItemOnMap({x = 32628, y = 31699, z = 10}, 1771, 622)
Game.transformItemOnMap({x = 32629, y = 31699, z = 10}, 1771, 622)
Game.createItem(4786, 1, {x = 32629, y = 31699, z = 10})
elseif item:getId() == 2772 then
item:transform(2773, 1)
item:decay()
elseif item:getId() == 2773 and Game.isItemThere({x = 32628, y = 31699, z = 10}, 622) then
item:transform(2772, 1)
item:decay()
Game.transformItemOnMap({x = 32627, y = 31699, z = 10}, 622, 1771)
Game.transformItemOnMap({x = 32628, y = 31699, z = 10}, 622, 1771)
Game.transformItemOnMap({x = 32629, y = 31699, z = 10}, 622, 1771)
Game.removeItemOnMap({x = 32627, y = 31699, z = 10}, 4788)
Game.removeItemOnMap({x = 32629, y = 31699, z = 10}, 4786)
end
return true
end

View File

@@ -0,0 +1,19 @@
function onUse(player, item, fromPosition, target, toPosition)
if item:getId() == 2772 and Game.isItemThere({x = 32792, y = 31581, z = 07},1282) then
item:transform(2773, 1)
item:decay()
Game.removeItemOnMap({x = 32792, y = 31581, z = 07}, 1282)
elseif item:getId() == 2772 then
item:transform(2773, 1)
item:decay()
elseif item:getId() == 2773 and Game.isItemThere({x = 32792, y = 31581, z = 07}, 1282) then
item:transform(2772, 1)
item:decay()
elseif item:getId() == 2773 then
item:transform(2772, 1)
item:decay()
doRelocate({x = 32792, y = 31581, z = 07},{x = 32792, y = 31582, z = 07})
Game.createItem(1282, 1, {x = 32792, y = 31581, z = 07})
end
return true
end

View File

@@ -0,0 +1,32 @@
function onUse(player, item, fromPosition, target, toPosition)
if item:getId() == 2773 and Game.isItemThere({x = 32685, y = 32084, z = 09}, 1771) then
item:transform(2772, 1)
item:decay()
doRelocate({x = 32687, y = 32084, z = 09},{x = 32683, y = 32084, z = 09})
doRelocate({x = 32686, y = 32084, z = 09},{x = 32683, y = 32084, z = 09})
doRelocate({x = 32685, y = 32084, z = 09},{x = 32683, y = 32084, z = 09})
doRelocate({x = 32684, y = 32084, z = 09},{x = 32683, y = 32084, z = 09})
Game.transformItemOnMap({x = 32687, y = 32084, z = 09}, 1771, 727)
Game.createItem(4798, 1, {x = 32687, y = 32084, z = 09})
Game.transformItemOnMap({x = 32686, y = 32084, z = 09}, 1771, 727)
Game.transformItemOnMap({x = 32685, y = 32084, z = 09}, 1771, 727)
Game.transformItemOnMap({x = 32684, y = 32084, z = 09}, 1771, 727)
Game.createItem(4800, 1, {x = 32684, y = 32084, z = 09})
elseif item:getId() == 2773 then
item:transform(2772, 1)
item:decay()
elseif item:getId() == 2772 and Game.isItemThere({x = 32685, y = 32084, z = 09},727) then
item:transform(2773, 1)
item:decay()
Game.removeItemOnMap({x = 32684, y = 32084, z = 09}, 4800)
Game.transformItemOnMap({x = 32684, y = 32084, z = 09}, 727, 1771)
Game.transformItemOnMap({x = 32685, y = 32084, z = 09}, 727, 1771)
Game.removeItemOnMap({x = 32687, y = 32084, z = 09}, 4798)
Game.transformItemOnMap({x = 32687, y = 32084, z = 09}, 727, 1771)
Game.transformItemOnMap({x = 32686, y = 32084, z = 09}, 727, 1771)
elseif item:getId() == 2772 then
item:transform(2773, 1)
item:decay()
end
return true
end

View File

@@ -0,0 +1,26 @@
function onUse(player, item, fromPosition, target, toPosition)
if item:getId() == 2772 and Game.isItemThere({x = 32673, y = 32085, z = 08},430) and Game.isItemThere ({x = 32669, y = 32089, z = 08},430) and Game.isItemThere ({x = 32673, y = 32093, z = 08},430) and Game.isItemThere ({x = 32677, y = 32089, z = 08},430) and Game.isItemThere ({x = 32673, y = 32083, z = 08},3349) and Game.isItemThere ({x = 32667, y = 32089, z = 08},3585) and Game.isItemThere ({x = 32673, y = 32094, z = 08},3264) and Game.isItemThere ({x = 32679, y = 32089, z = 08},3059) then
item:transform(2773, 1)
item:decay()
Game.removeItemOnMap({x = 32673, y = 32083, z = 08}, 3349)
Game.removeItemOnMap({x = 32667, y = 32089, z = 08}, 3585)
Game.removeItemOnMap({x = 32673, y = 32094, z = 08}, 3264)
Game.removeItemOnMap({x = 32679, y = 32089, z = 08}, 3059)
Game.sendMagicEffect({x = 32673, y = 32083, z = 08}, 11)
Game.sendMagicEffect({x = 32667, y = 32089, z = 08}, 11)
Game.sendMagicEffect({x = 32673, y = 32094, z = 08}, 11)
Game.sendMagicEffect({x = 32679, y = 32089, z = 08}, 11)
doRelocate({x = 32673, y = 32093, z = 08},{x = 32671, y = 32069, z = 08})
doRelocate({x = 32669, y = 32089, z = 08},{x = 32672, y = 32069, z = 08})
doRelocate({x = 32673, y = 32085, z = 08},{x = 32671, y = 32070, z = 08})
doRelocate({x = 32677, y = 32089, z = 08},{x = 32672, y = 32070, z = 08})
Game.sendMagicEffect({x = 32671, y = 32069, z = 08}, 11)
Game.sendMagicEffect({x = 32672, y = 32069, z = 08}, 11)
Game.sendMagicEffect({x = 32671, y = 32070, z = 08}, 11)
Game.sendMagicEffect({x = 32672, y = 32070, z = 08}, 11)
elseif item:getId() == 2773 then
item:transform(2772, 1)
item:decay()
end
return true
end

View File

@@ -0,0 +1,17 @@
function onUse(player, item, fromPosition, target, toPosition)
if item:getId() == 2772 and Game.isItemThere({x = 32568, y = 32078, z = 12},2185) and Game.isItemThere ({x = 32569, y = 32078, z = 12},2185) then
item:transform(2773, 1)
item:decay()
Game.removeItemOnMap({x = 32568, y = 32078, z = 12}, 2185)
Game.removeItemOnMap({x = 32569, y = 32078, z = 12}, 2185)
elseif item:getId() == 2773 and Game.isItemThere({x = 32568, y = 32078, z = 12},2185) and Game.isItemThere ({x = 32569, y = 32078, z = 12}, 2185) then
item:transform(2772, 1)
item:decay()
elseif item:getId() == 2773 then
item:transform(2772, 1)
item:decay()
Game.createItem(2185, 1, {x = 32568, y = 32078, z = 12})
Game.createItem(2185, 1, {x = 32569, y = 32078, z = 12})
end
return true
end

View File

@@ -0,0 +1,16 @@
function onUse(player, item, fromPosition, target, toPosition)
if item:getId() == 2772 then
item:transform(2773, 1)
item:decay()
Game.removeItemOnMap({x = 33314, y = 31592, z = 15}, 1842)
doRelocate({x = 33316, y = 31591, z = 15},{x = 33317, y = 31591, z = 15})
Game.createItem(1949, 1, {x = 33316, y = 31591, z = 15})
elseif item:getId() == 2773 then
item:transform(2772, 1)
item:decay()
doRelocate({x = 33314, y = 31592, z = 15},{x = 33315, y = 31592, z = 15})
Game.createItem(1842, 1, {x = 33314, y = 31592, z = 15})
Game.removeItemOnMap({x = 33316, y = 31591, z = 15}, 1949)
end
return true
end

View File

@@ -0,0 +1,31 @@
function onUse(player, item, fromPosition, target, toPosition)
if item:getId() == 2772 and Game.isItemThere({x = 33295, y = 31677, z = 15},1791) then
item:transform(2773, 1)
item:decay()
Game.removeItemOnMap({x = 33295, y = 31677, z = 15}, 1791)
Game.removeItemOnMap({x = 33296, y = 31677, z = 15}, 1791)
Game.removeItemOnMap({x = 33297, y = 31677, z = 15}, 1791)
Game.removeItemOnMap({x = 33298, y = 31677, z = 15}, 1791)
Game.removeItemOnMap({x = 33299, y = 31677, z = 15}, 1791)
elseif item:getId() == 2772 then
item:transform(2773, 1)
item:decay()
elseif item:getId() == 2773 and Game.isItemThere({x = 33295, y = 31677, z = 15}, 1791) then
item:transform(2772, 1)
item:decay()
elseif item:getId() == 2773 then
item:transform(2772, 1)
item:decay()
doRelocate({x = 33295, y = 31677, z = 15},{x = 33295, y = 31678, z = 15})
doRelocate({x = 33296, y = 31677, z = 15},{x = 33296, y = 31678, z = 15})
doRelocate({x = 33297, y = 31677, z = 15},{x = 33297, y = 31678, z = 15})
doRelocate({x = 33298, y = 31677, z = 15},{x = 33298, y = 31678, z = 15})
doRelocate({x = 33299, y = 31677, z = 15},{x = 33299, y = 31678, z = 15})
Game.createItem(1791, 1, {x = 33295, y = 31677, z = 15})
Game.createItem(1791, 1, {x = 33296, y = 31677, z = 15})
Game.createItem(1791, 1, {x = 33297, y = 31677, z = 15})
Game.createItem(1791, 1, {x = 33298, y = 31677, z = 15})
Game.createItem(1791, 1, {x = 33299, y = 31677, z = 15})
end
return true
end

View File

@@ -0,0 +1,13 @@
function onUse(player, item, fromPosition, target, toPosition)
if item:getId() == 2772 then
item:transform(2773, 1)
item:decay()
Game.removeItemOnMap({x = 33171, y = 31897, z = 08}, 1772)
elseif item:getId() == 2773 then
item:transform(2772, 1)
item:decay()
doRelocate({x = 33171, y = 31897, z = 08},{x = 33171, y = 31898, z = 08})
Game.createItem(1772, 1, {x = 33171, y = 31897, z = 08})
end
return true
end

View File

@@ -0,0 +1,31 @@
function onUse(player, item, fromPosition, target, toPosition)
if item:getId() == 2773 and Game.isItemThere({x = 33222, y = 31671, z = 13},430) and Game.isItemThere ({x = 33223, y = 31671, z = 13},430) and Game.isItemThere ({x = 33224, y = 31671, z = 13},430) and Game.isItemThere ({x = 33225, y = 31671, z = 13},430) and Game.isItemThere ({x = 33220, y = 31659, z = 13},1772) then
item:transform(2772, 1)
item:decay()
Game.removeItemOnMap({x = 33220, y = 31659, z = 13}, 1772)
Game.removeItemOnMap({x = 33221, y = 31659, z = 13}, 1772)
Game.removeItemOnMap({x = 33222, y = 31659, z = 13}, 1772)
Game.removeItemOnMap({x = 33223, y = 31659, z = 13}, 1772)
Game.removeItemOnMap({x = 33224, y = 31659, z = 13}, 1772)
Game.removeItemOnMap({x = 33219, y = 31659, z = 13}, 1772)
Game.removeItemOnMap({x = 33219, y = 31657, z = 13}, 1772)
Game.removeItemOnMap({x = 33221, y = 31657, z = 13}, 1772)
Game.removeItemOnMap({x = 33220, y = 31661, z = 13}, 1772)
Game.removeItemOnMap({x = 33222, y = 31661, z = 13}, 1772)
Game.createMonster("Demon", {x = 33224, y = 31659, z = 13})
Game.createMonster("Demon", {x = 33223, y = 31659, z = 13})
Game.createMonster("Demon", {x = 33219, y = 31657, z = 13})
Game.createMonster("Demon", {x = 33221, y = 31657, z = 13})
Game.createMonster("Demon", {x = 33220, y = 31661, z = 13})
Game.createMonster("Demon", {x = 33222, y = 31661, z = 13})
doRelocate({x = 33222, y = 31671, z = 13},{x = 33219, y = 31659, z = 13})
doRelocate({x = 33223, y = 31671, z = 13},{x = 33220, y = 31659, z = 13})
doRelocate({x = 33224, y = 31671, z = 13},{x = 33221, y = 31659, z = 13})
doRelocate({x = 33225, y = 31671, z = 13},{x = 33222, y = 31659, z = 13})
Game.sendMagicEffect({x = 33219, y = 31659, z = 13}, 11)
Game.sendMagicEffect({x = 33220, y = 31659, z = 13}, 11)
Game.sendMagicEffect({x = 33221, y = 31659, z = 13}, 11)
Game.sendMagicEffect({x = 33222, y = 31659, z = 13}, 11)
end
return true
end

View File

@@ -0,0 +1,14 @@
function onUse(player, item, fromPosition, target, toPosition)
if item:getId() == 2772 and Game.isItemThere({x = 32483, y = 31633, z = 09}, 385) then
item:transform(2773, 1)
item:decay()
elseif item:getId() == 2772 then
item:transform(2773, 1)
item:decay()
Game.transformItemOnMap({x = 32483, y = 31633, z = 09}, 355, 385)
elseif item:getId() == 2773 then
item:transform(2772, 1)
item:decay()
end
return true
end

View File

@@ -0,0 +1,20 @@
function onUse(player, item, fromPosition, target, toPosition)
if item:getId() == 2772 then
item:remove()
Game.createItem(2126, 1, {x = 32487, y = 31628, z = 13})
Game.createItem(2126, 1, {x = 32487, y = 31629, z = 13})
Game.createItem(2126, 1, {x = 32488, y = 31629, z = 13})
Game.createItem(2126, 1, {x = 32487, y = 31627, z = 13})
Game.createItem(2126, 1, {x = 32486, y = 31627, z = 13})
Game.createItem(2126, 1, {x = 32486, y = 31628, z = 13})
Game.createItem(2126, 1, {x = 32486, y = 31629, z = 13})
Game.createItem(2126, 1, {x = 32486, y = 31630, z = 13})
Game.createItem(2126, 1, {x = 32487, y = 31630, z = 13})
Game.createItem(2126, 1, {x = 32488, y = 31630, z = 13})
Game.createItem(2126, 1, {x = 32486, y = 31626, z = 13})
Game.createItem(2126, 1, {x = 32487, y = 31626, z = 13})
Game.createItem(2126, 1, {x = 32488, y = 31626, z = 13})
Game.sendMagicEffect({x = 32488, y = 31628, z = 13}, 3)
end
return true
end

View File

@@ -0,0 +1,9 @@
function onUse(player, item, fromPosition, target, toPosition)
if Game.isItemThere({x = 33211, y = 32698, z = 13}, 1306) then
Game.removeItemOnMap({x = 33211, y = 32698, z = 13}, 1306)
else
doRelocate({x = 33211, y = 32698, z = 13}, {x = 33211, y = 32697, z = 13})
Game.createItem(1306, 1, {x = 33211, y = 32698, z = 13})
end
return true
end

View File

@@ -0,0 +1,19 @@
function onUse(player, item, fromPosition, target, toPosition)
if item:getId() == 2772 and Game.isItemThere({x = 32259, y = 31891, z = 10},2129) then
item:transform(2773, 1)
item:decay()
Game.removeItemOnMap({x = 32259, y = 31891, z = 10}, 2129)
elseif item:getId() == 2772 then
item:transform(2773, 1)
item:decay()
elseif item:getId() == 2773 and Game.isItemThere({x = 32259, y = 31891, z = 10}, 2129) then
item:transform(2772, 1)
item:decay()
elseif item:getId() == 2773 then
item:transform(2772, 1)
item:decay()
doRelocate({x = 32259, y = 31891, z = 10},{x = 32259, y = 31892, z = 10})
Game.createItem(2129, 1, {x = 32259, y = 31891, z = 10})
end
return true
end

View File

@@ -0,0 +1,18 @@
function onUse(player, item, fromPosition, target, toPosition)
if item:getId() == 2772 and Game.isItemThere({x = 32313, y = 31975, z = 13}, 1998) then
item:transform(2773, 1)
item:decay()
Game.transformItemOnMap({x = 32313, y = 31975, z = 13}, 1998, 1996)
elseif item:getId() == 2772 then
item:transform(2773, 1)
item:decay()
elseif item:getId() == 2773 and Game.isItemThere({x = 32313, y = 31975, z = 13}, 1996) then
item:transform(2772, 1)
item:decay()
Game.transformItemOnMap({x = 32313, y = 31975, z = 13}, 1996, 1998)
elseif item:getId() == 2773 then
item:transform(2772, 1)
item:decay()
end
return true
end

View File

@@ -0,0 +1,18 @@
function onUse(player, item, fromPosition, target, toPosition)
if item:getId() == 2772 and Game.isItemThere({x = 32313, y = 31976, z = 13}, 1998) then
item:transform(2773, 1)
item:decay()
Game.transformItemOnMap({x = 32313, y = 31976, z = 13}, 1998, 1996)
elseif item:getId() == 2772 then
item:transform(2773, 1)
item:decay()
elseif item:getId() == 2773 and Game.isItemThere({x = 32313, y = 31976, z = 13}, 1996) then
item:transform(2772, 1)
item:decay()
Game.transformItemOnMap({x = 32313, y = 31976, z = 13}, 1996, 1998)
elseif item:getId() == 2773 then
item:transform(2772, 1)
item:decay()
end
return true
end

View File

@@ -0,0 +1,18 @@
function onUse(player, item, fromPosition, target, toPosition)
if item:getId() == 2772 and Game.isItemThere({x = 32311, y = 31976, z = 13}, 1998) then
item:transform(2773, 1)
item:decay()
Game.transformItemOnMap({x = 32311, y = 31976, z = 13}, 1998, 1996)
elseif item:getId() == 2772 then
item:transform(2773, 1)
item:decay()
elseif item:getId() == 2773 and Game.isItemThere({x = 32311, y = 31976, z = 13}, 1996) then
item:transform(2772, 1)
item:decay()
Game.transformItemOnMap({x = 32311, y = 31976, z = 13}, 1996, 1998)
elseif item:getId() == 2773 then
item:transform(2772, 1)
item:decay()
end
return true
end

View File

@@ -0,0 +1,18 @@
function onUse(player, item, fromPosition, target, toPosition)
if item:getId() == 2772 and Game.isItemThere({x = 32311, y = 31975, z = 13}, 1998) then
item:transform(2773, 1)
item:decay()
Game.transformItemOnMap({x = 32311, y = 31975, z = 13}, 1998, 1996)
elseif item:getId() == 2772 then
item:transform(2773, 1)
item:decay()
elseif item:getId() == 2773 and Game.isItemThere({x = 32311, y = 31975, z = 13}, 1996) then
item:transform(2772, 1)
item:decay()
Game.transformItemOnMap({x = 32311, y = 31975, z = 13}, 1996, 1998)
elseif item:getId() == 2773 then
item:transform(2772, 1)
item:decay()
end
return true
end

View File

@@ -0,0 +1,18 @@
function onUse(player, item, fromPosition, target, toPosition)
if item:getId() == 2772 and Game.isItemThere({x = 32309, y = 31976, z = 13}, 1998) then
item:transform(2773, 1)
item:decay()
Game.transformItemOnMap({x = 32309, y = 31976, z = 13}, 1998, 1996)
elseif item:getId() == 2772 then
item:transform(2773, 1)
item:decay()
elseif item:getId() == 2773 and Game.isItemThere({x = 32309, y = 31976, z = 13}, 1996) then
item:transform(2772, 1)
item:decay()
Game.transformItemOnMap({x = 32309, y = 31976, z = 13}, 1996, 1998)
elseif item:getId() == 2773 then
item:transform(2772, 1)
item:decay()
end
return true
end

View File

@@ -0,0 +1,18 @@
function onUse(player, item, fromPosition, target, toPosition)
if item:getId() == 2772 and Game.isItemThere({x = 32309, y = 31975, z = 13}, 1998) then
item:transform(2773, 1)
item:decay()
Game.transformItemOnMap({x = 32309, y = 31975, z = 13}, 1998, 1996)
elseif item:getId() == 2772 then
item:transform(2773, 1)
item:decay()
elseif item:getId() == 2773 and Game.isItemThere({x = 32309, y = 31975, z = 13}, 1996) then
item:transform(2772, 1)
item:decay()
Game.transformItemOnMap({x = 32309, y = 31975, z = 13}, 1996, 1998)
elseif item:getId() == 2773 then
item:transform(2772, 1)
item:decay()
end
return true
end

View File

@@ -0,0 +1,20 @@
function onUse(player, item, fromPosition, target, toPosition)
if item:getId() == 2772 and Game.isItemThere({x = 32266, y = 31860, z = 11},2129) then
Game.removeItemOnMap({x = 32266, y = 31860, z = 11}, 2129)
Game.transformItemOnMap({x = 32266, y = 31860, z = 11}, 410, 411)
item:transform(2773, 1)
item:decay()
elseif item:getId() == 2772 then
item:transform(2773, 1)
item:decay()
elseif item:getId() == 2773 and Game.isItemThere({x = 32266, y = 31860, z = 11}, 2129) then
item:transform(2772, 1)
item:decay()
elseif item:getId() == 2773 then
item:transform(2772, 1)
item:decay()
Game.transformItemOnMap({x = 32266, y = 31860, z = 11}, 411, 410)
Game.createItem(2129, 1, {x = 32266, y = 31860, z = 11})
end
return true
end

View File

@@ -0,0 +1,19 @@
function onUse(player, item, fromPosition, target, toPosition)
if item:getId() == 2772 and Game.isItemThere({x = 32259, y = 31890, z = 10},2129) then
item:transform(2773, 1)
item:decay()
Game.removeItemOnMap({x = 32259, y = 31890, z = 10}, 2129)
elseif item:getId() == 2772 then
item:transform(2773, 1)
item:decay()
elseif item:getId() == 2773 and Game.isItemThere({x = 32259, y = 31890, z = 10}, 2129) then
item:transform(2772, 1)
item:decay()
elseif item:getId() == 2773 then
item:transform(2772, 1)
item:decay()
doRelocate({x = 32259, y = 31890, z = 10},{x = 32259, y = 31889, z = 10})
Game.createItem(2129, 1, {x = 32259, y = 31890, z = 10})
end
return true
end

View File

@@ -0,0 +1,17 @@
function onUse(player, item, fromPosition, target, toPosition)
if item:getId() == 2773 and Game.isItemThere({x = 32220, y = 31845, z = 15}, 2772) and player:getStorageValue(7) ~= 1 then
item:transform(2772, 1)
item:decay()
item:getPosition():sendMagicEffect(13)
Game.sendMagicEffect({x = 32217, y = 31842, z = 14}, 12)
Game.sendMagicEffect({x = 32217, y = 31844, z = 14}, 12)
Game.sendMagicEffect({x = 32217, y = 31845, z = 14}, 12)
Game.sendMagicEffect({x = 32218, y = 31844, z = 14}, 12)
Game.sendMagicEffect({x = 32219, y = 31843, z = 14}, 12)
Game.sendMagicEffect({x = 32219, y = 31845, z = 14}, 12)
elseif item:getId() == 2773 then
item:getPosition():sendMagicEffect(12)
doTargetCombatHealth(0, player, COMBAT_FIREDAMAGE, -170, -170)
end
return true
end

View File

@@ -0,0 +1,28 @@
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
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()
elseif item:getId() == 2773 and Game.isItemThere({x = 33148, y = 32867, z = 09}, 2129) then
item:transform(2772, 1)
item:decay()
elseif item:getId() == 2773 then
item:transform(2772, 1)
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

@@ -0,0 +1,16 @@
function onUse(player, item, fromPosition, target, toPosition)
if item:getId() == 2773 and Game.isItemThere({x = 32220, y = 31843, z = 15}, 2772) and player:getStorageValue(7) ~= 1 then
item:transform(2772, 1)
item:decay()
item:getPosition():sendMagicEffect(13)
Game.sendMagicEffect({x = 32217, y = 31844, z = 14}, 12)
Game.sendMagicEffect({x = 32218, y = 31844, z = 14}, 12)
Game.sendMagicEffect({x = 32219, y = 31843, z = 14}, 12)
Game.sendMagicEffect({x = 32219, y = 31845, z = 14}, 12)
Game.sendMagicEffect({x = 32220, y = 31843, z = 14}, 12)
elseif item:getId() == 2773 then
item:getPosition():sendMagicEffect(12)
doTargetCombatHealth(0, player, COMBAT_FIREDAMAGE, -170, -170)
end
return true
end

View File

@@ -0,0 +1,21 @@
function onUse(player, item, fromPosition, target, toPosition)
if item:getId() == 2773 and Game.isItemThere({x = 32220, y = 31842, z = 15}, 2772) and player:getStorageValue(7) ~= 1 then
item:transform(2772, 1)
item:decay()
item:getPosition():sendMagicEffect(13)
Game.sendMagicEffect({x = 32217, y = 31843, z = 14}, 12)
Game.sendMagicEffect({x = 32217, y = 31844, z = 14}, 12)
Game.sendMagicEffect({x = 32217, y = 31845, z = 14}, 12)
Game.sendMagicEffect({x = 32218, y = 31843, z = 14}, 12)
Game.sendMagicEffect({x = 32218, y = 31845, z = 14}, 12)
Game.sendMagicEffect({x = 32219, y = 31842, z = 14}, 12)
Game.sendMagicEffect({x = 32219, y = 31846, z = 14}, 12)
Game.transformItemOnMap({x = 32214, y = 31850, z = 15}, 2114, 2113)
Game.transformItemOnMap({x = 32215, y = 31850, z = 15}, 2114, 2113)
Game.transformItemOnMap({x = 32216, y = 31850, z = 15}, 2114, 2113)
elseif item:getId() == 2773 then
item:getPosition():sendMagicEffect(12)
doTargetCombatHealth(0, player, COMBAT_FIREDAMAGE, -170, -170)
end
return true
end

View File

@@ -0,0 +1,16 @@
function onUse(player, item, fromPosition, target, toPosition)
if item:getId() == 2773 and Game.isItemThere({x = 32220, y = 31844, z = 15}, 2772) and player:getStorageValue(7) ~= 1 then
item:transform(2772, 1)
item:decay()
item:getPosition():sendMagicEffect(13)
Game.sendMagicEffect({x = 32217, y = 31845, z = 14}, 12)
Game.sendMagicEffect({x = 32218, y = 31846, z = 14}, 12)
Game.sendMagicEffect({x = 32219, y = 31845, z = 14}, 12)
Game.sendMagicEffect({x = 32220, y = 31846, z = 14}, 12)
Game.sendMagicEffect({x = 32218, y = 31844, z = 14}, 12)
elseif item:getId() == 2773 then
item:getPosition():sendMagicEffect(12)
doTargetCombatHealth(0, player, COMBAT_FIREDAMAGE, -170, -170)
end
return true
end

View File

@@ -0,0 +1,18 @@
function onUse(player, item, fromPosition, target, toPosition)
if item:getId() == 2773 and player:getStorageValue(7) ~= 1 then
item:transform(2772, 1)
item:decay()
item:getPosition():sendMagicEffect(13)
Game.sendMagicEffect({x = 32217, y = 31843, z = 14}, 12)
Game.sendMagicEffect({x = 32218, y = 31842, z = 14}, 12)
Game.sendMagicEffect({x = 32219, y = 31841, z = 14}, 12)
Game.sendMagicEffect({x = 32217, y = 31845, z = 14}, 12)
Game.sendMagicEffect({x = 32218, y = 31845, z = 14}, 12)
Game.sendMagicEffect({x = 32219, y = 31845, z = 14}, 12)
Game.sendMagicEffect({x = 32220, y = 31845, z = 14}, 12)
elseif item:getId() == 2773 then
item:getPosition():sendMagicEffect(12)
doTargetCombatHealth(0, player, COMBAT_FIREDAMAGE, -170, -170)
end
return true
end

View File

@@ -0,0 +1,28 @@
function onUse(player, item, fromPosition, target, toPosition)
if item:getId() == 2772 then
doRelocate({x = 32636, y = 31881, z = 07},{x = 32636, y = 31881, z = 02})
item:transform(2773, 1)
item:decay()
Game.sendMagicEffect({x = 32636, y = 31881, z = 07}, 3)
Game.sendMagicEffect({x = 32636, y = 31881, z = 02}, 3)
elseif item:getId() == 2772 then
doRelocate({x = 32636, y = 31881, z = 07},{x = 32636, y = 31881, z = 02})
item:transform(2773, 1)
item:decay()
Game.sendMagicEffect({x = 32636, y = 31881, z = 02}, 3)
Game.sendMagicEffect({x = 32636, y = 31881, z = 07}, 3)
elseif item:getId() == 2773 then
doRelocate({x = 32636, y = 31881, z = 02},{x = 32636, y = 31881, z = 07})
item:transform(2772, 1)
item:decay()
Game.sendMagicEffect({x = 32636, y = 31881, z = 07}, 3)
Game.sendMagicEffect({x = 32636, y = 31881, z = 02}, 3)
elseif item:getId() == 2773 then
item:transform(2772, 1)
item:decay()
doRelocate({x = 32636, y = 31881, z = 02},{x = 32636, y = 31881, z = 07})
Game.sendMagicEffect({x = 32636, y = 31881, z = 02}, 3)
Game.sendMagicEffect({x = 32636, y = 31881, z = 07}, 3)
end
return true
end

View File

@@ -0,0 +1,22 @@
function onUse(player, item, fromPosition, target, toPosition)
if item:getId() == 2772 then
item:transform(2773, 1)
item:decay()
Game.removeItemOnMap({x = 32604, y = 31905, z = 03}, 1789)
Game.removeItemOnMap({x = 32605, y = 31905, z = 03}, 1790)
Game.removeItemOnMap({x = 32604, y = 31904, z = 03}, 1787)
Game.removeItemOnMap({x = 32605, y = 31904, z = 03}, 1788)
elseif item:getId() == 2773 then
item:transform(2772, 1)
item:decay()
doRelocate({x = 32604, y = 31904, z = 03},{x = 32604, y = 31906, z = 03})
doRelocate({x = 32604, y = 31905, z = 03},{x = 32604, y = 31906, z = 03})
doRelocate({x = 32605, y = 31904, z = 03},{x = 32605, y = 31906, z = 03})
doRelocate({x = 32605, y = 31905, z = 03},{x = 32605, y = 31906, z = 03})
Game.createItem(1787, 1, {x = 32604, y = 31904, z = 03})
Game.createItem(1789, 1, {x = 32604, y = 31905, z = 03})
Game.createItem(1788, 1, {x = 32605, y = 31904, z = 03})
Game.createItem(1790, 1, {x = 32605, y = 31905, z = 03})
end
return true
end

View File

@@ -0,0 +1,13 @@
function onUse(player, item, fromPosition, target, toPosition)
if item:getId() == 2772 then
Game.transformItemOnMap({x = 32605, y = 31902, z = 04}, 436, 432)
item:transform(2773, 1)
item:decay()
doRelocate({x = 32605, y = 31902, z = 04},{x = 32605, y = 31902, z = 05})
elseif item:getId() == 2773 then
Game.transformItemOnMap({x = 32605, y = 31902, z = 04}, 432, 436)
item:transform(2772, 1)
item:decay()
end
return true
end

View File

@@ -0,0 +1,17 @@
function onUse(player, item, fromPosition, target, toPosition)
if item:getId() == 2772 then
doRelocate({x = 32636, y = 31881, z = 07},{x = 32636, y = 31881, z = 02})
item:transform(2773, 1)
item:decay()
Game.sendMagicEffect({x = 32636, y = 31881, z = 02}, 3)
Game.sendMagicEffect({x = 32636, y = 31881, z = 07}, 3)
elseif item:getId() == 2773 then
item:transform(2772, 1)
item:decay()
doRelocate({x = 32636, y = 31881, z = 02},{x = 32636, y = 31881, z = 07})
Game.sendMagicEffect({x = 32636, y = 31881, z = 02}, 3)
Game.sendMagicEffect({x = 32636, y = 31881, z = 07}, 3)
end
return true
end

View File

@@ -0,0 +1,15 @@
function onUse(player, item, fromPosition, target, toPosition)
if item:getId() == 2772 then
item:transform(2773, 1)
item:decay()
Game.removeItemOnMap({x = 32566, y = 32119, z = 07}, 1270)
Game.transformItemOnMap({x = 32566, y = 32118, z = 07}, 1270, 1274)
elseif item:getId() == 2773 then
item:transform(2772, 1)
item:decay()
doRelocate({x = 32566, y = 32119, z = 07},{x = 32567, y = 32119, z = 07})
Game.createItem(1270, 1, {x = 32566, y = 32119, z = 07})
Game.transformItemOnMap({x = 32566, y = 32118, z = 07}, 1274, 1270)
end
return true
end

View File

@@ -0,0 +1,26 @@
function onUse(player, item, fromPosition, target, toPosition)
if item:getId() == 2772 then
item:transform(2773, 1)
item:decay()
doRelocate({x = 32426, y = 32202, z = 14},{x = 32426, y = 32200, z = 14})
doRelocate({x = 32426, y = 32201, z = 14},{x = 32426, y = 32200, z = 14})
doRelocate({x = 32427, y = 32202, z = 14},{x = 32427, y = 32200, z = 14})
doRelocate({x = 32427, y = 32201, z = 14},{x = 32427, y = 32200, z = 14})
Game.removeItemOnMap({x = 32426, y = 32202, z = 14}, 1771)
Game.removeItemOnMap({x = 32426, y = 32201, z = 14}, 1771)
Game.removeItemOnMap({x = 32427, y = 32202, z = 14}, 1771)
Game.removeItemOnMap({x = 32427, y = 32201, z = 14}, 1771)
elseif item:getId() == 2773 then
item:transform(2772, 1)
item:decay()
Game.createTile({x = 32426, y = 32201, z = 14}, true)
Game.createTile({x = 32427, y = 32201, z = 14}, true)
Game.createTile({x = 32426, y = 32202, z = 14}, true)
Game.createTile({x = 32427, y = 32202, z = 14}, true)
Game.createItem(1771, 1, {x = 32426, y = 32201, z = 14})
Game.createItem(1771, 1, {x = 32427, y = 32201, z = 14})
Game.createItem(1771, 1, {x = 32426, y = 32202, z = 14})
Game.createItem(1771, 1, {x = 32427, y = 32202, z = 14})
end
return true
end

View File

@@ -0,0 +1,10 @@
function onUse(player, item, fromPosition, target, toPosition)
if item:getId() == 2772 then
item:transform(2773, 1)
item:decay()
elseif item:getId() == 2773 then
item:transform(2772, 1)
item:decay()
end
return true
end

View File

@@ -0,0 +1,10 @@
function onUse(player, item, fromPosition, target, toPosition)
if item:getId() == 2772 then
Game.transformItemOnMap({x = 32313, y = 31928, z = 08}, 2772, 2773)
Game.sendMagicEffect({x = 32314, y = 31928, z = 08}, 12)
elseif item:getId() == 2773 then
Game.transformItemOnMap({x = 32313, y = 31928, z = 08}, 2773, 2772)
Game.sendMagicEffect({x = 32314, y = 31928, z = 08}, 12)
end
return true
end

View File

@@ -0,0 +1,15 @@
function onUse(player, item, fromPosition, target, toPosition)
if item:getId() == 2772 then
item:remove()
Game.removeItemOnMap({x = 32186, y = 31626, z = 08}, 2129)
Game.removeItemOnMap({x = 32187, y = 31626, z = 08}, 2129)
Game.removeItemOnMap({x = 32188, y = 31626, z = 08}, 2129)
Game.removeItemOnMap({x = 32189, y = 31626, z = 08}, 2129)
Game.sendMagicEffect({x = 32180, y = 31633, z = 08}, 3)
Game.sendMagicEffect({x = 32186, y = 31626, z = 08}, 3)
Game.sendMagicEffect({x = 32187, y = 31626, z = 08}, 3)
Game.sendMagicEffect({x = 32188, y = 31626, z = 08}, 3)
Game.sendMagicEffect({x = 32189, y = 31626, z = 08}, 3)
end
return true
end

View File

@@ -0,0 +1,22 @@
function onUse(player, item, fromPosition, target, toPosition)
if item:getId() == 2772 and Game.isItemThere({x = 32915, y = 32076, z = 06},388) then
Game.removeItemOnMap({x = 32915, y = 32076, z = 06}, 388)
Game.removeItemOnMap({x = 32915, y = 32080, z = 06}, 388)
item:transform(2773, 1)
item:decay()
elseif item:getId() == 2772 then
item:transform(2773, 1)
item:decay()
elseif item:getId() == 2773 and not Game.isItemThere({x = 32915, y = 32076, z = 06}, 388) then
doRelocate({x = 32915, y = 32076, z = 06},{x = 32916, y = 32076, z = 06})
doRelocate({x = 32915, y = 32080, z = 06},{x = 32916, y = 32080, z = 06})
Game.createItem(388, 1, {x = 32915, y = 32076, z = 06})
Game.createItem(388, 1, {x = 32915, y = 32080, z = 06})
item:transform(2772, 1)
item:decay()
elseif item:getId() == 2773 then
item:transform(2772, 1)
item:decay()
end
return true
end

View File

@@ -0,0 +1,13 @@
function onUse(player, item, fromPosition, target, toPosition)
if item:getId() == 2772 then
item:transform(2773, 1)
item:decay()
Game.removeItemOnMap({x = 32780, y = 32231, z = 08}, 389)
elseif item:getId() == 2773 then
item:transform(2772, 1)
item:decay()
doRelocate({x = 32780, y = 32231, z = 08},{x = 32780, y = 32232, z = 08})
Game.createItem(389, 1, {x = 32780, y = 32231, z = 08})
end
return true
end

View File

@@ -0,0 +1,12 @@
function onUse(player, item, fromPosition, target, toPosition)
if item:getId() == 2772 then
Game.removeItemOnMap({x = 32649, y = 32923, z = 08}, 1822)
Game.transformItemOnMap({x = 32649, y = 32923, z = 08}, 351, 385)
Game.transformItemOnMap({x = 32652, y = 32922, z = 08}, 2772, 2773)
elseif item:getId() == 2773 then
Game.transformItemOnMap({x = 32649, y = 32923, z = 08}, 385, 351)
Game.createItem(1822, 1, {x = 32649, y = 32923, z = 08})
Game.transformItemOnMap({x = 32652, y = 32922, z = 08}, 2773, 2772)
end
return true
end

View File

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

View File

@@ -0,0 +1,42 @@
function onUse(player, item, fromPosition, target, toPosition)
if item:getId() == 2772 and Game.isItemThere({x = 32614, y = 32209, z = 10},2523) then
Game.removeItemOnMap({x = 32614, y = 32209, z = 10}, 2523)
Game.removeItemOnMap({x = 32614, y = 32208, z = 10}, 1270)
doRelocate({x = 32614, y = 32209, z = 10},{x = 32614, y = 32208, z = 10})
Game.createItem(2523, 1, {x = 32614, y = 32208, z = 10})
Game.createItem(1270, 1, {x = 32614, y = 32209, z = 10})
Game.removeItemOnMap({x = 32614, y = 32206, z = 10}, 1791)
Game.removeItemOnMap({x = 32614, y = 32205, z = 10}, 1270)
Game.createItem(1810, 1, {x = 32614, y = 32204, z = 10})
Game.removeItemOnMap({x = 32614, y = 32221, z = 10}, 1270)
Game.removeItemOnMap({x = 32615, y = 32223, z = 10}, 1946)
Game.createItem(1796, 1, {x = 32615, y = 32223, z = 10})
Game.createItem(2123, 1, {x = 32615, y = 32221, z = 10})
Game.createItem(2124, 1, {x = 32615, y = 32223, z = 10})
Game.createItem(2123, 1, {x = 32613, y = 32220, z = 10})
Game.sendMagicEffect({x = 32613, y = 32220, z = 10}, 9)
item:transform(2773, 1)
item:decay()
Game.removeItemOnMap({x = 32613, y = 32220, z = 10}, 3050)
Game.createItem(1823, 1, {x = 32614, y = 32205, z = 10})
Game.createItem(1270, 1, {x = 32614, y = 32206, z = 10})
Game.sendMagicEffect({x = 32615, y = 32224, z = 10}, 16)
Game.sendMagicEffect({x = 32614, y = 32224, z = 10}, 16)
elseif item:getId() == 2772 then
doRelocate({x = 32614, y = 32209, z = 10},{x = 32613, y = 32209, z = 10})
Game.removeItemOnMap({x = 32614, y = 32221, z = 10}, 1270)
Game.removeItemOnMap({x = 32615, y = 32223, z = 10}, 1946)
Game.createItem(1796, 1, {x = 32615, y = 32223, z = 10})
Game.createItem(2123, 1, {x = 32615, y = 32221, z = 10})
Game.createItem(2124, 1, {x = 32615, y = 32223, z = 10})
Game.createItem(2123, 1, {x = 32613, y = 32220, z = 10})
Game.sendMagicEffect({x = 32613, y = 32220, z = 10}, 9)
Game.createItem(1270, 1, {x = 32614, y = 32209, z = 10})
item:transform(2773, 1)
item:decay()
Game.removeItemOnMap({x = 32613, y = 32220, z = 10}, 3050)
elseif item:getId() == 2773 then
Game.sendMagicEffect({x = 32616, y = 32222, z = 10}, 3)
end
return true
end

View File

@@ -0,0 +1,14 @@
function onUse(player, item, fromPosition, target, toPosition)
if item:getId() == 2772 then
item:transform(2773, 1)
item:decay()
doRelocate({x = 32623, y = 32189, z = 09},{x = 32623, y = 32190, z = 09}, true)
doRelocate({x = 32623, y = 32188, z = 09},{x = 32623, y = 32189, z = 09}, true)
elseif item:getId() == 2773 then
item:transform(2772, 1)
item:decay()
doRelocate({x = 32623, y = 32188, z = 09},{x = 32622, y = 32189, z = 09}, true)
doRelocate({x = 32623, y = 32189, z = 09},{x = 32623, y = 32188, z = 09}, true)
end
return true
end

View File

@@ -0,0 +1,40 @@
function onUse(player, item, fromPosition, target, toPosition)
if item:getId() == 2772 and Game.isItemThere({x = 32594, y = 32214, z = 09},3050) then
item:transform(2773, 1)
item:decay()
Game.removeItemOnMap({x = 32603, y = 32216, z = 09}, 1626)
Game.removeItemOnMap({x = 32604, y = 32216, z = 09}, 1627)
doRelocate({x = 32603, y = 32216, z = 09},{x = 32603, y = 32217, z = 09})
doRelocate({x = 32604, y = 32216, z = 09},{x = 32604, y = 32217, z = 09})
doRelocate({x = 32593, y = 32216, z = 09},{x = 32592, y = 32216, z = 09})
doRelocate({x = 32594, y = 32216, z = 09},{x = 32592, y = 32216, z = 09})
Game.removeItemOnMap({x = 32606, y = 32216, z = 09}, 1271)
Game.removeItemOnMap({x = 32607, y = 32216, z = 09}, 1271)
Game.transformItemOnMap({x = 32601, y = 32216, z = 09}, 1271, 1626)
Game.transformItemOnMap({x = 32602, y = 32216, z = 09}, 1271, 1627)
Game.createItem(1271, 1, {x = 32594, y = 32216, z = 09})
Game.createItem(1271, 1, {x = 32593, y = 32216, z = 09})
Game.createItem(1271, 1, {x = 32603, y = 32216, z = 09})
Game.createItem(1271, 1, {x = 32604, y = 32216, z = 09})
Game.removeItemOnMap({x = 32594, y = 32214, z = 09}, 3050)
Game.sendMagicEffect({x = 32594, y = 32214, z = 09}, 9)
elseif item:getId() == 2772 then
Game.sendMagicEffect({x = 32594, y = 32214, z = 09}, 3)
elseif item:getId() == 2773 and Game.isItemThere({x = 32594, y = 32214, z = 09},3050) then
item:transform(2772, 1)
item:decay()
Game.removeItemOnMap({x = 32593, y = 32216, z = 09}, 1271)
Game.removeItemOnMap({x = 32594, y = 32216, z = 09}, 1271)
Game.transformItemOnMap({x = 32601, y = 32216, z = 09}, 1626, 1271)
Game.transformItemOnMap({x = 32602, y = 32216, z = 09}, 1627, 1271)
Game.transformItemOnMap({x = 32603, y = 32216, z = 09}, 1271, 1626)
Game.transformItemOnMap({x = 32604, y = 32216, z = 09}, 1271, 1627)
Game.createItem(1271, 1, {x = 32606, y = 32216, z = 09})
Game.createItem(1271, 1, {x = 32607, y = 32216, z = 09})
Game.removeItemOnMap({x = 32594, y = 32214, z = 09}, 3050)
Game.sendMagicEffect({x = 32594, y = 32214, z = 09}, 9)
elseif item:getId() == 2773 then
Game.sendMagicEffect({x = 32594, y = 32214, z = 09}, 3)
end
return true
end

View File

@@ -0,0 +1,12 @@
function onUse(player, item, fromPosition, target, toPosition)
if item:getId() == 2772 then
item:transform(2773, 1)
item:decay()
Game.createItem(2471, 1, {x = 32479, y = 31901, z = 05})
Game.createItem(2122, 1, {x = 32479, y = 31892, z = 03})
elseif item:getId() == 2773 and not Game.isItemThere({x = 32479, y = 31892, z = 03}, 2122) then
item:transform(2772, 1)
item:decay()
end
return true
end

View File

@@ -0,0 +1,25 @@
function onUse(player, item, fromPosition, target, toPosition)
if item:getId() == 2772 and math.random(1, 100) <= 70 then
item:transform(2773, 1)
item:decay()
Game.removeItemsOnMap({x = item:getPosition().x - 1, y = item:getPosition().y, z = 14})
Game.createItem(3242, 1, {x = item:getPosition().x - 1, y = item:getPosition().y, z = 14})
doTargetCombatHealth(0, player, COMBAT_FIREDAMAGE, -200, -200)
elseif item:getId() == 2772 then
item:transform(2773, 1)
item:decay()
Game.removeItemsOnMap({x = item:getPosition().x - 1, y = item:getPosition().y, z = 14})
Game.createItem(3595, 1, {x = 33117, y = item:getPosition().y, z = 14})
player:setStorageValue(258, 1)
Game.sendMagicEffect({x = 33122, y = 32765, z = 14}, 15)
Game.sendMagicEffect({x = 33117, y = 32761, z = 14}, 15)
Game.sendMagicEffect({x = 33117, y = 32762, z = 14}, 15)
Game.sendMagicEffect({x = 33117, y = 32763, z = 14}, 15)
elseif item:getId() == 2773 then
item:transform(2772, 1)
item:decay()
Game.removeItemsOnMap({x = item:getPosition().x - 1, y = item:getPosition().y, z = 14})
Game.createItem(3573, 1, {x = item:getPosition().x - 1, y = item:getPosition().y, z = 14})
end
return true
end

View File

@@ -0,0 +1,10 @@
function onUse(player, item, fromPosition, target, toPosition)
if item:getId() == 2772 then
item:transform(2773, 1)
item:decay()
elseif item:getId() == 2773 then
item:transform(2772, 1)
item:decay()
end
return true
end

View File

@@ -0,0 +1,18 @@
function onUse(player, item, fromPosition, target, toPosition)
if item:getId() == 2772 and Game.isItemThere({x = 32476, y = 31900, z = 06},2773) and Game.isItemThere ({x = 32477, y = 31900, z = 06},2773) and Game.isItemThere ({x = 32478, y = 31900, z = 06},2772) and Game.isItemThere ({x = 32479, y = 31900, z = 06},2772) and Game.isItemThere ({x = 32480, y = 31900, z = 06},2773) and Game.isItemThere ({x = 32481, y = 31900, z = 06}, 2772) then
item:transform(2773, 1)
item:decay()
Game.createItem(1948, 1, {x = 32476, y = 31904, z = 06})
elseif item:getId() == 2772 then
Game.sendMagicEffect({x = 32479, y = 31905, z = 06}, 3)
elseif item:getId() == 2773 then
item:transform(2772, 1)
item:decay()
Game.removeItemOnMap({x = 32476, y = 31904, z = 06}, 1948)
elseif item:getId() == 2773 then
item:transform(2772, 1)
item:decay()
Game.removeItemOnMap({x = 32476, y = 31904, z = 06}, 1948)
end
return true
end

View File

@@ -0,0 +1,16 @@
function onUse(player, item, fromPosition, target, toPosition)
if item:getId() == 2772 and Game.isItemThere({x = 32476, y = 31900, z = 04},3593) and Game.isItemThere ({x = 32477, y = 31900, z = 04},3587) and Game.isItemThere ({x = 32478, y = 31900, z = 04},3590) and Game.isItemThere ({x = 32479, y = 31900, z = 04},3585) and Game.isItemThere ({x = 32480, y = 31900, z = 04},3592) and Game.isItemThere ({x = 32481, y = 31900, z = 04},3589) then
Game.createItem(1948, 1, {x = 32476, y = 31904, z = 04})
Game.removeItemOnMap({x = 32476, y = 31900, z = 04}, 3593)
Game.removeItemOnMap({x = 32477, y = 31900, z = 04}, 3587)
Game.removeItemOnMap({x = 32478, y = 31900, z = 04}, 3590)
Game.removeItemOnMap({x = 32479, y = 31900, z = 04}, 3585)
Game.removeItemOnMap({x = 32480, y = 31900, z = 04}, 3592)
Game.removeItemOnMap({x = 32481, y = 31900, z = 04}, 3589)
item:transform(2773, 1)
item:decay()
elseif item:getId() == 2772 then
Game.sendMagicEffect({x = 32479, y = 31905, z = 04}, 3)
end
return true
end

View File

@@ -0,0 +1,16 @@
function onUse(player, item, fromPosition, target, toPosition)
if item:getId() == 2772 and Game.isItemThere({x = 32478, y = 31903, z = 03},3537) and Game.isItemThere ({x = 32479, y = 31903, z = 03},3543) then
item:transform(2773, 1)
item:decay()
Game.removeItemOnMap({x = 32478, y = 31903, z = 03}, 3537)
Game.removeItemOnMap({x = 32479, y = 31903, z = 03}, 3543)
Game.createItem(1948, 1, {x = 32479, y = 31904, z = 03})
elseif item:getId() == 2772 then
Game.sendMagicEffect({x = 32478, y = 31904, z = 03}, 3)
elseif item:getId() == 2773 then
item:transform(2772, 1)
item:decay()
Game.removeItemOnMap({x = 32479, y = 31904, z = 03}, 1948)
end
return true
end

View File

@@ -0,0 +1,17 @@
function onUse(player, item, fromPosition, target, toPosition)
if item:getId() == 2772 and Game.isItemThere({x = 32177, y = 32148, z = 11}, 1630) then
item:transform(2773, 1)
item:decay()
doRelocate({x = 32177, y = 32148, z = 11},{x = 32178, y = 32148, z = 11})
Game.transformItemOnMap({x = 32177, y = 32148, z = 11}, 1630, 1628)
elseif item:getId() == 2772 then
item:transform(2773, 1)
item:decay()
Game.transformItemOnMap({x = 32177, y = 32148, z = 11}, 1629, 1628)
elseif item:getId() == 2773 then
item:transform(2772, 1)
item:decay()
Game.transformItemOnMap({x = 32177, y = 32148, z = 11}, 1628, 1630)
end
return true
end

View File

@@ -0,0 +1,13 @@
function onUse(player, item, fromPosition, target, toPosition)
if item:getId() == 2772 then
Game.removeItemOnMap({x = 32145, y = 32101, z = 11}, 1791)
item:transform(2773, 1)
item:decay()
elseif item:getId() == 2773 then
item:transform(2772, 1)
item:decay()
doRelocate({x = 32145, y = 32101, z = 11},{x = 32145, y = 32102, z = 11})
Game.createItem(1791, 1, {x = 32145, y = 32101, z = 11})
end
return true
end

View File

@@ -0,0 +1,22 @@
function onUse(player, item, fromPosition, target, toPosition)
if item:getId() == 2772 then
item:transform(2773, 1)
item:decay()
Game.transformItemOnMap({x = 32098, y = 32204, z = 08}, 2772, 2773)
Game.transformItemOnMap({x = 32100, y = 32205, z = 08}, 622, 1771)
Game.transformItemOnMap({x = 32101, y = 32205, z = 08}, 622, 1771)
Game.removeItemOnMap({x = 32100, y = 32205, z = 08}, 4788)
Game.removeItemOnMap({x = 32101, y = 32205, z = 08}, 4786)
elseif item:getId() == 2773 then
item:transform(2772, 1)
item:decay()
Game.transformItemOnMap({x = 32098, y = 32204, z = 08}, 2773, 2772)
doRelocate({x = 32100, y = 32205, z = 08},{x = 32102, y = 32205, z = 08})
doRelocate({x = 32101, y = 32205, z = 08},{x = 32102, y = 32205, z = 08})
Game.transformItemOnMap({x = 32100, y = 32205, z = 08}, 1771, 622)
Game.transformItemOnMap({x = 32101, y = 32205, z = 08}, 1771, 622)
Game.createItem(4788, 1, {x = 32100, y = 32205, z = 08})
Game.createItem(4786, 1, {x = 32101, y = 32205, z = 08})
end
return true
end

View File

@@ -0,0 +1,23 @@
function onUse(player, item, fromPosition, target, toPosition)
if item:getId() == 2772 then
item:transform(2773, 1)
item:decay()
Game.transformItemOnMap({x = 32104, y = 32204, z = 08}, 2772, 2773)
Game.transformItemOnMap({x = 32100, y = 32205, z = 08}, 622, 1771)
Game.transformItemOnMap({x = 32101, y = 32205, z = 08}, 622, 1771)
Game.removeItemOnMap({x = 32100, y = 32205, z = 08}, 4788)
Game.removeItemOnMap({x = 32101, y = 32205, z = 08}, 4786)
elseif item:getId() == 2773 then
item:transform(2772, 1)
item:decay()
Game.transformItemOnMap({x = 32104, y = 32204, z = 08}, 2773, 2772)
doRelocate({x = 32100, y = 32205, z = 08},{x = 32102, y = 32205, z = 08})
doRelocate({x = 32101, y = 32205, z = 08},{x = 32102, y = 32205, z = 08})
Game.transformItemOnMap({x = 32100, y = 32205, z = 08}, 1771, 622)
Game.transformItemOnMap({x = 32101, y = 32205, z = 08}, 1771, 622)
Game.createItem(4788, 1, {x = 32100, y = 32205, z = 08})
Game.createItem(4786, 1, {x = 32101, y = 32205, z = 08})
end
return true
end

View File

@@ -0,0 +1,14 @@
function onUse(player, item, fromPosition, target, toPosition)
if item:getId() == 2772 then
item:transform(2773, 1)
item:decay()
Game.removeItemOnMap({x = 32095, y = 32173, z = 08}, 1271)
elseif item:getId() == 2773 then
item:transform(2772, 1)
item:decay()
doRelocate({x = 32095, y = 32173, z = 08},{x = 32095, y = 32174, z = 08})
Game.createItem(1271, 1, {x = 32095, y = 32173, z = 08})
end
return true
end

View File

@@ -0,0 +1,14 @@
function onUse(player, item, fromPosition, target, toPosition)
if item:getId() == 2772 and Game.isItemThere({x = 32090, y = 32148, z = 09},2772) and Game.isItemThere ({x = 32092, y = 32148, z = 09},2772) and Game.isItemThere ({x = 32094, y = 32148, z = 09},2772) and Game.isItemThere ({x = 32088, y = 32148, z = 09},2772) then
item:transform(2773, 1)
item:decay()
Game.removeItemOnMap({x = 32088, y = 32149, z = 10}, 1282)
elseif item:getId() == 2773 then
item:transform(2772, 1)
item:decay()
doRelocate({x = 32088, y = 32149, z = 10},{x = 32088, y = 32150, z = 10})
Game.createItem(1282, 1, {x = 32088, y = 32149, z = 10})
end
return true
end

View File

@@ -0,0 +1,20 @@
function onUse(player, item, fromPosition, target, toPosition)
if item:getId() == 2772 and Game.isItemThere({x = 32891, y = 32590, z = 11},2567) and Game.isItemThere ({x = 32843, y = 32649, z = 11},2567) and Game.isItemThere ({x = 32808, y = 32613, z = 11},2567) and Game.isItemThere ({x = 32775, y = 32583, z = 11},2567) and Game.isItemThere ({x = 32756, y = 32494, z = 11},2567) and Game.isItemThere ({x = 32799, y = 32556, z = 11},2567) and Game.isItemThere ({x = 32864, y = 32556, z = 11},1563) then
item:transform(2773, 1)
item:decay()
Game.sendMagicEffect({x = 32864, y = 32556, z = 11}, 14)
Game.removeItemOnMap({x = 32864, y = 32556, z = 11}, 1563)
elseif item:getId() == 2772 and not Game.isItemThere({x = 32864, y = 32556, z = 11}, 1563) then
player:sendCancelMessage("The lever won't budge.")
elseif item:getId() == 2773 and not Game.isItemThere({x = 32864, y = 32556, z = 11}, 1563) then
item:transform(2772, 1)
item:decay()
doRelocate({x = 32864, y = 32556, z = 11},{x = 32864, y = 32557, z = 11})
Game.sendMagicEffect({x = 32864, y = 32556, z = 11}, 14)
Game.createItem(1563, 1, {x = 32864, y = 32556, z = 11})
elseif item:getId() == 2773 and Game.isItemThere({x = 32864, y = 32556, z = 11}, 1563) then
item:transform(2772, 1)
item:decay()
end
return true
end

View File

@@ -0,0 +1,14 @@
function onUse(player, item, fromPosition, target, toPosition)
if item:getId() == 2772 and Game.isItemThere({x = 32090, y = 32148, z = 09},2772) and Game.isItemThere ({x = 32092, y = 32148, z = 09},2772) and Game.isItemThere ({x = 32094, y = 32148, z = 09},2772) and Game.isItemThere ({x = 32088, y = 32148, z = 09},2772) then
item:transform(2773, 1)
item:decay()
Game.removeItemOnMap({x = 32090, y = 32149, z = 10}, 1282)
elseif item:getId() == 2773 then
item:transform(2772, 1)
item:decay()
doRelocate({x = 32090, y = 32149, z = 10},{x = 32090, y = 32150, z = 10})
Game.createItem(1282, 1, {x = 32090, y = 32149, z = 10})
end
return true
end

View File

@@ -0,0 +1,14 @@
function onUse(player, item, fromPosition, target, toPosition)
if tem:getId() == 2772 and Game.isItemThere({x = 32090, y = 32148, z = 09},2772) and Game.isItemThere ({x = 32092, y = 32148, z = 09},2772) and Game.isItemThere ({x = 32094, y = 32148, z = 09},2772) and Game.isItemThere ({x = 32088, y = 32148, z = 09},2772) then
item:transform(2773, 1)
item:decay()
Game.removeItemOnMap({x = 32092, y = 32149, z = 10}, 1282)
elseif item:getId() == 2773 then
item:transform(2772, 1)
item:decay()
doRelocate({x = 32092, y = 32149, z = 10},{x = 32092, y = 32150, z = 10})
Game.createItem(1282, 1, {x = 32092, y = 32149, z = 10})
end
return true
end

View File

@@ -0,0 +1,13 @@
function onUse(player, item, fromPosition, target, toPosition)
if item:getId() == 2772 and Game.isItemThere({x = 32090, y = 32148, z = 09},2772) and Game.isItemThere ({x = 32092, y = 32148, z = 09},2772) and Game.isItemThere ({x = 32094, y = 32148, z = 09},2772) and Game.isItemThere ({x = 32088, y = 32148, z = 09},2772) then
item:transform(2773, 1)
item:decay()
Game.removeItemOnMap({x = 32094, y = 32149, z = 10}, 1282)
elseif item:getId() == 2773 then
item:transform(2772, 1)
item:decay()
doRelocate({x = 32094, y = 32149, z = 10},{x = 32094, y = 32150, z = 10})
Game.createItem(1282, 1, {x = 32094, y = 32149, z = 10})
end
return true
end

View File

@@ -0,0 +1,29 @@
function onUse(player, item, fromPosition, target, toPosition)
if item:getId() == 2772 then
item:transform(2773, 1)
item:decay()
Game.transformItemOnMap({x = 32413, y = 32230, z = 10}, 2772, 2773)
doRelocate({x = 32411, y = 32231, z = 10},{x = 32412, y = 32231, z = 10})
doRelocate({x = 32410, y = 32231, z = 10},{x = 32412, y = 32231, z = 10})
doRelocate({x = 32411, y = 32232, z = 10},{x = 32412, y = 32232, z = 10})
doRelocate({x = 32410, y = 32232, z = 10},{x = 32412, y = 32232, z = 10})
Game.transformItemOnMap({x = 32410, y = 32231, z = 10}, 1771, 622)
Game.transformItemOnMap({x = 32411, y = 32231, z = 10}, 1771, 622)
Game.transformItemOnMap({x = 32411, y = 32232, z = 10}, 1771, 622)
Game.transformItemOnMap({x = 32410, y = 32232, z = 10}, 1771, 622)
Game.createItem(4788, 1, {x = 32410, y = 32231, z = 10})
Game.createItem(4788, 1, {x = 32410, y = 32232, z = 10})
elseif item:getId() == 2773 then
item:transform(2772, 1)
item:decay()
Game.transformItemOnMap({x = 32413, y = 32230, z = 10}, 2773, 2772)
Game.transformItemOnMap({x = 32411, y = 32231, z = 10}, 622, 1771)
Game.transformItemOnMap({x = 32411, y = 32232, z = 10}, 622, 1771)
Game.transformItemOnMap({x = 32410, y = 32231, z = 10}, 622, 1771)
Game.transformItemOnMap({x = 32410, y = 32232, z = 10}, 622, 1771)
Game.removeItemOnMap({x = 32410, y = 32231, z = 10}, 4788)
Game.removeItemOnMap({x = 32410, y = 32232, z = 10}, 4788)
end
return true
end

View File

@@ -0,0 +1,28 @@
function onUse(player, item, fromPosition, target, toPosition)
if item:getId() == 2772 then
item:transform(2773, 1)
item:decay()
Game.transformItemOnMap({x = 32414, y = 32252, z = 10}, 2772, 2773)
doRelocate({x = 32411, y = 32231, z = 10},{x = 32412, y = 32231, z = 10})
doRelocate({x = 32410, y = 32231, z = 10},{x = 32412, y = 32231, z = 10})
doRelocate({x = 32411, y = 32232, z = 10},{x = 32412, y = 32232, z = 10})
doRelocate({x = 32410, y = 32232, z = 10},{x = 32412, y = 32232, z = 10})
Game.transformItemOnMap({x = 32411, y = 32231, z = 10}, 1771, 622)
Game.transformItemOnMap({x = 32410, y = 32231, z = 10}, 1771, 622)
Game.transformItemOnMap({x = 32411, y = 32232, z = 10}, 1771, 622)
Game.transformItemOnMap({x = 32410, y = 32232, z = 10}, 1771, 622)
Game.createItem(4788, 1, {x = 32410, y = 32231, z = 10})
Game.createItem(4788, 1, {x = 32410, y = 32232, z = 10})
elseif item:getId() == 2773 then
item:transform(2772, 1)
item:decay()
Game.transformItemOnMap({x = 32414, y = 32252, z = 10}, 2773, 2772)
Game.transformItemOnMap({x = 32411, y = 32231, z = 10}, 622, 1771)
Game.transformItemOnMap({x = 32411, y = 32232, z = 10}, 622, 1771)
Game.transformItemOnMap({x = 32410, y = 32231, z = 10}, 622, 1771)
Game.transformItemOnMap({x = 32410, y = 32232, z = 10}, 622, 1771)
Game.removeItemOnMap({x = 32410, y = 32231, z = 10}, 4788)
Game.removeItemOnMap({x = 32410, y = 32232, z = 10}, 4788)
end
return true
end

View File

@@ -0,0 +1,20 @@
function onUse(player, item, fromPosition, target, toPosition)
if item:getId() == 2772 and Game.isItemThere({x = 32400, y = 32241, z = 06}, 432) then
item:transform(2773, 1)
item:decay()
Game.transformItemOnMap({x = 32400, y = 32241, z = 06}, 432, 408)
elseif item:getId() == 2772 then
item:transform(2773, 1)
item:decay()
elseif item:getId() == 2773 and Game.isItemThere({x = 32400, y = 32241, z = 06}, 408) then
item:transform(2772, 1)
item:decay()
Game.transformItemOnMap({x = 32400, y = 32241, z = 06}, 408, 432)
doRelocate({x = 32400, y = 32241, z = 06},{x = 32400, y = 32241, z = 07})
elseif item:getId() == 2773 then
item:transform(2772, 1)
item:decay()
end
return true
end

View File

@@ -0,0 +1,19 @@
function onUse(player, item, fromPosition, target, toPosition)
if item:getId() == 2772 and Game.isItemThere({x = 32400, y = 32239, z = 06}, 432) then
item:transform(2773, 1)
item:decay()
Game.transformItemOnMap({x = 32400, y = 32239, z = 06}, 432, 408)
elseif item:getId() == 2772 then
item:transform(2773, 1)
item:decay()
elseif item:getId() == 2773 and Game.isItemThere({x = 32400, y = 32239, z = 06}, 408) then
item:transform(2772, 1)
item:decay()
Game.transformItemOnMap({x = 32400, y = 32239, z = 06}, 408, 432)
doRelocate({x = 32400, y = 32239, z = 06},{x = 32400, y = 32239, z = 07})
elseif item:getId() == 2773 then
item:transform(2772, 1)
item:decay()
end
return true
end

View File

@@ -0,0 +1,13 @@
function onUse(player, item, fromPosition, target, toPosition)
if item:getId() == 2772 then
item:transform(2773, 1)
item:decay()
doRelocate({x = 32225, y = 32276, z = 08},{x = 32225, y = 32276, z = 09})
Game.transformItemOnMap({x = 32225, y = 32276, z = 08}, 351, 369)
elseif item:getId() == 2773 then
item:transform(2772, 1)
item:decay()
Game.transformItemOnMap({x = 32225, y = 32276, z = 08}, 369, 351)
end
return true
end

View File

@@ -0,0 +1,16 @@
function onUse(player, item, fromPosition, target, toPosition)
if item:getId() == 2772 then
item:transform(2773, 1)
item:decay()
doRelocate({x = 32225, y = 32276, z = 10},{x = 32225, y = 32275, z = 10})
Game.createItem(1949, 1, {x = 32225, y = 32276, z = 10})
doRelocate({x = 32233, y = 32276, z = 09},{x = 32232, y = 32276, z = 09})
Game.createItem(1949, 1, {x = 32233, y = 32276, z = 09})
elseif item:getId() == 2773 then
item:transform(2772, 1)
item:decay()
Game.removeItemOnMap({x = 32233, y = 32276, z = 09}, 1949)
Game.removeItemOnMap({x = 32225, y = 32276, z = 10}, 1949)
end
return true
end

View File

@@ -0,0 +1,22 @@
function onUse(player, item, fromPosition, target, toPosition)
if item:getId() == 2773 then
item:transform(2772, 1)
item:decay()
doRelocate({x = 32592, y = 32104, z = 14},{x = 32591, y = 32104, z = 14})
doRelocate({x = 32592, y = 32105, z = 14},{x = 32591, y = 32105, z = 14})
Game.createItem(1270, 1, {x = 32592, y = 32104, z = 14})
Game.createItem(1270, 1, {x = 32592, y = 32105, z = 14})
Game.createItem(1270, 1, {x = 32592, y = 32106, z = 14})
Game.removeItemOnMap({x = 32593, y = 32103, z = 14}, 1271)
Game.removeItemOnMap({x = 32594, y = 32103, z = 14}, 1271)
Game.removeItemOnMap({x = 32595, y = 32103, z = 14}, 1271)
Game.removeItemOnMap({x = 32596, y = 32103, z = 14}, 1271)
Game.removeItemOnMap({x = 32597, y = 32103, z = 14}, 1271)
Game.removeItemOnMap({x = 32598, y = 32103, z = 14}, 1271)
Game.removeItemOnMap({x = 32599, y = 32103, z = 14}, 1271)
Game.removeItemOnMap({x = 32600, y = 32103, z = 14}, 1271)
Game.removeItemOnMap({x = 32601, y = 32103, z = 14}, 1271)
end
return true
end

View File

@@ -0,0 +1,19 @@
function onUse(player, item, fromPosition, target, toPosition)
if item:getId() == 2772 and Game.isItemThere({x = 32864, y = 32556, z = 11}, 1563) then
item:transform(2773, 1)
item:decay()
Game.sendMagicEffect({x = 32864, y = 32556, z = 11}, 14)
Game.removeItemOnMap({x = 32864, y = 32556, z = 11}, 1563)
elseif item:getId() == 2772 and not Game.isItemThere({x = 32864, y = 32556, z = 11}, 1563) then
player:sendCancelMessage("The lever won't budge.")
elseif item:getId() == 2773 and not Game.isItemThere({x = 32864, y = 32556, z = 11}, 1563) then
item:transform(2772, 1)
item:decay()
doRelocate({x = 32864, y = 32556, z = 11},{x = 32864, y = 32557, z = 11})
Game.sendMagicEffect({x = 32864, y = 32556, z = 11}, 14)
Game.createItem(1563, 1, {x = 32864, y = 32556, z = 11})
elseif item:getId() == 2773 then
player:sendCancelMessage("The lever won't budge.")
end
return true
end

View File

@@ -0,0 +1,8 @@
function onUse(player, item, fromPosition, target, toPosition)
if player:getStorageValue(287) == 1 then
player:setStorageValue(287, 2)
Game.createItem(3233, 1, player:getPosition())
Game.sendMagicEffect(item:getPosition(), 2)
end
return true
end

View File

@@ -0,0 +1,9 @@
function onUse(player, item, fromPosition, target, toPosition)
if player:getItemCount(3231) >= 1 and player:getStorageValue(288) == 1 then
Game.sendMagicEffect({x = 33094, y = 32524, z = 01}, 14)
player:removeItem(3231, 1)
Game.createItem(3243, 1, {x = 33095, y = 32524, z = 01})
player:setStorageValue(288, 2)
end
return true
end

View File

@@ -0,0 +1,9 @@
function onUse(player, item, fromPosition, target, toPosition)
if player:getItemCount(3231) >= 1 and player:getStorageValue(283) == 1 then
Game.sendMagicEffect({x = 33048, y = 32630, z = 01}, 14)
player:removeItem(3231, 1)
Game.createItem(3243, 1, {x = 33048, y = 32631, z = 01})
player:setStorageValue(283, 2)
end
return true
end

View File

@@ -0,0 +1,10 @@
function onUse(player, item, fromPosition, target, toPosition)
if player:getStorageValue(259) == 0 then
item:getPosition():sendMagicEffect(23)
player:setStorageValue(259, 1)
else
item:getPosition():sendMagicEffect(23)
player:setStorageValue(259, 0)
end
return true
end

View File

@@ -0,0 +1,5 @@
function onUse(player, item, fromPosition, target, toPosition)
item:getPosition():sendMagicEffect(19)
player:setStorageValue(259, 0)
return true
end

View File

@@ -0,0 +1,10 @@
function onUse(player, item, fromPosition, target, toPosition)
if player:getStorageValue(259) == 4 then
item:getPosition():sendMagicEffect(24)
player:setStorageValue(259,5)
else
item:getPosition():sendMagicEffect(24)
player:setStorageValue(259,0)
end
return true
end

View File

@@ -0,0 +1,10 @@
function onUse(player, item, fromPosition, target, toPosition)
if player:getStorageValue(259) == 2 then
item:getPosition():sendMagicEffect(25)
player:setStorageValue(259,3)
else
item:getPosition():sendMagicEffect(25)
player:setStorageValue(259,0)
end
return true
end

View File

@@ -0,0 +1,5 @@
function onUse(player, item, fromPosition, target, toPosition)
item:getPosition():sendMagicEffect(19)
player:setStorageValue(259,0)
return true
end

View File

@@ -0,0 +1,10 @@
function onUse(player, item, fromPosition, target, toPosition)
if player:getStorageValue(259) == 3 then
item:getPosition():sendMagicEffect(22)
player:setStorageValue(259,4)
else
item:getPosition():sendMagicEffect(22)
player:setStorageValue(259,0)
end
return true
end

View File

@@ -0,0 +1,10 @@
function onUse(player, item, fromPosition, target, toPosition)
if player:getStorageValue(259) == 1 then
item:getPosition():sendMagicEffect(20)
player:setStorageValue(259,2)
else
item:getPosition():sendMagicEffect(20)
player:setStorageValue(259,0)
end
return true
end

View File

@@ -0,0 +1,10 @@
function onUse(player, item, fromPosition, target, toPosition)
if item:getId() == 2772 then
item:transform(2773, 1)
item:decay()
elseif item:getId() == 2773 then
item:transform(2772, 1)
item:decay()
end
return true
end

View File

@@ -0,0 +1,5 @@
function onUse(player, item, fromPosition, target, toPosition)
item:getPosition():sendMagicEffect(19)
player:setStorageValue(259,0)
return true
end

View File

@@ -0,0 +1,4 @@
function onUse(player, item, fromPosition, target, toPosition)
player:teleportTo({x = 32354, y = 32131, z = 9})
return true
end

View File

@@ -0,0 +1,4 @@
function onUse(player, item, fromPosition, target, toPosition)
player:teleportTo({x = 32172, y = 32439, z = 8})
return true
end

View File

@@ -0,0 +1,4 @@
function onUse(player, item, fromPosition, target, toPosition)
player:teleportTo({x = 32508, y = 32176, z = 14})
return true
end

View File

@@ -0,0 +1,16 @@
function onUse(player, item, fromPosition, target, toPosition)
if item:getId() == 2772 and Game.isItemThere({x = 32790, y = 31594, z = 07},1772) then
item:transform(2773, 1)
item:decay()
Game.removeItemOnMap({x = 32790, y = 31594, z = 07}, 1772)
elseif item:getId() == 2773 and Game.isItemThere({x = 32790, y = 31594, z = 07}, 1772) then
item:transform(2772, 1)
item:decay()
elseif item:getId() == 2773 then
item:transform(2772, 1)
item:decay()
doRelocate({x = 32790, y = 31594, z = 07},{x = 32790, y = 31595, z = 07})
Game.createItem(1772, 1, {x = 32790, y = 31594, z = 07})
end
return true
end

View File

@@ -0,0 +1,4 @@
function onUse(player, item, fromPosition, target, toPosition)
return true
end