bloodstainedfingerbones.lua 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. --[[
  2. Script Name : SpawnScripts/Commonlands/bloodstainedfingerbones.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.05.11 06:05:04
  5. Script Purpose :
  6. :
  7. --]]
  8. local TheSkeletonKey = 411
  9. function spawn(NPC)
  10. end
  11. function hailed(NPC, Spawn)
  12. FaceTarget(NPC, Spawn)
  13. end
  14. function respawn(NPC)
  15. spawn(NPC)
  16. end
  17. function casted_on(NPC, Spawn, SpellName)
  18. if SpellName == 'Gathering' then
  19. Despawn(NPC)
  20. SendMessage(Spawn, "You collect the bloody finger", 20)
  21. if GetQuestStep(Spawn, TheSkeletonKey) == 1 then
  22. SetStepComplete(Spawn, TheSkeletonKey, 1)
  23. elseif GetQuestStep(Spawn, TheSkeletonKey) == 2 then
  24. SetStepComplete(Spawn, TheSkeletonKey, 2)
  25. elseif GetQuestStep(Spawn, TheSkeletonKey) == 3 then
  26. SetStepComplete(Spawn, TheSkeletonKey, 3)
  27. elseif GetQuestStep(Spawn, TheSkeletonKey) == 4 then
  28. SetStepComplete(Spawn, TheSkeletonKey, 4)
  29. elseif GetQuestStep(Spawn, TheSkeletonKey) == 5 then
  30. SetStepComplete(Spawn, TheSkeletonKey, 5)
  31. end
  32. end
  33. end