procedure OnCharOnline(uSource: integer);
var
curQuest: integer;
curSubQuest: integer;
str: string;
begin
curQuest := getQuestCurrentNo(uSource);
//当前主线任务ID
if (curQuest < 4950) and (curQuest > 0) then
begin
setQuestCurrentNo(uSource, 0);
setQuestNo(uSource, 0);
setQueststep(uSource, 0);
end;
//当前支线任务ID
curSubQuest := getSubQuestCurrentNo(uSource);
if (curSubQuest < 8001) and (curSubQuest > 0) then
begin
setSubQuestCurrentNo(uSource, 0);
setSubQueststep(uSource, 0);
end;