Page 1 of 1

[HELP]Java function declaration

Posted: Wed Jun 22, 2011 9:28 am
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.

Re: [HELP]Java function declaration

Posted: Wed Jun 22, 2011 10:57 am
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

Re: [HELP]Java function declaration

Posted: Wed Jun 22, 2011 7:59 pm
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