9
3

aMurkwaterhenchman.lua 601 B

12345678910111213141516171819202122232425262728293031323334
  1. --[[
  2. Script Name : SpawnScripts/Edgewater/aMurkwaterhenchman.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.07.05 07:07:02
  5. Script Purpose :
  6. :
  7. --]]
  8. local AvengeTheFreeportTrooper = 5291
  9. function spawn(NPC)
  10. end
  11. function hailed(NPC, Spawn)
  12. FaceTarget(NPC, Spawn)
  13. end
  14. function death(NPC, Spawn)
  15. if not HasQuest(Spawn, AvengeTheFreeportTrooper) then
  16. local chance = MakeRandomInt(1, 100)
  17. if chance <= 10 then
  18. AddLootItem(NPC, 3021)
  19. end
  20. else
  21. RemoveLootItem(NPC, 3021)
  22. end
  23. end
  24. function respawn(NPC)
  25. spawn(NPC)
  26. end