Jump to content

[Share]Change PvP Flag Color


Recommended Posts

my error was there :

 

public void startPvPFlag()
{
	updatePvPFlag(1);
	L2PcInstance player = (L2PcInstance)this;
	[color=red]player.getAppearance[/color].setNameColor(Config.PVP_START_FLAG);


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

 

now i use

 

public void startPvPFlag()
{
	updatePvPFlag(1);
	L2PcInstance player = (L2PcInstance)this;
	[color=green]player.getAppearance().[/color]setNameColor(Config.PVP_START_FLAG);


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

 

without error but in game no flag color change so donno wount work for ge

Link to comment
Share on other sites

replace player.getAppearance.setNameColor(Config.PVP_START_FLAG);

with player.getAppearance.setNameColor(0x000000); for black color

@Ro, fa-i ma un config ca turbeaza asta xD

Link to comment
Share on other sites

 

public void startPvPFlag()

{

updatePvPFlag(1);

 

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

}

 

This is how it looks at my core, how can I change color?

Link to comment
Share on other sites

player.getAppearance.setNameColor(0x000000)

 

player cannot be resolved :/

 

put after updatePvPFlag(1);

 

L2PcInstance player = (L2PcInstance)this;

player.getAppearance.setNameColor(0x000000); //for black color

 

 

Link to comment
Share on other sites

When I do that I get other error:

player.getAppearance.setNameColor(0xff6600);

player.getAppearance cannot be resolved or is not a field

 

Then I do like this

player.getAppearance().setNameColor(0xff6600);

I get no error, but its not working ;/

 

I use L2JServer Epilogue

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