• 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!

Solved creaturescript not working

bagocobra

New Member
Joined
Oct 21, 2012
Messages
48
Reaction score
2
hello friends, i'm trying to create a monster that when dies become another monster, exactly like the snake god essence of wrath of emperor quest, i already tryed copying the sript of the snake god essence and change the names, but it seems to not call the script... (i changed in the creaturescript.xml too), somebody know if i need to change in some place too to call the script when the monster die?
 
Solution
i want to start with ferumbras soul splinter, and then change to desestabilized ferumbras, and then to ferumbras mortal shell... changing like zalamon, but when i start the server and kill ferumbras soul splinter, it only dies...
Server 10.90 version
Did you register it into login.lua? near the bottom?

Also, is your folder named the same?
FerumbrasAscedantQuest
Ascendant? or like you have it above?

When you start-up the server, these error's should appear as 'file not found'
or creature event not registered.

If you've checked all above, try the tried and true print method.
Lua:
local bossForms = {
    ['ferumbras soul splinter'] = {
        text = 'IT\'S NOT THAT EASY MORTALS! FEEL THE POWER OF THE GOD!',
        newForm =...
hello friends, i'm trying to create a monster that when dies become another monster, exactly like the snake god essence of wrath of emperor quest, i already tryed copying the sript of the snake god essence and change the names, but it seems to not call the script... (i changed in the creaturescript.xml too), somebody know if i need to change in some place too to call the script when the monster die?
Post your scripts and your server version.
 
i want to start with ferumbras soul splinter, and then change to desestabilized ferumbras, and then to ferumbras mortal shell... changing like zalamon, but when i start the server and kill ferumbras soul splinter, it only dies...
Server 10.90 version
 

Attachments

Last edited:
i want to start with ferumbras soul splinter, and then change to desestabilized ferumbras, and then to ferumbras mortal shell... changing like zalamon, but when i start the server and kill ferumbras soul splinter, it only dies...
Server 10.90 version
Did you register it into login.lua? near the bottom?

Also, is your folder named the same?
FerumbrasAscedantQuest
Ascendant? or like you have it above?

When you start-up the server, these error's should appear as 'file not found'
or creature event not registered.

If you've checked all above, try the tried and true print method.
Lua:
local bossForms = {
    ['ferumbras soul splinter'] = {
        text = 'IT\'S NOT THAT EASY MORTALS! FEEL THE POWER OF THE GOD!',
        newForm = 'desestabilized ferumbras'
    },
    ['desestabilized ferumbras'] = {
        text = 'NOOO! NOW YOU HERETICS WILL FACE MY GODLY WRATH!',
        newForm = 'ferumbras mortal shell'
    }
}

function onKill(player, target)
    print(1)
    local targetMonster = target:getMonster()
    if not targetMonster then
        print(2)
        return true
    end
    print(3)
    if targetMonster:getName():lower() == 'ferumbras mortal shell' then
        print(4)
        return true
    end
    print(5)
    local name = targetMonster:getName():lower()
    local bossConfig  = bossForms[name]
    if not bossConfig then
        print(6)
        return true
    end
    print(7)
    local found = false
    for k, v in ipairs(Game.getSpectators(targetMonster:getPosition())) do
        if v:getName():lower() == bossConfig.newForm then
            print(8)
            found = true
            break
        end
    end
    print(9)
    if not found then
        print(10)
        Game.createMonster(bossConfig.newForm, targetMonster:getPosition(), false, true)
        player:say(bossConfig.text, TALKTYPE_MONSTER_SAY)
    end
    print(11)
    return true
end
 
Solution
i did all that you said, but it does't happens nothing, it seems that the script is not being read, because i change in zalamon script and works when i kill the ferumbras soul splinter, but when i change in ferumbras soul splinter script it doesn't work, and its correct in the directory, its equal (ascedant), any other idea? in this login.lua it stays where? i think i found it but doesn't have nothing to change...
 
Back
Top