;;;QQ:67762207
[@main]
#IF
#ACT
loadvalue D1 "PlayerParam\PK¼.ini" [״̬] [״̬]
loadvalue A3 "PlayerParam\PK¼.ini" [û] []

#IF
EQUAL A3 %USERNAME
#ELSEACT
break
#ELSESAY
Only the applicant can challenge.

#IF
EQUAL D1 2
#ACT
goto @Main_1
break


#IF
EQUAL D1 1
#ACT
mov ս־ 10
mov ҩ "Off"
goto @Main_0

#ELSESAY
The two sides have accepted the competition.\

[@Main_1]
#IF
#Say
<Cancel Application/@ȡ>\

[@ȡ]
#act
savevalue "PlayerParam\PK¼.ini" [û] [Ӧս] ""
savevalue "PlayerParam\PK¼.ini" [] [־] 0
savevalue "PlayerParam\PK¼.ini" [״̬] [״̬] 1
#SAY
Abolition of success, please re-apply for the challenges\\

[@Main_0]
#IF
#SAY
<Enter Amount to Bet/@@ս> (<$OUTPUT(ս־)> Gamepoints)\
<On/@ALLOWDRUG>  <Off/@NODRUG> (The use of potions = <$OUTPUT(ҩ)>)\
<Enter opponents name/@@ս>


[@ALLOWDRUG]
#ACT
mov ҩ "On"
goto @Main_0

[@NODRUG]
#ACT
mov ҩ "Off"
goto @Main_0

[@@ս]
#IF
checkCMD checkuserjf %INPUTNUM
#ACT
mov ս־ %INPUTNUM
#ELSEACT
break
#ELSESAY
You do not have enough Gamepoints.\

#IF
#ELSEACT
break
#ELSESAY
Must be at least 10 Gamepoints.\

#IF
#ACT
goto @Main_0

[@@ս]
#IF
#ELSEACT
break
#ELSESAY
Can not be launched in less than 10 points the challenges of volume or volumes you do not have enough points\

#IF
checkcmd ISONLINE %INPUTSTR
#ACT
FormatStr "@_ս(%s,%s,%s)" %USERNAME %ս־ %ҩ
actcmd RUNSCRIPTLABEL %INPUTSTR %A9
mov A3 %INPUTSTR
savevalue "PlayerParam\PK¼.ini" [û] [Ӧս] %INPUTSTR
savevalue "PlayerParam\PK¼.ini" [״̬] [״̬] 2
savevalue "PlayerParam\PK¼.ini" [״̬] [ҩ] %ҩ
savevalue "PlayerParam\PK¼.ini" [] [־] %ս־
#SAY
Challenge has been successfully challenge, please wait for response ... ...
#ELSESAY
Player not online.\\

#IF
checkcmd CHECKUSERJF %Ӧս־
#ACT
loadvalue D5 "PlayerParam\PK¼.ini" [ս] []
mov P1 %D5
mov P2 2
mul P1 P2
mov D6 %P9

#IF
!EQUAL D6 0
checkcmd CHECKUSERJF %D6
#ACT
actcmd SETUSERJF - %D6 ս
inc D5 1
savevalue "PlayerParam\PK¼.ini" [ս] [] %D5
sysmsg "<$OUTPUT(D5)> has challenged you to fight for <$OUTPUT(D6)> gamepoints!"
#ELSEACT
savevalue "PlayerParam\PK¼.ini" [ս] [] 1
sysmsg "1ηս,ȡ0"

[@_ս()]
#ACT
mov A0 %ARG(1)
mov Ӧս־ %ARG(2)
mov ҩ %ARG(3)
#SAY
{FCOLOR/10}'<$OUTPUT(A0)>'{FCOLOR/12} has challenged you to fight for <$OUTPUT(Ӧս־)>Gamepoints.\
Potions are: <$OUTPUT(ҩ)> \
Do you want to accept challenge?\\
<Accept/@~~acceptpk> <Refuse/@~~Refusepk>

[@~~Refusepk]
#ACT
close
actcmd RUNSCRIPTLABEL %A0 "@_ܾս"   ;;ܾ

[@_ܾս]
#ACT
savevalue "PlayerParam\PK¼.ini" [û] [Ӧս] ""
savevalue "PlayerParam\PK¼.ini" [] [־] 0
savevalue "PlayerParam\PK¼.ini" [״̬] [״̬] 1
#SAY
'<$OUTPUT(A3)>' rejected your challenge.\
<Exit/@exit>

[@~~acceptpk]
#ACT
loadvalue D1 "PlayerParam\PK¼.ini" [״̬] [״̬]
loadvalue A1 "PlayerParam\PK¼.ini" [û] [Ӧս]
#IF
EQUAL D1 2
EQUAL A1 %USERNAME
#ELSEACT
sysmsg "Other person has canceled the application"
break

#IF
checkcmd CHECKUSERJF %Ӧս־
#ACT
savevalue "PlayerParam\PK¼.ini" [״̬] [״̬] 3
actcmd RUNSCRIPTLABEL %A0 "@_ʼPK"   ;;
ACTCMD setuserjf - %Ӧս־
#ELSEACT
actcmd RUNSCRIPTLABEL %A0 "@_սʧ"   ;;
#ELSESAY
You do not have <$OUTPUT(Ӧս־)> gamepoints.\

[@_սʧ]  ;;ִ
#ACT
savevalue "PlayerParam\PK¼.ini" [û] [Ӧս] ""
loadvalue D0 "PlayerParam\PK¼.ini" [] [־]
savevalue "PlayerParam\PK¼.ini" [] [־] 0
savevalue "PlayerParam\PK¼.ini" [״̬] [״̬] 1
#SAY
You have less points then asked please ask to re-apply.\

[@_ʼPK] ;;ִ
#IF
checkcmd CHECKUSERJF %Ӧս־
#ELSEACT
actcmd RUNSCRIPTLABEL %A3 "@_޻"   ;;
break
#ELSESAY
Sorry, Lack of gamepoints.\

#IF
EQUAL ҩ "Off"
#ACT
actcmd SETPKMODE 1 1
actcmd RUNSCRIPTLABEL %A3 "@_ʼPK_2"   ;;
sysmsg "Fight is now in preperation time, If you leave or die you will lose the bet!"
#ELSEACT
actcmd SETPKMODE 1 0
actcmd RUNSCRIPTLABEL %A3 "@_ʼPK_2"   ;;
sysmsg "Fight is now in preperation time, If you leave or die you will lose the bet!"

[@_޻]  ;;Ӧսִ
#IF
#SAY
The other person will have the gamepoints removed.\

[@_ʼPK_2]   ;;Ӧսִ
#IF
checkcmd CHECKUSERJF %Ӧս־
#ELSEACT
break
#ACT
savevalue "PlayerParam\PK¼.ini" [״̬] [״̬] 3
loadvalue A1 "PlayerParam\PK¼.ini" [û] []
ACTCMD setuserjf - %Ӧս־
mapmove E007,40,40

#IF
EQUAL ҩ "Off"
#ACT
actcmd SETPKMODE 1 1
mov N1 5
delaygoto [grobal] 1 @PKϵͳϢ
sysmsg "Fight is now in preperation time, If you leave or die you will lose the bet!"
linemsg [grobal] "'<$OUTPUT(A1)>' has challenged '<$USERNAME>' for '<$OUTPUT(Ӧս־)>'gamepoints! You can watch this fight at the PVP NPC in Bichon."
#ELSEACT
actcmd SETPKMODE 1 0
mov N1 5
delaygoto [grobal] 1 @PKϵͳϢ
sysmsg "Fight is now in preperation time, If you leave or die you will lose the bet!"
linemsg [grobal] "'<$OUTPUT(A1)>' has challenged '<$USERNAME>' for '<$OUTPUT(Ӧս־)>'gamepoints! You can watch this fight at the PVP NPC in Bichon."

[@PKϵͳϢ]
#IF
#ACT
loadvalue D7 "PlayerParam\PK¼.ini" [״̬] [״̬]
#IF
EQUAL D7 3
#ELSEACT
break

#IF
Large N1 0
#ACT
loadvalue A1 "PlayerParam\PK¼.ini" [û] []
linemsg [grobal] "'<$OUTPUT(A1)>' has challenged '<$USERNAME>' for '<$OUTPUT(Ӧս־)>'gamepoints! Fight will start in <$OUTPUT(N1)> minutesYou can watch this fight at the PVP NPC in Bichon."
dec N1 1
delaygoto [grobal] 60 @PKϵͳϢ
#ELSEACT
savevalue "PlayerParam\PK¼.ini" [״̬] [״̬] 4
SetAreaAttr "E007,40,40,200" "CLEAR"
linemsg [grobal] "'<$OUTPUT(A1)>' and '<$USERNAME>' fight for '<$OUTPUT(Ӧս־)>'gamepoints! You can watch this fight at the PVP NPC in Bichon."
delaygoto [grobal] 600 @ǿƽ 10033

[@ǿƽ]
#ACT
loadvalue D0 "PlayerParam\PK¼.ini" [] [־]
loadvalue A0 "PlayerParam\PK¼.ini" [û] []
loadvalue A1 "PlayerParam\PK¼.ini" [û] [Ӧս]
actcmd RUNSCRIPTLABEL %A0 "@_PKʱ"   ;;
actcmd RUNSCRIPTLABEL %A1 "@_PKʱ"   ;;
actcmd delfile "envir\PlayerParam\PK¼.ini"
mapting E007 1 405 117
SetAreaAttr "E007,40,40,200" "SAFE"

[@_PKʱ]
#ACT
loadvalue D0 "PlayerParam\PK¼.ini" [] [־]
mov P1 %D0
mul P1 9
div P9 10
#IF
Large P9 0
#ACT
mov D0 %P9
actcmd setuserjf + %D0
sysmsg "Overtime game, the return of 90% of the volume of betting points, a total of <$OUTPUT(D0)> months."
;;;QQ:67762207=