All pastes #963960 Raw Edit

Untitled

public text v1 · immutable
#963960 ·published 2008-03-30 22:49 UTC
rendered paste body
variable iterator CurrentQuestLog
variable iterator CurrentQuestLogSetting

QuestLogs:GetSetIterator[CurrentQuestLog]
if ${CurrentQuestLog:First(exists)}
{
  do
  {
     CurrentQuestLog.Value:GetSettingIterator[CurrentQuestLogSetting]
     if ${CurrentQuestLogSetting:First(exists)}
     {
       do
       {
          if ${CurrentQuestLogSetting.Key == Completed && CurrentQuestLogSetting.Value == TRUE}
	  {
              return CurrentQuestLog.Value
          }
       }
       while ${CurrentQuestLogSetting:Next(exists)}
     }
  }
  while ${CurrentQuestLog:Next(exists)}
}