Ir para conteúdo
  • Cadastre-se

[ Interlude ] L2J Chrome Pre-Configurado By: CaioxD


Posts recomendados

@ADM-LORDS

Olha e Bem Simples, você vai ter que abrir seu navicat, abra o db que ta instalado o servidor,depois vai em "armor"

procura o nome "filter wizard" clica nela vai abrir um esparsamento ai tem la escrito <click here to add> obviamente click nessa opção vai apareçer uma caixinha marcada com o nome ao lado "ITEM_ID" click nela e click em "Nome"

 

ai irar ficar [v]Nome contains<?> agora click onde tem essa <?> Depois digite o nome da roupa e de enter

dai e so clicar em <click here to apply> dai vai apareçer a armadura que vc quer

 

Dai vc procura a coluna chamada crystal_type

++++++++++++++++++Crystal_type

Exmplo: Dronic armor""""""""" S """"""""" <---- se tiver como "A" e que a armadura e Grade "A" entaum mude Para "S" e Pronto estar sendo grade S

 

 

Espero que com isso possa te ajudar!

Editado por l2baga

b50i4u-4.png



bannerxbe.png

Link para o comentário
Compartilhar em outros sites


systemsg-e da system linha 34 ou 94

cuidado com o flood ai.

nao é na system,

ja trokei a system e nao adiantou.. editei a system tbm ;

 

34 1 a,Welcome to our Server \

94 1 a,Welcome,dont forgot to VOTE!! \

 

nao é na system :S.. é no server só que nao acho aonde.. nas config nao é, revirei tudo por lá! :(

mais obrigado pela tentativa de ajuda :D

esperando mais respostas!!

Link para o comentário
Compartilhar em outros sites

@t4t0 ou @Lucky, me diz o nome da zona onde esta os drops ai pf?

se quizer manda tbm a localizacao pra ser mais facil ake

(ps.: dos 3 locais)

 

 

Coal Mines (AA/Spoil S) Mobs 76/82+

 

só tem essa area de drop

 

Loc: 139783, -176572, -1541

 

---------------------------------------------

 

 

esperar o caioxd logar, pq o dev do projeto sabe menos que eu -_-''

Editado por t4t0
Link para o comentário
Compartilhar em outros sites

esperar o caioxd logar, pq o dev do projeto sabe menos que eu -_-''

 

Cara o pré não é meu, não fui eu que compilei eu não fiz nada do pré.

ele pode ter mechido no enterworld ou é na system e tu que não ta achando -.-

e aqui não é area de duvidas

Editado por Lucky ♥
Link para o comentário
Compartilhar em outros sites

 

Cara o pré não é meu, não fui eu que compilei eu não fiz nada do pré.

ele pode ter mechido no enterworld ou é na system e tu que não ta achando -.-

e aqui não é area de duvidas

 

Primeiro, aqui é o topico do pré e quem esta usando posta suas duvidas aqui.. nao vo criar um topico pra duvida de um pré.

e outra

Como eu ja disse.. troquei de system e continua o mesmo erro.. axo que você nao prestou atenção nessa parte.

Agradeço pela tentativa de ajuda nao entenda nada dito aqui como grosseria :).

 

Olha o enterworld.java (Spoiler)

 

 

 

 

// Source File Name: EnterWorld.java

 

package net.sf.l2j.gameserver.network.clientpackets;

 

import java.io.UnsupportedEncodingException;

import java.sql.*;

import java.text.SimpleDateFormat;

import java.util.*;

import java.util.logging.Logger;

import javolution.util.FastList;

import net.sf.l2j.*;

import net.sf.l2j.gameserver.*;

import net.sf.l2j.gameserver.ai.CtrlIntention;

import net.sf.l2j.gameserver.ai.L2CharacterAI;

import net.sf.l2j.gameserver.cache.HtmCache;

import net.sf.l2j.gameserver.communitybbs.Manager.RegionBBSManager;

import net.sf.l2j.gameserver.datatables.AdminCommandAccessRights;

import net.sf.l2j.gameserver.datatables.MapRegionTable;

import net.sf.l2j.gameserver.instancemanager.*;

import net.sf.l2j.gameserver.model.*;

import net.sf.l2j.gameserver.model.actor.appearance.PcAppearance;

import net.sf.l2j.gameserver.model.actor.instance.L2ClassMasterInstance;

import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;

import net.sf.l2j.gameserver.model.base.*;

import net.sf.l2j.gameserver.model.entity.*;

import net.sf.l2j.gameserver.model.entity.engine.Heroes;

import net.sf.l2j.gameserver.model.entity.events.CTF;

import net.sf.l2j.gameserver.model.quest.Quest;

import net.sf.l2j.gameserver.model.quest.QuestState;

import net.sf.l2j.gameserver.network.L2GameClient;

import net.sf.l2j.gameserver.network.SystemMessageId;

import net.sf.l2j.gameserver.network.serverpackets.*;

import net.sf.l2j.gameserver.templates.L2Item;

import net.sf.l2j.gameserver.util.FloodProtector;

import net.sf.l2j.gameserver.util.Util;

import net.sf.l2j.guard.ActionType;

import net.sf.l2j.guard.CheatGuard;

 

// Referenced classes of package net.sf.l2j.gameserver.network.clientpackets:

// L2GameClientPacket

 

public class EnterWorld extends L2GameClientPacket

{

 

public EnterWorld()

{

daysleft = new SimpleDateFormat("dd MM yyyy");

df = new SimpleDateFormat("dd MM yyyy");

}

 

public TaskPriority getPriority()

{

return TaskPriority.PR_URGENT;

}

 

protected void readImpl()

{

}

 

protected void runImpl()

{

L2PcInstance activeChar = ((L2GameClient)getClient()).getActiveChar();

if(activeChar == null)

{

_log.warning("EnterWorld failed! activeChar is null...");

((L2GameClient)getClient()).closeNow();

return;

}

FloodProtector.getInstance().registerNewPlayer(activeChar.getObjectId());

if(L2World.getInstance().findObject(activeChar.getObjectId()) != null && Config.DEBUG)

_log.warning((new StringBuilder()).append("User already exist in OID map! User ").append(activeChar.getName()).append(" is character clone").toString());

if(activeChar.getClan() != null && activeChar.isClanLeader() && Config.CLAN_LEADER_COLOR_ENABLED && activeChar.getClan().getLevel() >= Config.CLAN_LEADER_COLOR_CLAN_LEVEL)

activeChar.getAppearance().setNameColor(Config.CLAN_LEADER_COLOR);

if(activeChar.getClan() != null && activeChar.isClanLeader() && Config.CLAN_LEADER_TITLE_ENABLED && activeChar.getClan().getLevel() >= Config.CLAN_LEADER_TITLE_CLAN_LEVEL)

activeChar.getAppearance().setTitleColor(Config.CLAN_LEADER_TITLE);

if(activeChar.isGM())

{

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_DIET_MODE && AdminCommandAccessRights.getInstance().hasAccess("admin_diet", activeChar.getAccessLevel()))

{

activeChar.setDietMode(true);

activeChar.refreshOverloaded();

}

if(Config.GM_STARTUP_AUTO_LIST && AdminCommandAccessRights.getInstance().hasAccess("admin_gmliston", activeChar.getAccessLevel()))

GmListTable.getInstance().addGm(activeChar, false);

else

GmListTable.getInstance().addGm(activeChar, true);

}

if(Hero.getInstance().getHeroes() != null && Hero.getInstance().getHeroes().containsKey(Integer.valueOf(activeChar.getObjectId())))

activeChar.setHero(true);

setPledgeClass(activeChar);

Heroes.getInstance().onEnterWorld(activeChar);

activeChar.getMacroses().sendUpdate();

sendPacket(new ItemList(activeChar, false));

if(Config.GAMEGUARD_ENFORCE)

{

GameGuardQuery ggq = new GameGuardQuery();

activeChar.sendPacket(ggq);

}

sendPacket(new ShortCutInit(activeChar));

activeChar.sendSkillList();

activeChar.sendPacket(new HennaInfo(activeChar));

Quest.playerEnter(activeChar);

activeChar.sendPacket(new QuestList());

loadTutorial(activeChar);

if(activeChar.getPvpKills() >= Config.PVP_AMOUNT1 && Config.PVP_COLOR_SYSTEM_ENABLED)

activeChar.updatePvPColor(activeChar.getPvpKills());

if(activeChar.getPkKills() >= Config.PK_AMOUNT1 && Config.PK_COLOR_SYSTEM_ENABLED)

activeChar.updatePkColor(activeChar.getPkKills());

L2ItemInstance arr$[] = activeChar.getInventory().getItems();

int len$ = arr$.length;

for(int i$ = 0; i$ < len$; i$++)

{

L2ItemInstance i = arr$[i$];

if((!i.isEquipable() || activeChar.isGM()) && (i.isEquipable() || activeChar.isGM()))

continue;

int itemType2 = i.getItem().getType2();

if(itemType2 == 0 && i.getEnchantLevel() > Config.ENCHANT_MAX_ALLOWED_WEAPON)

{

activeChar.getInventory().destroyItem(null, i, activeChar, null);

activeChar.sendMessage("[server]:You have Items over enchanted you will be kicked!");

Util.handleIllegalPlayerAction(activeChar, (new StringBuilder()).append("Player ").append(activeChar.getName()).append(" have item Overenchanted ").toString(), Config.DEFAULT_PUNISH);

activeChar.closeNetConnection();

_log.info("#### ATTENCTION ####");

_log.info((new StringBuilder()).append(i).append(" item has been removed from player.").toString());

return;

}

if(itemType2 == 1 && i.getEnchantLevel() > Config.ENCHANT_MAX_ALLOWED_ARMOR)

{

activeChar.getInventory().destroyItem(null, i, activeChar, null);

activeChar.sendMessage("[server]:You have Items over enchanted you will be kicked!");

Util.handleIllegalPlayerAction(activeChar, (new StringBuilder()).append("Player ").append(activeChar.getName()).append(" have item Overenchanted ").toString(), Config.DEFAULT_PUNISH);

activeChar.closeNetConnection();

_log.info("#### ATTENCTION ####");

_log.info((new StringBuilder()).append(i).append(" item has been removed from player.").toString());

return;

}

if(itemType2 == 2 && i.getEnchantLevel() > Config.ENCHANT_MAX_ALLOWED_JEWELRY)

{

activeChar.getInventory().destroyItem(null, i, activeChar, null);

activeChar.sendMessage("[server]:You have Items over enchanted you will be kicked!");

Util.handleIllegalPlayerAction(activeChar, (new StringBuilder()).append("Player ").append(activeChar.getName()).append(" have item Overenchanted ").toString(), Config.DEFAULT_PUNISH);

activeChar.closeNetConnection();

_log.info("#### ATTENCTION ####");

_log.info((new StringBuilder()).append(i).append(" item has been removed from player.").toString());

return;

}

}

 

if(Config.PLAYER_SPAWN_PROTECTION > 0)

activeChar.setProtection(true);

activeChar.spawnMe(activeChar.getX(), activeChar.getY(), activeChar.getZ());

activeChar.broadcastUserInfo();

if(activeChar.getClan() != null)

{

Iterator i$ = SiegeManager.getInstance().getSieges().iterator();

do

{

if(!i$.hasNext())

break;

Siege siege = (Siege)i$.next();

if(siege.getIsInProgress())

if(siege.checkIsAttacker(activeChar.getClan()))

activeChar.setSiegeState((byte)1);

else

if(siege.checkIsDefender(activeChar.getClan()))

activeChar.setSiegeState((byte)2);

} while(true);

}

if(activeChar.getZ() < -15000 || activeChar.getZ() > 15000)

{

activeChar.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);

activeChar.setTarget(activeChar);

activeChar.teleToLocation(net.sf.l2j.gameserver.datatables.MapRegionTable.TeleportWhereType.Town);

}

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.pccafe_event)

activeChar.showPcCafeWnd();

i$ = activeChar.getInventory().getItems();

siege = i$.length;

for(int i$ = 0; i$ < siege; i$++)

{

L2ItemInstance i = i$[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 Items over enchanted you will be kicked!");

activeChar.sendMessage("[server]:Item becames +1, but you will be Banned!");

activeChar.sendMessage("[server]:Respect the rules of the Server.");

sendPacket(new ExShowScreenMessage(" You have item Overenchanted, Kicked! ", 6000));

Util.handleIllegalPlayerAction(activeChar, (new StringBuilder()).append("Player ").append(activeChar.getName()).append(" have item > 6 ").toString(), Config.DEFAULT_PUNISH);

_log.info("#### ATENTION ####");

_log.info((new StringBuilder()).append(i).append(" item has been removed from ").append(activeChar).toString());

}

}

 

if(SevenSigns.getInstance().isSealValidationPeriod())

sendPacket(new SignsSky());

if(Config.STORE_SKILL_COOLTIME)

activeChar.restoreEffects();

if(Config.L2JMOD_ALLOW_WEDDING)

{

engage(activeChar);

notifyPartner(activeChar, activeChar.getPartnerId());

CoupleManager.getInstance().checkCouple(activeChar);

}

if(Config.ANNOUNCE_CASTLE_LORDS)

notifyCastleOwner(activeChar);

if(Config.ANNOUNCE_HERO_LOGIN && activeChar.isHero())

Announcements.getInstance().announceToAll((new StringBuilder()).append("Hero: ").append(activeChar.getName()).append(" has been logged in.").toString());

if(Config.ALLOW_VIP_NCOLOR && activeChar.isVip())

activeChar.getAppearance().setNameColor(Config.VIP_NCOLOR);

if(Config.ALLOW_VIP_TCOLOR && activeChar.isVip())

activeChar.getAppearance().setNameColor(Config.VIP_TCOLOR);

if(activeChar.getAllEffects() != null)

{

i$ = activeChar.getAllEffects();

siege = i$.length;

for(int i$ = 0; i$ < siege; i$++)

{

L2Effect e = i$[i$];

if(e.getEffectType() == net.sf.l2j.gameserver.model.L2Effect.EffectType.HEAL_OVER_TIME)

{

activeChar.stopEffects(net.sf.l2j.gameserver.model.L2Effect.EffectType.HEAL_OVER_TIME);

activeChar.removeEffect(e);

}

if(e.getEffectType() == net.sf.l2j.gameserver.model.L2Effect.EffectType.MANA_HEAL_OVER_TIME)

{

activeChar.stopEffects(net.sf.l2j.gameserver.model.L2Effect.EffectType.MANA_HEAL_OVER_TIME);

activeChar.removeEffect(e);

}

if(e.getEffectType() == net.sf.l2j.gameserver.model.L2Effect.EffectType.COMBAT_POINT_HEAL_OVER_TIME)

{

activeChar.stopEffects(net.sf.l2j.gameserver.model.L2Effect.EffectType.COMBAT_POINT_HEAL_OVER_TIME);

activeChar.removeEffect(e);

}

if(e.getEffectType() == net.sf.l2j.gameserver.model.L2Effect.EffectType.CHARGE)

e.exit();

}

 

}

activeChar.updateEffectIcons();

activeChar.sendPacket(new EtcStatusUpdate(activeChar));

ExStorageMaxCount esmc = new ExStorageMaxCount(activeChar);

activeChar.sendPacket(esmc);

sendPacket(new FriendList(activeChar));

L2ItemInstance arr$[] = activeChar.getInventory().getAugmentedItems();

int len$ = arr$.length;

for(int i$ = 0; i$ < len$; i$++)

{

L2ItemInstance temp = arr$[i$];

if(temp != null && temp.isEquipped())

temp.getAugmentation().applyBoni(activeChar);

}

 

if(Config.CHECK_SKILLS_ON_ENTER && !Config.ALT_GAME_SKILL_LEARN && !activeChar.isAio())

activeChar.checkAllowedSkills();

CrownManager.getInstance().checkCrowns(activeChar);

SystemMessage sm = new SystemMessage(SystemMessageId.WELCOME_TO_LINEAGE);

sendPacket(sm);

sm = null;

SevenSigns.getInstance().sendCurrentPeriodMsg(activeChar);

Announcements.getInstance().showAnnouncements(activeChar);

if(Config.SERVER_NEWS)

{

String serverNews = HtmCache.getInstance().getHtm("data/html/welcome.htm");

if(serverNews != null)

sendPacket(new NpcHtmlMessage(1, serverNews));

}

if(Config.SHOW_WELCOME_PM)

{

CreatureSay np = new CreatureSay(0, 2, Config.PM_FROM, Config.PM_TEXT1);

CreatureSay na = new CreatureSay(0, 2, Config.PM_FROM, Config.PM_TEXT2);

activeChar.sendPacket(np);

activeChar.sendPacket(na);

}

if(Config.SERVER_TIME_ON_START)

activeChar.sendMessage((new StringBuilder()).append("SVR time is ").append(fmt.format(new Date(System.currentTimeMillis()))).toString());

PetitionManager.getInstance().checkPetitionMessages(activeChar);

if(activeChar.getClanId() != 0 && activeChar.getClan() != null)

{

sendPacket(new PledgeShowMemberListAll(activeChar.getClan(), activeChar));

sendPacket(new PledgeStatusChanged(activeChar.getClan()));

}

if(Config.ONLINE_PLAYERS_AT_STARTUP)

activeChar.sendMessage((new StringBuilder()).append("Players Online: ").append(L2World.getInstance().getAllPlayers().size()).toString());

if(Config.ALLOW_WATER)

activeChar.checkWaterState();

activeChar.setOnlineStatus(true);

if(activeChar.isAlikeDead())

sendPacket(new Die(activeChar));

notifyFriends(activeChar);

notifyClanMembers(activeChar);

notifySponsorOrApprentice(activeChar);

activeChar.onPlayerEnter();

if(Olympiad.getInstance().playerInStadia(activeChar))

{

activeChar.teleToLocation(net.sf.l2j.gameserver.datatables.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()));

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(Config.LEVEL_ON_ENTER > 0 && activeChar.getLevel() <= 1)

{

byte byte0 = Config.LEVEL_ON_ENTER;

if(byte0 >= 1 && byte0 <= 81)

activeChar.addExpAndSp(Experience.LEVEL[byte0], Config.SP_ON_ENTER);

}

if(!activeChar.isGM() && activeChar.getSiegeState() < 2 && activeChar.isInsideZone(4))

{

activeChar.teleToLocation(net.sf.l2j.gameserver.datatables.MapRegionTable.TeleportWhereType.Town);

activeChar.sendMessage("You have been teleported to the nearest town due to you being in siege zone");

}

RegionBBSManager.getInstance().changeCommunityBoard();

if(activeChar.isVip())

onEnterVip(activeChar);

if(Config.ALLOW_VIP_NCOLOR && activeChar.isVip())

activeChar.getAppearance().setNameColor(Config.VIP_NCOLOR);

if(Config.ALLOW_VIP_TCOLOR && activeChar.isVip())

activeChar.getAppearance().setTitleColor(Config.VIP_TCOLOR);

if(activeChar.isAio())

onEnterAio(activeChar);

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(Config.GAMEGUARD_ENFORCE)

activeChar.getGuard().tryPerformAction(ActionType.ENTER_WORLD);

if(CTF._savePlayers.contains(activeChar.getName()))

CTF.addDisconnectedPlayer(activeChar);

if(Config.ALLOW_REMOTE_CLASS_MASTERS)

{

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);

}

}

 

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());

}

}

 

private void engage(L2PcInstance cha)

{

int _chaid = cha.getObjectId();

Iterator i$ = CoupleManager.getInstance().getCouples().iterator();

do

{

if(!i$.hasNext())

break;

Couple cl = (Couple)i$.next();

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());

}

} while(true);

}

 

private void notifyPartner(L2PcInstance cha, int partnerId)

{

if(cha == null)

return;

if(cha.getPartnerId() != 0)

{

L2PcInstance partner = (L2PcInstance)L2World.getInstance().findObject(cha.getPartnerId());

if(cha.isMarried() && Config.COLOR_WEDDING_NAME)

cha.getAppearance().setNameColor(Config.COLOR_WEDDING_NAMES);

if(partner != null && partner.getAppearance().getSex() == cha.getAppearance().getSex() && cha.isMarried() && Config.COLOR_WEDDING_NAME)

{

if(cha.getAppearance().getSex())

{

cha.getAppearance().setNameColor(Config.COLOR_WEDDING_NAMES_LIZ);

partner.getAppearance().setNameColor(Config.COLOR_WEDDING_NAMES_LIZ);

} else

{

cha.getAppearance().setNameColor(Config.COLOR_WEDDING_NAMES_GEY);

partner.getAppearance().setNameColor(Config.COLOR_WEDDING_NAMES_GEY);

}

partner.sendMessage("Your Partner has logged in");

partner.broadcastUserInfo();

}

partner = null;

}

}

 

private void notifyFriends(L2PcInstance cha)

{

Connection con = null;

con = L2DatabaseFactory.getInstance().getConnection();

PreparedStatement statement = con.prepareStatement("SELECT friend_name FROM character_friends WHERE char_id=?");

statement.setInt(1, cha.getObjectId());

ResultSet rset = statement.executeQuery();

SystemMessage sm = new SystemMessage(SystemMessageId.FRIEND_S1_HAS_LOGGED_IN);

sm.addString(cha.getName());

do

{

if(!rset.next())

break;

String friendName = rset.getString("friend_name");

L2PcInstance friend = L2World.getInstance().getPlayer(friendName);

if(friend != null)

{

friend.sendPacket(new FriendList(friend));

friend.sendPacket(sm);

}

} while(true);

sm = null;

rset.close();

statement.close();

Exception e;

try

{

con.close();

}

// Misplaced declaration of an exception variable

catch(Exception e) { }

break MISSING_BLOCK_LABEL_206;

e;

_log.warning((new StringBuilder()).append("could not restore friend data:").append(e).toString());

try

{

con.close();

}

// Misplaced declaration of an exception variable

catch(Exception e) { }

break MISSING_BLOCK_LABEL_206;

Exception exception;

exception;

try

{

con.close();

}

catch(Exception e) { }

throw exception;

}

 

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);

}

}

 

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);

}

}

}

 

private String getText(String string)

{

try

{

String result = new String(Base64.decode(string), "UTF-8");

return result;

}

catch(UnsupportedEncodingException e)

{

return null;

}

}

 

private void loadTutorial(L2PcInstance player)

{

QuestState qs = player.getQuestState("255_Tutorial");

if(qs != null)

qs.getQuest().notifyEvent("UC", null, player);

}

 

public String getType()

{

return "[C] 03 EnterWorld";

}

 

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 onEnterAio(L2PcInstance activeChar)

{

long now = Calendar.getInstance().getTimeInMillis();

long endDay = activeChar.getAioEndTime();

if(now > endDay)

{

activeChar.setAio(false);

activeChar.setAioEndTime(0);

activeChar.lostAioSkills();

activeChar.sendMessage("removed your Aio Stats... period ends ");

activeChar.getAppearance().setNameColor(0xffffff);

activeChar.getAppearance().setTitleColor(0xffffff);

} else

{

Date dt = new Date(endDay);

_daysleft = (endDay - now) / 0x5265c00L;

if(_daysleft > 30L)

activeChar.sendMessage((new StringBuilder()).append("Aio period ends in ").append(df.format(dt)).append(". enjoy the Game").toString());

else

if(_daysleft > 0L)

activeChar.sendMessage((new StringBuilder()).append("left ").append((int)_daysleft).append(" for Aio period ends").toString());

else

if(_daysleft < 1L)

{

long hour = (endDay - now) / 0x36ee80L;

activeChar.sendMessage((new StringBuilder()).append("left ").append((int)hour).append(" hours to Aio period ends").toString());

}

}

}

 

private void onEnterVip(L2PcInstance activeChar)

{

long now = Calendar.getInstance().getTimeInMillis();

long endDay = activeChar.getVipEndTime();

if(now > endDay)

{

activeChar.setVip(false);

activeChar.setVipEndTime(0);

activeChar.sendMessage("Removed your Vip stats... period ends ");

} else

{

Date dt = new Date(endDay);

_daysleft = (endDay - now) / 0x5265c00L;

if(_daysleft > 30L)

activeChar.sendMessage((new StringBuilder()).append("Vip period ends in ").append(df.format(dt)).append(". enjoy the Game").toString());

else

if(_daysleft > 0L)

activeChar.sendMessage((new StringBuilder()).append("left ").append((int)_daysleft).append(" days for Vip period ends").toString());

else

if(_daysleft < 1L)

{

long hour = (endDay - now) / 0x36ee80L;

activeChar.sendMessage((new StringBuilder()).append("left ").append((int)hour).append(" hours to Vip period ends").toString());

}

}

}

 

private static final String _C__03_ENTERWORLD = "[C] 03 EnterWorld";

private static Logger _log = Logger.getLogger(net/sf/l2j/gameserver/network/clientpackets/EnterWorld.getName());

private static final SimpleDateFormat fmt = new SimpleDateFormat("H:mm.");

long _Daysleft;

SimpleDateFormat daysleft;

long _daysleft;

SimpleDateFormat df;

 

}

 

Link para o comentário
Compartilhar em outros sites

@ADM-LORDS

Olha e Bem Simples, você vai ter que abrir seu navicat, abra o db que ta instalado o servidor,depois vai em "armor"

procura o nome "filter wizard" clica nela vai abrir um esparsamento ai tem la escrito <click here to add> obviamente click nessa opção vai apareçer uma caixinha marcada com o nome ao lado "ITEM_ID" click nela e click em "Nome"

 

ai irar ficar [v]Nome contains<?> agora click onde tem essa <?> Depois digite o nome da roupa e de enter

dai e so clicar em <click here to apply> dai vai apareçer a armadura que vc quer

 

Dai vc procura a coluna chamada crystal_type

++++++++++++++++++Crystal_type

Exmplo: Dronic armor""""""""" S """"""""" <---- se tiver como "A" e que a armadura e Grade "A" entaum mude Para "S" e Pronto estar sendo grade S

 

 

Espero que com isso possa te ajudar!

 

 

Vlw ai amigo obrigado pela ajuda e sua atencao! agora consegui ajudo muinto !

Link para o comentário
Compartilhar em outros sites

Resposta @t4t0

 

 

nao dá pra tirar aquele "CaioxD diz: Obrigado por usar nosso projeto?"

Para Voce Tirar Aquela Mensagem Lá Vai Em L2J Mix\data\faenor E Delete O Arquivo Medals.zip E Pronto !

 

 

 

Sobre A Correção Ai Dos Enchants Na Tabela Do Navicat Ja Postarão Como Faz Para Corrigir Então Não Falar Novamente Né :S

 

@thundershock @Kula @lordofkaoss

 

Vlw Ai Pelos Elogios !

O covarde nunca tenta, o fracassado nunca termina, e o vencedor nunca desiste!

#FicaDiCa xD

Link para o comentário
Compartilhar em outros sites






×
×
  • 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.