[HELP]Java function declaration

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
Post Reply
Nerimah
Posts: 76
Joined: Mon May 02, 2011 10:19 am
Location: Paris, France
Contact:

[HELP]Java function declaration

Post by Nerimah »

If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision 4682:
L2JDP Revision 8070:

Good morning everyone, it's me again :)

I would like a little information concerning the color glow (red and blue) appearing around players during a duel or TvT event:

Where into the java core is this function declared? I guess it would be into

com.l2jserver.gameserver.model.entity.TvTManager or
com.l2jserver.gameserver.model.entity.TvTEventTeleporter or
com.l2jserver.gameserver.model.entity.TvTEventTeam or
com.l2jserver.gameserver.model.entity.TvTEvent or
com.l2jserver.gameserver.model.entity.Duel

I've read this files line by line but didnt find the function adding the glow to a player, so I'm asking you guys!

I need this function for a CTF Event I downloaded in the l2j forums, I managed to make it work automatically at defined hours for Freya server (like TvT Event). I will share it once it's 100% working, I only need to add this damned glow function !

There is a preview of the parameters I added into l2jmods.properties:

Code: Select all

# ---------------------------------------------------------------------------# Setting for Capture The Flag# ---------------------------------------------------------------------------#This parameter is to turn on/off the auto CTF at server start .#If True, it writes into gameserver console: CTFEventEngine: Started.#If Flase, it writes into gameserver console: CTFEventEngine: Engine is disabled. CTFEventEnabled = True   #This is where you will chose the time where the CTF Event will take place automatically# Times CTF will occur (24h format)CTFEventInterval = 7:00,11:00,15:00,19:00,23:00,3:00
Please help me to finish this code! :D

Best regards, Nerimah.
French touch.
User avatar
BiggBoss
L2j Veteran
L2j Veteran
Posts: 1104
Joined: Wed Apr 15, 2009 3:11 pm
Location: Spain

Re: [HELP]Java function declaration

Post by BiggBoss »

glow is added with method player.setTeam(byte value)

wich could be:
value = 1 -> blue glow
value = 2 -> red glow

to remove the glow, use any different value.
if glow does not appear is caused you didnt broadcasted the user info
Image
Nerimah
Posts: 76
Joined: Mon May 02, 2011 10:19 am
Location: Paris, France
Contact:

Re: [HELP]Java function declaration

Post by Nerimah »

Thank you for your help it has been really helpful, the event is working 100% now! :)

Check this out: viewtopic.php?f=69&t=22515&p=129958#p129958
French touch.
Post Reply