aSapswillvillager133771749.lua 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. --[[
  2. Script Name : SpawnScripts/QueensColony/aSapswillvillager133771749.lua
  3. Script Purpose : Makes the sapswill on the Queen's Colony run around the rock.
  4. Script Author : Scatman
  5. Script Date : 2008.12.15
  6. Modified Date. : 2020.04.30
  7. Modified by. : premierio015
  8. Notes : Changed speed from 4 to 7, now running around circle is more look a like Live version.
  9. --]]
  10. function spawn(NPC)
  11. MovementLoopAddLocation(NPC, -75.98, 0.26, -238.35, 7, 0)
  12. MovementLoopAddLocation(NPC, -72.04, 0.25, -240.76, 7, 0)
  13. MovementLoopAddLocation(NPC, -73.36, 0.26, -245.79, 7, 0)
  14. MovementLoopAddLocation(NPC, -78.16, 0.35, -248.07, 7, 0)
  15. MovementLoopAddLocation(NPC, -82.81, 1.69, -245.62, 7, 0)
  16. MovementLoopAddLocation(NPC, -85.91, 2.09, -240.37, 7, 0)
  17. MovementLoopAddLocation(NPC, -82.86, 1.75, -237.19, 7, 0)
  18. end
  19. function hailed(NPC, Spawn)
  20. FaceTarget(NPC, Spawn)
  21. math.randomseed(os.time())
  22. text = math.random(1,3)
  23. if text == 1 then
  24. Say(NPC, "Almost there!")
  25. elseif text == 2 then
  26. Say(NPC, "Wait, seen you before I have?")
  27. else
  28. Say(NPC, "Trouble! I'm on the way...")
  29. end
  30. end
  31. function respawn(NPC)
  32. end