9
3

soulspikerack1.lua 743 B

1234567891011121314151617181920212223242526272829303132333435
  1. --[[
  2. Script Name : <script-name>
  3. Script Purpose : <purpose>
  4. Script Author : Jabantiz
  5. Script Date : 6/15/2018
  6. Script Notes : <special-instructions>
  7. --]]
  8. -- Quest ID's
  9. local CONFRONTATION = 321
  10. -- Item ID's
  11. local SOUL_SPIKE = 13134
  12. function spawn(NPC)
  13. end
  14. function respawn(NPC)
  15. spawn(NPC)
  16. end
  17. function casted_on(NPC, Spawn, Message)
  18. if HasItem(Spawn, SOUL_SPIKE) and HasQuest(Spawn, CONFRONTATION) and GetQuestStep(Spawn, CONFRONTATION) == 2 then
  19. local heading = GetHeading(NPC) + 180
  20. if heading >= 360 then
  21. heading = heading - 360
  22. end
  23. SpawnMob(GetZone(Spawn), 2340127, false, GetX(NPC), GetY(NPC) + 0.69, GetZ(NPC), heading)
  24. while HasItem(Spawn, SOUL_SPIKE, 1) do
  25. RemoveItem(Spawn, SOUL_SPIKE)
  26. end
  27. end
  28. end