Skip to content

Commit

Permalink
An Uneasy Alliance Quest
Browse files Browse the repository at this point in the history
  • Loading branch information
htc16 committed Aug 7, 2024
1 parent 77bc066 commit 92d42cd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions data-otservbr-global/npc/curos.lua
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ local function creatureSayCallback(npc, creature, type, message)
}, npc, creature)
player:setStorageValue(TheNewFrontier.Questline, 19)
player:setStorageValue(TheNewFrontier.Mission06, 4) --Questlog, The New Frontier Quest "Mission 06: Days Of Doom"
elseif player:getStorageValue(TheNewFrontier.Mission06) >= 4 and player:getStorageValue(AnUneasyAlliance.Questline) < 1 then --An Uneasy Alliance Quest
elseif player:getStorageValue(TheNewFrontier.Mission06) >= 5 and player:getStorageValue(AnUneasyAlliance.Questline) < 1 then --An Uneasy Alliance Quest
npcHandler:say({
"So you still think you can be of any use for us? Words are cheap and easy. Admittedly, you've passed our first test but even some resilient beast might have accomplished that. ...",
"Your actions will tell if you are only yelping for attention like a puppy or if you have the teeth of a wolf. ...",
Expand All @@ -81,7 +81,7 @@ local function creatureSayCallback(npc, creature, type, message)
player:setStorageValue(AnUneasyAlliance.Questline, 1)
player:setStorageValue(AnUneasyAlliance.QuestDoor, 0)
elseif player:getStorageValue(AnUneasyAlliance.Questline) == 1 and player:getStorageValue(AnUneasyAlliance.QuestDoor) == 1 then
npcHandler:say({ "With the death of their leader, the rebels return to our camps one by one, deeply humiliated. It might be a wise decision to let a useful tool like you continue to exist." }, npc, creature)
npcHandler:say("With the death of their leader, the rebels return to our camps one by one, deeply humiliated. It might be a wise decision to let a useful tool like you continue to exist.", npc, creature)
player:setStorageValue(AnUneasyAlliance.Questline, 2)
elseif player:getStorageValue(AnUneasyAlliance.Questline) == 2 then
npcHandler:say({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
local renegadeOrcKill = CreatureEvent("RenegadeOrcDeath")
function renegadeOrcKill.onDeath(creature, _corpse, _lastHitKiller, player, mostDamageKiller)
onDeathForParty(creature, mostDamageKiller, function(creature, player)

function renegadeOrcKill.onDeath(creature)
onDeathForDamagingPlayers(creature, function(creature, player)
if player:getStorageValue(Storage.Quest.U8_54.AnUneasyAlliance.QuestDoor) == 0 then
player:setStorageValue(Storage.Quest.U8_54.AnUneasyAlliance.QuestDoor, 1)
end
end)

return true
end

Expand Down

0 comments on commit 92d42cd

Please sign in to comment.