18 if character.QuestGetState(questname) == 0:
19 Crossfire.Log(Crossfire.LogDebug,
"CFDialog: starting quest: %s at stage %s for character %s" %(questname, stage, character.Name))
20 character.QuestStart(questname,
int(stage))
21 elif int(stage) > character.QuestGetState(questname):
22 Crossfire.Log(Crossfire.LogDebug,
"CFDialog: advancing quest: %s to stage %s for character %s" %(questname, stage, character.Name ))
23 character.QuestSetState(questname,
int(stage))
25 Crossfire.Log(Crossfire.LogError,
"CFDialog: Tried to advance a quest backwards.")