Baubbleshire.lua 796 B

12345678910111213141516171819202122232425
  1. --[[
  2. Script Name : ZoneScipts/Baubbleshire.lua
  3. Script Purpose : Baubbleshire
  4. Script Author : Shatou
  5. Script Date : 1/7/2020
  6. Script Notes :
  7. ]]--
  8. local BAG_OF_PARTS_ID = 4110
  9. local BAG_OF_PARTS_QUEST_ID = 505
  10. function init_zone_script(Zone)
  11. SetLocationProximityFunction(Zone, 916.23, -17.66, -443.61, 10, "AddBagOfParts")
  12. SetLocationProximityFunction(Zone,869.07, -18.06, -485.02, 7, "CogOfAk","LeaveLocation")
  13. end
  14. function AddBagOfParts(NPC, Spawn)
  15. if not HasQuest(Spawn, BAG_OF_PARTS_QUEST_ID) and not HasCompletedQuest(Spawn, BAG_OF_PARTS_QUEST_ID) and not HasItem(Spawn, 4110) then
  16. SummonItem(Spawn, BAG_OF_PARTS_ID, 1)
  17. end
  18. end
  19. function CogOfAk(Zone,Player)
  20. SendPopUpMessage(Player, "Spectacular Sprocket of Ak’Anon", 255, 255, 0)
  21. end