Jump to content
  • 0

Reward Tvt Item For Lose Team


Question

3 answers to this question

Recommended Posts

  • 0
Posted

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
  • 0
Posted

 

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?

  • 0
Posted (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 by SweeTs

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.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...