9
3

that_cheating_gnome.lua 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. --[[
  2. Script Name : Quests/Oakmyst/that_cheating_gnome.lua
  3. Script Purpose : Handles the quest, "That Cheating Gnome!"
  4. Script Author : Scatman
  5. Script Date : 2009.05.03
  6. Zone : OakmystForest
  7. Quest Giver: Jorn Sorefoot
  8. Preceded by: None
  9. Followed by: <quest-to-follow>
  10. --]]
  11. local Fluwkowir = 1950073
  12. local Jorn = 1950012
  13. local LieutenantCharlin = 1950008
  14. local FluwkowirSatchel = 7360
  15. function Init(Quest)
  16. AddQuestStepKill(Quest, 1, "I need to recover Jorn's money from Fluwkowir Haggleton. Jorn last saw Fluwkowir heading west toward the docks.", 1, 100, ".", 399, Fluwkowir)
  17. AddQuestStepCompleteAction(Quest, 1, "Step1_Complete_GotJornsPack")
  18. end
  19. function Accepted(Quest, QuestGiver, Player)
  20. FaceTarget(QuestGiver, Player)
  21. conversation = CreateConversation()
  22. PlayFlavor(QuestGiver, "voiceover/english/tutorial_revamp/jorn_sorefoot/qey_adv01_oakmyst/quests/jorn/jorn005a.mp3", "", "", 1536076306, 896415484, Player)
  23. AddConversationOption(conversation, "You're welcome.")
  24. StartConversation(conversation, QuestGiver, Player, "Thanks for your help. I'm just about worn out from all this looking.")
  25. end
  26. function Declined(Quest, QuestGiver, Player)
  27. end
  28. function Step1_Complete_GotJornsPack(Quest, QuestGiver, Player)
  29. UpdateQuestStepDescription(Quest, 1, "I have recovered Jorn's money.")
  30. AddQuestStepChat(Quest, 2, "I need to return the money to Jorn.", 1, ".", 2165, Jorn)
  31. AddQuestStepCompleteAction(Quest, 2, "Step2_Complete_SpokeWithJorn")
  32. end
  33. function Step2_Complete_SpokeWithJorn(Quest, QuestGiver, Player)
  34. UpdateQuestStepDescription(Quest, 2, "I have recovered Jorn's money.")
  35. AddQuestStepChat(Quest, 3, "I need to give Fluwkowir's book to Lieutenant Charlin.", 1, ".", 0, LieutenantCharlin)
  36. AddQuestStepCompleteAction(Quest, 3, "QuestComplete")
  37. end
  38. function QuestComplete(Quest, QuestGiver, Player)
  39. -- Flukowir's Satchel
  40. RemoveItem(Player, FluwkowirSatchel)
  41. UpdateQuestDescription(Quest, "I found Fluwkowir. After confronting him he attacked me. On him he had a small satchel, in that satchel I found Jorn's money but also some strange notes written in Lucanic.")
  42. GiveQuestReward(Quest, Player)
  43. end
  44. function Reload(Quest, QuestGiver, Player, Step)
  45. if Step == 1 then
  46. Step1_Complete_GotJornsPack(Quest, QuestGiver, Player)
  47. elseif Step == 2 then
  48. Step2_Complete_SpokeWithJorn(Quest, QuestGiver, Player)
  49. end
  50. end