fix many bugs found from another nostalrius forks

This commit is contained in:
ErikasKontenis
2019-09-15 14:42:28 +03:00
parent 89df66e1c9
commit f2cbc2dc1c
10 changed files with 60 additions and 48 deletions

View File

@@ -1,5 +1,5 @@
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
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 = 32092, y = 32149, z = 10}, 1282)