Baubbleshire.lua 545 B

1234567891011121314151617181920
  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. end
  13. function AddBagOfParts(NPC, Spawn)
  14. if not HasQuest(Spawn, BAG_OF_PARTS_QUEST_ID) and HasCompletedQuest(Spawn, BAG_OF_PARTS_QUEST_ID) then
  15. SummonItem(Spawn, BAG_OF_PARTS_ID, 1)
  16. end
  17. end