Wich program i need to use to...
Posted: Sat Oct 24, 2009 3:14 am
Wich program I need to use to quit off those lines from here???? the ones those are in bold
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. sorry about my english.
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. sorry about my english.