9
3

boulden.lua 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. --[[
  2. Script Name : boulden.lua
  3. Script Purpose : Waypoint Path for boulden.lua
  4. Script Author : Devn00b
  5. Script Date : 04/09/2020 02:06:40 PM
  6. Script Notes : Locations collected from Live
  7. --]]
  8. function spawn(NPC)
  9. waypoints(NPC)
  10. SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange")
  11. end
  12. function hailed(NPC, Spawn)
  13. if GetLevel(Spawn)>=25 then
  14. FaceTarget(NPC, Spawn)
  15. conversation = CreateConversation()
  16. PlayFlavor(NPC, "voiceover/english/boulden_smitestone/boat_06p_feerrott/blackwater/boulden_smitestone_harbor001.mp3", "", "hello", 912083139, 1947162307, Spawn)
  17. AddConversationOption(conversation, "[continue] ", "Option1")
  18. AddConversationOption(conversation, "[Exit]")
  19. StartConversation(conversation, NPC, Spawn, "Some call me daft and say that it will never happen. I wonder how many said the same before the rise of the second Rallosian Empire?")
  20. else
  21. FaceTarget(NPC, Spawn)
  22. conversation = CreateConversation()
  23. PlayFlavor(NPC, "voiceover/english/boulden_smitestone/boat_06p_feerrott/blackwater/boulden_smitestone_harbor001.mp3", "", "no", 912083139, 1947162307, Spawn)
  24. AddConversationOption(conversation, "I just might do that.", "dlg_0_2")
  25. StartConversation(conversation, NPC, Spawn, "I'm sorry, but you look a bit green for something as momentous as this. Come and talk to me after you've sunk your teeth into some real adventure.")
  26. end
  27. end
  28. function respawn(NPC)
  29. spawn(NPC)
  30. end
  31. function waypoints(NPC)
  32. MovementLoopAddLocation(NPC, 949.48, -25.5, 33.63, 2, 60)
  33. MovementLoopAddLocation(NPC, 932.52, -25.51, 24.28, 2, 60)
  34. end
  35. function InRange(NPC, Spawn)
  36. if GetLevel(Spawn)>=25 and math.random(1,100)<=60 then
  37. local choice = math.random(1,2)
  38. if choice == 1 then
  39. PlayFlavor(NPC, "", "We can't take any chances that the Rallosian Empire will rebuild itself. Who will heed my call!?", "", 1689589577, 4560189, Spawn)
  40. elseif choice == 2 then
  41. PlayFlavor(NPC, "", "Now is the time we must band together and find what's left of the Feerrott!", "", 1689589577, 4560189, Spawn)
  42. end
  43. end
  44. end
  45. function LeaveRange(NPC, Spawn)
  46. end
  47. function Option1(NPC, Spawn)
  48. FaceTarget(NPC, Spawn)
  49. local conversation = CreateConversation()
  50. AddConversationOption(conversation, "What can I do?", "Option2")
  51. AddConversationOption(conversation, "[Exit]")
  52. StartConversation(conversation, NPC, Spawn, "I've sent a few adventurers such as you on expeditions to recover signs that may lead me to the Feerrott, but I've had little luck. That is until I learned of an alliance between the Rallosian army and the Deathfist orcs.")
  53. end
  54. function Option2(NPC, Spawn)
  55. FaceTarget(NPC, Spawn)
  56. local conversation = CreateConversation()
  57. PlayFlavor(NPC, "", "", "nod", 0, 0, Spawn)
  58. AddConversationOption(conversation, "I can do that. ", "Option3")
  59. AddConversationOption(conversation, "Another day, perhaps. ")
  60. StartConversation(conversation, NPC, Spawn, "Go to the Orcish Wastes and find artifacts that will lead us to the Feerrott: maps, journals, whatever you can find!")
  61. end
  62. function Option3(NPC, Spawn)
  63. FaceTarget(NPC, Spawn)
  64. local conversation = CreateConversation()
  65. AddConversationOption(conversation, "Okay.")
  66. AddConversationOption(conversation, "It's a deal.")
  67. StartConversation(conversation, NPC, Spawn, "Aye, you got real fire burning in your soul. When you find the way to the Feerrott return to the docks in the Steppes; I'll wait for you there. I have a feeling you might need me along for the ride. ")
  68. end