9
3

aminer.lua 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. --[[
  2. Script Name : SpawnScripts/Darklight/aminer.lua
  3. Script Purpose : a miner <Hate's Envy Miner>
  4. Script Author : John Adams
  5. Script Date : 2009.02.01
  6. Script Notes : Male Miner that does walk around newbie area
  7. --]]
  8. function spawn(NPC)
  9. MovementLoopAddLocation(NPC, -413.11, -62.87, 239.47, 3, 0)
  10. MovementLoopAddLocation(NPC, -412.00, -62.87, 222.83, 3, 0)
  11. MovementLoopAddLocation(NPC, -413.56, -62.87, 218.93, 3, 0)
  12. MovementLoopAddLocation(NPC, -406.88, -62.87, 216.64, 3, 0)
  13. MovementLoopAddLocation(NPC, -404.18, -62.87, 214.02, 3, 0)
  14. MovementLoopAddLocation(NPC, -400.42, -62.87, 207.76, 3, 0)
  15. MovementLoopAddLocation(NPC, -399.92, -62.54, 202.64, 3, 0)
  16. MovementLoopAddLocation(NPC, -390.70, -62.87, 203.21, 3, 0)
  17. MovementLoopAddLocation(NPC, -386.70, -62.87, 201.74, 3, 0)
  18. MovementLoopAddLocation(NPC, -384.22, -62.87, 205.75, 3, 0)
  19. MovementLoopAddLocation(NPC, -373.58, -62.87, 208.92, 3, 0)
  20. MovementLoopAddLocation(NPC, -368.41, -62.87, 208.30, 3, 0)
  21. MovementLoopAddLocation(NPC, -367.58, -62.87, 217.60, 3, 0)
  22. MovementLoopAddLocation(NPC, -371.30, -62.87, 218.00, 3, 0)
  23. MovementLoopAddLocation(NPC, -373.85, -62.87, 223.07, 3, 0)
  24. MovementLoopAddLocation(NPC, -373.80, -62.87, 229.02, 3, 0)
  25. MovementLoopAddLocation(NPC, -371.61, -62.87, 231.72, 3, 0)
  26. MovementLoopAddLocation(NPC, -371.10, -62.87, 235.38, 3, 0)
  27. MovementLoopAddLocation(NPC, -369.62, -62.87, 236.66, 3, 0)
  28. MovementLoopAddLocation(NPC, -368.97, -62.87, 241.71, 3, 0)
  29. MovementLoopAddLocation(NPC, -382.00, -62.87, 243.54, 3, 0)
  30. MovementLoopAddLocation(NPC, -382.28, -62.87, 258.29, 3, 0)
  31. MovementLoopAddLocation(NPC, -421.53, -63.49, 258.05, 3, 0)
  32. MovementLoopAddLocation(NPC, -424.89, -63.26, 251.68, 3, 0)
  33. MovementLoopAddLocation(NPC, -411.24, -62.87, 239.38, 3, 0)
  34. MovementLoopAddLocation(NPC, -397.93, -62.87, 238.66, 3, 0)
  35. MovementLoopAddLocation(NPC, -390.59, -62.87, 247.07, 3, 0)
  36. MovementLoopAddLocation(NPC, -381.05, -62.87, 236.56, 3, 0)
  37. MovementLoopAddLocation(NPC, -380.94, -62.87, 219.24, 3, 0)
  38. MovementLoopAddLocation(NPC, -384.56, -62.87, 213.48, 3, 0)
  39. MovementLoopAddLocation(NPC, -385.33, -62.87, 209.06, 3, 0)
  40. MovementLoopAddLocation(NPC, -397.21, -62.87, 208.74, 3, 0)
  41. MovementLoopAddLocation(NPC, -401.90, -62.87, 220.72, 3, 0)
  42. MovementLoopAddLocation(NPC, -401.44, -62.87, 232.93, 3, 0)
  43. MovementLoopAddLocation(NPC, -398.28, -62.87, 238.80, 3, 0)
  44. end
  45. function respawn(NPC)
  46. spawn(NPC)
  47. end
  48. function InRange(NPC, Spawn)
  49. end
  50. function LeaveRange(NPC, Spawn)
  51. end
  52. function hailed(NPC, Spawn)
  53. FaceTarget(NPC, Spawn)
  54. choice = math.random(1,4)
  55. if choice == 1 then
  56. PlayFlavor(NPC, "voiceover/english/neriak/a_miner/darklight_wood/service/hates_envy/miner_male_1_hail_348fc1b3.mp3", "There hasn't been much work lately.", "", 4195669824, 624527790, Spawn)
  57. elseif choice == 2 then
  58. PlayFlavor(NPC, "voiceover/english/neriak/a_miner/darklight_wood/service/hates_envy/miner_male_1_hail_e6dc69ea.mp3", "I can't believe how quickly those elementals poured from the earth!", "", 3126552969, 2583209112, Spawn)
  59. elseif choice == 3 then
  60. PlayFlavor(NPC, "voiceover/english/neriak/a_miner/darklight_wood/service/hates_envy/miner_male_2_hail_a498a89c.mp3", "For Neriak and Cristanos!", "", 361255983, 2933844136, Spawn)
  61. elseif choice == 4 then
  62. PlayFlavor(NPC, "voiceover/english/neriak/a_miner/darklight_wood/service/hates_envy/miner_male_1_hail_c0c3ad78.mp3", "Things are a bit rougher now, but the time off is welcome.", "", 3143475956, 184613742, Spawn)
  63. end
  64. end