kegas
Members-
Posts
220 -
Joined
-
Last visited
-
Feedback
0%
Content Type
Articles
Profiles
Forums
Store
Everything posted by kegas
-
pedia exo ena prob me ta skill stous magous....molis kanoun ena skill meta gia na ksanaxtipisoun me to idio i me kapio allo prepei na perasoun 3-4 defterolepta eno ta skill einai gemismena... :-\
-
egw evala soutdown gia restart ala dn einai auto...dld ekei stn consola tou login i tou gameserver termatizei anormaly :S
-
dld tr einai ok dn 8a xana termatistei apotoma ??
-
pedia tnx ala ama mporeite na m ta ftiaxete etoima ta configs pou edwsa gt mporei na kanw kana la8os:S ;D
-
na wriste ta configs tou server gameserver {server} # This is the server configuration file. Here you can set up the connection for your server. # Usually you have to change the ExternalHostname option to # - 127.0.0.1 (if you want to play alone / testing purpose) # - LAN IP* (if you want to play from another computer in the network) # - WAN IP** (if you want to play with friends over internet) # - Questions? => http://projeto.l2jbrasil.com # # * = If you want to get your LAN IP, simply choose "Start" => "Run..." then type "cmd" => "ipconfig" # **= If you want to get you WAN IP, visit http://www.ip-adress.com # =================================================================================================== # ================================================================ # General server setting !!! REQUIRED to configure to everyone !!! # ================================================================ # Bind ip of the gameserver, use * to bind on all available IPs GameserverHostname=* GameserverPort=7777 # This is transmitted to the clients connecting from an external network, so it has to be a public IP or resolvable hostname # If this ip is resolvable by Login just leave * ExternalHostname=l2cesar.no-ip.biz # This is transmitted to the client from the same network, so it has to be a local IP or resolvable hostname # If this ip is resolvable by Login just leave * InternalHostname=l2cesar.no-ip.biz # The Loginserver host and port LoginPort=9014 LoginHost=127.0.0.1 # This is the server id that the gameserver will request (i.e. 1 is Bartz) RequestServerID = 1 # If set to true, the login will give an other id to the server if the requested id is allready reserved AcceptAlternateID = True # Database info Driver=com.mysql.jdbc.Driver #Driver=org.hsqldb.jdbcDriver #Driver=com.microsoft.sqlserver.jdbc.SQLServerDriver URL=jdbc:mysql://localhost/l2jdb #URL=jdbc:hsqldb:hsql://localhost/l2jdb #URL=jdbc:sqlserver://localhost/database=l2jdb/user=sa/password= Login=root Password=root MaximumDbConnections=1000 # Datapack root directory, defaults to current directory from which the server is started # DatapackRoot = C:/Work/tmp/DataPack # Define character name template # Example to use only : CnameTemplate=[A-Z][a-z]{3,3}[A-Za-z0-9]* # will allow names with first capital letter, next three small letters, # and any (capital or not) letter or number, like ZbigN1eW # Most rational to have CnameTemplate=[A-Z][a-z]* # meaning names only of letters with first one capital, like Zbigniew # Default .* - any namy of any symbols CnameTemplate=.* PetNameTemplate=.* # Maximum number of chars per account - Default 7 (0 = unlimited [7 is the client limit]) CharMaxNumber = 7 # Define how many players are allowed to play simultaneously on your server. MaximumOnlineUsers=1000 # Minimum and maximum protocol revision that server allow to connect. # You must keep MinProtocolRevision <= MaxProtocolRevision. MinProtocolRevision = 740 MaxProtocolRevision = 746 tou loginserver # This is the server configuration file. Here you can set up the connection for your server. # Usually you have to change the ExternalHostname option to # - 127.0.0.1 (if you want to play alone / testing purpose) # - LAN IP* (if you want to play from another computer in the network) # - WAN IP** (if you want to play with friends over internet) # - Questions? => http://projeto.l2jbrasil.com # # * = If you want to get your LAN IP, simply choose "Start" => "Run..." then type "cmd" => "ipconfig" # **= If you want to get you WAN IP, visit http://www.ip-adress.com # =================================================================================================== # ================================================================ # General server setting !!! REQUIRED to configure to everyone !!! # ================================================================ # This is transmitted to the clients connecting from an external network, so it has to be a public IP or resolvable hostname ExternalHostname=l2cesar.no-ip.biz # This is transmitted to the client from the same network, so it has to be a local IP or resolvable hostname InternalHostname=l2cesar.no-ip.biz # Bind ip of the LoginServer, use * to bind on all available IPs LoginserverHostname=* LoginserverPort=2106 # How many times you can provide an invalid account/pass before the IP gets banned LoginTryBeforeBan=10 # Time you won't be able to login back again after LoginTryBeforeBan tries to login. Provide a value in seconds. Default 10min. (600) LoginBlockAfterBan=600 GMMinLevel=100 # The address on which login will listen for GameServers, use * to bind on all available IPs LoginHostname=* # The port on which login will listen for GameServers LoginPort=9014 # If set to true any GameServer can register on your login's free slots AcceptNewGameServer = False # If false, the licence (after the login) will not be shown # It is highly recomended for Account Seciurity to leave this option as defalut (True) ShowLicence = True # Database info Driver=com.mysql.jdbc.Driver #Driver=org.hsqldb.jdbcDriver #Driver=com.microsoft.sqlserver.jdbc.SQLServerDriver URL=jdbc:mysql://localhost/l2jdb #URL=jdbc:hsqldb:hsql://localhost/l2jdb #URL=jdbc:sqlserver://localhost/database=l2jdb/user=sa/password= Login=root Password=root MaximumDbConnections=1000 # Useable values: "true" - "false", use this option to choose whether accounts will be created # automatically or not. AutoCreateAccounts=true # The delay in minutes after which the login updates the gameservers IP's (usefull when their ip is dynamic) IpUpdateTime=15 # ============================================================== # Test server setting, shoudnt be touched in online game server # ============================================================== Debug = False Assert = False Developer = False # Enforce GG Authorization from client # Login server will kick client if client bypassed GameGuard authentication ForceGGAuth=True #FloodProtection. time in ms EnableFloodProtection=True FastConnectionLimit=15 NormalConnectionTime=700 FastConnectionTime=350 MaxConnectionPerIP=50
-
oxi akm dn mpike hopzone kai topzone gia na mpoun atoma to kanei mono tou:/ o filos m omws piraxe ta settings tou gameserver kai tou login server :S
-
gia sas pedia exw pack L2JBrasil rev.1162 kai otan perasei kapia wra to login termatizei i dn mporw na mpw ston server vgazei oti einai light ala einai termatismeno to game server.ti gnt re pedia ?? ???
-
re pedia pws mporw na kanw to mana potio na gemizei pio grigora dld me 2 mana potion na gemizei oloi i magia(MP)
-
[Share]Black Vesper Trader By Me (Interlude)
kegas replied to FelonBIG's topic in Server Development Discussion [Greek]
re pedia opoios exei olo to patch as to anevasei gt auto exei provlima eno einai oraia ta black vesper m to xalaei auto dld ta ftera dn fenonte otan pas na kaneis me lifestone to oplo to eikonidio sta item gnt mauro :S -
pedia evala kanonika to black vesper gia IL vgenoun ta eikonidia mia alla molis tou vazw lifestone to eikonidio gnt mauro:S eleos ti mporw na kanw gia na to ftiaxw?
-
ok pedia euxaristo ;D to vrika mesa sta custom to l2jbrasil
-
re pedia pws mporw na kanw otan arxizei ena neos pextis na pigenei se sigegrimeno spawn px.giran?
-
tsp 8a dokimaso ala auto pou akrivos to vazoume?? se l2jbrasil Index: java/net/sf/l2j/Config.java =================================================================== --- java/net/sf/l2j/Config.java (revision 4092) +++ java/net/sf/l2j/Config.java (working copy) @@ -881,6 +881,17 @@ public static boolean L2JMOD_WEDDING_SAMESEX; public static boolean L2JMOD_WEDDING_FORMALWEAR; public static int L2JMOD_WEDDING_DIVORCE_COSTS; + + public static boolean ENABLE_COLOR_PVP; + public static int COLOR_PVP_100; + public static int COLOR_PVP_500; + public static int COLOR_PVP_1000; + public static int COLOR_PVP_5000; + public static boolean ENABLE_COLOR_PK; + public static int COLOR_PK_100; + public static int COLOR_PK_500; + public static int COLOR_PK_1000; + public static int COLOR_PK_5000; // Packet information /** Count the amount of packets per minute ? */ @@ -1858,6 +1869,17 @@ L2JMOD_WEDDING_SAMESEX = Boolean.parseBoolean(L2JModSettings.getProperty("WeddingAllowSameSex", "False")); L2JMOD_WEDDING_FORMALWEAR = Boolean.parseBoolean(L2JModSettings.getProperty("WeddingFormalWear", "True")); L2JMOD_WEDDING_DIVORCE_COSTS = Integer.parseInt(L2JModSettings.getProperty("WeddingDivorceCosts", "20")); + + ENABLE_COLOR_PVP = Boolean.parseBoolean(L2JModSettings.getProperty("EnableColorPvP", "False")); + COLOR_PVP_100 = Integer.decode("0x" + L2JModSettings.getProperty("ColorPvP", "00FF00")); + COLOR_PVP_500 = Integer.decode("0x" + L2JModSettings.getProperty("ColorPvP", "00FF00")); + COLOR_PVP_1000 = Integer.decode("0x" + L2JModSettings.getProperty("ColorPvP", "00FF00")); + COLOR_PVP_5000 = Integer.decode("0x" + L2JModSettings.getProperty("ColorPvP", "00FF00")); + ENABLE_COLOR_PK = Boolean.parseBoolean(L2JModSettings.getProperty("EnableColorPk", "False")); + COLOR_PK_100 = Integer.decode("0x" + L2JModSettings.getProperty("ColorPk", "00FF00")); + COLOR_PK_500 = Integer.decode("0x" + L2JModSettings.getProperty("ColorPk", "00FF00")); + COLOR_PK_1000 = Integer.decode("0x" + L2JModSettings.getProperty("ColorPk", "00FF00")); + COLOR_PK_5000 = Integer.decode("0x" + L2JModSettings.getProperty("ColorPk", "00FF00")); if (TVT_EVENT_PARTICIPATION_NPC_ID == 0) { to vrika ok
-
na ntes prospa8w na valw auto to code to vazw ala mou vgazei olo field :-\ gia auto s lew ama mporeis na m to pros8esis stis grammes gt egw mporei na kanw la8os grames i ta kena i kati allo gia auto m vgazei kai field
-
dn xerw na to valw auto :-\ ama mporeis help ligo me auto pou postara pio pano...ama 8eleis kiolas ;)
-
tpt gmt :( ama mporeis ftiaxe m ta gt dn mporw na ta valw to ka8aro enterworld xwris to code pou 8elw na valw ama 8es valto m kai postareto /* * 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 2, 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, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. * * http://www.gnu.org/copyleft/gpl.html */ package com.it.br.gameserver.clientpackets; import java.io.UnsupportedEncodingException; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.util.logging.Logger; import com.it.br.Base64; import com.it.br.Config; import com.it.br.L2DatabaseFactory; import com.it.br.gameserver.Announcements; import com.it.br.gameserver.GmListTable; import com.it.br.gameserver.SevenSigns; import com.it.br.gameserver.TaskPriority; import com.it.br.gameserver.cache.HtmCache; import com.it.br.gameserver.communitybbs.Manager.RegionBBSManager; import com.it.br.gameserver.datatables.CharSchemesTable; import com.it.br.gameserver.datatables.MapRegionTable; import com.it.br.gameserver.handler.AdminCommandHandler; import com.it.br.gameserver.instancemanager.ClanHallManager; import com.it.br.gameserver.instancemanager.CoupleManager; import com.it.br.gameserver.instancemanager.CrownManager; import com.it.br.gameserver.instancemanager.DimensionalRiftManager; import com.it.br.gameserver.instancemanager.PetitionManager; import com.it.br.gameserver.instancemanager.SiegeManager; import com.it.br.gameserver.instancemanager.CastleManager; import com.it.br.gameserver.model.L2Character; import com.it.br.gameserver.model.L2Clan; import com.it.br.gameserver.model.L2Effect; import com.it.br.gameserver.model.L2ItemInstance; import com.it.br.gameserver.model.L2World; import com.it.br.gameserver.model.actor.instance.L2PcInstance; import com.it.br.gameserver.model.entity.ClanHall; import com.it.br.gameserver.model.entity.Couple; import com.it.br.gameserver.model.entity.Hero; import com.it.br.gameserver.model.entity.L2Event; import com.it.br.gameserver.model.entity.Siege; import com.it.br.gameserver.model.entity.TvTEvent; import com.it.br.gameserver.model.entity.Castle; import com.it.br.gameserver.Olympiad; import com.it.br.gameserver.model.quest.Quest; import com.it.br.gameserver.model.quest.QuestState; import com.it.br.gameserver.network.SystemMessageId; import com.it.br.gameserver.serverpackets.CreatureSay; import com.it.br.gameserver.serverpackets.Die; import com.it.br.gameserver.serverpackets.EtcStatusUpdate; import com.it.br.gameserver.serverpackets.ExStorageMaxCount; import com.it.br.gameserver.serverpackets.FriendList; import com.it.br.gameserver.serverpackets.HennaInfo; import com.it.br.gameserver.serverpackets.ItemList; import com.it.br.gameserver.serverpackets.NpcHtmlMessage; import com.it.br.gameserver.serverpackets.PledgeShowMemberListAll; import com.it.br.gameserver.serverpackets.PledgeShowMemberListUpdate; import com.it.br.gameserver.serverpackets.PledgeSkillList; import com.it.br.gameserver.serverpackets.PledgeStatusChanged; import com.it.br.gameserver.serverpackets.QuestList; import com.it.br.gameserver.serverpackets.ShortCutInit; import com.it.br.gameserver.serverpackets.SignsSky; import com.it.br.gameserver.serverpackets.SystemMessage; import com.it.br.gameserver.serverpackets.UserInfo; import com.it.br.gameserver.templates.L2EtcItemType; import com.it.br.gameserver.templates.L2Item; import com.it.br.gameserver.templates.L2Weapon; import com.it.br.gameserver.util.FloodProtector; import com.it.br.gameserver.util.Util; /** * Enter World Packet Handler<p> * <p> * 0000: 03 <p> * packet format rev656 cbdddd * <p> * * @version $Revision: 1.16.2.1.2.7 $ $Date: 2005/03/29 23:15:33 $ */ public class EnterWorld extends L2GameClientPacket { private static final String _C__03_ENTERWORLD = "[C] 03 EnterWorld"; private static Logger _log = Logger.getLogger(EnterWorld.class.getName()); public TaskPriority getPriority() { return TaskPriority.PR_URGENT; } @Override protected void readImpl() { // this is just a trigger packet. it has no content } @Override protected void runImpl() { L2PcInstance activeChar = getClient().getActiveChar(); if (activeChar == null) { _log.warning("EnterWorld failed! activeChar is null..."); getClient().closeNow(); return; } // Register in flood protector FloodProtector.getInstance().registerNewPlayer(activeChar.getObjectId()); if (L2World.getInstance().findObject(activeChar.getObjectId()) != null) { if(Config.DEBUG) _log.warning("User already exist in OID map! User "+activeChar.getName()+" is character clone"); // check for over enchant for (L2ItemInstance i : activeChar.getInventory().getItems()) { if (i.isEquipable() && !activeChar.isGM() || !i.isEquipable() && !activeChar.isGM()) { int itemType2 = i.getItem().getType2(); if (itemType2 == L2Item.TYPE2_WEAPON) { if (i.getEnchantLevel() > Config.ENCHANT_MAX_ALLOWED_WEAPON) { // Delete Item Over enchanted activeChar.getInventory().destroyItem(null, i, activeChar, null); // Message to Player activeChar.sendMessage("[server]:You have Items over enchanted you will be kikked!"); // Punishment e log in audit Util.handleIllegalPlayerAction(activeChar, "Player " + activeChar.getName() + " have item Overenchanted ", Config.DEFAULT_PUNISH); // Log in console _log.info("#### ATTENCTION ####"); _log.info(i + " item has been removed from player."); } } if (itemType2 == L2Item.TYPE2_SHIELD_ARMOR) { if (i.getEnchantLevel() > Config.ENCHANT_MAX_ALLOWED_ARMOR) { // Delete Item Over enchanted activeChar.getInventory().destroyItem(null, i, activeChar, null); // Message to Player activeChar.sendMessage("[server]:You have Items over enchanted you will be kikked!"); // Punishment e log in audit Util.handleIllegalPlayerAction(activeChar, "Player " + activeChar.getName() + " have item Overenchanted ", Config.DEFAULT_PUNISH); // Log in console _log.info("#### ATTENCTION ####"); _log.info(i + " item has been removed from player."); } } if (itemType2 == L2Item.TYPE2_ACCESSORY) { if (i.getEnchantLevel() > Config.ENCHANT_MAX_ALLOWED_JEWELRY) { // Delete Item Over enchanted activeChar.getInventory().destroyItem(null, i, activeChar, null); // Message to Player activeChar.sendMessage("[server]:You have Items over enchanted you will be kikked!"); // Punishment e log in audit Util.handleIllegalPlayerAction(activeChar, "Player " + activeChar.getName() + " have item Overenchanted ", Config.DEFAULT_PUNISH); // Log in console _log.info("#### ATTENCTION ####"); _log.info(i + " item has been removed from player."); } } } } } if (activeChar.isGM()) { if (Config.GM_STARTUP_INVULNERABLE && (!Config.ALT_PRIVILEGES_ADMIN && activeChar.getAccessLevel() >= Config.GM_GODMODE || Config.ALT_PRIVILEGES_ADMIN && AdminCommandHandler.getInstance().checkPrivileges(activeChar, "admin_invul"))) activeChar.setIsInvul(true); if (Config.GM_STARTUP_INVISIBLE && (!Config.ALT_PRIVILEGES_ADMIN && activeChar.getAccessLevel() >= Config.GM_GODMODE || Config.ALT_PRIVILEGES_ADMIN && AdminCommandHandler.getInstance().checkPrivileges(activeChar, "admin_invisible"))) activeChar.getAppearance().setInvisible(); if (Config.GM_STARTUP_SILENCE && (!Config.ALT_PRIVILEGES_ADMIN && activeChar.getAccessLevel() >= Config.GM_MENU || Config.ALT_PRIVILEGES_ADMIN && AdminCommandHandler.getInstance().checkPrivileges(activeChar, "admin_silence"))) activeChar.setMessageRefusal(true); if (Config.GM_STARTUP_AUTO_LIST && (!Config.ALT_PRIVILEGES_ADMIN && activeChar.getAccessLevel() >= Config.GM_MENU || Config.ALT_PRIVILEGES_ADMIN && AdminCommandHandler.getInstance().checkPrivileges(activeChar, "admin_gmliston"))) GmListTable.getInstance().addGm(activeChar, false); else GmListTable.getInstance().addGm(activeChar, true); if (Config.GM_NAME_COLOR_ENABLED) { if (activeChar.getAccessLevel() >= 100) activeChar.getAppearance().setNameColor(Config.ADMIN_NAME_COLOR); else if (activeChar.getAccessLevel() >= 75) activeChar.getAppearance().setNameColor(Config.GM_NAME_COLOR); } if (Config.GM_TITLE_COLOR_ENABLED) { if (activeChar.getAccessLevel() >= 100) activeChar.getAppearance().setTitleColor(Config.ADMIN_TITLE_COLOR); else if (activeChar.getAccessLevel() >= 75) activeChar.getAppearance().setTitleColor(Config.GM_TITLE_COLOR); } } if (Config.ANNOUNCE_GM_LOGIN) { if (activeChar.getAccessLevel() >= 100) { Announcements.getInstance().announceToAll("Admin: "+activeChar.getName()+" has been logged in."); } else if (activeChar.getAccessLevel() >= 75) { Announcements.getInstance().announceToAll("GM: "+activeChar.getName()+" has been logged in."); } } if (Config.PLAYER_SPAWN_PROTECTION > 0) activeChar.setProtection(true); activeChar.spawnMe(activeChar.getX(), activeChar.getY(), activeChar.getZ()); if (L2Event.active && L2Event.connectionLossData.containsKey(activeChar.getName()) && L2Event.isOnEvent(activeChar)) L2Event.restoreChar(activeChar); else if (L2Event.connectionLossData.containsKey(activeChar.getName())) L2Event.restoreAndTeleChar(activeChar); if (SevenSigns.getInstance().isSealValidationPeriod()) sendPacket(new SignsSky()); // buff and status icons if (Config.STORE_SKILL_COOLTIME) activeChar.restoreEffects(); activeChar.sendPacket(new EtcStatusUpdate(activeChar)); // engage and notify Partner if(Config.L2JMOD_ALLOW_WEDDING) { engage(activeChar); notifyPartner(activeChar,activeChar.getPartnerId()); } if (Config.ANNOUNCE_CASTLE_LORDS) { notifyCastleOwner(activeChar); } if (activeChar.getAllEffects() != null) { for (L2Effect e : activeChar.getAllEffects()) { if (e.getEffectType() == L2Effect.EffectType.HEAL_OVER_TIME) { activeChar.stopEffects(L2Effect.EffectType.HEAL_OVER_TIME); activeChar.removeEffect(e); } if (e.getEffectType() == L2Effect.EffectType.COMBAT_POINT_HEAL_OVER_TIME) { activeChar.stopEffects(L2Effect.EffectType.COMBAT_POINT_HEAL_OVER_TIME); activeChar.removeEffect(e); } } } // apply augmentation boni for equipped items for (L2ItemInstance temp : activeChar.getInventory().getAugmentedItems()) if (temp != null && temp.isEquipped()) temp.getAugmentation().applyBoni(activeChar); //Expand Skill ExStorageMaxCount esmc = new ExStorageMaxCount(activeChar); activeChar.sendPacket(esmc); activeChar.getMacroses().sendUpdate(); sendPacket(new UserInfo(activeChar)); sendPacket(new HennaInfo(activeChar)); sendPacket(new FriendList(activeChar)); sendPacket(new ItemList(activeChar, false)); sendPacket(new ShortCutInit(activeChar)); SystemMessage sm = new SystemMessage(SystemMessageId.WELCOME_TO_LINEAGE); sendPacket(sm); SevenSigns.getInstance().sendCurrentPeriodMsg(activeChar); Announcements.getInstance().showAnnouncements(activeChar); CrownManager.getInstance().checkCrowns(activeChar); Quest.playerEnter(activeChar); activeChar.sendPacket(new QuestList()); loadTutorial(activeChar); if (Config.SERVER_NEWS) { String serverNews = HtmCache.getInstance().getHtm("data/html/servnews.htm"); if (serverNews != null) sendPacket(new NpcHtmlMessage(1, serverNews)); } // check for ilegal skills if (Config.CHECK_SKILLS_ON_ENTER && !Config.ALT_GAME_SKILL_LEARN) activeChar.checkAllowedSkills(); if (Config.SHOW_WELCOME_HTML_ON_PLAYER_LOGIN) { String welcome = HtmCache.getInstance().getHtm("data/html/welcome.htm"); if (welcome != null) sendPacket(new NpcHtmlMessage(1, welcome)); } if (Config.SHOW_WELCOME_PM) { CreatureSay np = new CreatureSay(0, Say2.TELL,Config.PM_FROM,Config.PM_TEXT1); CreatureSay na = new CreatureSay(0, Say2.TELL,Config.PM_FROM,Config.PM_TEXT2); activeChar.sendPacket(np); activeChar.sendPacket(na); } PetitionManager.getInstance().checkPetitionMessages(activeChar); // send user info again .. just like the real client //sendPacket(ui); if (activeChar.getClanId() != 0 && activeChar.getClan() != null) { sendPacket(new PledgeShowMemberListAll(activeChar.getClan(), activeChar)); sendPacket(new PledgeStatusChanged(activeChar.getClan())); } if (activeChar.isAlikeDead()) { // no broadcast needed since the player will already spawn dead to others sendPacket(new Die(activeChar)); } if (Config.ALLOW_WATER) activeChar.checkWaterState(); if (Hero.getInstance().getHeroes() != null && Hero.getInstance().getHeroes().containsKey(activeChar.getObjectId())) activeChar.setHero(true); setPledgeClass(activeChar); //add char to online characters activeChar.setOnlineStatus(true); /* * Scheme NPCBuffer */ if (Config.NPCBUFFER_FEATURE_ENABLED) CharSchemesTable.getInstance().onPlayerLogin(activeChar.getObjectId()); notifyFriends(activeChar); notifyClanMembers(activeChar); notifySponsorOrApprentice(activeChar); activeChar.onPlayerEnter(); if (Olympiad.getInstance().playerInStadia(activeChar)) { activeChar.teleToLocation(MapRegionTable.TeleportWhereType.Town); activeChar.sendMessage("Voce foi teleportado para a cidade mais proxima devido a voce estar em uma Olimpiada Stadium"); } if (DimensionalRiftManager.getInstance().checkIfInRiftZone(activeChar.getX(), activeChar.getY(), activeChar.getZ(), false)) { DimensionalRiftManager.getInstance().teleportToWaitingRoom(activeChar); } if (activeChar.getClanJoinExpiryTime() > System.currentTimeMillis()) { activeChar.sendPacket(new SystemMessage(SystemMessageId.CLAN_MEMBERSHIP_TERMINATED)); } if (activeChar.getClan() != null) { activeChar.sendPacket(new PledgeSkillList(activeChar.getClan())); for (Siege siege : SiegeManager.getInstance().getSieges()) { if (!siege.getIsInProgress()) continue; if (siege.checkIsAttacker(activeChar.getClan())) activeChar.setSiegeState((byte)1); else if (siege.checkIsDefender(activeChar.getClan())) activeChar.setSiegeState((byte)2); } // Add message at connexion if clanHall not paid. // Possibly this is custom... ClanHall clanHall = ClanHallManager.getInstance().getClanHallByOwner(activeChar.getClan()); if(clanHall != null){ if(!clanHall.getPaid()){ activeChar.sendPacket(new SystemMessage(SystemMessageId.PAYMENT_FOR_YOUR_CLAN_HALL_HAS_NOT_BEEN_MADE_PLEASE_MAKE_PAYMENT_TO_YOUR_CLAN_WAREHOUSE_BY_S1_TOMORROW)); } } } if (!activeChar.isGM() && activeChar.getSiegeState() < 2 && activeChar.isInsideZone(L2Character.ZONE_SIEGE)) { // Attacker or spectator logging in to a siege zone. Actually should be checked for inside castle only? activeChar.teleToLocation(MapRegionTable.TeleportWhereType.Town); activeChar.sendMessage("Voce foi teleportado para a cidade mais proxima devido a voce estar na zona de cerco"); } RegionBBSManager.getInstance().changeCommunityBoard(); /*if(Config.GAMEGUARD_ENFORCE) - disabled by KenM will be reenabled later activeChar.sendPacket(new GameGuardQuery());*/ TvTEvent.onLogin(activeChar); } /** * @param activeChar */ private void engage(L2PcInstance cha) { int _chaid = cha.getObjectId(); for(Couple cl: CoupleManager.getInstance().getCouples()) { if(cl.getPlayer1Id()==_chaid || cl.getPlayer2Id()==_chaid) { if(cl.getMaried()) cha.setMarried(true); cha.setCoupleId(cl.getId()); if(cl.getPlayer1Id()==_chaid) { cha.setPartnerId(cl.getPlayer2Id()); } else { cha.setPartnerId(cl.getPlayer1Id()); } } } } /** * @param activeChar partnerid */ private void notifyPartner(L2PcInstance cha,int partnerId) { if(cha.getPartnerId()!=0) { L2PcInstance partner; partner = (L2PcInstance)L2World.getInstance().findObject(cha.getPartnerId()); if (partner != null) { partner.sendMessage("Your Partner has logged in"); } partner = null; } } /** * @param activeChar */ private void notifyFriends(L2PcInstance cha) { java.sql.Connection con = null; try { con = L2DatabaseFactory.getInstance().getConnection(); PreparedStatement statement; statement = con.prepareStatement("SELECT friend_name FROM character_friends WHERE char_id=?"); statement.setInt(1, cha.getObjectId()); ResultSet rset = statement.executeQuery(); L2PcInstance friend; String friendName; SystemMessage sm = new SystemMessage(SystemMessageId.FRIEND_S1_HAS_LOGGED_IN); sm.addString(cha.getName()); while (rset.next()) { friendName = rset.getString("friend_name"); friend = L2World.getInstance().getPlayer(friendName); if (friend != null) //friend logged in. { friend.sendPacket(new FriendList(friend)); friend.sendPacket(sm); } } sm = null; rset.close(); statement.close(); } catch (Exception e) { _log.warning("could not restore friend data:"+e); } finally { try {con.close();} catch (Exception e){} } } /** * @param activeChar */ private void notifyClanMembers(L2PcInstance activeChar) { L2Clan clan = activeChar.getClan(); if (clan != null) { clan.getClanMember(activeChar.getName()).setPlayerInstance(activeChar); SystemMessage msg = new SystemMessage(SystemMessageId.CLAN_MEMBER_S1_LOGGED_IN); msg.addString(activeChar.getName()); clan.broadcastToOtherOnlineMembers(msg, activeChar); msg = null; clan.broadcastToOtherOnlineMembers(new PledgeShowMemberListUpdate(activeChar), activeChar); if (activeChar.getClan() != null) { //you probably have something here to check the player's clan hall and stuff if(activeChar.getClan().isNoticeEnabled() && activeChar.getClan().getNotice()!="") { sendPacket(new NpcHtmlMessage(1, "<html><body><center><font color=\"LEVEL\">"+activeChar.getClan().getName()+" Clan Notice</font></center><br>"+activeChar.getClan().getNotice()+"</body></html>")); } } } } /** * @param activeChar */ private void notifySponsorOrApprentice(L2PcInstance activeChar) { if (activeChar.getSponsor() != 0) { L2PcInstance sponsor = (L2PcInstance)L2World.getInstance().findObject(activeChar.getSponsor()); if (sponsor != null) { SystemMessage msg = new SystemMessage(SystemMessageId.YOUR_APPRENTICE_S1_HAS_LOGGED_IN); msg.addString(activeChar.getName()); sponsor.sendPacket(msg); } } else if (activeChar.getApprentice() != 0) { L2PcInstance apprentice = (L2PcInstance)L2World.getInstance().findObject(activeChar.getApprentice()); if (apprentice != null) { SystemMessage msg = new SystemMessage(SystemMessageId.YOUR_SPONSOR_S1_HAS_LOGGED_IN); msg.addString(activeChar.getName()); apprentice.sendPacket(msg); } } } /** * @param string * @return * @throws UnsupportedEncodingException */ private String getText(String string) { try { String result = new String(Base64.decode(string), "UTF-8"); return result; } catch (UnsupportedEncodingException e) { // huh, UTF-8 is not supported? :) return null; } } private void loadTutorial(L2PcInstance player) { QuestState qs = player.getQuestState("255_Tutorial"); if(qs != null) qs.getQuest().notifyEvent("UC", null, player); } /* (non-Javadoc) * @see com.it.br.gameserver.clientpackets.ClientBasePacket#getType() */ @Override public String getType() { return _C__03_ENTERWORLD; } private void notifyCastleOwner(L2PcInstance activeChar) { L2Clan clan = activeChar.getClan(); if (clan != null) { if (clan.getHasCastle() > 0) { Castle castle = CastleManager.getInstance().getCastleById(clan.getHasCastle()); if ((castle != null) && (activeChar.getObjectId() == clan.getLeaderId())) Announcements.getInstance().announceToAll("Lord " + activeChar.getName() + " Ruler Of " + castle.getName() + " Castle is Now Online!"); } } } private void setPledgeClass(L2PcInstance activeChar) { int pledgeClass = 0; if ( activeChar.getClan() != null) pledgeClass = activeChar.getClan().getClanMember(activeChar.getObjectId()).calculatePledgeClass(activeChar); if (activeChar.isNoble() && pledgeClass < 5) pledgeClass = 5; if (activeChar.isHero()) pledgeClass = 8; activeChar.setPledgeClass(pledgeClass); } }
-
tpt to evala etc opws m eipe kai m vgazei auto [javac] C:\Program Files\eclipse\workspace\L2JBrasil_CORE\java\com\it\br\gameserver\clientpackets\EnterWorld.java:321: ')' expected [javac] activeChar.getAppearance().setNameColor(8000FF); [javac] ^ [javac] C:\Program Files\eclipse\workspace\L2JBrasil_CORE\java\com\it\br\gameserver\clientpackets\EnterWorld.java:321: illegal start of expression [javac] activeChar.getAppearance().setNameColor(8000FF); [javac] ^ [javac] 2 errors BUILD FAILED kai to evala etc : if (Config.SERVER_NEWS) { String serverNews = HtmCache.getInstance().getHtm("data/html/servnews.htm"); if (serverNews != null) sendPacket(new NpcHtmlMessage(1, serverNews)); if (activeChar.getPvpKills()>= 100) { activeChar.getAppearance().setNameColor(FF9200); } if (activeChar.getPvpKills()>= 200) { activeChar.getAppearance().setNameColor(FFEE00); } if (activeChar.getPvpKills()>= 300) { activeChar.getAppearance().setNameColor(FF0000); } if (activeChar.getPvpKills()>= 400) { activeChar.getAppearance().setNameColor(8000FF); } if (activeChar.getPvpKills()>= 500) { activeChar.getAppearance().setNameColor(000000); } }
-
re pedia evala ex8es java code sto enterworld.java ala mou vgazei field otan kanw build [javac] activeChar.getAppearance().setNameColor(8000FF); [javac] ^ [javac] C:\Program Files\eclipse\workspace\L2JBrasil_CORE\java\com\it\br\gameserver\clientpackets\EnterWorld.java:603: illegal start of expression [javac] activeChar.getAppearance().setNameColor(8000FF); [javac] ^ [javac] 2 errors BUILD FAILED kai to evala etc @Override public String getType() { return _C__03_ENTERWORLD; if (activeChar.getPvpKills()>= 100) { activeChar.getAppearance().setNameColor(FF9200); } if (activeChar.getPvpKills()>= 200) { activeChar.getAppearance().setNameColor(FFEE00); } if (activeChar.getPvpKills()>= 300) { activeChar.getAppearance().setNameColor(FF0000); } if (activeChar.getPvpKills()>= 400) { activeChar.getAppearance().setNameColor(8000FF); } if (activeChar.getPvpKills()>= 500) { activeChar.getAppearance().setNameColor(000000); } } private void notifyCastleOwner(L2PcInstance activeChar) { L2Clan clan = activeChar.getClan(); if (clan != null) { if (clan.getHasCastle() > 0) { Castle castle = CastleManager.getInstance().getCastleById(clan.getHasCastle()); if ((castle != null) && (activeChar.getObjectId() == clan.getLeaderId())) Announcements.getInstance().announceToAll("Lord " + activeChar.getName() + " Ruler Of " + castle.getName() + " Castle is Now Online!"); } } } private void setPledgeClass(L2PcInstance activeChar) { int pledgeClass = 0; if ( activeChar.getClan() != null) pledgeClass = activeChar.getClan().getClanMember(activeChar.getObjectId()).calculatePledgeClass(activeChar); if (activeChar.isNoble() && pledgeClass < 5) pledgeClass = 5; if (activeChar.isHero()) pledgeClass = 8; activeChar.setPledgeClass(pledgeClass); } } ti ekana la8os?
-
ok file to ekana ala molis paw na kanw build m vgazei auto [javac] activeChar.getAppearance().setNameColor(8000FF); [javac] ^ [javac] C:\Program Files\eclipse\workspace\L2JBrasil_CORE\java\com\it\br\gameserver\clientpackets\EnterWorld.java:603: illegal start of expression [javac] activeChar.getAppearance().setNameColor(8000FF); [javac] ^ [javac] 2 errors BUILD FAILED kai to evala etc @Override public String getType() { return _C__03_ENTERWORLD; if (activeChar.getPvpKills()>= 100) { activeChar.getAppearance().setNameColor(FF9200); } if (activeChar.getPvpKills()>= 200) { activeChar.getAppearance().setNameColor(FFEE00); } if (activeChar.getPvpKills()>= 300) { activeChar.getAppearance().setNameColor(FF0000); } if (activeChar.getPvpKills()>= 400) { activeChar.getAppearance().setNameColor(8000FF); } if (activeChar.getPvpKills()>= 500) { activeChar.getAppearance().setNameColor(000000); } } private void notifyCastleOwner(L2PcInstance activeChar) { L2Clan clan = activeChar.getClan(); if (clan != null) { if (clan.getHasCastle() > 0) { Castle castle = CastleManager.getInstance().getCastleById(clan.getHasCastle()); if ((castle != null) && (activeChar.getObjectId() == clan.getLeaderId())) Announcements.getInstance().announceToAll("Lord " + activeChar.getName() + " Ruler Of " + castle.getName() + " Castle is Now Online!"); } } } private void setPledgeClass(L2PcInstance activeChar) { int pledgeClass = 0; if ( activeChar.getClan() != null) pledgeClass = activeChar.getClan().getClanMember(activeChar.getObjectId()).calculatePledgeClass(activeChar); if (activeChar.isNoble() && pledgeClass < 5) pledgeClass = 5; if (activeChar.isHero()) pledgeClass = 8; activeChar.setPledgeClass(pledgeClass); } } ti ekana la8os?
-
re pedia pou einai to enterworld.java sto l2j brasil pack dn to vriskw me tpt gt 8elw na valw auto http://www.maxcheaters.com/forum/index.php?topic=140242.0
-
[GR][HELP]Pws kanw tin giran na einai me xorto?
kegas replied to G1annhs08's topic in [Request] Client Dev Help
x0ax0a0x0ax0a0x kalo000 -
pedia akuro dn einai to multisell ta vgazei kai mporeis na ta agoraseis ala vgazei maura deite kiolas:
-
tlk pedia dokimasa na to kanw mesa apo ta admin ekei sta item egrapsa to id kai m ta dinei eno sto multisel oti kai an dokimasa m vgazei kati maura na deite kai to multisel <?xml version='1.0' encoding='utf-8'?> <!-- Winner Shop --> <list> <!--Event Shop--> <item id="1"> <production id="60039" count="1"/> <ingredient id="5575" count="500000"/> </item> <item id="2"> <production id="60040" count="1"/> <ingredient id="57" count="500000000"/> </item> <item id="3"> <production id="60041" count="1"/> <ingredient id="57" count="500000000"/> </item> <item id="4"> <production id="60042" count="1"/> <ingredient id="57" count="500000000"/> </item> <item id="5"> <production id="60043" count="1"/> <ingredient id="57" count="500000000"/> </item> <item id="6"> <production id="60044" count="1"/> <ingredient id="57" count="500000000"/> </item> <item id="7"> <production id="60045" count="1"/> <ingredient id="57" count="500000000"/> </item> <item id="8"> <production id="60046" count="1"/> <ingredient id="57" count="500000000"/> <ingredient id="5575" count="500000"/> <ingredient id="6622" count="2"/> </item> <item id="9"> <production id="60047" count="1"/> <ingredient id="57" count="500000000"/> <ingredient id="5575" count="500000"/> <ingredient id="6622" count="2"/> </item> <item id="10"> <production id="60048" count="1"/> <ingredient id="57" count="500000000"/> <ingredient id="5575" count="500000"/> <ingredient id="6622" count="2"/> </item> <item id="11"> <production id="60049" count="1"/> <ingredient id="57" count="500000000"/> <ingredient id="5575" count="500000"/> <ingredient id="6622" count="2"/> </item> <item id="12"> <production id="60050" count="1"/> <ingredient id="57" count="500000000"/> <ingredient id="5575" count="500000"/> <ingredient id="6622" count="2"/> </item> <item id="13"> <production id="60051" count="1"/> <ingredient id="57" count="500000000"/> <ingredient id="5575" count="500000"/> <ingredient id="6622" count="2"/> </item> <item id="14"> <production id="60052" count="1"/> <ingredient id="57" count="500000000"/> <ingredient id="5575" count="500000"/> <ingredient id="6622" count="2"/> </item> <item id="15"> <production id="60053" count="1"/> <ingredient id="57" count="500000000"/> <ingredient id="5575" count="500000"/> <ingredient id="6622" count="2"/> </item> <item id="16"> <production id="60054" count="1"/> <ingredient id="57" count="500000000"/> <ingredient id="5575" count="500000"/> <ingredient id="6622" count="2"/> </item> <item id="17"> <production id="60055" count="1"/> <ingredient id="57" count="500000000"/> <ingredient id="5575" count="500000"/> <ingredient id="6622" count="2"/> </item> <item id="18"> <production id="60056" count="1"/> <ingredient id="57" count="500000000"/> <ingredient id="5575" count="500000"/> <ingredient id="6622" count="2"/> </item> <item id="19"> <production id="60057" count="1"/> <ingredient id="57" count="500000000"/> <ingredient id="5575" count="500000"/> <ingredient id="6622" count="2"/> </item> <item id="20"> <production id="60058" count="1"/> <ingredient id="57" count="500000000"/> <ingredient id="5575" count="500000"/> <ingredient id="6622" count="2"/> </item> <item id="21"> <production id="60059" count="1"/> <ingredient id="57" count="500000000"/> <ingredient id="5575" count="500000"/> <ingredient id="6622" count="2"/> </item> <item id="22"> <production id="60060" count="1"/> <ingredient id="57" count="500000000"/> <ingredient id="5575" count="500000"/> <ingredient id="6622" count="2"/> </item> <item id="23"> <production id="60061" count="1"/> <ingredient id="57" count="500000000"/> <ingredient id="5575" count="500000"/> <ingredient id="6622" count="2"/> </item> <item id="24"> <production id="60062" count="1"/> <ingredient id="57" count="500000000"/> <ingredient id="5575" count="500000"/> <ingredient id="6622" count="2"/> </item> <item id="25"> <production id="60063" count="1"/> <ingredient id="57" count="500000000"/> <ingredient id="5575" count="500000"/> <ingredient id="6622" count="2"/> </item> <item id="26"> <production id="60064" count="1"/> <ingredient id="57" count="500000000"/> <ingredient id="5575" count="500000"/> <ingredient id="6622" count="2"/> </item> <item id="27"> <production id="60065" count="1"/> <ingredient id="57" count="500000000"/> <ingredient id="5575" count="500000"/> <ingredient id="6622" count="2"/> </item> <item id="28"> <production id="60066" count="1"/> <ingredient id="57" count="500000000"/> <ingredient id="5575" count="500000"/> <ingredient id="6622" count="2"/> </item> <item id="29"> <production id="60067" count="1"/> <ingredient id="57" count="500000000"/> <ingredient id="5575" count="500000"/> <ingredient id="6622" count="2"/> </item> <item id="30"> <production id="60068" count="1"/> <ingredient id="57" count="500000000"/> <ingredient id="5575" count="500000"/> <ingredient id="6622" count="2"/> </item> <item id="31"> <production id="60069" count="1"/> <ingredient id="57" count="500000000"/> <ingredient id="5575" count="500000"/> <ingredient id="6622" count="2"/> </item> <item id="32"> <production id="60070" count="1"/> <ingredient id="57" count="500000000"/> <ingredient id="5575" count="500000"/> <ingredient id="6622" count="2"/> </item> <item id="33"> <production id="60071" count="1"/> <ingredient id="57" count="500000000"/> <ingredient id="5575" count="500000"/> <ingredient id="6622" count="2"/> </item> <item id="34"> <production id="60072" count="1"/> <ingredient id="57" count="500000000"/> <ingredient id="5575" count="500000"/> <ingredient id="6622" count="2"/> </item> <item id="35"> <production id="60073" count="1"/> <ingredient id="57" count="500000000"/> <ingredient id="5575" count="500000"/> <ingredient id="6622" count="2"/> </item> <item id="36"> <production id="60074" count="1"/> <ingredient id="57" count="500000000"/> <ingredient id="5575" count="500000"/> <ingredient id="6622" count="2"/> </item> <item id="37"> <production id="60075" count="1"/> <ingredient id="57" count="500000000"/> <ingredient id="5575" count="500000"/> <ingredient id="6622" count="2"/> </item> <item id="38"> <production id="60076" count="1"/> <ingredient id="57" count="500000000"/> <ingredient id="5575" count="500000"/> <ingredient id="6622" count="2"/> </item> </list>
-
eftiaxa ena shop me multisel perasa ta id tou ola kala ala tpt m dn m ta dixnei epsaxa an ekana kapios la8os sto multisel ala tpt
-
nai ola ala tpt
