;;;QQ:67762207
[@TeamWarEventSystem]
{
#IF
Isadmin
#SAY
{FCOLOR/10}Admin Menu{FCOLOR/12} \\
<Initialize War/@TeamWarEventSystemTime> \\
<Start War/@StartTeamWarEventSystem> \\
{FCOLOR/10}Player Menu{FCOLOR/12} \\

#IF
#SAY
Team war has certain time period, team with highest score wins.\
Team Member Death = Lose 3 Points.\\
Kill Enemy Member = Gain 5 Points.\\
<Join Team War/@JoinTeamWarEventSystem> \\

[@TeamWarEventSystemTime]
#ACT
SAVEVALUE  "ParamControl\活动设置.ini" [组队战] 游戏开启 0
SAVEVALUE  "ParamControl\活动设置.ini" [组队战] 传说队 10000
SAVEVALUE  "ParamControl\活动设置.ini" [组队战] 传奇队 10000
#SAY
Team Battle game initialization is completed, you can open the team battle.


[@JoinTeamWarEventSystem]
#if
#act
MOV D1 0
loadvalue D1 "ParamControl\活动设置.ini" [组队战] 游戏开启

#IF
Equal D1 1
#ELSEACT
break
#ELSESAY
This is not the team battle admission time, so unable to attend.\\
<关  闭/@exit>

#IF
CheckTeamCount [1] "E004" 0
#ACT
Mov D4 %P9

#IF
CheckTeamCount [2] "E004" 0
#ACT
Mov D5 %P9

#IF
Equal D4 20
Equal D5 20
#SAY
The number of full.\\
<关  闭/@exit>
#ACT
break

#if
#act
MOV D1 0
loadvalue D1 "ParamControl\活动设置.ini" [组队战] 游戏开启

#IF
Equal D1 1
#SAY
Team war has certain time period, team with highest score wins.\
Team Member Death = Lose 3 Points.\\
Kill Enemy Member = Gain 5 Points.\\
<Join Team War/@JoinTestTeamWar> \\
#ELSESAY
Team can not participate in war games.\\
<关  闭/@exit>

[@JoinTestTeamWar]
#if
#act
MOV D1 0
loadvalue D1 "ParamControl\活动设置.ini" [组队战] 游戏开启

#IF
Equal D1 1
CheckGold 50000
#ELSEACT
break
#ELSESAY
If you have enough money so can not participate in the game.\\
<关  闭/@exit>

#IF
ESmall D4 %D5
#ACT
Take Gold %D0
TeamMakeTeam 1
Killslave
Map E004
;LineMsg "Grobal" "Blue Team Amount: '<$output(d5)>' Blue Team Number'<$output(d4)>'1 team to enter. "
break

#IF
#ACT
Take Gold %D0
TeamMakeTeam 2
Killslave
Map E004
;LineMsg "Grobal" "Red Team Amount: '<$output(d5)>' Red Team Number'<$output(d4)>'1 team to enter. "
break

[@StartTeamWarEventSystem]
#if
#act
MOV D1 0
loadvalue D1 "ParamControl\活动设置.ini" [组队战] 游戏开启

#IF
Equal D1 0
#ACT
MapTing E004 1 403 122
ChangeMapAttr "E004" "TEAMFIGHT"
LineMsg "Grobal" "(Activity Notices): 5 minutes after the PK Challenge team started in the Road Museum admission 402:119"
Delaygoto "Grobal" 300 @StartTeamWarEventSystem_Next2
break

[@StartTeamWarEventSystem_Next2]
#ACT
LineMsg "Grobal" "(Activity Notices): Team PK Challenge began. Have 10 minutes to participate in the time entry in the Road Museum 402:119"
SAVEVALUE  "ParamControl\活动设置.ini" [组队战] 游戏开启 1
Delaygoto "Grobal" 600 @StartTeamWarEventSystem_Next3
;;10分钟


[@StartTeamWarEventSystem_Next3]
#ACT
LineMsg "Grobal" "(Activity Notices): Team PK Challenge game into channel has been closed."
SAVEVALUE  "ParamControl\活动设置.ini" [组队战] 游戏开启 2
Delaygoto "Grobal" 1200 @StartTeamWarEventSystem_Next4
;;20分钟


[@StartTeamWarEventSystem_Next4]
#if
#act
MOV D0 0
MOV D1 0
loadvalue D0 "ParamControl\活动设置.ini" [组队战] 传说队
loadvalue D1 "ParamControl\活动设置.ini" [组队战] 传奇队
SAVEVALUE  "ParamControl\活动设置.ini" [组队战] 游戏开启 0

#IF
Equal D0 %D1
#ACT
LineMsg "Grobal" "(Activity Notices): The legendary teams and legendary teams score the same."
Delaygoto "Grobal" 30 @StartTeamWarEventSystem_Next7
break


#IF
Large D0 %D1
#ACT
LineMsg "Grobal" "(Activity Notices): Legends team <$OUTPUT(D0)> points victory. Please leave the winning team to claim the reward"
TeamTing E004 1 "1 403 122"

#IF
Large D1 %D0
#ACT
LineMsg "Grobal" "(Activity Notices): Legends team <$OUTPUT(D1)> points victory. Please leave the winning team to claim the reward"
TeamTing E004 2 "1 403 122"

#IF
#ACT
GiveExpMap E004 10000000
DropItemMap "E004,40,40,20" Integral 1 20
Delaygoto "Grobal" 300 @StartTeamWarEventSystem_Next7
;;5分钟


[@StartTeamWarEventSystem_Next7]
#ACT
MapTing E004 1 403 122
Delaygoto "Grobal" 36 @StartTeamWarEventSystem_Next8

[@StartTeamWarEventSystem_Next8]
#ACT
SAVEVALUE  "ParamControl\活动设置.ini" [组队战] 游戏开启 0
SAVEVALUE  "ParamControl\活动设置.ini" [组队战] 传说队 10000
SAVEVALUE  "ParamControl\活动设置.ini" [组队战] 传奇队 10000
}
;;;QQ:67762207