9
3

adrudgemucus.lua 680 B

123456789101112131415161718192021222324252627282930313233
  1. --[[
  2. Script Name : SpawnScripts/Edgewater/adrudgemucus.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.07.04 08:07:14
  5. Script Purpose :
  6. :
  7. --]]
  8. local SavingTheSewagePumps = 5284
  9. local AnAcidicGland = 3489
  10. function spawn(NPC)
  11. end
  12. function hailed(NPC, Spawn)
  13. FaceTarget(NPC, Spawn)
  14. end
  15. function respawn(NPC)
  16. spawn(NPC)
  17. end
  18. function death(NPC, Spawn)
  19. if not HasQuest(Spawn, SavingTheSewagePumps) then
  20. local chance = MakeRandomInt(1, 100)
  21. if chance <= 10 then
  22. AddLootItem(Spawn, AnAcidicGland)
  23. elseif HasQuest(Spawn, SavingTheSewagePumps) then
  24. RemoveLootItem(Spawn, AnAcidicGland)
  25. end
  26. end
  27. end