aBlackshielddockhand.lua 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. --[[
  2. Script Name : SpawnScripts/Commonlands/aBlackshielddockhand.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.01.07 03:01:18
  5. Script Purpose :
  6. :
  7. --]]
  8. local BlackshieldRecruitID = 299540
  9. local SmugglersSecrets = 452
  10. function spawn(NPC)
  11. end
  12. function hailed(NPC, Spawn)
  13. FaceTarget(NPC, Spawn)
  14. end
  15. -- TIMERS USED FOR CALLING DIALOGUE FUNCTIONS FROM "a Blackshield Recruit" Script
  16. function dlgtimer2(NPC, Spawn)
  17. local zone = GetZone(NPC)
  18. local BlackshieldRecruit = GetSpawnByLocationID(zone, BlackshieldRecruitID)
  19. if BlackshieldRecruit ~= nil then
  20. AddTimer(BlackshieldRecruit, 1000, "BlackshieldRecruitLine2", 1, Spawn)
  21. end
  22. end
  23. function dlgtimer3(NPC, Spawn)
  24. local zone = GetZone(NPC)
  25. local BlackshieldRecruit = GetSpawnByLocationID(zone, BlackshieldRecruitID)
  26. if BlackshieldRecruit ~= nil then
  27. AddTimer(BlackshieldRecruit, 1000, "BlackshieldRecruitLine3", 1, Spawn)
  28. end
  29. end
  30. function dlgtimer5(NPC, Spawn)
  31. local zone = GetZone(NPC)
  32. local BlackshieldRecruit = GetSpawnByLocationID(zone, BlackshieldRecruitID)
  33. if BlackshieldRecruit ~= nil then
  34. AddTimer(BlackshieldRecruit, 1000, "BlackshieldRecruitLine4", 1, Spawn)
  35. end
  36. end
  37. -- Dialog Part for "a Blackshield Dockhand"
  38. function BlackshieldDockhandLine1(NPC, Spawn)
  39. local zone = GetZone(NPC)
  40. local BlackshieldRecruit = GetSpawnByLocationID(zone, BlackshieldRecruitID)
  41. FaceTarget(NPC, BlackshieldRecruit)
  42. conversation = CreateConversation()
  43. AddConversationOption(conversation, "[Continue eavesdropping.]", "dlgtimer2")
  44. StartConversation(conversation, NPC, Spawn, "This a calm seas kind'a deal. You don't ask questions about it.")
  45. end
  46. function BlackshieldDockhandLine2(NPC, Spawn)
  47. local zone = GetZone(NPC)
  48. local BlackshieldRecruit = GetSpawnByLocationID(zone, BlackshieldRecruitID)
  49. FaceTarget(NPC, BlackshieldRecruit)
  50. conversation = CreateConversation()
  51. AddConversationOption(conversation, "[Continue eavesdropping.]", "dlgtimer3")
  52. StartConversation(conversation, NPC, Spawn, "I can. I got gold for ale and beddin'. That's all I care for.")
  53. end
  54. function BlackshieldDockhandLine3(NPC, Spawn)
  55. local zone = GetZone(NPC)
  56. local BlackshieldRecruit = GetSpawnByLocationID(zone, BlackshieldRecruitID)
  57. FaceTarget(NPC, BlackshieldRecruit)
  58. PlayAnimation(NPC, 10843)
  59. conversation = CreateConversation()
  60. AddConversationOption(conversation, "Who, me?", "dlgtimer5")
  61. StartConversation(conversation, NPC, Spawn, "Finally. Come 'ere courier, and take this message to the rendezvous.")
  62. end
  63. function BlackshieldDockhandLine4(NPC, Spawn)
  64. local zone = GetZone(NPC)
  65. local BlackshieldRecruit = GetSpawnByLocationID(zone, BlackshieldRecruitID)
  66. FaceTarget(NPC, BlackshieldRecruit)
  67. PlayAnimation(NPC, 12216)
  68. SetStepComplete(Spawn, SmugglersSecrets, 2)
  69. conversation = CreateConversation()
  70. AddConversationOption(conversation, "Riiiight.")
  71. StartConversation(conversation, NPC, Spawn, "Should be. Now see to it this message gets to the rendezvous at Pride Lake, and be quick about it!")
  72. end