• 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 Register event

Hokku

Member
Joined
Jul 25, 2013
Messages
95
Reaction score
18
Location
Extremadura, Spain
Hello!
Someone can tell me if i need to register player:registerEvent("InquisitionUngreez") in login.lua to make this script work? I putted it but not working, searched all Ninjulz orts github repository and only these seems related to Ungreez :s. TFS 1.1

Im using this script in data/creaturescript:
Code:
function onKill(creature, target)
    local targetMonster = target:getMonster()
    if not targetMonster then
        return true
    end

    if targetMonster:getName():lower() ~= 'ungreez' then
        return true
    end

    local player = creature:getPlayer()
    if player:getStorageValue(Storage.TheInquisition.Questline) == 18 then
        -- The Inquisition Questlog- 'Mission 6: The Demon Ungreez'
        player:setStorageValue(Storage.TheInquisition.Mission06, 2)
        player:setStorageValue(Storage.TheInquisition.Questline, 19)
    end
    return true
end

creaturescript.xml
Code:
    <event type="kill" name="InquisitionUngreez" script="quests/inquisition/inquisitionQuestUngreez.lua" />

login.lua

Code:
local events = {
    'TutorialCockroach',
    'ElementalSpheresOverlords',
    'BigfootBurdenVersperoth',
    'BigfootBurdenWarzone',
    'BigfootBurdenWeeper',
    'BigfootBurdenWiggler',
    'SvargrondArenaKill',
    'NewFrontierShardOfCorruption',
    'NewFrontierTirecz',
    'ServiceOfYalaharDiseasedTrio',
    'ServiceOfYalaharAzerus',
    'ServiceOfYalaharQuaraLeaders',
    'InquisitionBosses',
    'InquisitionUngreez',
    'KillingInTheNameOfKills',
    'MastersVoiceServants',
    'SecretServiceBlackKnight',
    'ThievesGuildNomad',
    'WotELizardMagistratus',
    'WotELizardNoble',
    'WotEKeeper',
    'WotEBosses',
    'WotEZalamon',
    'PlayerDeath',
    'AdvanceSave',
    'AdvanceRookgaard',
    'PythiusTheRotten',

    'DropLoot'
}
 
Last edited:
Back
Top