local boss = {
[3193] = "fury of the emperor",
[3194] = "wrath of the emperor",
[3195] = "scorn of the emperor",
[3196] = "spite of the emperor",
}
local statuesPosition = {
Position(1029, 895, 15)
}
local function transformStatue()
if Tile(statuesPosition[1]):getItemById(12383) then
return false
else
local oldStatue = Tile(statuesPosition[1]):getItemById(11753)
oldStatue:remove()
local newStatue = Game.createItem(12383, 1, statuesPosition[1])
newStatue:setAttribute(ITEM_ATTRIBUTE_ACTIONID, 3193)
return true
end
end
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
if boss[target.uid] and target.itemid == 12383 then
target:transform(11753)
Game.createMonster(boss[target.uid], {x = toPosition.x + 4, y = toPosition.y, z = toPosition.z})
Game.setStorageValue(target.uid - 4, 1)
...
...
...