Jump to content

nery

Members
  • Posts

    137
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

About nery

Contact Methods

  • Telegram
    kingserverbr@hotmail.com
  • Website URL
    http://www.kingserver.com.br
  • Skype
    kingserver.gandalf

Profile Information

  • Gender
    Male

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

nery's Achievements

Newbie

Newbie (1/16)

0

Reputation

  1. Kraker, Add File Config (True é False) ???
  2. the way you put it is for nothing, is no longer there this whole thing, now if you had posted without the ip restriction would have been better.
  3. sorry my english, you do not understand, I want to do that to the player arrive at a certain level you get an html to it with a warning that we put
  4. YES htm in lvl 10
  5. It is not but appeared to html when he arrived at level setted. already put this another way, also does not appear to htm if (Config.ENABLE_FARM_MESSAGE) { if ((getActiveChar().getLevel()) >= 10) { activeChar.sendPacket(new ExShowScreenMessage("Farm Teste", 10000)); } String farmNews = HtmCache.getInstance().getHtm(activeChar.getHtmlPrefix(), "data/html/farmnews.htm"); if (farmNews != null) { sendPacket(new NpcHtmlMessage(farmNews)); } }
  6. Someone can say one has to add more somewhere?
  7. I am wanting to make a form that at a certain level you get an htm my escolhar eg for farm folder configs EnableFarmMessage = True ******* Config.java public static boolean ENABLE_FARM_MESSAGE; ******* ENABLE_FARM_MESSAGE = farmmessage.getBoolean("EnableFarmMessage", false); ******* EnterWorld.java if (Config.ENABLE_FARM_MESSAGE) { if (activeChar.getLevel() == 8) { activeChar.sendPacket(new ExShowScreenMessage("Farm Teste", 10000)); } String farmNews = HtmCache.getInstance().getHtm(activeChar.getHtmlPrefix(), "data/html/farmnews.htm"); if (farmNews != null) { sendPacket(new NpcHtmlMessage(farmNews)); } } BASE L2JSERVER Correct? -> if (activeChar.getLevel() == 8) SOMEONE CAN GIVE SOME IDEAS
  8. helpme code in java base l2f import l2f.gameserver.utils.VgConfig; import l2f.commons.util.Base64; import l2f.commons.crypt.NewCrypt; import java.io.*; import java.net.URL; import java.net.URLConnection; import java.security.CodeSource; import java.security.ProtectionDomain; import java.util.Enumeration; import java.util.zip.ZipEntry; import java.util.zip.ZipFile; public Class forName(String className) { String classFile; ZipFile z; Enumeration list; if(VgConfig.NPROTECT_KEY == -1) throw new Exception(); classFile = className.replace(".", "/"); z = new ZipFile(VLoaderKey.getProtectionDomain().getCodeSource().getLocation().toURI()); list = z.entries(); byte data[]; ZipEntry ze; do { if(!list.hasMoreElements()) ze = (ZipEntry)list.nextElement(); } while(!ze.getName().startsWith(classFile)); InputStream is = z.getInputStream(ze); data = new byte[(int)ze.getSize()]; is.read(data); is.close(); if(data[0] != -54 || data[1] != -2) { NewCrypt nc = new NewCrypt(String.format("%X", new Object[] { Integer.valueOf(VgConfig.NPROTECT_KEY) })); data = nc.decrypt(data); } try { Class result = defineClass(className, data, 0, data.length); z.close(); return result; } catch(ClassFormatError e) { System.out.println(" - Fxn 64 Protect: Unable to load protection components"); } z.close(); System.exit(0); return null; throw new Exception(); Exception e; System.out.println("WARNING: Unable to load protection components"); System.exit(0); return null; } erro compile compile: [javac] \java\l2f\gameserver\utils\VLoaderKey.java:91: error: cannot find symbol [javac] z = new ZipFile(VLoaderKey.getProtectionDomain().getCodeSource().getLocation().toURI()); [javac] ^ [javac] symbol: method getProtectionDomain() [javac] location: class VLoaderKey [javac] \java\l2f\gameserver\utils\VLoaderRev.java:112: error: cannot find symbol [javac] Class result = defineClass(className, data, 0, data.length); [javac] ^ [javac] symbol: method defineClass(String,byte[],int,int) [javac] location: class VLoaderRev
  9. That each draw their own conclusions all the talk on skype here http://imgur.com/a/3RH0H SKYPE CONVERSASION HERE including him getting the stick in ivan saucer and your project!
  10. auhauahauahua does not contain anything not pack is complete, the problem is that it is paid. AI THE FRIENDS ARE TRYING TO DO EVERYTHING PRA ALL HAVE FEAR IN WORLD DOWNLOAD. kkkkkkkkkkk
  11. lie this pack never had limits players is it equals private, the only difference is that private has protection. mentira esse pack nunca teve limites de players é é igual a privada, a unica diferença é que a privada tem proteção.
  12. I'm trying to adapt clanfull mode for fandc H5 Mode original: package net.sf.l2j.gameserver.handler.admincommandhandlers; import net.sf.l2j.gameserver.datatables.SkillTable; import net.sf.l2j.gameserver.handler.IAdminCommandHandler; import net.sf.l2j.gameserver.model.L2Object; import net.sf.l2j.gameserver.model.L2Skill; import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance; import net.sf.l2j.gameserver.network.serverpackets.ExShowScreenMessage; /** * @author Bluur * */ public class AdminClanFull implements IAdminCommandHandler { private static final String[] commands = {"admin_clanfull"}; private static final int reputation = 30000000; private static final byte level = 8; //id skills private static final int[] clanSkills = { 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391 }; @Override public boolean useAdminCommand(String command, L2PcInstance activeChar) { L2Object target = activeChar.getTarget(); L2PcInstance player = null; if (target != null && target instanceof L2PcInstance) player = (L2PcInstance) target; else return false; if (player.isClanLeader()) { player.getClan().changeLevel(level); player.getClan().addReputationScore(reputation); for (int s : clanSkills) { L2Skill clanSkill = SkillTable.getInstance().getInfo(s, SkillTable.getInstance().getMaxLevel(s)); player.getClan().addNewSkill(clanSkill); } player.getClan().updateClanInDB(); player.sendSkillList(); player.sendPacket(new ExShowScreenMessage("Seu Clan esta Full! Obrigado!", 8000)); activeChar.sendMessage("[Clan Full]: Foi adicionado com sucesso!"); } else activeChar.sendMessage("O target precisa ser Lider de clan."); return true; } @Override public String[] getAdminCommandList() { return commands; } } ------------------- my adaptation public class AdminClanFull implements IAdminCommandHandler { private static enum Commands { admin_clanfull } private static final int reputation = 10000; private static final byte level = 11; //id skills private static final int[] clanSkills = { 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391 }; @SuppressWarnings("rawtypes") @Override public boolean useAdminCommand(Enum comm, String[] wordList, String fullString, Player activeChar) { GameObject target = activeChar.getTarget(); Player player = activeChar; if (target != null && target instanceof Player) player = (Player) target; else return false; if (player.isClanLeader()) { player.getClan().setLevel(level); player.getClan().updateClanInDB(); activeChar.sendPacket(new SkillList(activeChar)); player.sendMessage("Server Reports: Dear reader, you now have full Clan, Congratulations."); activeChar.sendMessage("[Clan Full]: It was successfully added!"); } else activeChar.sendMessage("The target needs to be clan leader."); return true; } @Override public Enum[] getAdminCommandEnum() { return Commands.values(); } } I'm in trouble this part player.getClan().addReputationScore(reputation); for (int s : clanSkills) { L2Skill clanSkill = SkillTable.getInstance().getInfo(s, SkillTable.getInstance().getMaxLevel(s)); player.getClan().addNewSkill(clanSkill); }
  13. adding in my code so that this public void increasePvpKills(L2Character target) { if ((!RankPvpSystemConfig.LEGAL_COUNTER_ALTT_ENABLED && (target instanceof L2PcInstance) && AntiFeedManager.getInstance().check(this, target)) || (((target instanceof L2PcInstance)) && AntiFeedManager.getInstance().check(this, target))) { // Add karma to attacker and increase its PK counter setPvpKills(getPvpKills() + 1); L2MultiFunctionZone.givereward(this); // Send a Server->Client UserInfo packet to attacker with its Karma and PK Counter sendPacket(new UserInfo(this)); sendPacket(new ExBrExtraUserInfo(this)); } else if ((isInTownWarEvent() && Config.TW_GIVE_PVP_AND_PK_POINTS)) { // Add karma to attacker and increase its PK counter setPvpKills(getPvpKills() + 1); // Send a Server->Client UserInfo packet to attacker with its Karma and PK Counter sendPacket(new UserInfo(this)); sendPacket(new ExBrExtraUserInfo(this)); } }
×
×
  • Create New...