trashplatform.lua 634 B

123456789101112131415161718192021222324
  1. --[[
  2. Script Name : SpawnScripts/Kugup/trashplatform.lua
  3. Script Author : neatz09
  4. Script Date : 2023.05.06 12:05:37
  5. Script Purpose : handles the proximity check for the quest "Taking Out the Trash"
  6. :
  7. --]]
  8. local TakingOuttheTrash = 5810
  9. function spawn(NPC)
  10. SetPlayerProximityFunction(NPC, 6, "InRange", "LeaveRange")
  11. end
  12. function InRange(NPC, Spawn)
  13. if GetQuestStep(Spawn, TakingOuttheTrash) then SendMessage(Spawn, "This is where I am supposed to place the trash...", "White")
  14. end
  15. end
  16. function LeaveRange(NPC, Spawn)
  17. end
  18. function respawn(NPC)
  19. spawn(NPC)
  20. end