Ir para conteúdo
  • Cadastre-se

xninho

Membro
  • Total de itens

    30
  • Registro em

  • Última visita

Sobre xninho

Últimos Visitantes

O bloco dos últimos visitantes está desativado e não está sendo visualizado por outros usuários.

xninho's Achievements

Aprendiz de Novato

Aprendiz de Novato (1/14)

2

Reputação

  1. xninho

    Alguem ajuda

    Ola Pessoal, to tentando compilar o Arquivo EnterWorld.java mas da o seguinte erro.... alguem poderia corrigir isso pra mim, grato Ele é assim: // Decompiled by DJ v3.11.11.95 Copyright 2009 Atanas Neshkov Date: 24/06/2014 23:14:33 // Home Page: http://members.fortu...kov.com/dj.html - Check often for new version! // Decompiler options: packimports(3) // Source File Name: EnterWorld.java package net.l2jstrike.gameserver.network.clientpackets; import java.io.File; import java.text.SimpleDateFormat; import java.util.*; import java.util.logging.Logger; import java.util.regex.*; import javolution.util.FastList; import net.l2jstrike.Config; import net.l2jstrike.crypt.nProtect; import net.l2jstrike.gameserver.PvPColorSystem; import net.l2jstrike.gameserver.cache.HtmCache; import net.l2jstrike.gameserver.communitybbs.Manager.RegionBBSManager; import net.l2jstrike.gameserver.controllers.GameTimeController; import net.l2jstrike.gameserver.datatables.*; import net.l2jstrike.gameserver.datatables.csv.MapRegionTable; import net.l2jstrike.gameserver.datatables.sql.AdminCommandAccessRights; import net.l2jstrike.gameserver.handler.custom.CustomWorldHandler; import net.l2jstrike.gameserver.managers.*; import net.l2jstrike.gameserver.model.*; import net.l2jstrike.gameserver.model.actor.appearance.PcAppearance; import net.l2jstrike.gameserver.model.actor.instance.*; import net.l2jstrike.gameserver.model.base.*; import net.l2jstrike.gameserver.model.entity.*; import net.l2jstrike.gameserver.model.entity.event.*; import net.l2jstrike.gameserver.model.entity.olympiad.Olympiad; import net.l2jstrike.gameserver.model.entity.sevensigns.SevenSigns; import net.l2jstrike.gameserver.model.entity.siege.*; import net.l2jstrike.gameserver.model.quest.Quest; import net.l2jstrike.gameserver.model.quest.QuestState; import net.l2jstrike.gameserver.network.*; import net.l2jstrike.gameserver.network.serverpackets.*; import net.l2jstrike.gameserver.powerpak.PowerPakConfig; import net.l2jstrike.gameserver.thread.TaskPriority; import net.l2jstrike.gameserver.thread.ThreadPoolManager; import net.l2jstrike.gameserver.util.Util; // Referenced classes of package net.l2jstrike.gameserver.network.clientpackets: // L2GameClientPacket public class EnterWorld extends L2GameClientPacket { public EnterWorld() { df = new SimpleDateFormat("dd MM yyyy"); } public TaskPriority getPriority() { return TaskPriority.PR_URGENT; } protected void readImpl() { } protected void runImpl() { L2PcInstance activeChar = ((L2GameClient)getClient()).getActiveChar(); _onlineplayers.add(activeChar); PvPColorSystem pvpcolor = new PvPColorSystem(); pvpcolor.updateNameColor(activeChar); pvpcolor.updateTitleColor(activeChar); if(activeChar == null) { _log.warning("EnterWorld failed! activeChar is null..."); ((L2GameClient)getClient()).closeNow(); return; } activeChar.setLocked(true); if(L2World.getInstance().findObject(activeChar.getObjectId()) != null && Config.DEBUG) _log.warning((new StringBuilder()).append("DEBUG ").append(getType()).append(": User already exist in OID map! User ").append(activeChar.getName()).append(" is character clone").toString()); if(!activeChar.isGM() && !activeChar.isDonator() && Config.CHECK_NAME_ON_LOGIN && (activeChar.getName().length() < 3 || activeChar.getName().length() > 16 || !Util.isAlphaNumeric(activeChar.getName()) || !isValidName(activeChar.getName()))) { _log.warning((new StringBuilder()).append("Charname: ").append(activeChar.getName()).append(" is invalid. EnterWorld failed.").toString()); ((L2GameClient)getClient()).closeNow(); return; } activeChar.setOnlineStatus(true); activeChar.setRunning(); activeChar.standUp(); activeChar.broadcastKarma(); if(Config.L2JMOD_ALLOW_WEDDING) { engage(activeChar); notifyPartner(activeChar, activeChar.getPartnerId()); } EnterGM(activeChar); Quest.playerEnter(activeChar); activeChar.sendPacket(new QuestList()); if(Config.PLAYER_SPAWN_PROTECTION > 0) activeChar.setProtection(true); activeChar.spawnMe(activeChar.getX(), activeChar.getY(), activeChar.getZ()); if(SevenSigns.getInstance().isSealValidationPeriod()) sendPacket(new SignsSky()); if(Config.STORE_SKILL_COOLTIME) activeChar.restoreEffects(); activeChar.sendPacket(new EtcStatusUpdate(activeChar)); L2Effect effects[] = activeChar.getAllEffects(); L2ItemInstance arr$[]; int len$; if(effects != null) { arr$ = effects; len$ = arr$.length; for(int i$ = 0; i$ < len$; i$++) { L2Effect e = arr$[i$]; if(e.getEffectType() == net.l2jstrike.gameserver.model.L2Effect.EffectType.HEAL_OVER_TIME) { activeChar.stopEffects(net.l2jstrike.gameserver.model.L2Effect.EffectType.HEAL_OVER_TIME); activeChar.removeEffect(e); } if(e.getEffectType() == net.l2jstrike.gameserver.model.L2Effect.EffectType.COMBAT_POINT_HEAL_OVER_TIME) { activeChar.stopEffects(net.l2jstrike.gameserver.model.L2Effect.EffectType.COMBAT_POINT_HEAL_OVER_TIME); activeChar.removeEffect(e); } } } arr$ = activeChar.getInventory().getAugmentedItems(); len$ = arr$.length; for(int i$ = 0; i$ < len$; i$++) { L2ItemInstance temp = arr$[i$]; if(temp != null && temp.isEquipped()) temp.getAugmentation().applyBoni(activeChar); } 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(Config.MAX_ITEM_ENCHANT_KICK > 0) { arr$ = activeChar.getInventory().getItems(); len$ = arr$.length; for(int i$ = 0; i$ < len$; i$++) { L2ItemInstance i = arr$[i$]; if(!activeChar.isGM() && i.isEquipable() && i.getEnchantLevel() > Config.MAX_ITEM_ENCHANT_KICK) { activeChar.getInventory().destroyItem(null, i, activeChar, null); activeChar.sendMessage("[server]: You have over enchanted items you will be kicked from server!"); activeChar.sendMessage("[server]: Respect our server rules."); sendPacket(new ExShowScreenMessage(" You have an over enchanted item, you will be kicked from server! ", 6000)); Util.handleIllegalPlayerAction(activeChar, (new StringBuilder()).append("Player ").append(activeChar.getName()).append(" has Overenchanted item! Kicked! ").toString(), Config.DEFAULT_PUNISH); _log.info("#### ATTENTION ####"); _log.info((new StringBuilder()).append(i).append(" item has been removed from ").append(activeChar).toString()); } } } activeChar.restoreCustomStatus(); ColorSystem(activeChar); ExStorageMaxCount esmc = new ExStorageMaxCount(activeChar); activeChar.sendPacket(esmc); activeChar.getMacroses().sendUpdate(); sendPacket(new ClientSetTime()); sendPacket(new UserInfo(activeChar)); sendPacket(new HennaInfo(activeChar)); sendPacket(new FriendList(activeChar)); sendPacket(new ItemList(activeChar, false)); sendPacket(new ShortCutInit(activeChar)); activeChar.sendSkillList(); activeChar.getInventory().reloadEquippedItems(); sendPacket(new SystemMessage(SystemMessageId.WELCOME_TO_LINEAGE)); if(Config.NEW_PLAYER_AIO_ENTER) { activeChar.setAio(true); activeChar.setAioEndTime(Config.NEW_AIO_PERIOD); activeChar.rewardAioSkills(); activeChar.sendMessage((new StringBuilder()).append("Congratulations ").append(activeChar.getName()).append(" enter aio stats!.").toString()); if(Config.ALLOW_AIO_NCOLOR && activeChar.isAio()) activeChar.getAppearance().setNameColor(Config.AIO_NCOLOR); if(Config.ALLOW_AIO_TCOLOR && activeChar.isAio()) activeChar.getAppearance().setTitleColor(Config.AIO_TCOLOR); if(activeChar.isAio()) onEnterAio(activeChar); } SevenSigns.getInstance().sendCurrentPeriodMsg(activeChar); Announcements.getInstance().showAnnouncements(activeChar); loadTutorial(activeChar); CrownManager.getInstance().checkCrowns(activeChar); if(Config.CHECK_SKILLS_ON_ENTER && !Config.ALT_GAME_SKILL_LEARN && !activeChar.isAio()) activeChar.checkAllowedSkills(); PetitionManager.getInstance().checkPetitionMessages(activeChar); if(activeChar.getClanId() != 0 && activeChar.getClan() != null) { sendPacket(new PledgeShowMemberListAll(activeChar.getClan(), activeChar)); sendPacket(new PledgeStatusChanged(activeChar.getClan())); } if(activeChar.isAlikeDead()) sendPacket(new Die(activeChar)); if(Config.ALLOW_WATER) activeChar.checkWaterState(); if(Config.ENABLE_HITMAN_EVENT) Hitman.getInstance().onEnterWorld(activeChar); if(Hero.getInstance().getHeroes() != null && Hero.getInstance().getHeroes().containsKey(Integer.valueOf(activeChar.getObjectId()))) activeChar.setIsHero(true); setPledgeClass(activeChar); Iterator i$ = activeChar.getFriendList().iterator(); do { if(!i$.hasNext()) break; String name = (String)i$.next(); L2PcInstance friend = L2World.getInstance().getPlayer(name); if(friend != null) friend.sendPacket((new SystemMessage(SystemMessageId.FRIEND_S1_HAS_LOGGED_IN)).addString(activeChar.getName())); } while(true); notifyClanMembers(activeChar); notifySponsorOrApprentice(activeChar); activeChar.setTarget(activeChar); activeChar.onPlayerEnter(); if(Config.PCB_ENABLE) activeChar.showPcBangWindow(); if(Config.ANNOUNCE_CASTLE_LORDS) notifyCastleOwner(activeChar); if(Olympiad.getInstance().playerInStadia(activeChar)) { activeChar.teleToLocation(net.l2jstrike.gameserver.datatables.csv.MapRegionTable.TeleportWhereType.Town); activeChar.sendMessage("You have been teleported to the nearest town due to you being in an Olympiad 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())); i$ = SiegeManager.getInstance().getSieges().iterator(); do { if(!i$.hasNext()) break; Siege siege = (Siege)i$.next(); if(!siege.getIsInProgress()) continue; if(siege.checkIsAttacker(activeChar.getClan())) { activeChar.setSiegeState((byte)1); break; } if(!siege.checkIsDefender(activeChar.getClan())) continue; activeChar.setSiegeState((byte)2); break; } while(true); i$ = FortSiegeManager.getInstance().getSieges().iterator(); do { if(!i$.hasNext()) break; FortSiege fortsiege = (FortSiege)i$.next(); if(!fortsiege.getIsInProgress()) continue; if(fortsiege.checkIsAttacker(activeChar.getClan())) { activeChar.setSiegeState((byte)1); break; } if(!fortsiege.checkIsDefender(activeChar.getClan())) continue; activeChar.setSiegeState((byte)2); break; } while(true); ClanHall clanHall = ClanHallManager.getInstance().getClanHallByOwner(activeChar.getClan()); if(clanHall != null && !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(4)) { activeChar.teleToLocation(net.l2jstrike.gameserver.datatables.csv.MapRegionTable.TeleportWhereType.Town); activeChar.sendMessage("You have been teleported to the nearest town due to you being in siege zone"); } RegionBBSManager.getInstance().changeCommunityBoard(); CustomWorldHandler.getInstance().enterWorld(activeChar); if(TvT._savePlayers.contains(activeChar.getName())) TvT.addDisconnectedPlayer(activeChar); if(CTF._savePlayers.contains(activeChar.getName())) CTF.addDisconnectedPlayer(activeChar); if(DM._savePlayers.contains(activeChar.getName())) DM.addDisconnectedPlayer(activeChar); if(!activeChar.checkMultiBox()) { activeChar.sendMessage("I'm sorry, but multibox is not allowed here."); activeChar.logout(); } Hellows(activeChar); if(Config.ALLOW_CLASS_MASTERS && Config.ALLOW_REMOTE_CLASS_MASTERS) { L2ClassMasterInstance master_instance = L2ClassMasterInstance.getInstance(); if(master_instance != null) { ClassLevel lvlnow = PlayerClass.values()[activeChar.getClassId().getId()].getLevel(); if(activeChar.getLevel() >= 20 && lvlnow == ClassLevel.First) L2ClassMasterInstance.getInstance().onAction(activeChar); else if(activeChar.getLevel() >= 40 && lvlnow == ClassLevel.Second) L2ClassMasterInstance.getInstance().onAction(activeChar); else if(activeChar.getLevel() >= 76 && lvlnow == ClassLevel.Third) L2ClassMasterInstance.getInstance().onAction(activeChar); } else { _log.info("Attention: Remote ClassMaster is Enabled, but not inserted into DataBase. Remember to install 31288 Custom_Npc .."); } } if(activeChar.getRace().ordinal() == 2) { L2Skill skill = SkillTable.getInstance().getInfo(294, 1); if(skill != null && activeChar.getSkillLevel(294) == 1) if(GameTimeController.getInstance().isNowNight()) { SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.NIGHT_EFFECT_APPLIES); sm.addSkillName(294); sendPacket(sm); } else { SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.DAY_EFFECT_DISAPPEARS); sm.addSkillName(294); sendPacket(sm); } } if(PowerPakConfig.BUFFER_ENABLED) CharSchemesTable.getInstance().onPlayerLogin(activeChar.getObjectId()); if(!nProtect.getInstance().checkRestriction(activeChar, net.l2jstrike.crypt.nProtect.RestrictionType.RESTRICT_ENTER, new Object[0])) { activeChar.setIsImobilised(true); activeChar.disableAllSkills(); ThreadPoolManager.getInstance().scheduleGeneral(new Disconnection(activeChar), 20000L); } activeChar.setLocked(false); } private boolean isValidName(String text) { boolean result = true; String test = text; Pattern pattern; try { pattern = Pattern.compile(Config.CNAME_TEMPLATE); } catch(PatternSyntaxException e) { if(Config.ENABLE_ALL_EXCEPTIONS) e.printStackTrace(); _log.warning((new StringBuilder()).append("ERROR ").append(getType()).append(": Character name pattern of config is wrong!").toString()); pattern = Pattern.compile(".*"); } Matcher regexp = pattern.matcher(test); if(!regexp.matches()) result = false; return result; } private void EnterGM(L2PcInstance activeChar) { if(activeChar.isGM()) { if(Config.GM_SPECIAL_EFFECT) activeChar.broadcastPacket(new Earthquake(activeChar.getX(), activeChar.getY(), activeChar.getZ(), 50, 4)); if(Config.SHOW_GM_LOGIN) Announcements.getInstance().announceToAll((new StringBuilder()).append("GM ").append(activeChar.getName()).append(" has logged on.").toString()); if(Config.GM_STARTUP_INVULNERABLE && AdminCommandAccessRights.getInstance().hasAccess("admin_invul", activeChar.getAccessLevel())) activeChar.setIsInvul(true); if(Config.GM_STARTUP_INVISIBLE && AdminCommandAccessRights.getInstance().hasAccess("admin_invisible", activeChar.getAccessLevel())) activeChar.getAppearance().setInvisible(); if(Config.GM_STARTUP_SILENCE && AdminCommandAccessRights.getInstance().hasAccess("admin_silence", activeChar.getAccessLevel())) activeChar.setMessageRefusal(true); if(Config.GM_STARTUP_AUTO_LIST && AdminCommandAccessRights.getInstance().hasAccess("admin_gmliston", activeChar.getAccessLevel())) GmListTable.getInstance().addGm(activeChar, false); else GmListTable.getInstance().addGm(activeChar, true); activeChar.updateGmNameTitleColor(); } } private void Hellows(L2PcInstance activeChar) { if(Config.ALT_SERVER_NAME_ENABLED) sendPacket((new SystemMessage(SystemMessageId.S1_S2)).addString((new StringBuilder()).append("Welcome to ").append(Config.ALT_Server_Name).toString())); if(Config.ONLINE_PLAYERS_ON_LOGIN) sendPacket((new SystemMessage(SystemMessageId.S1_S2)).addString((new StringBuilder()).append("There are ").append(L2World.getInstance().getAllPlayers().size()).append(" players online.").toString())); if(activeChar.getFirstLog() && Config.NEW_PLAYER_EFFECT) { L2Skill skill = SkillTable.getInstance().getInfo(2025, 1); if(skill != null) { MagicSkillUser MSU = new MagicSkillUser(activeChar, activeChar, 2025, 1, 1, 0); activeChar.sendPacket(MSU); activeChar.broadcastPacket(MSU); activeChar.useMagic(skill, false, false); } activeChar.setFirstLog(false); activeChar.updateFirstLog(); } if(Config.WELCOME_HTM && isValidName(activeChar.getName())) { String Welcome_Path = "data/html/welcome.htm"; File mainText = new File(Config.DATAPACK_ROOT, Welcome_Path); if(mainText.exists()) { NpcHtmlMessage html = new NpcHtmlMessage(1); html.setFile(Welcome_Path); html.replace("%name%", activeChar.getName()); sendPacket(html); } } if(activeChar.getClan() != null && activeChar.getClan().isNoticeEnabled()) { String clanNotice = "data/html/clanNotice.htm"; File mainText = new File(Config.DATAPACK_ROOT, clanNotice); if(mainText.exists()) { NpcHtmlMessage html = new NpcHtmlMessage(1); html.setFile(clanNotice); html.replace("%clan_name%", activeChar.getClan().getName()); html.replace("%notice_text%", activeChar.getClan().getNotice().replaceAll("\r\n", "<br>")); sendPacket(html); } } if(SiegeRewardManager.ACTIVATED_SYSTEM && !SiegeRewardManager.REWARD_ACTIVE_MEMBERS_ONLY) SiegeRewardManager.getInstance().processWorldEnter(activeChar); if(Config.PM_MESSAGE_ON_START) { activeChar.sendPacket(new CreatureSay(2, 17, Config.PM_TEXT1, Config.PM_SERVER_NAME)); activeChar.sendPacket(new CreatureSay(15, 15, activeChar.getName(), Config.PM_TEXT2)); activeChar.sendPacket(new CreatureSay(15, 15, activeChar.getName(), Config.PM_TEXT3)); activeChar.sendPacket(new CreatureSay(15, 15, activeChar.getName(), Config.PM_TEXT4)); } if(Config.SERVER_TIME_ON_START) activeChar.sendMessage((new StringBuilder()).append("SVR time is ").append(fmt.format(new Date(System.currentTimeMillis()))).toString()); } private void ColorSystem(L2PcInstance activeChar) { if(activeChar.getClan() != null && activeChar.isClanLeader() && Config.CLAN_LEADER_COLOR_ENABLED && activeChar.getClan().getLevel() >= Config.CLAN_LEADER_COLOR_CLAN_LEVEL) if(Config.CLAN_LEADER_COLORED == 1) activeChar.getAppearance().setNameColor(Config.CLAN_LEADER_COLOR); else activeChar.getAppearance().setTitleColor(Config.CLAN_LEADER_COLOR); if(Config.ALLOW_AIO_NCOLOR && activeChar.isAio()) activeChar.getAppearance().setNameColor(Config.AIO_NCOLOR); if(Config.ALLOW_AIO_TCOLOR && activeChar.isAio()) activeChar.getAppearance().setTitleColor(Config.AIO_TCOLOR); if(activeChar.isAio()) onEnterAio(activeChar); activeChar.updateNameTitleColor(); sendPacket(new UserInfo(activeChar)); sendPacket(new HennaInfo(activeChar)); sendPacket(new FriendList(activeChar)); sendPacket(new ItemList(activeChar, false)); sendPacket(new ShortCutInit(activeChar)); activeChar.broadcastUserInfo(); activeChar.sendPacket(new EtcStatusUpdate(activeChar)); } private void onEnterAio(L2PcInstance activeChar) { long now = Calendar.getInstance().getTimeInMillis(); long endDay = activeChar.getAioEndTime(); if(now > endDay) { activeChar.setAio(false); activeChar.setAioEndTime(0L); activeChar.lostAioSkills(); activeChar.sendMessage("[Aio System]: Removed your Aio stats... period ends."); } else { Date dt = new Date(endDay); _daysleft = (endDay - now) / 0x5265c00L; if(_daysleft > 30L) activeChar.sendMessage((new StringBuilder()).append("[Aio System]: Aio period ends in ").append(df.format(dt)).append(". enjoy the Game.").toString()); else if(_daysleft > 0L) activeChar.sendMessage((new StringBuilder()).append("[Aio System]: Left ").append((int)_daysleft).append(" for Aio period ends.").toString()); else if(_daysleft < 1L) { long hour = (endDay - now) / 0x36ee80L; activeChar.sendMessage((new StringBuilder()).append("[Aio System]: Left ").append((int)hour).append(" hours to Aio period ends.").toString()); } } } private void engage(L2PcInstance cha) { int _chaid = cha.getObjectId(); Iterator i$ = CoupleManager.getInstance().getCouples().iterator(); do { if(!i$.hasNext()) break; Wedding cl = (Wedding)i$.next(); if(cl.getPlayer1Id() == _chaid || cl.getPlayer2Id() == _chaid) { if(cl.getMaried()) { cha.setMarried(true); cha.setmarriedType(cl.getType()); } cha.setCoupleId(cl.getId()); if(cl.getPlayer1Id() == _chaid) cha.setPartnerId(cl.getPlayer2Id()); else cha.setPartnerId(cl.getPlayer1Id()); } } while(true); } private void notifyPartner(L2PcInstance cha, int partnerId) { if(cha.getPartnerId() != 0) { L2PcInstance partner = null; if(L2World.getInstance().findObject(cha.getPartnerId()) instanceof L2PcInstance) partner = (L2PcInstance)L2World.getInstance().findObject(cha.getPartnerId()); if(partner != null) partner.sendMessage("Your partner has logged in"); } } private void notifyClanMembers(L2PcInstance activeChar) { L2Clan clan = activeChar.getClan(); if(clan != null) { clan.getClanMember(activeChar.getObjectId()).setPlayerInstance(activeChar); clan.broadcastToOtherOnlineMembers((new SystemMessage(SystemMessageId.CLAN_MEMBER_S1_LOGGED_IN)).addString(activeChar.getName()), activeChar); clan.broadcastToOtherOnlineMembers(new PledgeShowMemberListUpdate(activeChar), activeChar); } } private void notifySponsorOrApprentice(L2PcInstance activeChar) { if(activeChar.getSponsor() != 0) { L2PcInstance sponsor = (L2PcInstance)L2World.getInstance().findObject(activeChar.getSponsor()); if(sponsor != null) sponsor.sendPacket((new SystemMessage(SystemMessageId.YOUR_APPRENTICE_S1_HAS_LOGGED_IN)).addString(activeChar.getName())); } else if(activeChar.getApprentice() != 0) { L2PcInstance apprentice = (L2PcInstance)L2World.getInstance().findObject(activeChar.getApprentice()); if(apprentice != null) apprentice.sendPacket((new SystemMessage(SystemMessageId.YOUR_SPONSOR_S1_HAS_LOGGED_IN)).addString(activeChar.getName())); } } private void loadTutorial(L2PcInstance player) { QuestState qs = player.getQuestState("255_Tutorial"); if(qs != null) qs.getQuest().notifyEvent("UC", null, player); } 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); } private void notifyCastleOwner(L2PcInstance activeChar) { L2Clan clan = activeChar.getClan(); if(clan != null && clan.getHasCastle() > 0) { Castle castle = CastleManager.getInstance().getCastleById(clan.getHasCastle()); if(castle != null && activeChar.getObjectId() == clan.getLeaderId()) Announcements.getInstance().announceToAll((new StringBuilder()).append("Lord ").append(activeChar.getName()).append(" Ruler Of ").append(castle.getName()).append(" Castle is now Online!").toString()); } } public void warnAllPlayers() { L2PcInstance player; NpcHtmlMessage warning; for(Iterator i$ = _onlineplayers.iterator(); i$.hasNext(); player.sendPacket(warning)) { player = (L2PcInstance)i$.next(); String file = "data/html/chaos/warning.htm"; String html = HtmCache.getInstance().getHtm(file); warning = new NpcHtmlMessage(1); warning.setHtml(html); } } public String getType() { return "[C] 03 EnterWorld"; } private static Logger _log = Logger.getLogger(net/l2jstrike/gameserver/network/clientpackets/EnterWorld.getName()); public static Vector _onlineplayers = new Vector(); private final SimpleDateFormat fmt = new SimpleDateFormat("H:mm."); private long _daysleft; SimpleDateFormat df; } Msg de erro q aparece e esse: C:\Users\Ninho\Desktop\PROJET~1\L2JSTR~1\GAMESE~1\lib\net\L2JSTR~1\GAMESE~1\network\CLIENT~1\EnterWorld.java:13: error: package javolution.util does not exist import javolution.util.FastList; ^ C:\Users\Ninho\Desktop\PROJET~1\L2JSTR~1\GAMESE~1\lib\net\L2JSTR~1\GAMESE~1\network\CLIENT~1\EnterWorld.java:110: error: incompatible types arr$ = effects; ^ required: L2ItemInstance[] found: L2Effect[] C:\Users\Ninho\Desktop\PROJET~1\L2JSTR~1\GAMESE~1\lib\net\L2JSTR~1\GAMESE~1\network\CLIENT~1\EnterWorld.java:114: error: incompatible types L2Effect e = arr$[i$]; ^ required: L2Effect found: L2ItemInstance C:\Users\Ninho\Desktop\PROJET~1\L2JSTR~1\GAMESE~1\lib\net\L2JSTR~1\GAMESE~1\network\CLIENT~1\EnterWorld.java:500: error: cannot access FastList Iterator i$ = CoupleManager.getInstance().getCouples().iterator(); ^ class file for javolution.util.FastList not found C:\Users\Ninho\Desktop\PROJET~1\L2JSTR~1\GAMESE~1\lib\net\L2JSTR~1\GAMESE~1\network\CLIENT~1\EnterWorld.java:611: error: cannot find symbol private static Logger _log = Logger.getLogger(net/l2jstrike/gameserver/network/clientpackets/EnterWorld.getName()); ^ symbol: variable net location: class EnterWorld C:\Users\Ninho\Desktop\PROJET~1\L2JSTR~1\GAMESE~1\lib\net\L2JSTR~1\GAMESE~1\network\CLIENT~1\EnterWorld.java:611: error: cannot find symbol private static Logger _log = Logger.getLogger(net/l2jstrike/gameserver/network/clientpackets/EnterWorld.getName()); ^ symbol: variable l2jstrike location: class EnterWorld C:\Users\Ninho\Desktop\PROJET~1\L2JSTR~1\GAMESE~1\lib\net\L2JSTR~1\GAMESE~1\network\CLIENT~1\EnterWorld.java:611: error: cannot find symbol private static Logger _log = Logger.getLogger(net/l2jstrike/gameserver/network/clientpackets/EnterWorld.getName()); ^ symbol: variable gameserver location: class EnterWorld C:\Users\Ninho\Desktop\PROJET~1\L2JSTR~1\GAMESE~1\lib\net\L2JSTR~1\GAMESE~1\network\CLIENT~1\EnterWorld.java:611: error: cannot find symbol private static Logger _log = Logger.getLogger(net/l2jstrike/gameserver/network/clientpackets/EnterWorld.getName()); ^ symbol: variable network location: class EnterWorld C:\Users\Ninho\Desktop\PROJET~1\L2JSTR~1\GAMESE~1\lib\net\L2JSTR~1\GAMESE~1\network\CLIENT~1\EnterWorld.java:611: error: cannot find symbol private static Logger _log = Logger.getLogger(net/l2jstrike/gameserver/network/clientpackets/EnterWorld.getName()); ^ symbol: variable clientpackets location: class EnterWorld C:\Users\Ninho\Desktop\PROJET~1\L2JSTR~1\GAMESE~1\lib\net\L2JSTR~1\GAMESE~1\network\CLIENT~1\EnterWorld.java:611: error: cannot find symbol private static Logger _log = Logger.getLogger(net/l2jstrike/gameserver/network/clientpackets/EnterWorld.getName()); ^ symbol: method getName() location: class EnterWorld Note: C:\Users\Ninho\Desktop\PROJET~1\L2JSTR~1\GAMESE~1\lib\net\L2JSTR~1\GAMESE~1\network\CLIENT~1\EnterWorld.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 10 errors
  2. xninho

    Proteção para system

    ta dificil encontra uma proteção gratuita ultimamente!! :unsure:
  3. xninho

    Set TT

    ola, alguem pode me ajuda com um problema que tenho? quero coloca 1 set TT de 4 parte no meu server mas so peito dos sets podem ir ate +20 e a outras parte possa ir ate +10 tipo: como faço pra um determinado item for enchantado ate +20 sem alterar o max enchant de +10?
  4. xninho

    (Resolvido) Ajude-me

    como faço isso? tipo import sys from com.l2jknight.util.database import L2DatabaseFactory from com.l2jknight.gameserver.model.quest import State from com.l2jknight.gameserver.model.quest import QuestState from com.l2jknight.gameserver.model.quest.jython import QuestJython as JQuest from com.l2jknight.gameserver.model.actor.instance import L2PcInstance from com.l2jknight.gameserver.model import L2Skill from java.util import Iterator from com.l2jknight.gameserver.datatables import SkillTable para? import sys from net.l2jstrike.gameserver.model.actor.instance import L2PcInstance from net.l2jstrike.util.database import L2DatabaseFactory from net.l2jstrike.gameserver.model.quest import State from net.l2jstrike.gameserver.model.quest import QuestState from net.l2jstrike.gameserver.model.quest.jython import QuestJython as JQuest Vlw mesmo agora deu Certo!!1
  5. to co o seguinte erro quando adapto qualquer NPC Buffer nessa Rev aparece o seguinte error em todos: Error on: C:\Users\Ninho\Downloads\L2JStrike V2\gameserver\data\scripts\custom\Buffer_by_Sydhe\__init__.py.error.log Line: -1 - Column: -1 Traceback (innermost last): File "__init__.py", line 2, in ? ImportError: no module named l2jkni ght <<< o nome muda de acordo com npc que colocar grato se alguem resolver pra mim..
  6. Ola Pessoal estou com uma duvida, procurei em todos os tropico sobre Launcher e não encontrei!! Tipo: eu criei um launcher e coloquei so alguns arquivos principais da system de acordo com o que alterei no serve como: npc, name, itens, weapons, armor e entre outros... so que caso eu queira mudar alguma coisa a mais e precise que o launcher do client possa faer update desses novos arquivos como faço pra que eles atualizem pelo launcher... fiz outro launcher novamente coloquei pra download mas ele so atualiza o que adicionei primeiro. alguem pode ajuda?
  7. algum ae pode me ajuda, que o script de recuperção de conta esta assim, mas qnd se tenta recupera a nova senha aparece mostrando no site em vez de enviar para o email...algum pode conserta e coloca pra enviar para email.. <div class="title_conteudo">Recuperacao de Dados</div> <center><br> <form action="" id="form1" name="form1" method="post"> Por favor, informe seu e-mail cadastrado:<br /> <input name="email" type="text" id="style-form" style="text-align:center;" placeholder="Digite Aqui O Seu Email" /> <br /> <?php if($CreateWithEmail == "true"){ echo "Sera enviado um email com uma nova senha."; }else{ echo "Uma nova senha será gerada randomicamente."; } ?> <br /><br> <input type="submit" name="button" id="style-btn" value="Recuperar" /> </form><br /> </center>
  8. ola pessoa, gostaria de saber como posso compilar uma rev. ja pre-configurada, sem SVN. q gostria de fazer alguns alteração em algumas coisas nela... ou tem algum programa q possa alterar sem precisar compilar e como faço?... Grato!!!
  9. Pessoal. vim aqui pedir uma ajuda a vocês, ja q procurei aqui e n vi nenhum tropico falando a respeito. vamos la: set ex: Draconic Leather Armor Imperial Crusader Breastplate, Imperial Crusader Gaiters bom pessoal, eu gostaria de saber como posso muda o max de enchent pra cada tipo de armorsets... ex: na Draconic Leather Armor quero coloca max+20 por ser 1 fullarmor de 1 parte so... ja na Imperial Breastplate, Imperial Crusader Gaiters quero o max +10 cada, por ser 2 parte.. mas no enchant.proprieter.. se eu coloca max+10 para armor... a draconic n passa de max + 10.. e se eu alterar max+20 todas parte vão +20 como faço para so a Draconic Amor passar do max +10 sem precisar alterar o EnchantArmorMax quero que fique no final assim ex: Draconic helm:=Max+10 Draconic Leather Armor =Max+20 <- so os que forem armor de 1 parte possar enchantar ate max+20 (ex: draconic Amor, Dark Cystal e etc) Draconic Leather Gloves =Max+10 Draconic Leather Boots =Max+10 Imperial Crusader Helmet =Max+10 Imperial Crusader Breastplate,=Max+10 Imperial Crusader Gaiters =Max+10 Imperial Crusader Gauntlets =Max+10 Imperial Crusader Boots =Max+10 alguem pode me ajuda como alterar isso? grato!! me ajudem ae por favor!!! ajuda em ae se alguem souber!!
  10. Muito bom, ajudou muito, vou tenta fazer isso
  11. xninho

    Npc Boss info !

    seria uma boa, tbm quero se algum tiver posta ae, grato!!
  12. Parabéns, otima rev.. e so edita no \gameserver\config\protected ProtectorEnchant = True >> False alguem pode me ajuda, to com 1 problema no NPC Raid Info: qnd clico em Epic Info, na aparece nada... alguem pode me infomar como conserta isso?
  13. xninho

    NPC RAID BOSS INFO

    eu tenho ja esse NPC mas quando click nele, nada aparece como conserta isso?
  14. xninho

    Npc entrega de aiox

    aff.nem da pra ver
×
×
  • Criar Novo...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.