;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[@Main]
#ACT
ReadValueSQL "TBL_EventSystemTotal" "FLD_NAME='TeamWar'" "FLD_POINT1,FLD_POINT2" @TeamEventSystemTime_MapQuest

[@TeamEventSystemTime_MapQuest()]
#ACT
Mov D0 %ARG(1)
Mov D1 %ARG(2)

#IF
CheckTeam 1
#ACT
Inc D0 5
Dec D1 3
FormatStr "FLD_POINT1=%s,FLD_POINT2=%s" %D0 %D1
UpdateValueSQL "TBL_EventSystemTotal" "FLD_NAME='TeamWar'" %A9

#IF
CheckTeam 2
#ACT
Dec D0 3
Inc D1 5
FormatStr "FLD_POINT1=%s,FLD_POINT2=%s" %D0 %D1
UpdateValueSQL "TBL_EventSystemTotal" "FLD_NAME='TeamWar'" %A9

#IF
#ACT
LoadValue A7 [Convert_Def\QuestDiary\EventSystem\TeamWar\Map_TeamWar.txt] [Convert] [Msg0]
EventMsg "E001" %A7
break
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;