- 0
-
Quem Está Navegando
- Nenhum usuário registrado visualizando esta página.
-
Posts
-
Los links estan caidos 😞
-
Olá, seu tópico se encontra com um ou mais links offline. Caso ainda possua o conteúdo, favor postar aqui mesmo no tópico ou mandar MP para algum staff que estaremos normalizando o tópico. Grato pela atenção!
-
Olá, é possível obter o arquivo para esses ícones? Olá, é possível obter o arquivo para esses ícones?
-
Voce usar a conta de admin q vc tem no server, vai em accounts e define o acess_level la. e vc entra auto. Eu tenho uma versão desse votesystem q tentei atualizar e com tutorial so acessar o link na minha assinatura em baixo.
-
Por Heverton Molina · Postado
Gente eu instalei aqui no meu servidor porem não sei qual e a senha pra entrar eu crio o login de admin mas e a senha onde eu coloco? -
Por juniinxt007 · Postado
Todos os Links dele Estao OFF -
Por JefersonFelisbino · Postado
Boa ! O icone dos agathions esta fora do ar "/ estou precisando -
Por juniinxt007 · Postado
Alguem pela misericordia teria o link dos Set S PVP e de todas as armas S coloridas PVP? @AllInOne -
Por L2BloodyWar · Postado
eu tava com um projeto acis 398 mais o java era 11 ai nao sei atualizar e desistir fui olhar essa lucera, mal tem arquivos sobre ele entao eo projeto mais atual ? se alguem tiver uma sourve/rev ja compilada boa fico a dispor no chat! meu intuito e aprender e tbm por online mais bem la na frente ai a 398 era limpa mais falaram que estava muito desatualizada e eu ia ter problema pra add qualquer coisa
-
Pergunta
xninho
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:
// 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
Link para o comentário
Compartilhar em outros sites
0 respostass a esta questão
Posts recomendados
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.