9
3

aBrotherhoodenforcer.lua 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. --[[
  2. Script Name : SpawnScripts/BeggarsCourt/aBrotherhoodenforcer.lua
  3. Script Purpose : a Brotherhood enforcer
  4. Script Author : John Adams (rewritten by Cynnar)
  5. Script Date : 2009.04.07
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. local ADJUNCT_CAPTAIN_ROMMULS = 1370065
  9. function spawn(NPC)
  10. if GetSpawnLocationID(NPC) == 403031 then
  11. MoveToLocation(NPC, -14.62, 2.25, -6.99, 3, "", true)
  12. MoveToLocation(NPC, -17.68, 3.00, -21.58, 3, "", false)
  13. end
  14. if GetSpawnLocationID(NPC) == 403032 then
  15. MoveToLocation(NPC, -7.44, 4.00, -46.95, 3, "", true)
  16. MoveToLocation(NPC, -15.15, 3.75, -31.27, 3, "checkspawn", false)
  17. end
  18. if GetSpawnLocationID(NPC) == 403033 then
  19. MoveToLocation(NPC, 4.64, 4.75, -27.67, 3, "", true)
  20. MoveToLocation(NPC, -12.87, 3.26, -25.76, 3, "", false)
  21. end
  22. end
  23. function respawn(NPC)
  24. spawn(NPC)
  25. end
  26. function hailed(NPC, Spawn)
  27. FaceTarget(NPC, Spawn)
  28. end
  29. function E_Talk1(NPC)
  30. PlayFlavor(NPC, "", "Be quiet, don't struggle, and come with us, Rommuls.", "", 1689589577, 4560189, Spawn)
  31. local Rommuls = GetSpawn(NPC, ADJUNCT_CAPTAIN_ROMMULS)
  32. if Rommuls ~= nil then
  33. AddTimer(Rommuls , 1998, "Talk2")
  34. end
  35. end
  36. function checkspawn(NPC, Spawn)
  37. local Rommuls = GetSpawn(NPC, ADJUNCT_CAPTAIN_ROMMULS)
  38. if Rommuls ~= nil then
  39. AddTimer(Rommuls , 30, "Talk1")
  40. end
  41. end
  42. function move_enforcer1(NPC)
  43. --MoveToLocation(NPC, -8.13, 4.00, -42.68, 3, "Despawn_All", false) was in old spawn script
  44. MoveToLocation(NPC, -24.59, 2.00, -7.14, 3, "Despawn_All", false)
  45. end
  46. function move_enforcer2(NPC)
  47. MoveToLocation(NPC, -24.59, 2.00, -7.14, 3, "Despawn_All", false)
  48. end
  49. function move_enforcer3(NPC)
  50. MoveToLocation(NPC, -24.59, 2.00, -7.14, 3, "Despawn_All", false)
  51. end
  52. function Despawn_All(NPC)
  53. Despawn(NPC)
  54. end