9
3

Ironmallet.lua 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. --[[
  2. Script Name : SpawnScripts/Graystone/Ironmallet.lua
  3. Script Purpose : Ironmallet <Mender>
  4. Script Author : Dorbin
  5. Script Date : 2022.01.28
  6. Script Notes :
  7. --]]
  8. local Daggers = 5462
  9. local Tongs = 5482
  10. function spawn(NPC)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. FaceTarget(NPC, Spawn)
  17. conversation = CreateConversation()
  18. if GetQuestStep(Spawn, Daggers)==1 then
  19. AddConversationOption(conversation, "I am here to pick up daggers for Kruuprum.","Pickup")
  20. end
  21. if GetQuestStep(Spawn, Tongs)==1 then
  22. AddConversationOption(conversation, "I am here have Baynor's tongs repaired.","PickupTongs")
  23. end
  24. PlayFlavor(NPC, "voiceover/english/mender_ironmallet/qey_village03/menderironmallet000.mp3", "", "", 296833708, 2408095573, Spawn)
  25. AddConversationOption(conversation, "I am sure you will get that name someday.")
  26. StartConversation(conversation, NPC, Spawn, "I'm just the help around here. But someday I will have my own forge ... Ironmallet's House of ... er ... well ... something! The name will come to me someday.")
  27. end
  28. function Pickup(NPC, Spawn)
  29. FaceTarget(NPC, Spawn)
  30. conversation = CreateConversation()
  31. AddConversationOption(conversation, "I'll consider that. Thank you.","Pickup")
  32. AddConversationOption(conversation, "I'm just picking up. Don't spread your gossip to me.","Pickup")
  33. PlayFlavor(NPC, "voiceover/english/mender_ironmallet/qey_village03/menderironmallet001.mp3", "", "listen", 4074173931, 1699472908, Spawn)
  34. StartConversation(conversation, NPC, Spawn, "Wha?...Eh?... Here ya go. Here is another sack of rusted daggers. These things aren't worth reselling or refurbishing. What Kruuprum wants with this refuse is beyond this dwarf! If I were you, I would steer clear of his wares.")
  35. end
  36. function PickupTong(NPC, Spawn)
  37. FaceTarget(NPC, Spawn)
  38. conversation = CreateConversation()
  39. AddConversationOption(conversation, "Great. I'll make sure he gets them.","PickupTongs")
  40. PlayFlavor(NPC, "voiceover/english/mender_ironmallet/qey_village03/menderironmallet001.mp3", "", 65782, 4074173931, 1699472908, Spawn)
  41. StartConversation(conversation, NPC, Spawn, "Oh... again? Baynor's aim is waaaay off. Okay, hand them here. Silly supersticious halfelf refusing to fix his tongs. Refusing to fix his tongs. This is the tenth time I've fixed the blasted things... There, there you go. Good as new. ")
  42. end
  43. function PickupTongs(NPC, Spawn)
  44. SetStepComplete(Spawn, Tongs, 1)
  45. end
  46. function Pickup(NPC, Spawn)
  47. SetStepComplete(Spawn, Daggers, 1)
  48. end