9
3

Mooshga.lua 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. --[[
  2. Script Name : SpawnScripts/Commonlands/Mooshga.lua
  3. Script Author : Premierio015
  4. Script Date : 2020.09.06 02:09:46
  5. Script Purpose :
  6. :
  7. --]]
  8. HyenaJerky = 429
  9. function spawn(NPC)
  10. end
  11. function hailed(NPC, Spawn)
  12. FaceTarget(NPC, Spawn)
  13. conversation = CreateConversation()
  14. if not HasQuest(Spawn, HyenaJerky) and not HasCompletedQuest(Spawn, HyenaJerky) then
  15. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1055.mp3", "", "", 0, 0, Spawn)
  16. AddConversationOption(conversation, "Captain Arellius said you could use a hand. You are a cook?", "dlg1")
  17. AddConversationOption(conversation, "I don't think I'm hungry right now.")
  18. StartConversation(conversation, NPC, Spawn, "So, you be adventurer sent by Militia to help Mooshga? You look like you hungry! Mooshga feed you good!")
  19. elseif GetQuestStep(Spawn, HyenaJerky) == 1 then
  20. quest1progress(NPC, Spawn)
  21. elseif GetQuestStep(Spawn, HyenaJerky) == 2 then
  22. dlg3(NPC, Spawn)
  23. end
  24. end
  25. function dlg1(NPC, Spawn)
  26. FaceTarget(NPC, Spawn)
  27. conversation = CreateConversation()
  28. AddConversationOption(conversation, "Come to think of it, I am hungry. What are you going to make?", "dlg2")
  29. AddConversationOption(conversation, "An ogre baker? I'll be on my way.")
  30. StartConversation(conversation, NPC, Spawn, "Mooshga is greatest baker in all Commonlands! You want Mooshga make somethin' for you?")
  31. end
  32. function dlg2(NPC, Spawn)
  33. FaceTarget(NPC, Spawn)
  34. conversation = CreateConversation()
  35. AddConversationOption(conversation, "Jerky sounds good. I'll do it.", "offer")
  36. AddConversationOption(conversation, "Ogre cooking sounds scary to me. Bye!")
  37. StartConversation(conversation, NPC, Spawn, "Mooshga hungry for jerky. Plus Mooshga try to make old secret recipe of famous ancestor chef. You go collect pieces for jerky so Mooshga can figure out recipe! It made from hyena meat. Get carrion hound ears for Mooshga.")
  38. end
  39. function dlg3(NPC, Spawn)
  40. FaceTarget(NPC, Spawn)
  41. conversation = CreateConversation()
  42. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1055.mp3", "", "", 0, 0, Spawn)
  43. AddConversationOption(conversation, "I have brought you the ears that you asked for.", "quest1complete")
  44. AddConversationOption(conversation, "Nothing right now.")
  45. StartConversation(conversation, NPC, Spawn, "You back so quick! What you have for Mooshga?")
  46. end
  47. function quest1complete(NPC, Spawn)
  48. FaceTarget(NPC, Spawn)
  49. SetStepComplete(Spawn, HyenaJerky, 2)
  50. conversation = CreateConversation()
  51. AddConversationOption(conversation, "You're welcome.")
  52. StartConversation(conversation, NPC, Spawn, "Oh, thanks you! You make Mooshga happy Ogre.")
  53. end
  54. function offer(NPC, Spawn)
  55. FaceTarget(NPC, Spawn)
  56. OfferQuest(NPC, Spawn, HyenaJerky)
  57. end
  58. function quest1progress(NPC, Spawn)
  59. FaceTarget(NPC, Spawn)
  60. conversation = CreateConversation()
  61. AddConversationOption(conversation, "Okay, I'll be right back.")
  62. StartConversation(conversation, NPC, Spawn, "Good...Yes, Mooshga make Hyena Jerky for you.")
  63. end
  64. function respawn(NPC)
  65. end