Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Display winner in event map when ppl killed edit more */
- if (getMap().announceWinner) {
- MapleCharacter names = null;
- List<MapleCharacter> list = getMap().getCharacters(true);
- int count = list.size();
- boolean checkParty = getMap().checkParty;
- if (count == 1) {
- names = list.get(0);
- } else if (count >= 2 && count <= 6 && checkParty) {
- names = lastPartyAlive(list);
- }
- if (names != null) {
- if (count == 1)
- if (!checkParty)
- yellowMessageMap("[Event] Winner(s): " + names.getName());
- else
- yellowMessageMap("[Event] Winner(s): " + getPartyMembers(names));
- else if (count >= 2 && count <= 6 && checkParty) {
- yellowMessageMap("[Event] Winner(s): " + getPartyMembers(names));
- } else {
- yellowMessageMap("[Event] Winner(s): " + names.getName());
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement