[CD3.55] PvP arena

Desolation Mir2 (Med Rate Server)

astral

Dedicated Member
Dedicated Member
Dec 14, 2012
109
3
45
Poland
Hello.
gentlemen, I am already sitting the second evening over the idea of ​​how to do pvp arena.


Namely, I mean something like:


player1 vs player2


player1 won, player2 resurrected in safe, player1 add points to db sql TBL_pvp


options to add points to the database I have already made. I do not know how to do the rest ...


will someone help? is on the right path

Sorry, I use google translator

---------- Post Merged on 14-03-2018 at 04:03 PM ---------- Previous Post was on 13-03-2018 at 11:36 PM ----------

anyone help?
 

zedina

Mir3 Dev
Legendary
Dec 22, 2005
3,272
2
1,161
370
Hello.
gentlemen, I am already sitting the second evening over the idea of ​​how to do pvp arena.


Namely, I mean something like:


player1 vs player2


player1 won, player2 resurrected in safe, player1 add points to db sql TBL_pvp


options to add points to the database I have already made. I do not know how to do the rest ...


will someone help? is on the right path

Sorry, I use google translator

---------- Post Merged on 14-03-2018 at 04:03 PM ---------- Previous Post was on 13-03-2018 at 11:36 PM ----------

anyone help?


https://www.youtube.com/watch?v=JcM140J2FLE

Something like this ?
 
Upvote 0

zedina

Mir3 Dev
Legendary
Dec 22, 2005
3,272
2
1,161
370
something similar because I mean pvp player 1 vs player2 and not a group fight


you can set map quest if player die to not appear option to revive in the same spot and put a map quest to check players on map, if theres 2 on map to go back on @main and when there is 1 to activate wining script
 
Upvote 0

astral

Dedicated Member
Dedicated Member
Dec 14, 2012
109
3
45
Poland
;; MapQuest
castle [0] 0 [UserDie] * * [PVP\PVP] [@PVP]

[@PVP]
#IF
HLSCRIPTCMD CHECKUNDEAD
#ACT
goto @upaj
#IF
!checkhum castle 2
#ACT
goto @nagroda
[@upaj]
#act
HLSCRIPTCMD UNDEAD


[@nagroda]
#ACT
FormatStr "FLD_ChARACTER='%s'" %USERNAME
ReadValueSql "TBL_PVP" %A9 "FLD_POINT,FLD_CHARACTER"
goto @Point_Add111()




[@Point_Add111()]
#IF
#ACT
mov D1 %ARG(1)
mov A0 %ARG(2)
#IF
Equal A0 ""
#IF
!checkhum castle 2
#ACT


FormatStr "FLD_CHARACTER='%s'" %USERNAME
mov A8 %A9
INC D1 1
mov D8 %D1
FormatStr "FLD_POINT='%s'" %D8
UPDATEVALUESQL "TBL_PVP" %A8 %A9
#SAY
Zdobyles 1 pkt!
#ELSESAY
Nie jestes sam na arenie!


The script does not admit points when it stays alone on the map ...; /
 
Upvote 0