Jump to content
  • 0

Function


vladislav4k

Question

Write please function for:

1)Change player name color

2)Change player title color

3)Do player a noblesse

4)Set quest done(set quests for sub-class and noblesse is done)

 

Thanks

Link to comment
Share on other sites

11 answers to this question

Recommended Posts

  • 0

everything is placed in admincommands,if you wanna make your just take a look there dude.

 

start searching your eclipse,you'll find out many intresting things

Link to comment
Share on other sites

  • 0

everything is placed in admincommands,if you wanna make your just take a look there dude.

 

start searching your eclipse,you'll find out many intresting things

I dont use Eclipse, all i can find, but how do the quest if done?

Link to comment
Share on other sites

  • 0

Write please function for:

1)Change player name color

2)Change player title color

3)Do player a noblesse

4)Set quest done(set quests for sub-class and noblesse is done)

 

Thanks

 

this is help section, no we do your code section :/

Link to comment
Share on other sites

  • 0

Use Eclipse or notepad++ search function, and search for keywords. You will easily find if you use proper keywords.

 

Eclipse or whatever IDE (IntelliJ, NetBeans, misc) is a must-have, even for java quests. If you don't use one, then use one.

Link to comment
Share on other sites

  • 0

this is help section, no we do your code section :/

I understand, i find this in my source. But when i change name color (in adm panel), when I relogin, color is default. Code in script:

	if (command.startsWith("nameColor"))
	{
		final String val = command.substring(6);
		player.getAppearance().setNameColor(Integer.decode("0x" + val));
		player.broadcastUserInfo();
	}
	else if (command.startsWith("titleColor"))
	{
		final String val = command.substring(6);
		player.getAppearance().setTitleColor(Integer.decode("0x" + val));
		player.broadcastUserInfo();
	}

Link to comment
Share on other sites

  • 0

Sounds obvious you have to rework access rights, either :

  • making it happens only at character creation
  • creating bypass for particular ranks (users, at least)
  • simply drop color name/title stuff from it

Link to comment
Share on other sites

  • 0

Sounds obvious you have to rework access rights, either :

  • making it happens only at character creation
  • creating bypass for particular ranks (users, at least)
  • simply drop color name/title stuff from it

 

I don't understand what you written=) My script working, but after reload, color is custom. In mysql table haven't information about colors(how i see)   

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.

Guest
Answer this question...

×   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