Jump to content

[Share]Change PvP Flag Color


Recommended Posts

Where you can change PvP Flag Color's so you'r enemy can have other color when pvping

 

Now go to L2Character.java

Search startPvPFlag

And get to be like this

 

public void startPvPFlag()

{

updatePvPFlag(1);

                L2PcInstance player = (L2PcInstance)this;

                player.getApparance.setNameColor(0xCode);

 

_PvPRegTask = ThreadPoolManager.getInstance().scheduleGeneralAtFixedRate(new PvPFlag(), 1000, 1000);

}

 

Now go to L2Character.java again

Search stopPvPFlag

And get to be like this

 

public void stopPvPFlag()

{

stopPvpRegTask();

 

updatePvPFlag(0);

                L2PcInstance player = (L2PcInstance)this;

                player.getApparance.setNameColor(0xFFFFFF);

_PvPRegTask = null;

}

 

Where to write blacks have to put up there html color from here maybe

http://www.computerhope.com/htmcolor.htm

 

Ideea its by me

And code it's by xAddytzu

 

Link to comment
Share on other sites

Great idea!

I'll use black color!

Thanks for posting this "guide"!

Cheers!

Thx a lot , so where it's write " code " with black you need put 000000

like this

 

                player.getApparance.setNameColor(0x000000);

Link to comment
Share on other sites

Thx a lot , so where it's write " code " with black you need put 000000

like this

 

                player.getApparance.setNameColor(0x000000);

i know mate!

i am not that low level of deving to dont know it!

XD

Link to comment
Share on other sites

I alwayas disliked the pink color, i'll use Green.

fap fap fap

 

Anyway cool code try making it in a config.. so the integer get parsed & decoded right =) and it to be more accessible :P

Link to comment
Share on other sites

Gracia epilogue shows an error but i will fix it and put for config thx good job

you can do it on ur own! and if u got a error that means its cus of you doing smth wrong, a simple code like this cant have errors!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.




×
×
  • 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