Geredo.lua 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. --[[
  2. Script Name : SpawnScripts/FarJourneyFreeport/Geredo.lua
  3. Script Author : Cynnar
  4. Script Date : 2019.08.04 12:08:08
  5. Script Purpose :
  6. Notes : Geredo is suppose to blow a kiss to Ingrid. PlayFlavor(NPC, "", "", "blowkiss", 0, 0) is not working
  7. Notes : Replaced with PlayFlavor(NPC, "", "", "scheme", 0, 0) for now
  8. --]]
  9. local TempAnimationPos = nil
  10. function spawn(NPC)
  11. end
  12. function hailed(NPC, Spawn)
  13. RandomGreeting(NPC, Spawn)
  14. end
  15. function RandomGreeting(NPC, Spawn)
  16. local choice = MakeRandomInt(1,3)
  17. if choice == 1 then
  18. PlayFlavor(NPC, "voiceover/english/geredo/boat_06p_tutorial02_fvo_002.mp3", "Thinking I should design a new mechanical boat. It would be perfect! Yes, perfect indeed!", "ponder", 2630458163, 1309095480, Spawn, 0)
  19. elseif choice == 2 then
  20. PlayFlavor(NPC, "voiceover/english/geredo/boat_06p_tutorial02_fvo_001.mp3", "Do you happen to have any mechanical leg extenders? I want to see the water.", "agree", 2902186099, 1357276764, Spawn, 0)
  21. elseif choice == 3 then
  22. PlayFlavor(NPC, "voiceover/english/geredo/boat_06p_tutorial02_fvo_003.mp3", "Owie, my elbow is sore! It always gets this way when I am near water. I could have helped rescue Anikra and Valik, but I wasn't able to swim. Thanks for helping me.", "grumble", 2653823570, 1351171804, Spawn, 0)
  23. end
  24. end
  25. -- sent from Ingrid to start the flirting
  26. -- sends back to Ingrid after Geredo starts flirting with a flex
  27. function GeredoFlirtingWithIngird(NPC, Spawn)
  28. local Ingrid = GetSpawn(NPC, 270001)
  29. if GetTempVariable(Ingrid, "TempAnimationVar") ~= nil then
  30. PlayFlavor(NPC, "", "", "flex", 0, 0)
  31. end
  32. if Ingrid ~= nil then
  33. AddTimer(Ingrid, 2000, "FlirtWithIngrid")
  34. end
  35. --Say(NPC, "TempAnimationVar = " .. GetTempVariable(Ingrid, "TempAnimationVar") .. "!")
  36. --SetTempVariable(Ingrid, "TempAnimationVar", "SecondRun")
  37. end
  38. -- sent from Ingrid's chuckle
  39. -- sends back to Ingrid after Geredo responds with a bow
  40. function FlirtingWithGeredo(NPC, Spawn)
  41. local Ingrid = GetSpawn(NPC, 270001)
  42. if GetTempVariable(Ingrid, "TempAnimationVar") ~= nil then
  43. PlayFlavor(NPC, "", "", "bow", 0, 0)
  44. end
  45. if Ingrid ~= nil then
  46. AddTimer(Ingrid, 3000, "FlirtWithIngrid_2")
  47. end
  48. end
  49. -- sent from Ingrid's curtsey
  50. -- sends back to Ingrid afer Geredo responds with a flirt
  51. function FlirtingWithGeredo_2(NPC, Spawn)
  52. local Ingrid = GetSpawn(NPC, 270001)
  53. if GetTempVariable(Ingrid, "TempAnimationVar") ~= nil then
  54. PlayFlavor(NPC, "", "", "flirt", 0, 0)
  55. end
  56. if Ingrid ~= nil then
  57. AddTimer(Ingrid, 2500, "FlirtWithIngrid_3")
  58. end
  59. end
  60. -- sent from Ingrid's flustered
  61. -- sends back to Ingrid afer Geredo responds with a blowkiss
  62. function FlirtingWithGeredo_3(NPC, Spawn)
  63. local Ingrid = GetSpawn(NPC, 270001)
  64. if GetTempVariable(Ingrid, "TempAnimationVar") ~= nil then
  65. PlayFlavor(NPC, "", "", "scheme", 0, 0)
  66. --PlayAnimation(NPC, 11762)
  67. end
  68. if Ingrid ~= nil then
  69. AddTimer(Ingrid, 2000, "FlirtWithIngrid_4")
  70. end
  71. end
  72. -- sent from Ingrid's no
  73. -- sends back to Ingrid afer Geredo responds with beg
  74. function FlirtingWithGeredo_4(NPC, Spawn)
  75. local Ingrid = GetSpawn(NPC, 270001)
  76. if GetTempVariable(Ingrid, "TempAnimationVar") ~= nil then
  77. PlayFlavor(NPC, "", "", "beg", 0, 0)
  78. end
  79. if Ingrid ~= nil then
  80. AddTimer(Ingrid, 1500, "FlirtWithIngrid_5")
  81. end
  82. end
  83. function CaptainCallingIngrid(NPC, Spawn)
  84. -- Testing to set animation during the captain calling ingrid
  85. --PlayFlavor(NPC, "", "", "blowkiss", 0, 0)
  86. PlayAnimation(NPC, 12246)
  87. end
  88. function respawn(NPC)
  89. end