mirror of
				https://github.com/ErikasKontenis/SabrehavenServer.git
				synced 2025-10-31 11:56:23 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			22 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			Lua
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			Lua
		
	
	
	
	
	
| function onStepIn(creature, item, position, fromPosition)
 | |
| 	if Game.isItemThere({x = 33368, y = 32763, z = 14},2567) and Game.isItemThere ({x = 33382, y = 32786, z = 14},2567) and Game.isItemThere ({x = 33305, y = 32734, z = 14},2567) and Game.isItemThere ({x = 33338, y = 32702, z = 14},2567) and Game.isItemThere ({x = 33320, y = 32682, z = 14},2567) and Game.isItemThere ({x = 33349, y = 32680, z = 14},2567) and Game.isItemThere ({x = 33358, y = 32701, z = 14},2567) and Game.isItemThere ({x = 33357, y = 32749, z = 14}, 2567) then 
 | |
| 		doRelocate(item:getPosition(),{x = 33367, y = 32805, z = 14})
 | |
| 		item:getPosition():sendMagicEffect(11)
 | |
| 		Game.sendMagicEffect({x = 33367, y = 32805, z = 14}, 11)
 | |
| 	else
 | |
| 		doRelocate(item:getPosition(),{x = 33399, y = 32801, z = 14})
 | |
| 		Game.sendMagicEffect({x = 33399, y = 32801, z = 14}, 11)
 | |
| 	end
 | |
| end
 | |
| 
 | |
| function onAddItem(item, tileitem, position)
 | |
| 	if Game.isItemThere({x = 33368, y = 32763, z = 14},2567) and Game.isItemThere ({x = 33382, y = 32786, z = 14},2567) and Game.isItemThere ({x = 33305, y = 32734, z = 14},2567) and Game.isItemThere ({x = 33338, y = 32702, z = 14},2567) and Game.isItemThere ({x = 33320, y = 32682, z = 14},2567) and Game.isItemThere ({x = 33349, y = 32680, z = 14},2567) and Game.isItemThere ({x = 33358, y = 32701, z = 14},2567) and Game.isItemThere ({x = 33357, y = 32749, z = 14}, 2567) then 
 | |
| 		doRelocate(tileitem:getPosition(),{x = 33367, y = 32805, z = 14})
 | |
| 		tileitem:getPosition():sendMagicEffect(11)
 | |
| 		Game.sendMagicEffect({x = 33367, y = 32805, z = 14}, 11)
 | |
| 	else
 | |
| 		doRelocate(tileitem:getPosition(),{x = 33399, y = 32801, z = 14})
 | |
| 		Game.sendMagicEffect({x = 33399, y = 32801, z = 14}, 11)
 | |
| 	end
 | |
| end
 | 
