Advertisement
GrandBulwark

Untitled

Mar 1st, 2015
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. Scriptname dunPOITundraMarshDogSCRIPT extends ObjectReference
  2.  
  3. Quest Property myQuest Auto
  4.  
  5. int Property myStage Auto
  6.  
  7. int distanceCheck = 2500
  8. bool breakLoop
  9.  
  10. EVENT onLoad()
  11. UpdateLoop() ; This script will update every (2) seconds
  12. endEVENT
  13.  
  14. EVENT onUnload()
  15. breakLoop = True
  16. endEVENT
  17.  
  18. Function UpdateLoop()
  19. While (myQuest.GetStage() < myStage && !breakLoop)
  20. if (getDistance(game.getplayer()) <= distanceCheck)
  21. myQuest.setStage(myStage)
  22. EndIf
  23. Utility.Wait(2)
  24. EndWhile
  25. breakLoop = False
  26. EndFunction
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement