Wich program i need to use to...

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
NoX
Posts: 189
Joined: Mon Oct 05, 2009 4:31 am

Wich program i need to use to...

Post by NoX »

Wich program I need to use to quit off those lines from here???? the ones those are in bold

Code: Select all

++public class TvTJoinCmd implements IVoicedCommandHandler {++	private static final String[] _voicedCommands = {+		"join",+		"leave"+	};+	+	/**+	 * +	 * @see net.sf.l2j.gameserver.handler.IVoicedCommandHandler#useVoicedCommand(java.lang.String, net.sf.l2j.gameserver.model.actor.instance.L2PcInstance, java.lang.String)+	 */+	public boolean useVoicedCommand(String command, L2PcInstance activeChar, String target) {+		if (command.equalsIgnoreCase("join")) {+			+			i[b]f(!TvTEvent.isDualBoxing(activeChar)) {[/b]+				+				if(!activeChar.isCursedWeaponEquipped()) {+					+					if(!activeChar.isInOlympiadMode()) {+						+						if(activeChar.getKarma() == 0) {+							+							int level = activeChar.getLevel();+							if(level > Config.TVT_EVENT_MIN_LVL || level < Config.TVT_EVENT_MAX_LVL) {+								+								if(TvTEvent.getParticipatedPlayersCount() < Config.TVT_EVENT_MAX_PLAYERS_IN_TEAMS) {+								+									if(TvTEvent.payParticipationFee(activeChar)) {+										+										if(TvTEvent.isParticipating()) {+										+											if(TvTEvent.addParticipant(activeChar)) {+												activeChar.sendMessage("You have been registered for TvT");+											}+											else {+												activeChar.sendMessage("Couldnt register you for TvT");+											}+										}+										else {+											activeChar.sendMessage("You cannot join the event at this moment");+										}+									}+									else {+										activeChar.sendMessage("Not enough adena");+									}+								}+								else {+									activeChar.sendMessage("Reached max players allowed");+								}+							}+							else {+								if(level < Config.TVT_EVENT_MIN_LVL) {+									activeChar.sendMessage("You need to gain: "+String.valueOf(Config.TVT_EVENT_MIN_LVL - level)+" levels");+								}+								else {+									activeChar.sendMessage("Your level is "+String.valueOf(level - Config.TVT_EVENT_MAX_LVL)+" over the allowed");+								}+							}+						}+						else {+							activeChar.sendMessage("You cannot join while you are pk");+						}+					}+					else {+						activeChar.sendMessage("You cannot join while in Olympiad");+					}+				}+				else {+					activeChar.sendMessage("You cannot join while holding a Cursed Weapon");+				}+			}+			else {+				[b]activeChar.sendMessage("Your ip is alredy registered for this event");[/b]+			}+		}+		else if (command.equalsIgnoreCase("leave")) {+			+			if(!TvTEvent.isStarting() || !TvTEvent.isStarted()) {+				+				if(TvTEvent.isPlayerParticipant(activeChar.getObjectId())) {+					+					if(TvTEvent.removeParticipant(activeChar, activeChar.getObjectId())) {+						activeChar.sendMessage("You have been removed from the waiting list");+					}+					else {+						activeChar.sendMessage("Couldnt remove you from the waiting list");+					}+				}+				else {+					activeChar.sendMessage("You are not participating in the Event!");+				}+			}+			else {+				activeChar.sendMessage("You cannot leave while is in progress");+			}+		}+		return true;+	}+	+	/**+	 * +	 * @see net.sf.l2j.gameserver.handler.IVoicedCommandHandler#getVoicedCommandList()+	 */+	public String[] getVoicedCommandList() {+		return _voicedCommands;+	}+}\ No newline at end of fil

I just need that theh people can get into the event even if they are using the same ip address.

But could tell me also wich program you use to do modifications in order that i can download a manual and the program too, and lern. Thank you.


At list please, this time quit off from the file please, here there is.
dpside.zip
sorry about my english.
You do not have the required permissions to view the files attached to this post.
lj2Black Hands : have something en mente + look around + copy +paste + try to improve it :S without knowlege -.-

Image
User avatar
janiii
L2j Veteran
L2j Veteran
Posts: 4269
Joined: Wed May 28, 2008 3:15 pm
Location: Slovakia

Re: Wich program i need to use to...

Post by janiii »

DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper
I don't give private support - PM will be ignored!
NoX
Posts: 189
Joined: Mon Oct 05, 2009 4:31 am

Re: Wich program i need to use to...

Post by NoX »


Thank you very much, I know that almost all the time you get ungry with me, but I want to lern a list a little bit,


Sorry and thank you again, just need to put the - at the begining ja :P
lj2Black Hands : have something en mente + look around + copy +paste + try to improve it :S without knowlege -.-

Image
Post Reply