GuardKaladenth.lua 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. --[[
  2. Script Name : SpawnScripts/ElddarGrove/GuardKaladenth.lua
  3. Script Purpose : Guard Kaladenth <Guard>
  4. Script Author : John Adams
  5. Script Date : 2008.09.28
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. function spawn(NPC)
  9. waypoints(NPC)
  10. end
  11. function hailed(NPC, Spawn)
  12. FaceTarget(NPC, Spawn)
  13. if GetFactionAmount(Spawn, 11) <0 then
  14. PlayFlavor(NPC, "", "", "glare", 0, 0, Spawn)
  15. else
  16. choice = math.random(1,2)
  17. if choice == 1 then
  18. PlayFlavor(NPC, "voiceover/english/highelf_eco_good_1/ft/service/guard/highelf_guard_service_good_1_hail_gm_ebfceda5.mp3", "Greetings, citizen. I am on guard duty. Should you get into trouble, seek me out.", "attention", 3027655540, 4120709915, Spawn)
  19. elseif choice == 2 then
  20. PlayFlavor(NPC, "voiceover/english/highelf_eco_good_1/ft/service/guard/highelf_guard_service_good_1_hail_gm_c865a827.mp3", "Duty above all else, citizen, except honor!", "scold", 739074204, 2925833259, Spawn)
  21. else
  22. end
  23. end
  24. end
  25. function waypoints(NPC)
  26. MovementLoopAddLocation(NPC, 594.35, -21.42, -257.29, 2, 5)
  27. MovementLoopAddLocation(NPC, 580.75, -20.84, -259, 2, 0)
  28. MovementLoopAddLocation(NPC, 553.51, -20.04, -277.93, 2, 0)
  29. MovementLoopAddLocation(NPC, 518.75, -20.64, -286.51, 2, 0)
  30. MovementLoopAddLocation(NPC, 550.5, -21.45, -311.58, 2, 0)
  31. MovementLoopAddLocation(NPC, 545.01, -21.17, -325.85, 2, 0)
  32. MovementLoopAddLocation(NPC, 530.36, -21.04, -314.28, 2, 0)
  33. MovementLoopAddLocation(NPC, 520.82, -20.75, -290.82, 2, 0)
  34. MovementLoopAddLocation(NPC, 538.52, -20.27, -282.51, 2, 0)
  35. MovementLoopAddLocation(NPC, 550.93, -20.18, -281.09, 2, 0)
  36. MovementLoopAddLocation(NPC, 555.04, -20.01, -277.3, 2, 0)
  37. MovementLoopAddLocation(NPC, 574.43, -20.55, -266.52, 2, 0)
  38. MovementLoopAddLocation(NPC, 584.22, -20.78, -258.42, 2, 0)
  39. MovementLoopAddLocation(NPC, 594.35, -21.42, -257.29, 2, 5)
  40. end