Jump to content
  • 0

Showing Flag Or Karma Inside


Question

10 answers to this question

Recommended Posts

  • 0
Posted

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

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
Posted
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.

Guest
This topic is now closed to further replies.


  • Posts

    • so whitch plan is it? because in here is one price and in ur websit is another...
    • Ты настолько смешон, что создал специально для этого левый аккаунт?)))  ты не стоишь даже капли с моего члена что бы я ради тебя писал что-то на анг)  Человек видимо облажался с запуском, слил бабки в помойку теперь с горящей жопой бегает по форуму и не знает кого обвинить))))) перечитай что я тебе написал, мне насрать на тебя на твой сервер и на то что ты там выложил)  это все дерьмо неактуально уже давно, скажу тебе если твоя тупая голова это не поняла, АКТУАЛЬНОЕ НИКТО НЕ ПРОДАЕТ, потому что любая продажа это = шара, все что продается ЭТО ОТЪЕЗЖЕННОЕ ГОВНО которое не нужно хозяину, старое как твои обвисшие от гнева сиськи    
    • L2 HARMONY - BANNERS & ICONS       L2 COLD - NPC ANIMATED BANNER
    • LA ERA DE EINHASAD - Lineage 2 en Castellano Lineage II Crónica 4: Vástagos del Destino x5 - Main Class - Full Craft ───────────────────────────── La diosa Einhasad ha despertado... Una nueva era comienza para los verdaderos aventureros. Un mundo completamente traducido al español, fiel al Lineage II original, creado para una comunidad hispanohablante unida por la nostalgia y la pasión. ───────────────────────────── APERTURA OFICIAL: 14 de NOVIEMBRE - 20:00hs (GMT-3) ───────────────────────────── INFORMACIÓN PRINCIPAL Rates: x5 Tipo: Main Class Sistema: Full Craft Idioma: 100% Español (traducción completa del juego) Comunidad hispanohablante Balance original con mínimas modificaciones Buffer Offline, los jugadores pueden crear sus tiendas de buffs Progresión de crónicas cada 4 meses aprox. Economía estable - Sin Pay to Win - No venta de items/adena por donación Comunidad de 1.000 personas Anterior versión x1 duro casi 3 años con 952 IPs distintas de pico ───────────────────────────── CARACTERÍSTICAS DESTACADAS Experiencia fiel al Lineage II clásico, sin alteraciones invasivas Interfaz, diálogos y objetos completamente en español Ventana de comunidad con servicios personalizados y comercio por Monedas de Oro Olimpiadas, Épicos y Asedios originales Recompensas por votación, Eventos TVT con 3 arenas diferentes. Participan todos sin importar el nivel, pero dentro de la arena solo se atacan por rango cercano Soporte activo y presencia constante del administrador Tickets de soporte con atención rápida en Discord ante cualquier problema ───────────────────────────── ENLACES OFICIALES Website: La Era de Einhasad Discord: https://discord.com/invite/A6PtCCN2SF ───────────────────────────── Una comunidad unida por el idioma, la pasión y la nostalgia. Redescubrí Aden… en tu propio idioma. Bienvenido a La Era de Einhasad.  
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock