soulspike.lua 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. --[[
  2. Script Name : SpawnScripts/Starcrest/soulspike.lua
  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 NULLIFICATION_STONE = 10087
  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, NULLIFICATION_STONE) and HasQuest(Spawn, CONFRONTATION) and GetQuestStep(Spawn, CONFRONTATION) == 2 then
  19. while HasItem(Spawn, NULLIFICATION_STONE, 1) do
  20. RemoveItem(Spawn, NULLIFICATION_STONE)
  21. end
  22. SetStepComplete(Spawn, CONFRONTATION, 2)
  23. local velderoth = GetSpawn(Spawn, 2340062)
  24. if velderoth ~= nil then
  25. PlayFlavor(velderoth, "voiceover/english/tutorial_revamp/velderoth_malraen/qey_village02/qst_velderoth_howcould_ea37cf7d.mp3", "NO!!! How could you do such a thing?", "", 4138921089, 741301826, Spawn)
  26. end
  27. local stand = GetSpawn(Spawn, 2340126)
  28. if stand ~= nil then
  29. Despawn(stand)
  30. end
  31. Despawn(NPC)
  32. end
  33. end