9
3

PretchonIronstein.lua 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. --[[
  2. Script Name : SpawnScripts/FrostfangSea/PretchonIronstein.lua
  3. Script Purpose : Pretchon Ironstein
  4. Script Author : theFoof
  5. Script Date : 2013.08.19
  6. Script Notes :
  7. --]]
  8. local TrustIssues = 85
  9. function spawn(NPC)
  10. end
  11. function respawn(NPC)
  12. spawn(NPC)
  13. end
  14. function hailed(NPC, Spawn)
  15. FaceTarget(NPC, Spawn)
  16. conversation = CreateConversation()
  17. if HasQuest(Spawn, TrustIssues) and not QuestStepIsComplete(Spawn, TrustIssues, 4) then
  18. PlayFlavor(NPC, "pretchon_ironstein/halas/new_halas_guard_house/pretchon_ironstein001.mp3", "", "", 1138921900, 154999598, Spawn)
  19. AddConversationOption(conversation, "I have a few questions.", "Quest1Chat_1")
  20. AddConversationOption(conversation, "Can you tell me what you're doing here?", "Quest1Chat_1")
  21. AddConversationOption(conversation, "Greetings, Pretch!", "Quest1Chat_5")
  22. AddConversationOption(conversation, "Maybe this wasn't such a good idea. Goodbye.")
  23. StartConversation(conversation, NPC, Spawn, "Have we met before? My friends call me Pretch, but ye can call me Pretchon Ironstein.")
  24. elseif HasQuest(Spawn, TrustIssues) then
  25. PlayFlavor(NPC, "", "Ye got yer answers. What do ye want now?", "hello", 0, 0, Spawn)
  26. else
  27. PlayFlavor(NPC, "", "May yer ore be rich, and yer stein be full.", "hello", 0, 0, Spawn)
  28. end
  29. end
  30. function Quest1Chat_1(NPC, Spawn)
  31. FaceTarget(NPC, Spawn)
  32. conversation = CreateConversation()
  33. PlayFlavor(NPC, "pretchon_ironstein/halas/new_halas_guard_house/pretchon_ironstein003.mp3", "", "", 3031154636, 3454544430, Spawn)
  34. AddConversationOption(conversation, "Why did you come to Erollis?", "Quest1Chat_2")
  35. AddConversationOption(conversation, "Why don't you leave?", "Quest1Chat_3")
  36. AddConversationOption(conversation, "Whatever, I don't have the time for this.")
  37. StartConversation(conversation, NPC, Spawn, "Sure, so long as ye make it quick. What would ye like to know?")
  38. end
  39. function Quest1Chat_2(NPC, Spawn)
  40. FaceTarget(NPC, Spawn)
  41. conversation = CreateConversation()
  42. PlayFlavor(NPC, "pretchon_ironstein/halas/new_halas_guard_house/pretchon_ironstein004.mp3", "", "", 2078038730, 2967258030, Spawn)
  43. AddConversationOption(conversation, "Ah, I see. Well, why don't you leave?", "Quest1Chat_3")
  44. AddConversationOption(conversation, "This can only go downhill from here. Goodbye.")
  45. StartConversation(conversation, NPC, Spawn, "Seeing as how this floating rock is a chunk of my homeland, I've always been here. Yer the newcomer, " .. GetName(Spawn) .. ".")
  46. end
  47. function Quest1Chat_3(NPC, Spawn)
  48. FaceTarget(NPC, Spawn)
  49. conversation = CreateConversation()
  50. PlayFlavor(NPC, "pretchon_ironstein/halas/new_halas_guard_house/pretchon_ironstein005.mp3", "", "", 2277034168, 2486010941, Spawn)
  51. AddConversationOption(conversation, "Can you explain that further?", "Quest1Chat_4")
  52. AddConversationOption(conversation, "Sorry for your misfortune. Goodbye.")
  53. StartConversation(conversation, NPC, Spawn, "Where would we go? This is all that we have left of Velious, and now we're making the best of an awful situation.")
  54. end
  55. function Quest1Chat_4(NPC, Spawn)
  56. SetStepComplete(Spawn, TrustIssues, 4)
  57. FaceTarget(NPC, Spawn)
  58. conversation = CreateConversation()
  59. PlayFlavor(NPC, "pretchon_ironstein/halas/new_halas_guard_house/pretchon_ironstein006.mp3", "", "", 28333391, 3841310148, Spawn)
  60. AddConversationOption(conversation, "Good day and goodbye.")
  61. StartConversation(conversation, NPC, Spawn, "Look. I intend to smash the Ry'Gorr, drink ale, and sail this floating isle until it sinks. Good day.")
  62. end
  63. function Quest1Chat_5(NPC, Spawn)
  64. FaceTarget(NPC, Spawn)
  65. conversation = CreateConversation()
  66. PlayFlavor(NPC, "pretchon_ironstein/halas/new_halas_guard_house/pretchon_ironstein002.mp3", "", "", 524764574, 2567502776, Spawn)
  67. AddConversationOption(conversation, "I have a few questions.", "Quest1Chat_1")
  68. AddConversationOption(conversation, "This can only go downhill from here. Goodbye.")
  69. StartConversation(conversation, NPC, Spawn, "Ah, yer a prankster, I see. Well, I'll be calling ye Wolfmeat. What can I do for ye, Wolfmeat?")
  70. end