ManglerXII.lua 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. --[[
  2. Script Name : SpawnScripts/Baubbleshire/ManglerXII
  3. Script Purpose : ManglerXII
  4. Script Author : John Adams
  5. Script Date : 2008.09.23
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. function spawn(NPC)
  9. SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange")
  10. MovementLoopAddLocation(NPC, 827.66, -14.06, -480.5, 1, 0)
  11. MovementLoopAddLocation(NPC, 834.32, -14.02, -476.03, 1, 0)
  12. MovementLoopAddLocation(NPC, 839.95, -13.49, -469.79, 1, 0)
  13. MovementLoopAddLocation(NPC, 847.06, -18.88, -454.96, 1, 0)
  14. MovementLoopAddLocation(NPC, 844.23, -18.96, -434.01, 1, 11)
  15. MovementLoopAddLocation(NPC, 846.6, -19.35, -430.72, 1, 0)
  16. MovementLoopAddLocation(NPC, 842.07, -18.98, -435.68, 1, 0)
  17. MovementLoopAddLocation(NPC, 847.61, -18.01, -458.75, 1, 0)
  18. MovementLoopAddLocation(NPC, 853.84, -18.85, -459.52, 1, 0)
  19. MovementLoopAddLocation(NPC, 866.67, -18.41, -442.31, 1, 0)
  20. MovementLoopAddLocation(NPC, 873.2, -18.48, -436.76, 1, math.random(0, 30))
  21. MovementLoopAddLocation(NPC, 874.93, -14.53, -423.92, 1, 0)
  22. MovementLoopAddLocation(NPC, 864.92, -13.09, -422.42, 1, 0)
  23. MovementLoopAddLocation(NPC, 860.02, -12, -417.94, 1, 0)
  24. MovementLoopAddLocation(NPC, 865.7, -13.2, -422.96, 1, 0)
  25. MovementLoopAddLocation(NPC, 873.41, -14.27, -422.8, 1, 0)
  26. MovementLoopAddLocation(NPC, 884.48, -13.88, -431.04, 1, 0)
  27. MovementLoopAddLocation(NPC, 891.23, -14.67, -441.9, 1, 0)
  28. MovementLoopAddLocation(NPC, 893.57, -16.73, -448.56, 1, 0)
  29. MovementLoopAddLocation(NPC, 891.52, -19.16, -461.79, 1, math.random(0, 30))
  30. MovementLoopAddLocation(NPC, 882.27, -19.14, -471.52, 1, 0)
  31. MovementLoopAddLocation(NPC, 882.74, -18.56, -481.89, 1, 0)
  32. MovementLoopAddLocation(NPC, 892.26, -17.73, -494.28, 2, 0)
  33. MovementLoopAddLocation(NPC, 893.76, -17.4, -500.52, 2, 0)
  34. MovementLoopAddLocation(NPC, 887.51, -16.56, -510.72, 1, 0)
  35. MovementLoopAddLocation(NPC, 877.19, -17.75, -506.52, 1, 0)
  36. MovementLoopAddLocation(NPC, 868.95, -17.85, -490.44, 1, 0)
  37. MovementLoopAddLocation(NPC, 862.42, -18.29, -485.48, 1, 0)
  38. MovementLoopAddLocation(NPC, 864.92, -18.93, -478.97, 1, 0)
  39. MovementLoopAddLocation(NPC, 860.79, -19.12, -468.87, 1, 0)
  40. MovementLoopAddLocation(NPC, 853.01, -18.57, -465.74, 1, 0)
  41. MovementLoopAddLocation(NPC, 846.36, -17.98, -467.82, 1, math.random(0, 30))
  42. MovementLoopAddLocation(NPC, 841.69, -17.75, -479.52, 1, 0)
  43. MovementLoopAddLocation(NPC, 835.11, -17.73, -483.31, 1, 0)
  44. MovementLoopAddLocation(NPC, 832.7, -17.82, -488.98, 1, 0)
  45. MovementLoopAddLocation(NPC, 833.92, -18.19, -495.19, 1, 0)
  46. MovementLoopAddLocation(NPC, 829.61, -17.9, -500.32, 1, 0)
  47. MovementLoopAddLocation(NPC, 828.01, -18.23, -508.81, 1, 0)
  48. MovementLoopAddLocation(NPC, 823.92, -17.52, -507.18, 1, 0)
  49. MovementLoopAddLocation(NPC, 822.69, -14.27, -500.15, 1, 0)
  50. MovementLoopAddLocation(NPC, 827.67, -13.96, -494.09, 1, 0)
  51. end
  52. function respawn(NPC)
  53. spawn(NPC)
  54. end
  55. function InRange(NPC, Spawn)
  56. if math.random(1, 100) <= 25 then
  57. FaceTarget(NPC, Spawn)
  58. PlayFlavor(NPC,"","","attack",0,0,Spawn)
  59. SendMessage(Spawn, GetName(NPC) .. " barks at you.")
  60. end
  61. end
  62. function LeaveRange(NPC, Spawn)
  63. end
  64. function hailed(NPC, Spawn)
  65. FaceTarget(NPC, Spawn)
  66. end