• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Bug animated dead rune

Sigoles

Discord: @sigoles
Joined
Nov 20, 2015
Messages
1,209
Solutions
2
Reaction score
154
Hello, I think this rune is bugged, cuz the normal is only two monsters, no more right?

Script, spell:

Code:
function onCastSpell(creature, variant, isHotkey)
    local position = Variant.getPosition(variant)
    local tile = Tile(position)
    if tile and creature:getSkull() ~= SKULL_BLACK then
        local corpse = tile:getTopDownItem()
        if corpse then
            local itemType = corpse:getType()
            if itemType:isCorpse() and itemType:isMovable() then
                local monster = Game.createMonster("Skeleton", position)
                if monster then
                    corpse:remove()
                    monster:setMaster(creature)
                    position:sendMagicEffect(CONST_ME_MAGIC_BLUE)
                    return true
                end
            end
        end
    end

    creature:getPosition():sendMagicEffect(CONST_ME_POFF)
    creature:sendCancelMessage(RETURNVALUE_NOTPOSSIBLE)
    return false
end
 
Back
Top