Ironmallet.lua 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. SetInfoStructString(NPC, "action_state", "metalworking_idle")
  12. end
  13. function respawn(NPC)
  14. spawn(NPC)
  15. end
  16. function hailed(NPC, Spawn)
  17. FaceTarget(NPC, Spawn)
  18. conversation = CreateConversation()
  19. if HasQuest(Spawn,Daggers) and GetQuestStep(Spawn, Daggers)==1 then
  20. AddConversationOption(conversation, "I am here to pick up daggers for Kruuprum.","Pickup")
  21. end
  22. if HasQuest(Spawn,Tongs) and GetQuestStep(Spawn, Tongs)==1 then
  23. AddConversationOption(conversation, "I am here have Baynor's tongs repaired.","PickupTongs")
  24. end
  25. PlayFlavor(NPC, "voiceover/english/mender_ironmallet/qey_village03/menderironmallet000.mp3", "", "", 296833708, 2408095573, Spawn)
  26. AddConversationOption(conversation, "I am sure you will get that name someday.")
  27. 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.")
  28. end
  29. function Pickup(NPC, Spawn)
  30. FaceTarget(NPC, Spawn)
  31. conversation = CreateConversation()
  32. AddConversationOption(conversation, "I'll consider that. Thank you.","Pickup2")
  33. AddConversationOption(conversation, "I'm just picking up. Don't spread your gossip to me.","Pickup2")
  34. PlayFlavor(NPC, "voiceover/english/mender_ironmallet/qey_village03/menderironmallet001.mp3", "", "listen", 4074173931, 1699472908, Spawn)
  35. 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.")
  36. end
  37. function PickupTongs(NPC, Spawn)
  38. FaceTarget(NPC, Spawn)
  39. conversation = CreateConversation()
  40. AddConversationOption(conversation, "Great. I'll make sure he gets them.","PickupTongs2")
  41. PlayFlavor(NPC, "voiceover/english/mender_ironmallet/qey_village03/menderironmallet001.mp3", "", 65782, 4074173931, 1699472908, Spawn)
  42. 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. ")
  43. end
  44. function PickupTongs2(NPC, Spawn)
  45. SetStepComplete(Spawn, Tongs, 1)
  46. end
  47. function Pickup2(NPC, Spawn)
  48. SetStepComplete(Spawn, Daggers, 1)
  49. end