mirror of
				https://github.com/ErikasKontenis/SabrehavenServer.git
				synced 2025-10-31 03:56:22 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			23 lines
		
	
	
		
			688 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			688 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
| function onStepIn(creature, item, position, fromPosition)
 | |
| 	local player = creature:getPlayer()
 | |
| 	if not player then
 | |
| 		return true
 | |
| 	end
 | |
| 	
 | |
| 	if player:getStorageValue(17511) ~= 1 then
 | |
| 		Game.sendMagicEffect({x = 31951, y = 32555, z = 08}, 11)
 | |
| 		player:teleportTo({x = 31951, y = 32555, z = 08}) 
 | |
| 		return true
 | |
| 	end
 | |
| 
 | |
| 	doRelocate(item:getPosition(),{x = 31919, y = 32659, z = 08})
 | |
| 	item:getPosition():sendMagicEffect(11)
 | |
| 	Game.sendMagicEffect({x = 31919, y = 32659, z = 08}, 11)
 | |
| end
 | |
| 
 | |
| function onAddItem(item, tileitem, position)
 | |
| 	doRelocate(item:getPosition(),{x = 31919, y = 32659, z = 08})
 | |
| 	item:getPosition():sendMagicEffect(11)
 | |
| 	Game.sendMagicEffect({x = 31919, y = 32659, z = 08}, 11)
 | |
| end
 | 
