aminer_male.lua 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. --[[
  2. Script Name : SpawnScripts/Darklight/aminer_male.lua
  3. Script Purpose : a miner <Hate's Envy Miner>
  4. Script Author : John Adams
  5. Script Date : 2009.02.01
  6. Script Notes :
  7. --]]
  8. function spawn(NPC)
  9. if GetSpawnLocationID(NPC) == 105088 then
  10. SetMovement(NPC)
  11. end
  12. end
  13. function respawn(NPC)
  14. spawn(NPC)
  15. end
  16. function hailed(NPC, Spawn)
  17. FaceTarget(NPC, Spawn)
  18. if HasCompletedQuest(Spawn, 78) then
  19. Say(NPC, "Heard you got rid of the elemtentals, thanks!", Spawn)
  20. else
  21. choice = math.random(1,4)
  22. if choice == 1 then
  23. 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)
  24. elseif choice == 2 then
  25. 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)
  26. elseif choice == 3 then
  27. 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)
  28. elseif choice == 4 then
  29. 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)
  30. end
  31. end
  32. end
  33. function SetMovement(NPC)
  34. MovementLoopAddLocation(NPC, -413.11, -62.87, 239.47, 2, 0)
  35. MovementLoopAddLocation(NPC, -412.00, -62.87, 222.83, 2, 0)
  36. MovementLoopAddLocation(NPC, -413.56, -62.87, 218.93, 2, 0)
  37. MovementLoopAddLocation(NPC, -406.88, -62.87, 216.64, 2, 0)
  38. MovementLoopAddLocation(NPC, -404.18, -62.87, 214.02, 2, 0)
  39. MovementLoopAddLocation(NPC, -400.42, -62.87, 207.76, 2, 0)
  40. MovementLoopAddLocation(NPC, -399.92, -62.54, 202.64, 2, 0)
  41. MovementLoopAddLocation(NPC, -390.70, -62.87, 203.21, 2, 0)
  42. MovementLoopAddLocation(NPC, -386.70, -62.87, 201.74, 2, 0)
  43. MovementLoopAddLocation(NPC, -384.22, -62.87, 205.75, 2, 0)
  44. MovementLoopAddLocation(NPC, -373.58, -62.87, 208.92, 2, 0)
  45. MovementLoopAddLocation(NPC, -368.41, -62.87, 208.30, 2, 0)
  46. MovementLoopAddLocation(NPC, -367.58, -62.87, 217.60, 2, 0)
  47. MovementLoopAddLocation(NPC, -371.30, -62.87, 218.00, 2, 0)
  48. MovementLoopAddLocation(NPC, -373.85, -62.87, 223.07, 2, 0)
  49. MovementLoopAddLocation(NPC, -373.80, -62.87, 229.02, 2, 0)
  50. MovementLoopAddLocation(NPC, -371.61, -62.87, 231.72, 2, 0)
  51. MovementLoopAddLocation(NPC, -371.10, -62.87, 235.38, 2, 0)
  52. MovementLoopAddLocation(NPC, -369.62, -62.87, 236.66, 2, 0)
  53. MovementLoopAddLocation(NPC, -368.97, -62.87, 241.71, 2, 0)
  54. MovementLoopAddLocation(NPC, -382.00, -62.87, 243.54, 2, 0)
  55. MovementLoopAddLocation(NPC, -382.28, -62.87, 258.29, 2, 0)
  56. MovementLoopAddLocation(NPC, -421.53, -63.49, 258.05, 2, 0)
  57. MovementLoopAddLocation(NPC, -424.89, -63.26, 251.68, 2, 0)
  58. MovementLoopAddLocation(NPC, -411.24, -62.87, 239.38, 2, 0)
  59. MovementLoopAddLocation(NPC, -397.93, -62.87, 238.66, 2, 0)
  60. MovementLoopAddLocation(NPC, -390.59, -62.87, 247.07, 2, 0)
  61. MovementLoopAddLocation(NPC, -381.05, -62.87, 236.56, 2, 0)
  62. MovementLoopAddLocation(NPC, -380.94, -62.87, 219.24, 2, 0)
  63. MovementLoopAddLocation(NPC, -384.56, -62.87, 213.48, 2, 0)
  64. MovementLoopAddLocation(NPC, -385.33, -62.87, 209.06, 2, 0)
  65. MovementLoopAddLocation(NPC, -397.21, -62.87, 208.74, 2, 0)
  66. MovementLoopAddLocation(NPC, -401.90, -62.87, 220.72, 2, 0)
  67. MovementLoopAddLocation(NPC, -401.44, -62.87, 232.93, 2, 0)
  68. MovementLoopAddLocation(NPC, -398.28, -62.87, 238.80, 2, 0)
  69. end