mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-10-18 16:23:27 +02:00
Full Distribution
This commit is contained in:
10
data/actions/scripts/misc/letter_bag.lua
Normal file
10
data/actions/scripts/misc/letter_bag.lua
Normal file
@@ -0,0 +1,10 @@
|
||||
function onUse(player, item, fromPosition, target, toPosition)
|
||||
if target:getId() == 3221 and toPosition.x == 31948 and toPosition.y == 31711 and toPosition.z == 06 then
|
||||
item:transform(2859, 1)
|
||||
item:decay()
|
||||
player:setStorageValue(244, 2)
|
||||
Game.sendMagicEffect({x = 31948, y = 31711, z = 06}, 19)
|
||||
return true
|
||||
end
|
||||
return false
|
||||
end
|
Reference in New Issue
Block a user