that_cheating_gnome.lua 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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 : Oakmyst Forest
  7. Quest Giver: Jorn Sorefoot
  8. Preceded by: None
  9. Followed by: <quest-to-follow>
  10. --]]
  11. function Init(Quest)
  12. 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, 1950094)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1_Complete_GotJornsPack")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. FaceTarget(QuestGiver, Player)
  17. conversation = CreateConversation()
  18. PlayFlavor(QuestGiver, "voiceover/english/tutorial_revamp/jorn_sorefoot/qey_adv01_oakmyst/quests/jorn/jorn005a.mp3", "", "", 1536076306, 896415484, Player)
  19. AddConversationOption(conversation, "You're welcome.")
  20. StartConversation(conversation, QuestGiver, Player, "Thanks for your help. I'm just about worn out from all this looking.")
  21. end
  22. function Declined(Quest, QuestGiver, Player)
  23. end
  24. function Step1_Complete_GotJornsPack(Quest, QuestGiver, Player)
  25. UpdateQuestStepDescription(Quest, 1, "I have recovered Jorn's money.")
  26. AddQuestStepChat(Quest, 2, "I need to return the money to Jorn.", 1, ".", 2165, 1950022)
  27. AddQuestStepCompleteAction(Quest, 2, "Step2_Complete_SpokeWithJorn")
  28. end
  29. function Step2_Complete_SpokeWithJorn(Quest, QuestGiver, Player)
  30. UpdateQuestStepDescription(Quest, 2, "I have recovered Jorn's money.")
  31. AddQuestStepChat(Quest, 3, "I need to give Fluwkowir's book to Lieutenant Charlin.", 1, ".", 0, 1950015)
  32. AddQuestStepCompleteAction(Quest, 3, "QuestComplete")
  33. end
  34. function QuestComplete(Quest, QuestGiver, Player)
  35. -- Flukowir's Satchel
  36. RemoveItem(Player, 6389)
  37. 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.")
  38. GiveQuestReward(Quest, Player)
  39. end
  40. function Reload(Quest, QuestGiver, Player, Step)
  41. if Step == 1 then
  42. Step1_Complete_GotJornsPack(Quest, QuestGiver, Player)
  43. elseif Step == 2 then
  44. Step2_Complete_SpokeWithJorn(Quest, QuestGiver, Player)
  45. end
  46. end