mirror of
				https://github.com/ErikasKontenis/SabrehavenServer.git
				synced 2025-10-31 03:56:22 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			23 lines
		
	
	
		
			563 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			563 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
| local stonePosition = Position(32826, 32274, 11)
 | |
| 
 | |
| function removeStone()
 | |
| 	local stoneItem = Tile(stonePosition):getItemById(1772)
 | |
| 	if stoneItem then
 | |
| 		stoneItem:remove()
 | |
| 		stonePosition:sendMagicEffect(CONST_ME_POFF)
 | |
| 	end
 | |
| end
 | |
| 
 | |
| function onStepIn(creature, item, position, fromPosition)
 | |
| 	local player = creature:getPlayer()
 | |
| 	if not player then
 | |
| 		return true
 | |
| 	end
 | |
| 
 | |
| 	player:teleportTo(Position(32826, 32273, 12))
 | |
| 	player:getPosition():sendMagicEffect(CONST_ME_EXPLOSIONAREA)
 | |
| 	Game.createItem(1772, 1, stonePosition)
 | |
| 	addEvent(removeStone, 10 * 1000)
 | |
| 	return true
 | |
| end
 | 
