mirror of
				https://github.com/ErikasKontenis/SabrehavenServer.git
				synced 2025-10-31 11:56:23 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			10 lines
		
	
	
		
			237 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
		
			237 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
| function onUse(player, item, fromPosition, target, toPosition)
 | |
| 	if math.random(1, 100) <= 1 and math.random(1, 100) <= 10 then
 | |
| 		item:transform(2975, 0)
 | |
| 		item:decay()
 | |
| 	else
 | |
| 		item:getPosition():sendMagicEffect(22)
 | |
| 	end
 | |
| 	return true
 | |
| end
 | 
