Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Scriptname aaaHalfDragonUnlockScript extends Quest
- Quest Property aaaHalfDragonUnlock Auto
- GlobalVariable Property aaaHalfDragonQuestPointsGathered Auto
- Function SomeFunction()
- RegisterForUpdate(30.0) ; Before we can use OnUpdate() we must register.
- EndFunction
- ; -----
- Event OnUpdate() ; This event occurs every 30 seconds
- if (Game.QueryStat("Dragon Souls Collected") >= 1)
- if (Game.QueryStat("Dragon Souls Collected") <= 9)
- aaaHalfDragonUnlock.SetObjectivedisplayed(20)
- aaaHalfDragonUnlock.SetStage(20)
- aaaHalfDragonQuestPointsGathered.SetValue(Game.QueryStat("Dragon Souls Collected"))
- elseif (Game.QueryStat("Dragon Souls Collected") >= 10)
- aaaHalfDragonUnlock.SetObjectivedisplayed(200)
- aaaHalfDragonUnlock.SetStage(200)
- aaaHalfDragonQuestPointsGathered.SetValue(Game.QueryStat("Dragon Souls Collected"))
- endif
- endif
- endEvent
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement