9
3

Molg.lua 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. --[[
  2. Script Name : SpawnScripts/BigBend/Molg.lua
  3. Script Purpose : Molg
  4. Script Author : torsten
  5. Script Date : 2022.07.13
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. local Mage1 = 5902
  9. require "SpawnScripts/Generic/DialogModule"
  10. function spawn(NPC)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. if GetFactionAmount(Spawn,12) >=0 then
  17. Dialog1(NPC, Spawn)
  18. else
  19. PlayFlavor(NPC,"","","shakefist",0,0,Spawn)
  20. end
  21. end
  22. function Dialog1(NPC, Spawn)
  23. FaceTarget(NPC, Spawn)
  24. Dialog.New(NPC, Spawn)
  25. Dialog.AddDialog("Molg here! Things for sale! Buy! Buy! Buy! Things!")
  26. Dialog.AddVoiceover("voiceover/english/merchant_molg/fprt_hood1/mer_molg.mp3", 3931295597, 1000874360)
  27. Dialog.AddOption("I must be going.")
  28. Dialog.AddOption("What kind of things?", "Dialog2")
  29. if HasQuest(Spawn,Mage1) and GetQuestStepProgress(Spawn,Mage1,6)== 0 then
  30. Dialog.AddOption("I understand you witnessed a summoning today. What was summoned?", "Dialog3")
  31. end
  32. Dialog.Start()
  33. end
  34. function Dialog2(NPC, Spawn)
  35. FaceTarget(NPC, Spawn)
  36. Dialog.New(NPC, Spawn)
  37. Dialog.AddDialog("All kinds of things! Big things, little things, shiny things, even dull things! But not so much the dull things. Molg also buys things you know. But Molg is a discriminating shopper. Buy things!")
  38. Dialog.AddVoiceover("voiceover/english/merchant_molg/fprt_hood1/mer_molg000.mp3", 3100594732, 343855012)
  39. Dialog.AddOption("Ok.")
  40. Dialog.Start()
  41. end
  42. function Dialog3(NPC, Spawn)
  43. SetStepComplete(Spawn,Mage1,6)
  44. FaceTarget(NPC, Spawn)
  45. Dialog.New(NPC, Spawn)
  46. Dialog.AddDialog("I can't say... there was a bright flash of light when it was summoned. I was blinded. I do know I felt a large sheet of leather smack me in the face. I think the mage was summoning something requiring leather. This is what I saw.")
  47. Dialog.AddVoiceover("voiceover/english/merchant_molg/fprt_hood1/mer_molg001.mp3", 3794527944, 1139225489)
  48. PlayFlavor(NPC,"","","confused",0,0,Spawn)
  49. Dialog.AddOption("You think he summoned a sheet of leather... thank you.")
  50. Dialog.Start()
  51. end