--[[ Script Name : SpawnScripts/FarJourneyFreeport/Geredo.lua Script Author : Cynnar Script Date : 2019.08.04 12:08:08 Script Purpose : Notes : Geredo is suppose to blow a kiss to Ingrid. PlayFlavor(NPC, "", "", "blowkiss", 0, 0) is not working Notes : Replaced with PlayFlavor(NPC, "", "", "scheme", 0, 0) for now --]] local TempAnimationPos = nil function spawn(NPC) end -- sent from Ingrid to start the flirting -- sends back to Ingrid after Geredo starts flirting with a flex function GeredoFlirtingWithIngird(NPC, Spawn) local Ingrid = GetSpawn(NPC, 270001) if GetTempVariable(Ingrid, "TempAnimationVar") ~= nil then PlayFlavor(NPC, "", "", "flex", 0, 0) end if Ingrid ~= nil then AddTimer(Ingrid, 2000, "FlirtWithIngrid") end --Say(NPC, "TempAnimationVar = " .. GetTempVariable(Ingrid, "TempAnimationVar") .. "!") --SetTempVariable(Ingrid, "TempAnimationVar", "SecondRun") end -- sent from Ingrid's chuckle -- sends back to Ingrid after Geredo responds with a bow function FlirtingWithGeredo(NPC, Spawn) local Ingrid = GetSpawn(NPC, 270001) if GetTempVariable(Ingrid, "TempAnimationVar") ~= nil then PlayFlavor(NPC, "", "", "bow", 0, 0) end if Ingrid ~= nil then AddTimer(Ingrid, 3000, "FlirtWithIngrid_2") end end -- sent from Ingrid's curtsey -- sends back to Ingrid afer Geredo responds with a flirt function FlirtingWithGeredo_2(NPC, Spawn) local Ingrid = GetSpawn(NPC, 270001) if GetTempVariable(Ingrid, "TempAnimationVar") ~= nil then PlayFlavor(NPC, "", "", "flirt", 0, 0) end if Ingrid ~= nil then AddTimer(Ingrid, 2500, "FlirtWithIngrid_3") end end -- sent from Ingrid's flustered -- sends back to Ingrid afer Geredo responds with a blowkiss function FlirtingWithGeredo_3(NPC, Spawn) local Ingrid = GetSpawn(NPC, 270001) if GetTempVariable(Ingrid, "TempAnimationVar") ~= nil then PlayFlavor(NPC, "", "", "scheme", 0, 0) --PlayAnimation(NPC, 11762) end if Ingrid ~= nil then AddTimer(Ingrid, 2000, "FlirtWithIngrid_4") end end -- sent from Ingrid's no -- sends back to Ingrid afer Geredo responds with beg function FlirtingWithGeredo_4(NPC, Spawn) local Ingrid = GetSpawn(NPC, 270001) if GetTempVariable(Ingrid, "TempAnimationVar") ~= nil then PlayFlavor(NPC, "", "", "beg", 0, 0) end if Ingrid ~= nil then AddTimer(Ingrid, 1500, "FlirtWithIngrid_5") end end function CaptainCallingIngrid(NPC, Spawn) -- Testing to set animation during the captain calling ingrid --PlayFlavor(NPC, "", "", "blowkiss", 0, 0) PlayAnimation(NPC, 12246) end function hailed(NPC, Spawn) end function respawn(NPC) end