9
3

RommulsShipment.lua 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. --[[
  2. Script Name : <script-name>
  3. Script Purpose : <purpose>
  4. Script Author : <author-name>
  5. Script Date : <date>
  6. Script Notes : <special-instructions>
  7. --]]
  8. local HALFELF_MENTOR_QUEST_3 = 315 -- Reel Him In
  9. function spawn(NPC)
  10. --SetRequiredQuest(NPC, HALFELF_MENTOR_QUEST_3, 3)
  11. BlownUpBarrel = GetSpawn(NPC, 1370125)
  12. Despawn(BlownUpBarrel)
  13. end
  14. function hailed(NPC, Spawn)
  15. end
  16. function respawn(NPC)
  17. spawn(NPC)
  18. end
  19. function casted_on(Target, Caster)
  20. if HasQuest(Caster, HALFELF_MENTOR_QUEST_3) and GetQuestStep(Caster, HALFELF_MENTOR_QUEST_3) == 3 then
  21. SendMessage(Caster, "You place the explosives.")
  22. local barrel1 = GetSpawnByLocationID(GetZone(Caster), 467614)
  23. local barrel2 = GetSpawnByLocationID(GetZone(Caster), 1585458)
  24. local barrel3 = GetSpawnByLocationID(GetZone(Caster), 1585459)
  25. if barrel1 ~= nil then
  26. Despawn(barrel1)
  27. end
  28. if barrel2 ~= nil then
  29. Despawn(barrel2)
  30. end
  31. if barrel3 ~= nil then
  32. Despawn(barrel3)
  33. end
  34. SetStepComplete(Caster, HALFELF_MENTOR_QUEST_3, 3)
  35. -- Spawn the blown up barrels
  36. SpawnMob(GetZone(Caster), 1370125, false, -19.714, 3.0022, -25.172)
  37. SpawnMob(GetZone(Caster), 1370125, false, -18.3729, 3.00219, -25.7906)
  38. SpawnMob(GetZone(Caster), 1370125, false, -18.1974, 3.0020, -24.3421)
  39. -- Spawn Adjunct-Captain Rommuls
  40. SpawnMob(GetZone(Caster), 1370065, false, -10.97, 4.13, -53.93)
  41. -- Spawn 3 Brotherhood enforcers
  42. SpawnByLocationID(GetZone(Caster), 403031)
  43. SpawnByLocationID(GetZone(Caster), 403032)
  44. SpawnByLocationID(GetZone(Caster), 403033)
  45. --SpawnMob(GetZone(Caster), 1370064, false, -13.58, 4.37, -58.36)
  46. --SpawnMob(GetZone(Caster), 1370064, false, -17.60, 2.00, 0.77)
  47. --SpawnMob(GetZone(Caster), 1370064, false, 7.93, 9.12, -39.78)
  48. end
  49. end