Anikra.lua 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. FaceTarget(NPC, Spawn)
  13. Dialog.New(NPC, Spawn)
  14. Dialog.AddDialog("Do you want to call down the Drake?")
  15. Dialog.AddOption("Yes, I want to see him in action!", "callDrake")
  16. Dialog.AddOption("Hell No!")
  17. Dialog.Start()
  18. end
  19. function callDrake(NPC, Spawn)
  20. FaceTarget(NPC, Spawn)
  21. local drake = GetSpawn(NPC, 270013)
  22. if drake ~= nil then
  23. AddTimer(drake, 5000, "startanimation")
  24. Say(NPC, "Drake should be flying")
  25. AddTimer(drake, 31000, "stopanimation")
  26. Say(NPC, "Drake should be gone now")
  27. end
  28. end
  29. --[[
  30. function callDrake(NPC, Spawn)
  31. FaceTarget(NPC, Spawn)
  32. Say(NPC,"I have made it past FaceTarget")
  33. local drake = GetSpawn(Spawn, 270013)
  34. Say(NPC, "I have set the local drake to the spawn id")
  35. Say(NPC, "Test " .. drake)
  36. SpawnSet(drake, "visual_state", 10783)
  37. end
  38. ]]--
  39. function respawn(NPC)
  40. end