tdphu Posted September 22, 2015 Posted September 22, 2015 pls share me code about rewards for lose team in pvp Quote
0 nikosdevil20 Posted September 22, 2015 Posted September 22, 2015 pls share me code about rewards for lose team in pvp com.l2jserver.gameserver.model.entity.TvTEvent.java // Get team which has more points TvTEventTeam team = _teams[_teams[0].getPoints() > _teams[1].getPoints() ? 0 : 1]; maybe thats help you Quote
0 tdphu Posted September 22, 2015 Author Posted September 22, 2015 com.l2jserver.gameserver.model.entity.TvTEvent.java // Get team which has more points TvTEventTeam team = _teams[_teams[0].getPoints() > _teams[1].getPoints() ? 0 : 1]; maybe thats help you this code mean reward team lose = 1/2 team win bro? Quote
0 SweeTs Posted September 22, 2015 Posted September 22, 2015 (edited) It's point comparison.. If team 0 points > than team 1 = team 0 won, else 1. You get the winner 'team' -> rewardTeam(team); Most likely you should create one more such check, for the team which lose. Kinda crappy, but I can't think about another way atm :P If you are using l2jserver, then you could try on their forum directly. Edited September 22, 2015 by SweeTs Quote
Question
tdphu
pls share me code about rewards for lose team in pvp
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.