Jump to content

Recommended Posts

Posted

U can do it server side.

 

for(L2PcInstance p : player.getParty().getPartyMembers())

       p.setNameColor("#FF00FF");

 

Something like that i guess

Posted (edited)

Thanks, that's nice to know. (It would be "#00FF00" for green though I think)

 

But It probably can be done client side, cant it ?

Edited by Ellone
Posted

Thanks, that's nice to know. (It would be "#00FF00" for green though I think)

 

But It probably can be done client side, cant it ?

No. You can't add the name color by editing client side.

This is java side.

 

Also, you'll need to check the player on leave party. (Return the namecolor back to normal).

Posted

It would be a lot harder to edit game client, this would require messing in Engine.dll

 

It is easier to make it in server core. What Solomun suggested will not work well, it will make party color to be seen by all players, not only by party members. If you are not into java, it will be hard to be done.

 

You need to:

- Check how CharInfo gets color of the nickname, it should have different method than UserInfo and any other call.

- CharInfo should provide PcInstance that is about to receive the color.

- Returned value should be different than original, if players are party members.

Posted

It would be a lot harder to edit game client, this would require messing in Engine.dll

 

It is easier to make it in server core. What Solomun suggested will not work well, it will make party color to be seen by all players, not only by party members. If you are not into java, it will be hard to be done.

 

You need to:

- Check how CharInfo gets color of the nickname, it should have different method than UserInfo and any other call.

- CharInfo should provide PcInstance that is about to receive the color.

- Returned value should be different than original, if players are party members.

 

This is the second way i would suggest but i thought it would be the same. I can see the difference now :)

 

But this would need to refresh userInfo when a new party is created, right?

Posted

No. When any user joins party, his UserInfo is sent to nearby players anyway. That broadcast is required to refresh relations.

Posted

No. When any user joins party, his UserInfo is sent to nearby players anyway. That broadcast is required to refresh relations.

Ok i got it...Its just that im rusted since i didnt touch l2 coding for 4 years :)

Posted (edited)

1 question

Setnamecolor(int)

but rgb colors have letters, when i set the int to String i get error

 

Edit:

What ive done:

private int afsd;
    private final int _PartyColorName = 0000;
if (_activeChar.isInParty() == true)
        {
            afsd = _activeChar.getAppearance().getNameColor();
            _activeChar.getAppearance().setNameColor(_PartyColorName);
        }
        else if (_activeChar.isInParty() == false)
        {
            _activeChar.getAppearance().setNameColor(afsd);
        }
Edited by ganjaradio
Posted (edited)

 

1 question

Setnamecolor(int)

but rgb colors have letters, when i set the int to String i get error

 

Edit:

What ive done:

private int afsd;
    private final int _PartyColorName = 0000;
if (_activeChar.isInParty() == true)
        {
            afsd = _activeChar.getAppearance().getNameColor();
            _activeChar.getAppearance().setNameColor(_PartyColorName);
        }
        else if (_activeChar.isInParty() == false)
        {
            _activeChar.getAppearance().setNameColor(afsd);
        }
	private int _Color = 0xFFFF77;
	private int _PartyColorName = your color;
	
	activeChar.getAppearance().setNameColor(activeChar.isInParty() ? _PartyColorName : _Color);
Edited by melron

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • Use l2tower for free, or try adrenaline. @Alex K.
    • 🎁 Double the Impact, Half the Cost! from 25/10/2025 until 25/12/2025 Buy or Renew your Donation Panel now and save 50% because supporting others should reward you too. 💡 Use code BLACKFRIDAY at checkout! https://hopzone.eu/store/product/26-donate-panel-v5/   About Donate Panel v5 PAYMENT IN EASY 5 STEPS Login with your character name. Select the donation service (Paypal Stripe Payeer MercadoPago 🆕). Select the amount of payment. Pay. 😎 Automatically recieve the reward ingame (and yes) while he is online! 🤯 PAYMENT METHODS Paypal Stripe accepts credit cards, debit cards, ACH transfers, Apple Pay, Google Pay, Microsoft Pay, and various local payment methods from around the world. Payeer accepts BTC, LTC, ETH, DASH, BCH, USD, EUR, RUB wallets MercadoPago accepts ARS, BRL, CLP, MXN, COP, PEN, UYU. PROTECTION Full SSL website (can be forced by htaccess) XSS Protection just in case. Remove vulnerability headers in htaccess level Session Validation COOKIE, POST, GET global inputs are sanitized SQL Injection protection Query String protetion Prepared statements of PDO driver (no sql injection there) Google Invisible Captcha v3 (NEW) Last but not least security through obscurity SEO & PUBLIC MANAGEMENT SEO Friendly urls (in htaccess level) Google Analytics and GTAG Code ready. Terms of use ready to go Refund policy ready to go Contact All the TERMS text are showing config dynamic item images/text with server's name and more OPTIMIZATION AND SPEED Zip Content (faster load) Memory save (unloading global vars) Using CDN’s for bootstrap Scripts are loaded in footer Images are soft to max 10kb Small and smart organized code style FUNCTIONALITIES Multilanguage (4 languages so far) EN ES NL EL (Easy to add more) Payment methods Paypal, Stripe, Payeer and MercadoPago After payment or cancel the user is redirected back to “Thank you” page. TECHNOLOGIES Bootstrap 5x CSS PHP 5.6+ (for l2off) and PHP 7.4+ (for java) Extensions for php: MySQL (L2Java), pdo_dblib(L2OFF), pdo_sqlsrv(L2OFF), mssql_connect (L2OFF) and PDO Drivers that support MariaDB, MySQL, MsSQL. SYSTEMS Stripe and MercadoPago supports sandbox and live. Detailed and seperated Logs (ERROR, DEVELOPER, INFO, WARNING, PAYMENT) for website and Rest APIs. Detailed Log in database for Payments and services used. Google Analytics (You know when players are in the panel and if they pay) Google Captcha V3 Dynamic Icons to show according your Donate Item ID Multiple servers L2OFF or L2JAVA servers can be added together as server network     BE AWARE: Leaked versions of old v2 panels (year 2018 with bugs) are still out sold by scammers without support or knowledge of the files.
    • I work with Kenrix and he is a  next level coder. Hugely Recommended.
    • Follow our Telegram channel, because exciting events are coming very soon! Halloween, 11.11, and also a giveaway related to 3000 subscribers in our Telegram channel are ahead! What do you think we have prepared? Subscribe to our Telegram channel and stay updated on all the news: https://t.me/accsforyou_shop Active links to SOCNET stores: Digital goods store (Website): Go Telegram store bot: Go – convenient access to the store via Telegram messenger. Telegram Stars purchasing bot: Go – fast and profitable purchase of stars in Telegram. SMM Panel: Go – promotion of your social media accounts. We would like to introduce you to the current list of promotions and special offers for purchasing products and services of our platform: 1. Promo code OCTOBER2025 (8% discount) for purchases in our store (Website, Bot) in October! You can also use a promo code for the first purchase: SOCNET (15% discount) 2. Get $1 to your store balance or a 10–20% discount — just send your username after registering on our website using the following template: "SEND ME BONUS, MY USERNAME IS..." — you need to write it in our forum thread! 3. Get $1 for the first trial launch of the SMM Panel — just open a ticket with the topic “Get Trial Bonus” on our website (Support). 4. Weekly Telegram Stars giveaways in our Telegram channel and in our Stars purchasing bot! News: ➡ Telegram channel: https://t.me/accsforyou_shop ➡ WhatsApp channel: https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t ➡ Discord server: https://discord.gg/y9AStFFsrh Contacts & Support: ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ Email: solomonbog@socnet.store
    • Follow our Telegram channel, because exciting events are coming very soon! Halloween, 11.11, and also a giveaway related to 3000 subscribers in our Telegram channel are ahead! What do you think we have prepared? Subscribe to our Telegram channel and stay updated on all the news: https://t.me/accsforyou_shop Active links to SOCNET stores: Digital goods store (Website): Go Telegram store bot: Go – convenient access to the store via Telegram messenger. Telegram Stars purchasing bot: Go – fast and profitable purchase of stars in Telegram. SMM Panel: Go – promotion of your social media accounts. We would like to introduce you to the current list of promotions and special offers for purchasing products and services of our platform: 1. Promo code OCTOBER2025 (8% discount) for purchases in our store (Website, Bot) in October! You can also use a promo code for the first purchase: SOCNET (15% discount) 2. Get $1 to your store balance or a 10–20% discount — just send your username after registering on our website using the following template: "SEND ME BONUS, MY USERNAME IS..." — you need to write it in our forum thread! 3. Get $1 for the first trial launch of the SMM Panel — just open a ticket with the topic “Get Trial Bonus” on our website (Support). 4. Weekly Telegram Stars giveaways in our Telegram channel and in our Stars purchasing bot! News: ➡ Telegram channel: https://t.me/accsforyou_shop ➡ WhatsApp channel: https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t ➡ Discord server: https://discord.gg/y9AStFFsrh Contacts & Support: ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ Email: solomonbog@socnet.store
  • 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