widgetbox4.lua 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. --[[
  2. Script Name : SpawnScripts/SunkenCity_Classic/widgetbox4.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.11.03 12:11:13
  5. Script Purpose :
  6. :
  7. --]]
  8. local LukursAntiques = 374
  9. function spawn(NPC)
  10. SetRequiredQuest(NPC, LukursAntiques, 1)
  11. SetRequiredQuest(NPC, LukursAntiques, 2)
  12. SetRequiredQuest(NPC, LukursAntiques, 3)
  13. SetTempVariable(NPC,"Mask","false")
  14. AddTimer(NPC,2000,"MaskCheck")
  15. end
  16. function casted_on(NPC, Spawn, SpellName)
  17. if SpellName == 'Search' then
  18. if GetTempVariable(NPC,"Mask")=="true" and GetQuestStepProgress(Spawn,LukursAntiques,2)==0 then --ShadowedMask
  19. SetStepComplete(Spawn, LukursAntiques, 2)
  20. SendMessage(Spawn,"You find a Shadowed Mask wrapped in old rags.")
  21. else
  22. SendMessage(Spawn,"This crate's contents are rusted beyond recognition.")
  23. end
  24. end
  25. end
  26. function MaskCheck(NPC)
  27. local zone = GetZone(NPC)
  28. local Muck1 = GetSpawnByLocationID(zone, 133787343)
  29. local Muck2 = GetSpawnByLocationID(zone, 133787394)
  30. end
  31. function respawn(NPC)
  32. spawn(NPC)
  33. end