9
3

Anikra.lua 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. --[[
  2. Script Name : SpawnScripts/FarJourneyFreeport/Anikra.lua
  3. Script Author : Ememjr
  4. Script Date : 2019.05.11 03:05:38
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. function spawn(NPC)
  10. end
  11. function hailed(NPC, Spawn)
  12. goblin = GetSpawn(NPC, 270008)
  13. if goblin == nil and GetSpawn(NPC, 270011)~= nil or IsAlive(goblin) == false and GetSpawn(NPC, 270011)~= nil then
  14. FaceTarget(NPC, Spawn)
  15. choice = math.random(1, 2)
  16. if choice == 1 then
  17. PlayFlavor(NPC, "voiceover/english/anikra/boat_06p_tutorial02_fvo_001.mp3", "Thanks for saving me", "thanks", 3802219844, 3242323771)
  18. else
  19. PlayFlavor(NPC, "voiceover/english/anikra/boat_06p_tutorial02/anikra_0_003.mp3", "I don't know how I did that. What was that?", "boggle", 927876289, 3048340606)
  20. end
  21. elseif IsAlive(goblin) == true and GetSpawn(NPC, 270011)== nil then --Stops hails during goblin attack
  22. else
  23. PlayFlavor(NPC, "voiceover/english/anikra/boat_06p_tutorial02_fvo_002.mp3", "I really miss my husband. Why did those smugglers have to throw him overboard?", "sigh", 1493499523, 2767493059)
  24. end
  25. end
  26. --[[
  27. function callDrake(NPC, Spawn)
  28. FaceTarget(NPC, Spawn)
  29. Say(NPC,"I have made it past FaceTarget")
  30. local drake = GetSpawn(Spawn, 270013)
  31. Say(NPC, "I have set the local drake to the spawn id")
  32. Say(NPC, "Test " .. drake)
  33. SpawnSet(drake, "visual_state", 10783)
  34. end
  35. ]]--
  36. function respawn(NPC)
  37. end