Hokku
Member
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:
creaturescript.xml
login.lua
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: