9
3

GuardCaptainGavin.lua 815 B

12345678910111213141516171819202122232425262728
  1. --[[
  2. Script Name : SpawnScripts/Nektropos1/GuardCaptainGavin.lua
  3. Script Author : smash
  4. Script Date : 2016.09.11 12:09:30
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. AddTimer(NPC, 2000, "RunIntoRoom")
  10. end
  11. function RunIntoRoom(NPC)
  12. --Open the door about a second after he starts to run
  13. local door = GetSpawnByLocationID(GetZone(NPC), 1439509)
  14. AddTimer(NPC, 1000, "OpenDoors", 1, door)
  15. --Now run into the room like a mad man
  16. MoveToLocation(NPC, 17.32, 13.50, -44.45, 6, "DramaticEntry")
  17. end
  18. function DramaticEntry(NPC)
  19. PlayFlavor(NPC, "voiceover/english/optional3/golem_base_1/ft/golem/golem_base_1_1_garbled_e0fead4d.mp3", "Pintoota kolata eldina mastarina", "", 0, 0, nil, 27)
  20. end
  21. function OpenDoors(NPC, door)
  22. UseWidget(door)
  23. end