theodoric.lua 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. --[[
  2. Script Name : theodoric.lua
  3. Script Purpose : Waypoint Path for theodoric.lua
  4. Script Author : Devn00b
  5. Script Date : 04/11/2020 07:19:05 PM
  6. Script Notes : Locations collected from Live
  7. --]]
  8. function spawn(NPC)
  9. waypoints(NPC)
  10. end
  11. function hailed(NPC, Spawn)
  12. FaceTarget(NPC, Spawn)
  13. local choice = math.random(1,3)
  14. if choice == 1 then
  15. PlayFlavor(NPC, "voiceover/english/human_eco_evil_drunk/ft/eco/evil/human_eco_evil_drunk_barmaid_gm_a1d96f41.mp3", "My stein hasn't any legs to walk over and fill itself up.", "glare", 2656968471, 1396939792, Spawn)
  16. elseif choice == 2 then
  17. PlayFlavor(NPC, "voiceover/english/human_eco_evil_drunk/ft/eco/evil/human_eco_evil_drunk_hail_gm_622bfa69.mp3", "What do you mean ye drank more than I did?", "boggle", 3046379177, 1648095152, Spawn)
  18. elseif choice == 3 then
  19. PlayFlavor(NPC, "voiceover/english/human_eco_evil_drunk/ft/eco/evil/human_eco_evil_drunk_barmaid_gm_7f76ecc6.mp3", "Hurry up! My stomach's near dry thanks to ya.", "frustrated", 2014105974, 2128019974, Spawn)
  20. else
  21. end
  22. end
  23. function respawn(NPC)
  24. spawn(NPC)
  25. end
  26. function waypoints(NPC)
  27. MovementLoopAddLocation(NPC, 516.1, -9.57, 128.35, 2, 30)
  28. MovementLoopAddLocation(NPC, 516.74, -9.57, 131.87, 2, 30)
  29. MovementLoopAddLocation(NPC, 532.62, -9.56, 132.75, 2, 0)
  30. MovementLoopAddLocation(NPC, 532.46, -9.56, 136.21, 2, 30)
  31. MovementLoopAddLocation(NPC, 532.05, -9.56, 132.94, 2, 0)
  32. MovementLoopAddLocation(NPC, 540.22, -9.56, 133.93, 2, 0)
  33. MovementLoopAddLocation(NPC, 542.24, -9.56, 136.1, 2, 0)
  34. MovementLoopAddLocation(NPC, 561.26, -9.56, 133.56, 2, 0)
  35. MovementLoopAddLocation(NPC, 572.73, -9.43, 136.49, 2, 0)
  36. MovementLoopAddLocation(NPC, 572.91, -8.47, 131.8, 2, 0)
  37. MovementLoopAddLocation(NPC, 580.87, -8.48, 130.61, 2, 10)
  38. MovementLoopAddLocation(NPC, 578.34, -8.48, 127.68, 2, 60)
  39. end