GuardKaladenth.lua 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. choice = math.random(1,2)
  14. if choice == 1 then
  15. 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)
  16. elseif choice == 2 then
  17. 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)
  18. else
  19. end
  20. end
  21. function waypoints(NPC)
  22. MovementLoopAddLocation(NPC, 594.35, -21.42, -257.29, 2, 5)
  23. MovementLoopAddLocation(NPC, 580.75, -20.84, -259, 2, 0)
  24. MovementLoopAddLocation(NPC, 553.51, -20.04, -277.93, 2, 0)
  25. MovementLoopAddLocation(NPC, 518.75, -20.64, -286.51, 2, 0)
  26. MovementLoopAddLocation(NPC, 550.5, -21.45, -311.58, 2, 0)
  27. MovementLoopAddLocation(NPC, 545.01, -21.17, -325.85, 2, 0)
  28. MovementLoopAddLocation(NPC, 530.36, -21.04, -314.28, 2, 0)
  29. MovementLoopAddLocation(NPC, 520.82, -20.75, -290.82, 2, 0)
  30. MovementLoopAddLocation(NPC, 538.52, -20.27, -282.51, 2, 0)
  31. MovementLoopAddLocation(NPC, 550.93, -20.18, -281.09, 2, 0)
  32. MovementLoopAddLocation(NPC, 555.04, -20.01, -277.3, 2, 0)
  33. MovementLoopAddLocation(NPC, 574.43, -20.55, -266.52, 2, 0)
  34. MovementLoopAddLocation(NPC, 584.22, -20.78, -258.42, 2, 0)
  35. MovementLoopAddLocation(NPC, 594.35, -21.42, -257.29, 2, 5)
  36. end