9
3

RennyParvat.lua 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. --[[
  2. Script Name : SpawnScripts/EastFreeport/RennyParvat.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.09.25 04:09:30
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. function spawn(NPC)
  10. end
  11. function hailed(NPC, Spawn)
  12. if HasQuest(Spawn,5865) and not QuestStepIsComplete(Spawn,5865,1)then --FREEPORT OPPORTUNITY
  13. SetStepComplete(Spawn,5865,1)
  14. end
  15. Dialog2(NPC, Spawn)
  16. end
  17. function respawn(NPC)
  18. spawn(NPC)
  19. end
  20. function Dialog1(NPC, Spawn)
  21. FaceTarget(NPC, Spawn)
  22. Dialog.New(NPC, Spawn)
  23. Dialog.AddDialog("This is a decent find, I suppose. I can give you a small reward for it.")
  24. Dialog.AddOption("Thanks a lot.")
  25. Dialog.Start()
  26. if HasCollectionsToHandIn(Spawn) then
  27. HandInCollections(Spawn)
  28. end
  29. end
  30. function Dialog2(NPC, Spawn)
  31. local choice = MakeRandomInt(1,3)
  32. FaceTarget(NPC, Spawn)
  33. Dialog.New(NPC, Spawn)
  34. Dialog.AddDialog("What are you looking at? Stay away from me, and keep your hands off my collections, you scumbag!")
  35. Dialog.AddVoiceover("voiceover/english/voice_emotes/greetings/greetings_"..choice.."_1046.mp3", 0, 0)
  36. Dialog.AddOption("What collections?", "Dialog8")
  37. if HasCollectionsToHandIn(Spawn) then
  38. Dialog.AddOption("I have a collection for you.", "Dialog1")
  39. end
  40. Dialog.AddOption("Goodbye!")
  41. Dialog.Start()
  42. end
  43. function Dialog8(NPC, Spawn)
  44. FaceTarget(NPC, Spawn)
  45. Dialog.New(NPC, Spawn)
  46. Dialog.AddDialog("What collections? What do you mean, \"What collections?\" My collections, you fool! If you think you're going to get them from me, you're wrong! But if you have something to donate, then maybe we can talk.")
  47. Dialog.AddOption("I'll just be on my way.")
  48. Dialog.Start()
  49. end