9
3

Geredo.lua 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  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. -- sent from Ingrid to start the flirting
  13. -- sends back to Ingrid after Geredo starts flirting with a flex
  14. function GeredoFlirtingWithIngird(NPC, Spawn)
  15. local Ingrid = GetSpawn(NPC, 270001)
  16. if GetTempVariable(Ingrid, "TempAnimationVar") ~= nil then
  17. PlayFlavor(NPC, "", "", "flex", 0, 0)
  18. end
  19. if Ingrid ~= nil then
  20. AddTimer(Ingrid, 2000, "FlirtWithIngrid")
  21. end
  22. --Say(NPC, "TempAnimationVar = " .. GetTempVariable(Ingrid, "TempAnimationVar") .. "!")
  23. --SetTempVariable(Ingrid, "TempAnimationVar", "SecondRun")
  24. end
  25. -- sent from Ingrid's chuckle
  26. -- sends back to Ingrid after Geredo responds with a bow
  27. function FlirtingWithGeredo(NPC, Spawn)
  28. local Ingrid = GetSpawn(NPC, 270001)
  29. if GetTempVariable(Ingrid, "TempAnimationVar") ~= nil then
  30. PlayFlavor(NPC, "", "", "bow", 0, 0)
  31. end
  32. if Ingrid ~= nil then
  33. AddTimer(Ingrid, 3000, "FlirtWithIngrid_2")
  34. end
  35. end
  36. -- sent from Ingrid's curtsey
  37. -- sends back to Ingrid afer Geredo responds with a flirt
  38. function FlirtingWithGeredo_2(NPC, Spawn)
  39. local Ingrid = GetSpawn(NPC, 270001)
  40. if GetTempVariable(Ingrid, "TempAnimationVar") ~= nil then
  41. PlayFlavor(NPC, "", "", "flirt", 0, 0)
  42. end
  43. if Ingrid ~= nil then
  44. AddTimer(Ingrid, 2500, "FlirtWithIngrid_3")
  45. end
  46. end
  47. -- sent from Ingrid's flustered
  48. -- sends back to Ingrid afer Geredo responds with a blowkiss
  49. function FlirtingWithGeredo_3(NPC, Spawn)
  50. local Ingrid = GetSpawn(NPC, 270001)
  51. if GetTempVariable(Ingrid, "TempAnimationVar") ~= nil then
  52. PlayFlavor(NPC, "", "", "scheme", 0, 0)
  53. --PlayAnimation(NPC, 11762)
  54. end
  55. if Ingrid ~= nil then
  56. AddTimer(Ingrid, 2000, "FlirtWithIngrid_4")
  57. end
  58. end
  59. -- sent from Ingrid's no
  60. -- sends back to Ingrid afer Geredo responds with beg
  61. function FlirtingWithGeredo_4(NPC, Spawn)
  62. local Ingrid = GetSpawn(NPC, 270001)
  63. if GetTempVariable(Ingrid, "TempAnimationVar") ~= nil then
  64. PlayFlavor(NPC, "", "", "beg", 0, 0)
  65. end
  66. if Ingrid ~= nil then
  67. AddTimer(Ingrid, 1500, "FlirtWithIngrid_5")
  68. end
  69. end
  70. function CaptainCallingIngrid(NPC, Spawn)
  71. -- Testing to set animation during the captain calling ingrid
  72. --PlayFlavor(NPC, "", "", "blowkiss", 0, 0)
  73. PlayAnimation(NPC, 12246)
  74. end
  75. function hailed(NPC, Spawn)
  76. end
  77. function respawn(NPC)
  78. end