9
3

Baubbleshire.lua 907 B

1234567891011121314151617181920212223242526272829
  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 player_entry(Zone, Player)
  15. SendPopUpMessage(Player, "The Baubbleshire", 255, 255, 255)
  16. end
  17. function AddBagOfParts(NPC, Spawn)
  18. if not HasQuest(Spawn, BAG_OF_PARTS_QUEST_ID) and not HasCompletedQuest(Spawn, BAG_OF_PARTS_QUEST_ID) and not HasItem(Spawn, 4110) then
  19. SummonItem(Spawn, BAG_OF_PARTS_ID, 1)
  20. end
  21. end
  22. function CogOfAk(Zone,Player)
  23. SendPopUpMessage(Player, "Spectacular Sprocket of Ak’Anon", 255, 255, 0)
  24. end