ShandaTierbold.lua 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. --[[
  2. Script Name : SpawnScripts/QeynosHarbor/ShandaTierbold.lua
  3. Script Purpose : Shanda Tierbold
  4. Script Author : Dorbin
  5. Script Date : 2022.06.13
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. Associated with Nettlevill Quest "Letter from the Boss" https://eq2.zam.com/db/quest.html?eq2quest=825320e98cc4a4aa943eef2e924c4add#Wiki
  8. Note: Fabricated dialog for quest
  9. --]]
  10. local delivery = 5586
  11. function spawn(NPC)
  12. SetPlayerProximityFunction(NPC, 2, "InRange", "LeaveRange")
  13. ProvidesQuest(NPC,delivery)
  14. end
  15. function respawn(NPC)
  16. spawn(NPC)
  17. end
  18. function InRange(NPC, Spawn)
  19. FaceTarget(NPC, Spawn)
  20. PlayFlavor(NPC, "", "", "no",0, 0, Spawn)
  21. end
  22. function LeaveRange(NPC, Spawn)
  23. end
  24. function hailed(NPC, Spawn)
  25. FaceTarget(NPC, Spawn)
  26. PlayFlavor(NPC, "voiceover/english/shanda_tierbold/qey_harbor/shandatierbold000.mp3", "", "shakefist",3116352069, 1617706288, Spawn)
  27. local conversation = CreateConversation()
  28. if not HasQuest(Spawn,delivery) and not HasCompletedQuest(Spawn, delivery) and GetFactionAmount(Spawn,11) >=1 then
  29. AddConversationOption(conversation, "What is behind that door anyway?", "Door")
  30. end
  31. if HasCompletedQuest(Spawn, delivery) and GetFactionAmount(Spawn,11) >=1 then
  32. AddConversationOption(conversation, "Hey, I did a job for your boss. Can I enter now?","Boss")
  33. end
  34. AddConversationOption(conversation, "Alright! I didn't want in there anyway.")
  35. StartConversation(conversation, NPC, Spawn, "Stop right there! No one goes through this door without explicit permission.")
  36. end
  37. function Door(NPC, Spawn)
  38. FaceTarget(NPC, Spawn)
  39. PlayFlavor(NPC, "", "", "glare",0, 0, Spawn)
  40. local conversation = CreateConversation()
  41. AddConversationOption(conversation, "Well, how can I get in touch with your boss? Perhaps I have business in places like this.","Quest1")
  42. AddConversationOption(conversation, "Fine fine. I'm going.")
  43. StartConversation(conversation, NPC, Spawn, "That is for me and the boss to know and for you to scram! I'm not allowed to let anyone in here that the boss doesn't authorize. You best be off!")
  44. end
  45. function Quest1(NPC, Spawn)
  46. FaceTarget(NPC, Spawn)
  47. PlayFlavor(NPC, "", "", "tapfoot",0, 0, Spawn)
  48. local conversation = CreateConversation()
  49. AddConversationOption(conversation, "How about I take the letter for you?","StartQuest")
  50. AddConversationOption(conversation, "Fine fine. I'm going.")
  51. StartConversation(conversation, NPC, Spawn, "In that case, you won't find him here. If you are truely interested I have a letter marked for him that I need delivered. I would do it myself, but my first duty is to stopping riffraff from entering this door.")
  52. end
  53. function StartQuest(NPC, Spawn)
  54. FaceTarget(NPC, Spawn)
  55. OfferQuest(NPC, Spawn,delivery)
  56. end
  57. function Boss(NPC, Spawn)
  58. FaceTarget(NPC, Spawn)
  59. PlayFlavor(NPC, "", "", "chuckle",0, 0, Spawn)
  60. local conversation = CreateConversation()
  61. AddConversationOption(conversation, "But-","But")
  62. AddConversationOption(conversation, "Fine fine. I'm going.")
  63. StartConversation(conversation, NPC, Spawn, "Haha!... no.")
  64. end
  65. function But(NPC, Spawn)
  66. FaceTarget(NPC, Spawn)
  67. PlayFlavor(NPC, "", "", "glare",0, 0, Spawn)
  68. local conversation = CreateConversation()
  69. AddConversationOption(conversation, "Fine fine. I'm going.")
  70. StartConversation(conversation, NPC, Spawn, "I haven't caught wind of your name from the boss. At least not with this place in mind. Now, beat it!")
  71. end