9
3

Muzmog.lua 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. --[[
  2. Script Name : SpawnScripts/BigBend/Muzmog.lua
  3. Script Purpose : Muzmog
  4. Script Author : torsten
  5. Script Date : 2022.07.11
  6. Script Notes :
  7. --]]
  8. local MuzmogRat = 5627
  9. local FunnyRat = 5628
  10. function spawn(NPC)
  11. ProvidesQuest(NPC, MuzmogRat)
  12. ProvidesQuest(NPC, FunnyRat)
  13. end
  14. function respawn(NPC)
  15. spawn(NPC)
  16. end
  17. function hailed(NPC, Spawn)
  18. FaceTarget(NPC, Spawn)
  19. if HasLanguage(Spawn, 14) then --Oggish
  20. if not HasQuest(Spawn, MuzmogRat) and not HasCompletedQuest(Spawn, MuzmogRat) then
  21. OfferQuest(NPC, Spawn, MuzmogRat)
  22. end
  23. if HasCompletedQuest(Spawn, MuzmogRat) then
  24. if not HasQuest(Spawn, FunnyRat) and not HasCompletedQuest(Spawn, FunnyRat) then
  25. OfferQuest(NPC, Spawn, FunnyRat)
  26. end
  27. end
  28. if GetQuestStep(Spawn, MuzmogRat) == 2 then
  29. SetStepComplete(Spawn, MuzmogRat, 2)
  30. end
  31. if GetQuestStep(Spawn, FunnyRat) == 2 then
  32. SetStepComplete(Spawn, FunnyRat, 2)
  33. end
  34. end
  35. RandomGreeting(NPC, Spawn)
  36. end
  37. function RandomGreeting(NPC, Spawn)
  38. local choice = MakeRandomInt(1,3)
  39. if choice == 1 then
  40. PlayFlavor(NPC, "", "this ale tastes awful", "", 0, 0, Spawn, 14)
  41. elseif choice == 2 then
  42. PlayFlavor(NPC, "voiceover/english/ogre/ft/ogre/ogre_eco_garble_garbled_gm_db73bf19.mp3", "your face offends me", "", 510403883, 4026183304, Spawn, 14)
  43. elseif choice == 3 then
  44. PlayVoice(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1002.mp3", 0, 0, Spawn)
  45. end
  46. end