First commit
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
local lava = {
|
||||
Position(32912, 32209, 15),
|
||||
Position(32913, 32209, 15),
|
||||
Position(32912, 32210, 15),
|
||||
Position(32913, 32210, 15)
|
||||
}
|
||||
|
||||
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
|
||||
local lavaTile
|
||||
for i = 1, #lava do
|
||||
lavaTile = Tile(lava[i]):getGround()
|
||||
if lavaTile and isInArray({410, 727}, lavaTile.itemid) then
|
||||
lavaTile:transform(lavaTile.itemid == 727 and 410 or 727)
|
||||
lava[i]:sendMagicEffect(CONST_ME_POFF)
|
||||
end
|
||||
end
|
||||
|
||||
item:transform(item.itemid == 2772 and 2773 or 2772)
|
||||
return true
|
||||
end
|
||||
Reference in New Issue
Block a user