PeonaToughins.lua 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. --[[
  2. Script Name : SpawnScripts/Baubbleshire/PeonaToughins.lua
  3. Script Purpose : Peona Toughins <Tailor>
  4. Script Author : Scatman
  5. Script Date : 2009.09.27
  6. Script Notes : Added dialog/HalfPint Quest - 2022.01.23 Dorbin
  7. --]]
  8. dofile("SpawnScripts/Generic/GenericArmorsmithVoiceOvers.lua")
  9. local HalfPint = 5448
  10. function spawn(NPC)
  11. SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange")
  12. end
  13. function respawn(NPC)
  14. spawn(NPC)
  15. end
  16. function InRange(NPC, Spawn)
  17. if math.random(0, 100) <= 25 then
  18. FaceTarget(NPC, Spawn)
  19. GenericArmorsmithHail(NPC, Spawn)
  20. end
  21. end
  22. function LeaveRange(NPC, Spawn)
  23. end
  24. function hailed(NPC, Spawn)
  25. FaceTarget(NPC, Spawn)
  26. PlayFlavor(NPC, "voiceover/english/armorer_peona_toughins/qey_village06/quests/armorer_peona_toughins/armorer_peona_toughins001.mp3", "", "", 3593368605, 1432200573, Spawn)
  27. conversation = CreateConversation()
  28. if GetQuestStep(Spawn, HalfPint) ==7 then
  29. AddConversationOption(conversation, "I'm here about Dibble.","Dibble")
  30. end
  31. AddConversationOption(conversation, "Maybe some other time.")
  32. StartConversation(conversation, NPC, Spawn, "Dare I say, it's a fine day for shopping. How can I help you?")
  33. end
  34. function Dibble(NPC, Spawn)
  35. FaceTarget(NPC, Spawn)
  36. conversation = CreateConversation()
  37. AddConversationOption(conversation, "How long ago was that?","LongAgo")
  38. StartConversation(conversation, NPC, Spawn, "You know Dibble? That little sneak buggered off with my research papers! Haven't seen him since.")
  39. end
  40. function LongAgo(NPC, Spawn)
  41. FaceTarget(NPC, Spawn)
  42. conversation = CreateConversation()
  43. PlayFlavor(NPC, "", "", "sad", 0, 0, Spawn)
  44. AddConversationOption(conversation, "He asked me to give you all of this.","TurnIn")
  45. StartConversation(conversation, NPC, Spawn, "He's been gone for nearly ten days. You know, I kind of miss him fawning over me.")
  46. end
  47. function TurnIn(NPC, Spawn)
  48. FaceTarget(NPC, Spawn)
  49. conversation = CreateConversation()
  50. AddConversationOption(conversation, "He asked me to give you all of this.","TurnIn")
  51. AddConversationOption(conversation, "Well, he's dead.","Dead")
  52. StartConversation(conversation, NPC, Spawn, "He's been gone for nearly ten days. You know, I kind of miss him fawning over me.")
  53. end
  54. function TurnIn(NPC, Spawn)
  55. FaceTarget(NPC, Spawn)
  56. conversation = CreateConversation()
  57. PlayFlavor(NPC, "", "", "boggle", 0, 0, Spawn)
  58. AddConversationOption(conversation, "The impetuous imp is languishing in Varsoon.","Imp")
  59. AddConversationOption(conversation, "Well, he's dead...","Dead")
  60. StartConversation(conversation, NPC, Spawn, "This is everything that was outlined in my research papers! That impetuous imp! Anything to get on my good side ... How sweet.")
  61. end
  62. function Imp(NPC, Spawn)
  63. FaceTarget(NPC, Spawn)
  64. conversation = CreateConversation()
  65. AddConversationOption(conversation, "Thanks.","QuestDone")
  66. StartConversation(conversation, NPC, Spawn, "We must organize a rescue party. I'll speak with Marshal Surefoot at once. Oh, thank you for letting me know what happened to Dibble. It's not much, but please take this for all you've done. ")
  67. end
  68. function Dead(NPC, Spawn)
  69. FaceTarget(NPC, Spawn)
  70. conversation = CreateConversation()
  71. PlayFlavor(NPC, "", "", "cry", 0, 0, Spawn)
  72. AddConversationOption(conversation, "... I mispoke. He is not dead, yet.","NotDead")
  73. StartConversation(conversation, NPC, Spawn, "WHAT?! ... How could... He can't be dead!")
  74. end
  75. function NotDead(NPC, Spawn)
  76. FaceTarget(NPC, Spawn)
  77. conversation = CreateConversation()
  78. PlayFlavor(NPC, "", "", "shakefist", 0, 0, Spawn)
  79. AddConversationOption(conversation, "The impetuous imp is languishing in Varsoon.","Imp")
  80. StartConversation(conversation, NPC, Spawn, "Rude! How dare you play with my emotions! ... Dibble. Where is he? Is he safe?")
  81. end
  82. function QuestDone(NPC, Spawn)
  83. SetStepComplete(Spawn, HalfPint, 7)
  84. end