Jump to content

Question

Posted

Kalhspera 8a i8ela na sas rwtisw kati... exw dei to guide tou ExTrEmEDwarf ta ekana ola ok sxedon (exw mia aporia alla thn exw kanei post idi makari na me help kapios..) loipon px pernw enan code... auton edw -> http://www.maxcheaters.com/forum/index.php?topic=47248.0  paw ekei pou leei sto /java/net/sf/l2j/gameserver/model/olympiad/Olympiad.java (mesa sto eclipse) alla emena dn einai akrivos etc einai ligo diaforetiko epeidh exw epilogue nomizw.. (einai etc.. /java/com.l2jserver.gameserver.model.olympiad/olympiad.java)  to anoigw mou dixnei ta codes auta

 

Arxizei etc...

/*
* This program is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free Software
* Foundation, either version 3 of the License, or (at your option) any later
* version.
* 
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
* details.
* 
* You should have received a copy of the GNU General Public License along with
* this program. If not, see <http://www.gnu.org/licenses/>.
*/

/**
* @author godson
*/

package com.l2jserver.gameserver.model.olympiad;

import gnu.trove.TIntIntHashMap;

import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Calendar;
import java.util.Map;
import java.util.Properties;
import java.util.concurrent.ScheduledFuture;
import java.util.logging.Level;
import java.util.logging.LogRecord;
import java.util.logging.Logger;

import com.l2jserver.Config;
import com.l2jserver.L2DatabaseFactory;
import com.l2jserver.gameserver.Announcements;
import com.l2jserver.gameserver.ThreadPoolManager;
import com.l2jserver.gameserver.instancemanager.ZoneManager;
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
import com.l2jserver.gameserver.model.entity.Hero;
import com.l2jserver.gameserver.model.entity.TvTEvent;
import com.l2jserver.gameserver.network.SystemMessageId;
import com.l2jserver.gameserver.network.serverpackets.ExOlympiadMatchEnd;
import com.l2jserver.gameserver.network.serverpackets.ExOlympiadUserInfo;
import com.l2jserver.gameserver.network.serverpackets.NpcHtmlMessage;
import com.l2jserver.gameserver.network.serverpackets.SystemMessage;
import com.l2jserver.gameserver.templates.StatsSet;
import com.l2jserver.util.L2FastList;

import javolution.util.FastMap;

public class Olympiad
{
protected static final Logger _log = Logger.getLogger(Olympiad.class.getName());
protected static final Logger _logResults = Logger.getLogger("olympiad");

private static Map<Integer, StatsSet> _nobles;
protected static L2FastList<StatsSet> _heroesToBe;
private static L2FastList<L2PcInstance> _nonClassBasedRegisters;
private static Map<Integer, L2FastList<L2PcInstance>> _classBasedRegisters;
private static TIntIntHashMap _noblesRank;

kai teleiwnei etc...

	String[] commands = command.split(" ");
	int id = Integer.parseInt(commands[1]);
	int arena = getSpectatorArena(player);
	if (arena >= 0)
	{
		Olympiad.removeSpectator(arena, player);
		player.sendPacket(new ExOlympiadMatchEnd());
	}
	else
		return;
	Olympiad.addSpectator(id, player, false);

	handleSpectatorEnter(id, player);
}

@SuppressWarnings("synthetic-access")
private static class SingletonHolder
{
	protected static final Olympiad _instance = new Olympiad();
}
}

 

ola ok mexri edw pistevw... twra omws den 3erw pou 8a valw auto to code pou dinei...

auto...

--- /java/net/sf/l2j/gameserver/model/olympiad/Olympiad.java   (revision 2771)
+++ /java/net/sf/l2j/gameserver/model/olympiad/Olympiad.java   (working copy)
@@ -756,8 +756,10 @@
      Announcements.getInstance().announceToAll(sm);
      
      Calendar currentTime = Calendar.getInstance();
-      currentTime.add(Calendar.MONTH, 1);
-      currentTime.set(Calendar.DAY_OF_MONTH, 1);
+       //currentTime.add(Calendar.MONTH, 1);
+      currentTime.add(Calendar.HOUR, 336);
+       //currentTime.set(Calendar.DAY_OF_MONTH, 1);
+      currentTime.set(Calendar.DAY_OF_WEEK, Calendar.SUNDAY);
      currentTime.set(Calendar.AM_PM, Calendar.AM);
      currentTime.set(Calendar.HOUR, 12);
      currentTime.set(Calendar.MINUTE, 0);

an mporei kapoios na me help ...

PS: Exw kai teamviewer (pio eukolo :P)

3 answers to this question

Recommended Posts

  • 0
Posted

T patch p mas dixneis blepeis na xekinaei apo tin arxh?re aderfe einai autonoita pragmata psaxe ligo diabase kana guide apo ta apeira p exei auto dn to eides -756,8 +756,10 @@

telos pantwn psaxe gia kati kontino sto code px.

Announcements.getInstance().announceToAll(sm);

Gia na se boh8hso ctrl+f , kai gia line ctrl + l

  • 0
Posted

to vrika kai mou exei auto opote vgazw apo to Announcements.getInstance().announceToAll(sm); kai kato kai vazw auto pou dinei???

(ty pantos gia thn voi8ia apla shmera arxisa na ma8w compile kai exw mperdeftei para pl :P...)

{
	SystemMessage sm = new SystemMessage(SystemMessageId.OLYMPIAD_PERIOD_S1_HAS_STARTED);
	sm.addNumber(_currentCycle);

	Announcements.getInstance().announceToAll(sm);

	Calendar currentTime = Calendar.getInstance();
	currentTime.add(Calendar.MONTH, 1);
	currentTime.set(Calendar.DAY_OF_MONTH, 1);
	currentTime.set(Calendar.AM_PM, Calendar.AM);
	currentTime.set(Calendar.HOUR, 12);
	currentTime.set(Calendar.MINUTE, 0);
	currentTime.set(Calendar.SECOND, 0);
	_olympiadEnd = currentTime.getTimeInMillis();

	Calendar nextChange = Calendar.getInstance();
	_nextWeeklyChange = nextChange.getTimeInMillis() + WEEKLY_PERIOD;
	scheduleWeeklyChange();
}

  • 0
Posted

na s pw to ekana paste mesa auto to code alla apo kato apo to

+      //currentTime.add(Calendar.MONTH, 1);

kai apo to +      //currentTime.set(Calendar.DAY_OF_MONTH, 1);

 

mou ta upogramizei me mia kokkinh grammh auto einai error??

 

 

EDIT: vasika evgala ta + kai ta - pou eixe dipla kai efige h grammh

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...