mirror of
				https://github.com/ErikasKontenis/SabrehavenServer.git
				synced 2025-10-31 11:56:23 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			518 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			518 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
| function onStepIn(creature, item, position, fromPosition)
 | |
| 	if creature:isPlayer() then 
 | |
| 		doRelocate(item:getPosition(),{x = 33128, y = 32656, z = 15})
 | |
| 		item:getPosition():sendMagicEffect(11)
 | |
| 		Game.sendMagicEffect({x = 33128, y = 32656, z = 15}, 11)
 | |
| 		creature:getPlayer():setStorageValue(259,0)
 | |
| 	end
 | |
| end
 | |
| 
 | |
| function onAddItem(item, tileitem, position)
 | |
| 	doRelocate(item:getPosition(),{x = 33128, y = 32656, z = 15})
 | |
| 	item:getPosition():sendMagicEffect(11)
 | |
| 	Game.sendMagicEffect({x = 33128, y = 32656, z = 15}, 11)
 | |
| end
 | 
