9
3

aterrifiedvictim.lua 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. --[[
  2. Script Name : SpawnScripts/BuccaneersHideout/aterrifiedvictim.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.12.17 04:12:55
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. require "SpawnScripts/Generic/CombatModule"
  10. function spawn(NPC, Spawn)
  11. combatModule(NPC, Spawn)
  12. SpawnSet(NPC,"name","a terrified victim")
  13. end
  14. function hailed(NPC, Spawn)
  15. local zone = GetZone(NPC)
  16. local Pirate1 = GetSpawnByLocationID(zone, 133781301) --Brigand
  17. if not IsAlive(Pirate1) then
  18. FaceTarget(NPC, Spawn)
  19. Dialog.New(NPC, Spawn)
  20. Dialog.AddDialog("Stand away or I ...I ... I'll stick you!")
  21. Dialog.AddVoiceover("voiceover/english/human_eco_good_1/ft/human/human_eco_good_1_notcitizen_gf_2de63779.mp3",600715331, 1815533033)
  22. PlayFlavor(NPC, "", "", "cringe",0,0 , Spawn, 0)
  23. Dialog.AddOption("You're safe now. The path should be clear enough to escape.","Dialog1")
  24. Dialog.Start()
  25. end
  26. end
  27. function Dialog1(NPC, Spawn)
  28. FaceTarget(NPC, Spawn)
  29. Dialog.New(NPC, Spawn)
  30. Dialog.AddDialog("Thanks for saving me...")
  31. Dialog.AddVoiceover("voiceover/english/anikra/boat_06p_tutorial02_fvo_001.mp3",3802219844, 3242323771)
  32. PlayFlavor(NPC, "", "", "thanks", 0, 0, Spawn, 0)
  33. Dialog.AddOption("I'm glad I could help.","Update")
  34. Dialog.Start()
  35. SpawnSet(NPC,"name","a relieved victim")
  36. SpawnSet(NPC,"mood_state","0")
  37. end
  38. function Update(NPC,Spawn)
  39. SetStepComplete(Spawn,5789,1)
  40. AddTimer(NPC,4000,"Run")
  41. MoveToLocation(NPC,-7.59, 6.23, 10.49,2)
  42. end
  43. function Run(NPC)
  44. PlayFlavor(NPC, "", "", "curtsey", 0, 0, Spawn, 0)
  45. Despawn(NPC)
  46. end
  47. function respawn(NPC)
  48. spawn(NPC)
  49. end