Title for new chars

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Attila
Posts: 441
Joined: Mon May 05, 2014 10:15 am

Re: Title for new chars

Post by Attila »

no help here anymore on forum :-((
User avatar
UnAfraid
L2j Veteran
L2j Veteran
Posts: 4199
Joined: Mon Jul 23, 2007 4:25 pm
Location: Bulgaria
Contact:

Re: Title for new chars

Post by UnAfraid »

Attila wrote:
HappyLDE wrote:Find the line setTitle that already exists in that function and replace it. :|
I have done what you say here
and it work but if i now changed my tittile en i relog and come back online
i got the tittle back for new chart .
how can i make it if you change the title by your self and keep it after relog
can somewone help me please
FallenAngel's patch does exactly that.
Gist by: LucusAngel
Image
Attila
Posts: 441
Joined: Mon May 05, 2014 10:15 am

Re: Title for new chars

Post by Attila »

If i put only this 2 lines to
java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java

// Set custom title
player.setTitle("Test");

and save and make new builld.
and login to server new charts dond get the title Test

if i remove the 2 line i put to L2PcInstance.java

and go to the line setTitle that already exists at L2PcInstance.java and replace it
with:
// Set custom title
player.setTitle("Test");

and make new build
en login to server and make a new chart he get the title with Test (nice)
but if change the title Test in game with a different title
and make a relog to server i got the title Test back ?
Instead he keeps his new title.

can it be made so that you only get the title Test till lvl 40 and then no longer

Sorry for my bad English
hope you understands what I mean
User avatar
UnAfraid
L2j Veteran
L2j Veteran
Posts: 4199
Joined: Mon Jul 23, 2007 4:25 pm
Location: Bulgaria
Contact:

Re: Title for new chars

Post by UnAfraid »

That method is called only when character is created.
So any changes will be used instead of this title because this method won't be used for any other actions but char creation.
Image
Attila
Posts: 441
Joined: Mon May 05, 2014 10:15 am

Re: Title for new chars

Post by Attila »

UnAfraid wrote:That method is called only when character is created.
So any changes will be used instead of this title because this method won't be used for any other actions but char creation.
And how do i make it That method for only when character is created to giff title
can you help me.
User avatar
UnAfraid
L2j Veteran
L2j Veteran
Posts: 4199
Joined: Mon Jul 23, 2007 4:25 pm
Location: Bulgaria
Contact:

Re: Title for new chars

Post by UnAfraid »

The patch above is doing exactly that
Topic locked i won't repeat myself 100 times because u don't read what i say.
Image
Locked