mirror of
				https://github.com/ErikasKontenis/SabrehavenServer.git
				synced 2025-10-31 11:56:23 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			10 lines
		
	
	
		
			280 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
		
			280 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
| function onUse(player, item, fromPosition, target, toPosition)
 | |
| 	if player:getStorageValue(259) == 0 then
 | |
| 		item:getPosition():sendMagicEffect(23)
 | |
| 		player:setStorageValue(259, 1)
 | |
| 	else
 | |
| 		item:getPosition():sendMagicEffect(23)
 | |
| 		player:setStorageValue(259, 0)
 | |
| 	end
 | |
| 	return true
 | |
| end | 
