9
3

aduskshark.lua 663 B

1234567891011121314151617181920212223242526272829303132
  1. --[[
  2. Script Name : SpawnScripts/SunkenCity/aduskshark.lua
  3. Script Author : fearfx
  4. Script Date : 2017.01.25 07:01:42
  5. Script Purpose : A hacky fix for "The Big One" quest (ID = 190) to spawn Smolderfin
  6. :
  7. --]]
  8. local TheBigOne = 190
  9. function spawn(NPC)
  10. end
  11. function hailed(NPC, Spawn)
  12. FaceTarget(NPC, Spawn)
  13. end
  14. function respawn(NPC)
  15. end
  16. function death(NPC, Spawn)
  17. if GetName(NPC) == "Smolderfin" then
  18. SetTempVariable(Spawn, "TheBigOne", nil)
  19. if HasQuest(Spawn, TheBigOne) then
  20. SetStepComplete(Spawn, TheBigOne, 1)
  21. AddLootItem(NPC, 11524)
  22. end
  23. end
  24. end