9
3

Wazzleburn.lua 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. --[[
  2. Script Name : SpawnScripts/Baubbleshire/Wazzleburn.lua
  3. Script Purpose : Wazzleburn <Spell Scrolls>
  4. Script Author : Scatman
  5. Script Date : 2009.09.27
  6. Script Notes :
  7. --]]
  8. function spawn(NPC)
  9. SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange")
  10. end
  11. function respawn(NPC)
  12. spawn(NPC)
  13. end
  14. function InRange(NPC, Spawn)
  15. if GetFactionAmount(Spawn,11)<0 then
  16. PlayFlavor(NPC, "", "", "heckno", 0, 0, Spawn)
  17. FaceTarget(NPC, Spawn)
  18. else
  19. if math.random(0, 100) <= 25 then
  20. FaceTarget(NPC, Spawn)
  21. GenericScribeHail(NPC, Spawn)
  22. end
  23. end
  24. end
  25. function LeaveRange(NPC, Spawn)
  26. end
  27. function GenericScribeHail(NPC, Spawn)
  28. local choice = math.random(1,4)
  29. if choice == 1 then
  30. PlayFlavor(NPC, "voiceover/english/gnome_eco_good_1/ft/service/scribe/gnome_scribe_service_good_1_hail_gf_392a4f4e.mp3", "Be careful, it's best not to read the scrolls. If you want to know what they are, just ask me.", "nod", 3255267278, 1071089122, Spawn)
  31. elseif choice == 2 then
  32. PlayFlavor(NPC, "voiceover/english/gnome_eco_good_1/ft/service/scribe/gnome_scribe_service_good_1_hail_gf_efd8a52b.mp3", "Ah, a student of the arcane. Is there something I can help you find?", "ponder", 241135821, 1371778900, Spawn)
  33. elseif choice == 3 then
  34. PlayFlavor(NPC, "voiceover/english/gnome_eco_good_1/ft/service/scribe/gnome_scribe_service_good_1_hail_gf_58ed77b2.mp3", "All right where is my pen? How am I supposed to scribe anything without my pen?", "tapfoot", 513035073, 2771699263, Spawn)
  35. elseif choice == 4 then
  36. PlayFlavor(NPC, "voiceover/english/gnome_eco_good_1/ft/service/scribe/gnome_scribe_service_good_1_hail_gf_cbc94cb6.mp3", "Blast it! Who keeps taking all of the parchment? ", "swear", 1429173278, 1014473963, Spawn)
  37. end
  38. end
  39. function hailed(NPC, Spawn)
  40. if GetFactionAmount(Spawn,11)<0 then
  41. PlayFlavor(NPC, "", "", "heckno", 0, 0, Spawn)
  42. FaceTarget(NPC, Spawn)
  43. else
  44. FaceTarget(NPC, Spawn)
  45. GenericScribeHail(NPC, Spawn)
  46. end
  47. end