Advertisement
Guest User

Untitled

a guest
Feb 18th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. Scriptname aaaHalfDragonUnlockScript extends Quest
  2.  
  3. Quest Property aaaHalfDragonUnlock Auto
  4.  
  5. GlobalVariable Property aaaHalfDragonQuestPointsGathered Auto
  6.  
  7. Function SomeFunction()
  8. RegisterForUpdate(30.0) ; Before we can use OnUpdate() we must register.
  9. EndFunction
  10.  
  11. ; -----
  12.  
  13. Event OnUpdate() ; This event occurs every 30 seconds
  14. if (Game.QueryStat("Dragon Souls Collected") >= 1)
  15. if (Game.QueryStat("Dragon Souls Collected") <= 9)
  16. aaaHalfDragonUnlock.SetObjectivedisplayed(20)
  17. aaaHalfDragonUnlock.SetStage(20)
  18. aaaHalfDragonQuestPointsGathered.SetValue(Game.QueryStat("Dragon Souls Collected"))
  19. elseif (Game.QueryStat("Dragon Souls Collected") >= 10)
  20. aaaHalfDragonUnlock.SetObjectivedisplayed(200)
  21. aaaHalfDragonUnlock.SetStage(200)
  22. aaaHalfDragonQuestPointsGathered.SetValue(Game.QueryStat("Dragon Souls Collected"))
  23. endif
  24. endif
  25. endEvent
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement