9
3

MenderMannus.lua 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. --[[
  2. Script Name : SpawnScripts/IsleRefuge1/MenderMannus.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.09.04 04:09:24
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. function spawn(NPC)
  10. SetInfoStructString(NPC, "action_state", "metalworking_idle")
  11. end
  12. function hailed(NPC, Spawn)
  13. FaceTarget(NPC, Spawn)
  14. Dialog.New(NPC, Spawn)
  15. Dialog.AddDialog("Welcome to the Isle of Refuge! For a price, I'll repair items damaged in battle. With all the goblin attacks, you'll certainly need my services.")
  16. Dialog.AddVoiceover("voiceover/english/mender_mannus/tutorial_island02/mendermannus000.mp3", 2158256244, 3667630380)
  17. PlayFlavor(NPC, "", "", "hello", 0,0, Spawn)
  18. Dialog.AddOption("I have an old salt encrusted cutlass here. Do you think you can fix it up?","Cutlass1")
  19. Dialog.AddOptionRequirement(REQ_QUEST_ON_STEP, 5724 ,1)
  20. Dialog.AddOption("I appreciate it.")
  21. Dialog.Start()
  22. end
  23. function respawn(NPC)
  24. spawn(NPC)
  25. end
  26. function Cutlass1(NPC, Spawn)
  27. FaceTarget(NPC, Spawn)
  28. Dialog.New(NPC, Spawn)
  29. Dialog.AddDialog("Aye, it's seen better days but I should be able to take care of it. The work will cost you a little bit but not much. Supplies and all, you know. Do you have some coin?")
  30. Dialog.AddVoiceover("voiceover/english/mender_mannus/tutorial_island02/mendermannus001.mp3", 1882269963, 1659514832)
  31. PlayFlavor(NPC, "", "", "nod", 0,0, Spawn)
  32. -- if HasCoin(Spawn) >=40 then
  33. Dialog.AddOption("I can give you 40 copper to clean it up.","Cutlass2")
  34. -- end
  35. Dialog.AddOption("Hmm, I'll have to think about it.")
  36. Dialog.Start()
  37. end
  38. function Cutlass2(NPC, Spawn)
  39. RemoveCoin(Spawn,40)
  40. FaceTarget(NPC, Spawn)
  41. Dialog.New(NPC, Spawn)
  42. Dialog.AddDialog("That'll do fine. I'll have this cleaned up and sharpened right away! ...just a little scrubbing here... a bit of polish there... a few strokes across the whetstone... hmm... a few more strokes across the whetstone... hmm... a LOT more strokes across the whetstone and... good as new!")
  43. Dialog.AddVoiceover("voiceover/english/mender_mannus/tutorial_island02_fvo_hascoin.mp3", 700880639, 2012891441)
  44. PlayFlavor(NPC, "", "", "tapfoot", 0,0, Spawn)
  45. Dialog.AddOption("This is great. Thank you!")
  46. Dialog.Start()
  47. SetStepComplete(Spawn,5724,1)
  48. SendMessage(Spawn, "You pay Mender Mannus 40 copper.")
  49. end