AdamantGame Posted October 28, 2013 Posted October 28, 2013 (edited) Hello, how make to show flag or karma player inside? Edited October 28, 2013 by AdamantGame
0 ^Wyatt Posted October 28, 2013 Posted October 28, 2013 add another variable as counter for example int e = 0; then inside the existing check add another one like if(character.getPvpFlag() >0) increase the counter e++; and add another check if(character.getKarma() > 0) increase the other counter i++, then display the "i" and "e" values as you wish.
0 SweeTs Posted October 28, 2013 Posted October 28, 2013 (edited) What you mean by 'showing' ? Does your players are invisible @ that specific 'zone' or what is this.. lol, explain yourself :troll: The code is by Elfo.. bitch :D Edited October 28, 2013 by SweeTs
0 AdamantGame Posted October 28, 2013 Author Posted October 28, 2013 Yes, code is elfo, now showing only all players, i need to make what show players with FLAG or KARMA, how make it?
0 SweeTs Posted October 28, 2013 Posted October 28, 2013 (edited) So, basically you would need a code that will 'hide' the players onEnter to that zone, something like if(activeChar.getPvpFlag() == 0) { activeChar.getAppearance().setInvisible(); activeChar.broadcastUserInfo(); } else { activeChar.getAppearance().setVisible(); activeChar.broadcastUserInfo(); } Not really sure about dat code, but you could try to 'play' with it :P Edited October 28, 2013 by SweeTs
0 AdamantGame Posted October 28, 2013 Author Posted October 28, 2013 No, you didnt understand. In teleport now shows Players inside is: 10 Im making Players with flag inside is: 1, Players with karma inside is: 3, Normal players without flag/karma inside is: 15. Now you understand me?
0 SweeTs Posted October 28, 2013 Posted October 28, 2013 Da yum, so you should say you are talking about the 'custom gatekeeper' with such options..
0 Tryskell Posted October 28, 2013 Posted October 28, 2013 if (character instanceof L2PcInstance && ((L2PcInstance) character).getKarma > 0) Not sure if the cast is needed, I haven't Eclipse opened. If character.getKarma > 0 doesn't work, try previous.
Question
AdamantGame
Hello, how make to show flag or karma player inside?
Edited by AdamantGame10 answers to this question
Recommended Posts