FrostfangSea.lua 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. --[[
  2. Script Name : ZoneScripts/FrostfangSea.lua
  3. Script Purpose : Frostfang Sea
  4. Script Author : theFoof
  5. Script Date : 2013.5.8
  6. Script Notes :
  7. --]]
  8. local BoatloadWork = 4
  9. local ScatteringAshes = 33
  10. local CallingBack = 35
  11. local AllRemains = 54
  12. local RyGorrOperations = 60
  13. local SometimesKnut = 84
  14. function init_zone_script(Zone)
  15. SetLocationProximityFunction(Zone, -316.244, 35.409, -714.906, 10, "BarricadeMessage")
  16. SetLocationProximityFunction(Zone, 607, 66.2, -506.50, 20, "AshesMessage")
  17. SetLocationProximityFunction(Zone, 600, 28, -263, 5, "SnowRunesMessage")
  18. SetLocationProximityFunction(Zone, 581, 37, -339, 5, "SnowRunesMessage")
  19. SetLocationProximityFunction(Zone, 507, 27, -232, 5, "SnowRunesMessage")
  20. SetLocationProximityFunction(Zone, 584, 24, -155, 5, "SnowRunesMessage")
  21. SetLocationProximityFunction(Zone, 581, 27, -212, 5, "SnowRunesMessage")
  22. SetLocationProximityFunction(Zone, 751, 54, -514, 15, "SpawnHelmOrc")
  23. SetLocationProximityFunction(Zone, 52, 28, -358, 50, "VerienAccess")
  24. SetLocationProximityFunction(Zone, -15.27, -67.54, 155.07, 10, "BarrelMessage")
  25. SetLocationProximityFunction(Zone, 15.45, -67.92, 202.55, 30, "GrizChat1")
  26. SetLocationProximityFunction(Zone, 76.65, -67.91, 128.64, 10, "GrizChat3")
  27. SetLocationProximityFunction(Zone, 152.12, -63.42, 144.76, 20, "GrizChat4")
  28. SetLocationProximityFunction(Zone, 199.96, -54.40, 118.51, 20, "GrizChat5")
  29. SetLocationProximityFunction(Zone, 244.79, -53.49, 54.79, 8, "GrizChat6")
  30. SetLocationProximityFunction(Zone, -7.80, -66.88, 232.48, 15, "GrizChat8")
  31. end
  32. function BarricadeMessage(Zone, Spawn)
  33. if GetQuestStep(Spawn, BoatloadWork) == 3 then
  34. SendPopUpMessage(Spawn, "This is the break in the barricade Yasha sent you to fix.", 255, 255, 255)
  35. end
  36. end
  37. function player_entry(Zone, Player)
  38. end
  39. function AshesMessage(Zone, Spawn)
  40. if GetQuestStep(Spawn, ScatteringAshes) == 1 then
  41. SendPopUpMessage(Spawn, "This looks like a good location to scatter the ashes.", 255, 255, 255)
  42. end
  43. end
  44. function SnowRunesMessage(Zone, Spawn)
  45. if HasQuest(Spawn, CallingBack) then
  46. SendPopUpMessage(Spawn, "You see glowing blue runes in the snow.", 255, 255, 255)
  47. end
  48. end
  49. function SpawnHelmOrc(Zone, Spawn)
  50. if GetQuestStep(Spawn, AllRemains) == 2 then
  51. SpawnByLocationID(Zone, 33474)
  52. end
  53. end
  54. function VerienAccess(Zone, Spawn)
  55. AddSpawnAccess(GetSpawn(Spawn, 4700034), Spawn)
  56. end
  57. function BarrelMessage(Zone, Spawn)
  58. if GetQuestStep(Spawn, RyGorrOperations) == 1 then
  59. SendMessage(Spawn, "This seems like a good distance from the wall to place the Ry'Gorr Explosive Mining Barrel.")
  60. end
  61. end
  62. function GrizChat1(Zone, Spawn)
  63. if GetQuestStep(Spawn, SometimesKnut) == 1 then
  64. if HasItemEquipped(Spawn, 157116) then
  65. conversation = CreateConversation()
  66. AddConversationOption(conversation, "Ack! I can hear you?", "GrizChat1_1")
  67. StartDialogConversation(conversation, 4, GetEquippedItemByID(Spawn, 157116), Spawn, "Prey's trail cold here.")
  68. end
  69. end
  70. end
  71. function GrizChat3(Zone, Spawn)
  72. if GetQuestStep(Spawn, SometimesKnut) == 1 then
  73. if HasItemEquipped(Spawn, 157116) then
  74. conversation = CreateConversation()
  75. AddConversationOption(conversation, "Thank you, Grizz.")
  76. StartDialogConversation(conversation, 4, GetEquippedItemByID(Spawn, 157116), Spawn, "Prey is within striking distance!")
  77. end
  78. end
  79. end
  80. function GrizChat4(Zone, Spawn)
  81. if GetQuestStep(Spawn, SometimesKnut) == 2 then
  82. if HasItemEquipped(Spawn, 157116) then
  83. conversation = CreateConversation()
  84. AddConversationOption(conversation, "Finally!")
  85. StartDialogConversation(conversation, 4, GetEquippedItemByID(Spawn, 157116), Spawn, "Prey's trail grows warm!")
  86. end
  87. end
  88. end
  89. function GrizChat5(Zone, Spawn)
  90. if GetQuestStep(Spawn, SometimesKnut) == 2 then
  91. if HasItemEquipped(Spawn, 157116) then
  92. conversation = CreateConversation()
  93. AddConversationOption(conversation, "That's good to know!")
  94. StartDialogConversation(conversation, 4, GetEquippedItemByID(Spawn, 157116), Spawn, "Prey is close.")
  95. end
  96. end
  97. end
  98. function GrizChat6(Zone, Spawn)
  99. if GetQuestStep(Spawn, SometimesKnut) == 2 then
  100. if HasItemEquipped(Spawn, 157116) then
  101. conversation = CreateConversation()
  102. AddConversationOption(conversation, "This black shard?", "GrizChat2_1")
  103. StartDialogConversation(conversation, 4, GetEquippedItemByID(Spawn, 157116), Spawn, "This is it! Strike our prey!")
  104. end
  105. end
  106. end
  107. function GrizChat8(Zone, Spawn)
  108. if GetQuestStep(Spawn, SometimesKnut) == 4 or GetQuestStep(Spawn, SometimesKnut) == 3 then
  109. if HasItemEquipped(Spawn, 157116) then
  110. conversation = CreateConversation()
  111. AddConversationOption(conversation, "I bet he's missing you.")
  112. StartDialogConversation(conversation, 4, GetEquippedItemByID(Spawn, 157116), Spawn, "Take Griz back to knut.")
  113. end
  114. end
  115. end