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

    • Rosyk or rusik or whatever u blaim me tha my mouth stinks but I assume you the one who stinks and your perfect pack will be now shared and you can suck a dick )  https://eu2.contabostorage.com/d4b39866f6bb4084b6c969ec8fe20063:kita/Lucera_Classic_Remaster/Lucera Classic Remaster Server and Datapack files.rar  https://eu2.contabostorage.com/d4b39866f6bb4084b6c969ec8fe20063:kita/Lucera_Classic_Remaster/Lucera Classic Remaster Eng Client.rar Drama link   
    • @Huggo Thank you for asking! When you join our Discord, on the Nexus Marketing section there is a #work-showcase channel. There you can see a little bit of what we are able to produce as a final ready-to-post product.  There is also this link in my new personal montage YouTube channel, in which I will be uploading every recent work: https://youtube.com/playlist?list=PLkzBKexKw8Wj8dC2diYndd5yOWOXUQCJW&si=-HGxlovqzvD4qqy2 Two more videos are coming up this week, and a #reviews channel has opened for our clients to let other people know about their experience working with us. Feel free to join our Hub in Discord, and for any inquries you might have don't hesitate to contact me or post your suggestion at #suggestions channel.  
    • Следи за своим вонючим языком, мудак.   Your mouth stinks, go wash your mouth, it's a dump) I don't know who you are or what you are, and I don't recommend buying anything from people outside of my network, as they may sell garbage under the guise of my work. There have been cases where my sales have been compromised. Additionally, reselling below the purchase price has been prohibited. I wish you all the best and peace. I kindly request that the moderators close this topic, as it is no longer relevant and the contact information is outdated.    
  • 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