Jump to content

Recommended Posts

Posted

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!

Agree

Posted

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

Posted

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

Posted

 

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?

Posted

player.getAppearance.setNameColor(0x000000)

 

player cannot be resolved :/

 

put after updatePvPFlag(1);

 

L2PcInstance player = (L2PcInstance)this;

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

 

 

Posted

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

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