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

Error Unknown event name: - Help-me Plx

willks123

New Member
Joined
Dec 31, 2012
Messages
24
Reaction score
1
My Server:
TFS 1.3 - Web Gesior

- Error in server: Unknown event name:

Sorry for my english




When starting the Server the errors below appear and I don't know how to fix it. Unknown event name:


> Initializing gamestate
[Warning - Monster::Monster] Unknown event name: BoneCapsule
[Warning - Monster::Monster] Unknown event name: RiftInvaderDeath
[Warning - Monster::Monster] Unknown event name: RiftInvaderDeath
[Warning - Monster::Monster] Unknown event name: RiftInvaderDeath
[Warning - Monster::Monster] Unknown event name: RiftInvaderDeath
[Warning - Monster::Monster] Unknown event name: RiftInvaderDeath
[Warning - Monster::Monster] Unknown event name: RiftInvaderDeath
[Warning - Monster::Monster] Unknown event name: RiftInvaderDeath
[Warning - Monster::Monster] Unknown event name: RiftInvaderDeath
[Warning - Monster::Monster] Unknown event name: RiftInvaderDeath
[Warning - Monster::Monster] Unknown event name: RiftInvaderDeath
[Warning - Monster::Monster] Unknown event name: RiftInvaderDeath
[Warning - Monster::Monster] Unknown event name: RiftInvaderDeath
[Warning - Monster::Monster] Unknown event name: RiftInvaderDeath
[Warning - Monster::Monster] Unknown event name: RiftInvaderDeath
[Warning - Monster::Monster] Unknown event name: RiftInvaderDeath
[Warning - Monster::Monster] Unknown event name: WhiteDeerDeath
[Warning - Monster::Monster] Unknown event name: WhiteDeerDeath
[Warning - Monster::Monster] Unknown event name: WhiteDeerDeath
[Warning - Monster::Monster] Unknown event name: WhiteDeerDeath
[Warning - Monster::Monster] Unknown event name: WhiteDeerDeath
[Warning - Monster::Monster] Unknown event name: WhiteDeerDeath
[Warning - Monster::Monster] Unknown event name: WhiteDeerDeath
[Warning - Monster::Monster] Unknown event name: WhiteDeerDeath
[Warning - Monster::Monster] Unknown event name: WhiteDeerDeath
[Warning - Monster::Monster] Unknown event name: WhiteDeerDeath
[Warning - Monster::Monster] Unknown event name: WhiteDeerDeath
[Warning - Monster::Monster] Unknown event name: WhiteDeerDeath
[Warning - Monster::Monster] Unknown event name: WhiteDeerDeath
[Warning - Monster::Monster] Unknown event name: WhiteDeerDeath
[Warning - Monster::Monster] Unknown event name: WhiteDeerDeath
[Warning - Monster::Monster] Unknown event name: WhiteDeerDeath
[Warning - Monster::Monster] Unknown event name: WhiteDeerDeath
[Warning - Monster::Monster] Unknown event name: WhiteDeerDeath
[Warning - Monster::Monster] Unknown event name: WhiteDeerDeath
[Warning - Monster::Monster] Unknown event name: WhiteDeerDeath
[Warning - Monster::Monster] Unknown event name: WhiteDeerDeath
[Warning - Monster::Monster] Unknown event name: WhiteDeerDeath
[Warning - Monster::Monster] Unknown event name: WhiteDeerDeath
[Warning - Monster::Monster] Unknown event name: WhiteDeerDeath
[Warning - Monster::Monster] Unknown event name: WhiteDeerDeath
[Warning - Monster::Monster] Unknown event name: WhiteDeerDeath
[Warning - Monster::Monster] Unknown event name: WhiteDeerDeath
[Warning - Monster::Monster] Unknown event name: WhiteDeerDeath
[Warning - Monster::Monster] Unknown event name: WhiteDeerDeath
[Warning - Monster::Monster] Unknown event name: WhiteDeerDeath
[Warning - Monster::Monster] Unknown event name: WhiteDeerDeath
[Warning - Monster::Monster] Unknown event name: WhiteDeerDeath
[Warning - Monster::Monster] Unknown event name: WhiteDeerDeath
[Warning - Monster::Monster] Unknown event name: WhiteDeerDeath
[Warning - Monster::Monster] Unknown event name: WhiteDeerDeath
[Warning - Monster::Monster] Unknown event name: WhiteDeerDeath
[Warning - Monster::Monster] Unknown event name: WhiteDeerDeath
[Warning - Monster::Monster] Unknown event name: WhiteDeerDeath
[Warning - Monster::Monster] Unknown event name: WhiteDeerDeath
[Warning - Monster::Monster] Unknown event name: WhiteDeerDeath
[Warning - Monster::Monster] Unknown event name: WhiteDeerDeath
[Warning - Monster::Monster] Unknown event name: WhiteDeerDeath
Mostrar mais


Creaturescript White Deer


Lua:
local config = {

    -- ordered by chance, the last chance being 100

    {chance = 30, monster = 'Enraged White Deer', message = 'The white deer summons all his strength and turns to fight!'},

    {chance = 100, monster = 'Desperate White Deer', message = 'The white deer desperately tries to escape!'}

}


local whiteDeerDeath = CreatureEvent("WhiteDeerDeath")

function whiteDeerDeath.onDeath(creature, corpse, killer, mostDamageKiller, unjustified, mostDamageUnjustified)

    local targetMonster = creature:getMonster()

    if not targetMonster or targetMonster:getMaster() then

        return true

    end


    local chance = math.random(100)

    for i = 1, #config do

        if chance <= config[i].chance then

            local spawnMonster = Game.createMonster(config[i].monster, targetMonster:getPosition(), true, true)

            if spawnMonster then

                spawnMonster:getPosition():sendMagicEffect(CONST_ME_TELEPORT)

                targetMonster:say(config[i].message, TALKTYPE_MONSTER_SAY)

            end

            break

        end

    end

    return true

end

whiteDeerDeath:register()


rift_invader_death

Lua:
local crystals = {

    [1] = {fromPosition = Position(33389, 31467, 14), toPosition = Position(33391, 31469, 14), crystalPosition = Position(33390, 31468, 14), globalStorage = GlobalStorage.FerumbrasAscendant.Crystals.Crystal1},

    [2] = {fromPosition = Position(33393, 31467, 14), toPosition = Position(33395, 31469, 14), crystalPosition = Position(33394, 31468, 14), globalStorage = GlobalStorage.FerumbrasAscendant.Crystals.Crystal2},

    [3] = {fromPosition = Position(33396, 31470, 14), toPosition = Position(33398, 31472, 14), crystalPosition = Position(33397, 31471, 14), globalStorage = GlobalStorage.FerumbrasAscendant.Crystals.Crystal3},

    [4] = {fromPosition = Position(33396, 31474, 14), toPosition = Position(33398, 31476, 14), crystalPosition = Position(33397, 31475, 14), globalStorage = GlobalStorage.FerumbrasAscendant.Crystals.Crystal4},

    [5] = {fromPosition = Position(33393, 31477, 14), toPosition = Position(33395, 31479, 14), crystalPosition = Position(33394, 31478, 14), globalStorage = GlobalStorage.FerumbrasAscendant.Crystals.Crystal5},

    [6] = {fromPosition = Position(33389, 31477, 14), toPosition = Position(33391, 31479, 14), crystalPosition = Position(33390, 31478, 14), globalStorage = GlobalStorage.FerumbrasAscendant.Crystals.Crystal6},

    [7] = {fromPosition = Position(33386, 31474, 14), toPosition = Position(33388, 31476, 14), crystalPosition = Position(33387, 31475, 14), globalStorage = GlobalStorage.FerumbrasAscendant.Crystals.Crystal7},

    [8] = {fromPosition = Position(33386, 31470, 14), toPosition = Position(33388, 31472, 14), crystalPosition = Position(33387, 31471, 14), globalStorage = GlobalStorage.FerumbrasAscendant.Crystals.Crystal8}

}


local riftInvaderDeath = CreatureEvent("RiftInvaderDeath")

function riftInvaderDeath.onDeath(creature, corpse, lasthitkiller, mostdamagekiller, lasthitunjustified, mostdamageunjustified)

    if not targetMonster or targetMonster:getName():lower() ~= 'rift invader' then

        return true

    end


    local targetMonster = creature:getMonster()

    local pos = Position(33392 + math.random(-10, 10), 31473 + math.random(-10, 10), 14)

    local name = targetMonster:getName():lower()

    Game.createMonster(name, pos)


    for i = 1, #crystals do

        local crystal = crystals[i]

        if isInRange(targetMonster:getPosition(), crystal.fromPosition, crystal.toPosition) then

            if Game.getStorageValue(crystal.globalStorage) > 8 then

                local item = Tile(crystal.crystalPosition):getItemById(17580)

                if not item then

                    return true

                end

                item:transform(17586)

                Game.setStorageValue(GlobalStorage.FerumbrasAscendant.Crystals.AllCrystals, Game.getStorageValue(GlobalStorage.FerumbrasAscendant.Crystals.AllCrystals) + 1)

            end

            if Game.getStorageValue(GlobalStorage.FerumbrasAscendant.Crystals.AllCrystals) == 8 then

                local creature = Tile(Position(33392, 31473, 14)):getTopCreature()

                creature:say('NOOOOOOOOOOO!', TALKTYPE_MONSTER_YELL)

                creature:say('FERUMBRAS BURSTS INTO SOUL SPLINTERS!', TALKTYPE_MONSTER_YELL, nil, nil, Position(33392, 31475, 14))

                creature:remove()

                for a = 1, #crystals do

                    local crystalEffect = crystals[i]

                    crystalEffect.crystalPosition:sendMagicEffect(CONST_ME_FERUMBRAS)

                    Game.createMonster('Ferumbras Soul Splinter', Position(33392, 31473, 14), false, true)

                end

            end

            Game.setStorageValue(crystal.globalStorage, Game.getStorageValue(crystal.globalStorage) + 1)

            lasthitkiller:say("The negative energy of the rift creature is absorbed by the crystal!", TALKTYPE_MONSTER_SAY, nil, nil, crystal.crystalPosition)

            lasthitkiller:say("ARGH!", TALKTYPE_MONSTER_SAY, nil, nil, Position(33392, 31473, 14))

        end

    end


    local vortex = Game.createItem(22455, 1, creature:getPosition())

    addEvent(function()

        vortex:remove(1)

    end, 10 * 1000)

    return true

end


riftInvaderDeath:register()

bone_capsule

Lua:
local boneCapsule = CreatureEvent("BoneCapsule")

function boneCapsule.onDeath(creature, corpse, lasthitkiller, mostdamagekiller, lasthitunjustified, mostdamageunjustified)

    local targetMonster = creature:getMonster()

    local position = targetMonster:getPosition()

    position:sendMagicEffect(CONST_ME_POFF)

    if not targetMonster or targetMonster:getName():lower() ~= 'bone capsule' then

        return true

    end


    local monster = Game.createMonster('bone capsule', Position(33485, 32333, 14), true, true)

    if not monster then

        return true

    end


    local ragiaz = Tile(Position(33487, 32333, 14)):getTopCreature()

    ragiaz:teleportTo(position)

    ragiaz:addHealth(math.random(25000, 35000), true, true)

    return true

end


boneCapsule:register()

Image Error:

image.thumb.png.f47853a325f1f1a07a1906475ebf42c3.png
 

Fablow

Intermediate OT User
Content Editor
Joined
May 7, 2008
Messages
1,568
Solutions
6
Reaction score
138
Location
Canada
GitHub
Fablow77
Well, my guess that your event isn't registered in creaturescripts.xml.

XML:
<event type="death" name="BoneCapsule" script="YOURSCRIPT.lua" />
<event type="death" name="WhiteDeerDeath" script="YOURSCRIPT.lua" />
<event type="death" name="RiftInvaderDeath" script="YOURSCRIPT.lua" />
 
OP
OP
W

willks123

New Member
Joined
Dec 31, 2012
Messages
24
Reaction score
1
Well, my guess that your event isn't registered in creaturescripts.xml.

XML:
<event type="death" name="BoneCapsule" script="YOURSCRIPT.lua" />
<event type="death" name="WhiteDeerDeath" script="YOURSCRIPT.lua" />
<event type="death" name="RiftInvaderDeath" script="YOURSCRIPT.lua" />

I added, but the error continued. Do you know what I can do to fix it?
Post automatically merged:

they were not added to login.lua most likely

How do I do this?
 
Top