Jump to content

Senone

Members
  • Posts

    241
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by Senone

  1. 1 /* 2 * This program is free software; you can redistribute it and/or modify 3 * it under the terms of the GNU General Public License as published by 4 * the Free Software Foundation; either version 2, or (at your option) 5 * any later version. 6 * 7 * This program is distributed in the hope that it will be useful, 8 * but WITHOUT ANY WARRANTY; without even the implied warranty of 9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 * GNU General Public License for more details. 11 * 12 * You should have received a copy of the GNU General Public License 13 * along with this program; if not, write to the Free Software 14 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 15 * 02111-1307, USA. 16 * 17 * http://www.gnu.org/copyleft/gpl.html 18 */ 19 package com.l2dot.gameserver.network.clientpackets; 20 21 import java.util.logging.Logger; 22 23 import com.l2dot.Config; 24 import com.l2dot.gameserver.Olympiad; 25 import com.l2dot.gameserver.SevenSignsFestival; 26 import com.l2dot.gameserver.communitybbs.Manager.RegionBBSManager; 27 import com.l2dot.gameserver.datatables.SkillTable; 28 import com.l2dot.gameserver.model.L2Party; 29 import com.l2dot.gameserver.model.actor.instance.L2PcInstance; 30 import com.l2dot.gameserver.model.entity.TvTEvent; 31 import com.l2dot.gameserver.network.L2GameClient; 32 import com.l2dot.gameserver.network.SystemMessageId; 33 import com.l2dot.gameserver.network.L2GameClient.GameClientState; 34 import com.l2dot.gameserver.network.serverpackets.ActionFailed; 35 import com.l2dot.gameserver.network.serverpackets.CharSelectInfo; 36 import com.l2dot.gameserver.network.serverpackets.RestartResponse; 37 import com.l2dot.gameserver.network.serverpackets.SystemMessage; 38 import com.l2dot.gameserver.taskmanager.AttackStanceTaskManager; 39 40 41 /** 42 * This class ... 43 * 44 * @version $Revision: 1.11.2.1.2.4 $ $Date: 2005/03/27 15:29:30 $ 45 */ 46 public final class RequestRestart extends L2GameClientPacket 47 { 48 private static final String _C__46_REQUESTRESTART = "[C] 46 RequestRestart"; 49 private static Logger _log = Logger.getLogger(RequestRestart.class.getName()); 50 51 52 @Override 53 protected void readImpl() 54 { 55 // trigger 56 } 57 58 @Override 59 protected void runImpl() 60 { 61 L2PcInstance player = getClient().getActiveChar(); 62 if (player == null) 63 { 64 _log.warning("[RequestRestart] activeChar null!?"); 65 return; 66 } 67 68 if (player.isInOlympiadMode() || Olympiad.getInstance().isRegistered(player)) 69 { 70 player.sendMessage("You cant logout in olympiad mode"); 71 return; 72 } 73 74 if (player.isTeleporting()) { 75 player.abortCast(); 76 player.setIsTeleporting(false); 77 } 78 79 player.getInventory().updateDatabase(); 80 81 if (player.getPrivateStoreType() != 0) 82 { 83 player.sendMessage("Cannot restart while trading"); 84 return; 85 } 86 87 if (player.getActiveRequester() != null) 88 { 89 player.getActiveRequester().onTradeCancel(player); 90 player.onTradeCancel(player.getActiveRequester()); 91 } 92 93 if (AttackStanceTaskManager.getInstance().getAttackStanceTask(player)) 94 { 95 if (Config.DEBUG) 96 _log.fine("Player " + player.getName() + " tried to logout while fighting."); 97 98 player.sendPacket(new SystemMessage(SystemMessageId.CANT_RESTART_WHILE_FIGHTING)); 99 player.sendPacket(new ActionFailed()); 100 return; 101 } 102 103 // Prevent player from restarting during olympiad games 104 if (player.isInOlympiadMode() || Olympiad.getInstance().isRegistered(player)) 105 { 106 player.sendMessage("You cannot logout while you are in olympiad mode^^"); 107 return; 108 } 109 110 // Prevent player from restarting if they are a festival participant 111 // and it is in progress, otherwise notify party members that the player 112 // is not longer a participant. 113 if (player.isFestivalParticipant()) 114 { 115 if (SevenSignsFestival.getInstance().isFestivalInitialized()) 116 { 117 player.sendPacket(SystemMessage.sendString("You cannot restart while you are a participant in a festival.")); 118 player.sendPacket(new ActionFailed()); 119 return; 120 } 121 L2Party playerParty = player.getParty(); 122 123 if (playerParty != null) 124 player.getParty().broadcastToPartyMembers( 125 SystemMessage.sendString(player.getName() 126 + " has been removed from the upcoming festival.")); 127 } 128 if (player.isFlying()) 129 { 130 player.removeSkill(SkillTable.getInstance().getInfo(4289, 1)); 131 } 132 133 L2GameClient client = getClient(); 134 135 // detach the client from the char so that the connection isnt closed in the deleteMe 136 player.setClient(null); 137 138 TvTEvent.onLogout(player); 139 RegionBBSManager.getInstance().changeCommunityBoard(); 140 141 // removing player from the world 142 player.deleteMe(); 143 L2GameClient.saveCharToDisk(client.getActiveChar()); 144 145 146 getClient().setActiveChar(null); 147 148 // return the client to the authed status 149 client.setState(GameClientState.AUTHED); 150 151 RestartResponse response = new RestartResponse(); 152 sendPacket(response); 153 154 // send char list 155 CharSelectInfo cl = new CharSelectInfo(client.getAccountName(), 156 client.getSessionId().playOkID1); 157 sendPacket(cl); 158 client.setCharSelection(cl.getCharInfo()); 159 } 160 161 /* (non-Javadoc) 162 * @see com.l2dot.gameserver.clientpackets.ClientBasePacket#getType() 163 */ 164 @Override 165 public String getType() 166 { 167 return _C__46_REQUESTRESTART; 168 } 169 }
  2. All Olympiad Bug's Fixed DOwnload From Here http://www.l2jserver.com/old-forum/attachment.php?attachmentid=4994
  3. Hello Guys .. I Have A Problem But I Am nOt SUre.. what is it .. My Server its on and ok ppl are in but yesterday i dont know what hapened and server falled down.. and now nobody can login's in game they see the server Wich Says Eclipse : Ping 84 If Anyone can help me plx
  4. ALoha se olous exw ena problem p m simvenei prwth fora .. dn 3erw t paizei ews xtes pezane oloi kanonika simera dn mporoun na mpoun ton dixnei light alla exoun problem.. dild Dixnei Eclipse Ping 84 ti paizei na 3erei kapoios as reply thnx
  5. Senone

    Diskw Website

    an koitages kalutera 9 itan kala. ta ebgala t gredits.. k ta evala sta elinika k ta 3exasa -.-"
  6. Hmm i will come and see thnx men ;p
  7. This is Lineage 2 Interlude JAVA project. It's based on L2-DoT project with my(Staff) fixes and syncs from many others (Archid, L2J, L2J-Free). Daily Commits And Daily Fixes. Less Bugs / Exploits Than Any Other Interlude Pack. SVN : http://my-svn.assembla.com/svn/L2J-Equal/ Timeline: http://my-trac.assembla.com/L2J-Equal/timeline Site : http://www.l2equal.lt/ Forum: http://www.l2equal.lt/forum/index.php The Team Is: * Minuts * qqer92 * nsstop The Staff is very friendly and helpfully. Latest Rev: 166 Mirror 1 Mirror 2 Mirror 3 Conect to Forum For More Info's Contact For Request's Thnx AGain
  8. Hello dear MaxCheater's, We have started a new project for lineage private servers. The New project is called L2Jice. And its based on L2J. Our aim is to create a pack more stable than usual and add custom stuff to it and make it more "effective" and fun. Like i mention before our pack is still new and we need your help to make it better. Now to the next part. We still need new developers to help us out with that work. Here are some basic information that developers must have: * Good knowledge of java. * Good knowledge of the game. * You have to speak very good english. * You have to work as a part of the team. * You must follow the Developer's rules once approved. For more information visit: www.L2Jice.co.nr Our First Compiled pack can be downloaded here: http://www.4shared.com/file/115489211/e67d088e/L2JIce-GraciaFinal_Rev44.html For More Info's Contact xMayolx Owner Of Project Thnx.. For Reading
  9. Για σε ολους ειμαι καινουριος εδω κ αποφασισα να μοιραστω ολες μου τις δουλειες εσας εδω εχω ενα DiskW Σιτε Φτιαγμενο απο μενα Για Να Δειτε Το Σιτε www.l2-usa.com Εδω Ειναι Το Σιτε Download http://www.megaupload.com/?d=18KUM756 Εδω Καποια Script's Για Το Σιτε Top PvP/20 Top Pk/20 Heroes Clan Satus Bos Satus Online Players Oly_Points Download Link: http://www.4shared.com/file/115994614/e28ab66e/Script_by_GoHaNn.html Ps An Θελετε να Δειτε Το Σιτε Εδω Localhost/home.html Εαν Επισης θελετε να κανετε PubliC Το Σιτε Πηγαινετε Στο Config Φακελο Αλακτε Τιν ΙΡ Κ Βαλτε Τιν Δικη σας Κ Επισης Ανοιχτε Μια Καινουρια Πορτα 80 κ Για Το Mysql αν 8ελετε 3306 καλυτερα μην ανοικσετε για το Mysql γιατι θα μπορουν να σας Hackaroun τιν βαση πληροφοριων Πατηστε Start.Bat Για Να ανοιξετε Το Σιτε Κ Πατιστε Stop.Bat Για Να κλησετε το Σιτε Καποιο Τυχον Προβλημα Εδω Ποστ Το Σιτε ΕΙναι Φτιαγμενο Απο Μενα Μν Κανετε αντιγραφεσ παρακαλω κ μν κανετε σπαμ Ευχαριστω
  10. Nikos Exeis kanei kati la9os prepei na ftia3eis kati oste o server npc na sundeetai me ton server epidi authn tn stimgi dixni alounou server pextes.. opote kane kati i an 9es help pes m ;) A kai Goo0D Job
  11. bravo psycho oreos ;) gia newbie nmz pos einai alla dn exei simasia ty
  12. kalo file m alla einai o simple l2 dot buffer opws eipe o gameblond np arkei p doulepces thnx for share
  13. i Joined your server and i liked it much no lag crazy pvp nice one man keep without donate.. its better
  14. crazy one men thnx for sharing with us y did great job
  15. nice wark man keep up like this i like them i wil try them ;)
  16. 200posts lol man ?? make it lower its just a wepon
  17. heh nice i dont think its good to put in a l2 server but ok y work for that and thats enought ;)
  18. very nice man i think it takes much time to find them hard to find all of them keep up thnx ;)
  19. i wanna see it and try it ;P but i got low posts ;)
  20. thnxx stealth keep up like that it will be good if u had any scripts and if u post them for us :) anyway nice job
  21. guys hello y need to search in www.google.gr y find your answer's and much more of that y need
  22. pfff just post what y need herre
  23. its safe enchant but not in all server's try to find a server no00bserver
×
×
  • Create New...