Advertisement
Guest User

Untitled

a guest
May 28th, 2016
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. /* Display winner in event map when ppl killed edit more */
  2. if (getMap().announceWinner) {
  3. MapleCharacter names = null;
  4. List<MapleCharacter> list = getMap().getCharacters(true);
  5. int count = list.size();
  6. boolean checkParty = getMap().checkParty;
  7.  
  8. if (count == 1) {
  9. names = list.get(0);
  10. } else if (count >= 2 && count <= 6 && checkParty) {
  11. names = lastPartyAlive(list);
  12. }
  13.  
  14. if (names != null) {
  15. if (count == 1)
  16. if (!checkParty)
  17. yellowMessageMap("[Event] Winner(s): " + names.getName());
  18. else
  19. yellowMessageMap("[Event] Winner(s): " + getPartyMembers(names));
  20. else if (count >= 2 && count <= 6 && checkParty) {
  21. yellowMessageMap("[Event] Winner(s): " + getPartyMembers(names));
  22. } else {
  23. yellowMessageMap("[Event] Winner(s): " + names.getName());
  24. }
  25.  
  26. }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement