9
3

boulden.lua 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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. FaceTarget(NPC, Spawn)
  14. conversation = CreateConversation()
  15. local choice = math.random(1,2)
  16. if choice == 1 then
  17. PlayFlavor(NPC, "", "We can't take any chances that the Rallosian Empire will rebuild itself. Who will heed my call!?", "", 1689589577, 4560189, Spawn)
  18. elseif choice == 2 then
  19. PlayFlavor(NPC, "", "Now is the time we must band together and find what's left of the Feerrott!", "", 1689589577, 4560189, Spawn)
  20. else
  21. end
  22. PlayFlavor(NPC, "voiceover/english/boulden_smitestone/boat_06p_feerrott/blackwater/boulden_smitestone_harbor001.mp3", "", "", 912083139, 1947162307, Spawn)
  23. AddConversationOption(conversation, "I just might do that.", "dlg_0_1")
  24. 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.")
  25. if convo==2 then
  26. PlayFlavor(NPC, "voiceover/english/boulden_smitestone/boat_06p_feerrott/blackwater/boulden_smitestone_harbor001.mp3", "", "", 912083139, 1947162307, Spawn)
  27. AddConversationOption(conversation, "I just might do that.", "dlg_2_1")
  28. 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.")
  29. end
  30. if convo==15 then
  31. PlayFlavor(NPC, "voiceover/english/boulden_smitestone/boat_06p_feerrott/blackwater/boulden_smitestone_harbor001.mp3", "", "", 912083139, 1947162307, Spawn)
  32. AddConversationOption(conversation, "I just might do that.", "dlg_15_1")
  33. 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.")
  34. end
  35. end
  36. function dlg_0_1(NPC, Spawn)
  37. FaceTarget(NPC, Spawn)
  38. conversation = CreateConversation()
  39. PlayFlavor(NPC, "voiceover/english/boulden_smitestone/boat_06p_feerrott/blackwater/boulden_smitestone_harbor001.mp3", "", "", 912083139, 1947162307, Spawn)
  40. AddConversationOption(conversation, "I just might do that.", "dlg_0_2")
  41. 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.")
  42. end
  43. function respawn(NPC)
  44. spawn(NPC)
  45. end
  46. function waypoints(NPC)
  47. MovementLoopAddLocation(NPC, 949.48, -25.5, 33.63, 2, 60)
  48. MovementLoopAddLocation(NPC, 932.52, -25.51, 24.28, 2, 60)
  49. end
  50. function InRange(NPC, Spawn)
  51. local choice = math.random(1,2)
  52. if choice == 1 then
  53. PlayFlavor(NPC, "", "We can't take any chances that the Rallosian Empire will rebuild itself. Who will heed my call!?", "", 1689589577, 4560189, Spawn)
  54. elseif choice == 2 then
  55. PlayFlavor(NPC, "", "Now is the time we must band together and find what's left of the Feerrott!", "", 1689589577, 4560189, Spawn)
  56. else
  57. end
  58. end
  59. function LeaveRange(NPC, Spawn)
  60. end