Ir para conteúdo
  • Cadastre-se

lordekb

Membro
  • Total de itens

    103
  • Registro em

  • Última visita

Sobre lordekb

lordekb's Achievements

Aprendiz de Novato

Aprendiz de Novato (1/14)

0

Reputação

  1. lordekb

    Onde Boto?

    AE GENTE ME AJUDA PFF EM QUE PARTE DO CONFIG.JAVA EU BOTO ISSO? la n fala se e emcima no final no meio de algo afs. presta atenção mano eu quero saber ondee no config java eu boto sacas?
  2. lordekb

    Onde Boto?

    Config.java: public static boolean ENABLE_VIP_SYSTEM; public static Map<Integer, Integer> VIP_SKILLS; + ENABLE_VIP_SYSTEM = Boolean.parseBoolean(L2JWarsCustom.getProperty("EnableVipSystem", "True")); + //if(ENABLE_VIP_SYSTEM) //create map if system is enabled + { + String[] VipSkillsSplit = L2JWarsCustom.getProperty("VipSkills", "").split(";"); + VIP_SKILLS = new FastMap<Integer, Integer>(VipSkillsSplit.length); + for (String skill : VipSkillsSplit) + { + String[] skillSplit = skill.split(","); + if (skillSplit.length != 2) + { + System.out.println("[Vip System]: invalid config property in L2JWarsCustom.properties -> VipSkills \"" + skill + "\""); + } + else + { + try + { + VIP_SKILLS.put(Integer.parseInt(skillSplit[0]), Integer.parseInt(skillSplit[1])); + } + catch (NumberFormatException nfe) + { + if (!skill.equals("")) + { + System.out.println("[Vip System]: invalid config property in L2JWarsCustom.properties -> VipSkills \"" + skillSplit[0] + "\"" + skillSplit[1]); + } + } + } + } + //} AE GENTE ME AJUDA PFF EM QUE PARTE DO CONFIG.JAVA EU BOTO ISSO? la n fala se e emcima no final no meio de algo afs. como eu faço para por heine como cidade PVP
  3. # Show the GM's name who made the announcement. # example: "Announce: hi [GMNAME]" # only works when you use the command //announce AnnounceGmName = False funcitions > acess se sua rev for j frozen obrigadin '.'
  4. nessa nova revisão ela so veio o game server e o login eu n axo o enter wolrd nem fudendo alguem poderia me falar onde ta ?
  5. por exxemplo esses mods aki Properties: EnableVipSystem = True # List of Vip Skills # Format : skillid,skilllvl;skillid2,skilllvl2;....skillidn,skilllvln VipSkills = 395,1 Config.java: public static boolean ENABLE_VIP_SYSTEM; public static Map<Integer, Integer> VIP_SKILLS; + ENABLE_VIP_SYSTEM = Boolean.parseBoolean(L2JWarsCustom.getProperty("EnableVipSystem", "True")); + //if(ENABLE_VIP_SYSTEM) //create map if system is enabled + { + String[] VipSkillsSplit = L2JWarsCustom.getProperty("VipSkills", "").split(";"); + VIP_SKILLS = new FastMap<Integer, Integer>(VipSkillsSplit.length); + for (String skill : VipSkillsSplit) + { + String[] skillSplit = skill.split(","); + if (skillSplit.length != 2) + { + System.out.println("[Vip System]: invalid config property in L2JWarsCustom.properties -> VipSkills \"" + skill + "\""); + } + else + { + try + { + VIP_SKILLS.put(Integer.parseInt(skillSplit[0]), Integer.parseInt(skillSplit[1])); + } + catch (NumberFormatException nfe) + { + if (!skill.equals("")) + { + System.out.println("[Vip System]: invalid config property in L2JWarsCustom.properties -> VipSkills \"" + skillSplit[0] + "\"" + skillSplit[1]); + } + } + } + } + //} ava/net/sf/l2j/gameserver/handler/admincommandhandlers/AdminVip.java: public void doVip(L2PcInstance activeChar, L2PcInstance _player, String _playername, String _time) +_player.rewardVipSkills(); _player.broadcastUserInfo(); _player.sendPacket(new EtcStatusUpdate(_player)); +_player.sendSkillList(); public void removeVip(L2PcInstance activeChar, L2PcInstance _player, String _playername) +_player.lostVipSkills(); _player.broadcastUserInfo(); _player.sendPacket(new EtcStatusUpdate(_player)); +_player.sendSkillList(); PcInstance.java: public void setVip(boolean val) { _isVip = val; - + } - + + public void rewardVipSkills() + { + L2Skill skill; + for(Integer skillid : Config.VIP_SKILLS.keySet()) + { + int skilllvl = Config.VIP_SKILLS.get(skillid); + skill = SkillTable.getInstance().getInfo(skillid,skilllvl); + if(skill != null) + { + addSkill(skill, true); + } + } + sendMessage("GM give to you Vip's skills"); + } + + public void lostVipSkills() + { + L2Skill skill; + for(Integer skillid : Config.VIP_SKILLS.keySet()) + { + int skilllvl = Config.VIP_SKILLS.get(skillid); + skill = SkillTable.getInstance().getInfo(skillid,skilllvl); + removeSkill(skill); + } + } + Outro. Index: java/net/sf/l2j/Config.java =================================================================== --- java/net/sf/l2j/Config.java (revision 4092) +++ java/net/sf/l2j/Config.java (working copy) + public static boolean ANNOUNCE_AIO_LOGIN; + public static boolean ANNOUNCE_VIP_LOGIN; + ANNOUNCE_AIO_LOGIN = Boolean.parseBoolean(Additions.getProperty("AnnounceAioLogin", "False")); + ANNOUNCE_VIP_LOGIN = Boolean.parseBoolean(Additions.getProperty("AnnounceVipLogin", "False")); Index: java/config/additions.properties =================================================================== --- java/config/additions.properties (revision 4092) +++ java/config/additions.properties (working copy) +#--------------------------------------------------------------- +# Announce Aio and Vip Login by BrunoBR - +#--------------------------------------------------------------- +# Announce Aio and Vip name At Login +AnnounceAioLogin = False +AnnounceVipLogin = False Index: java/net/sf/l2j/gameserver/clientpackets/EnterWorld.java =================================================================== --- java/net/sf/l2j/gameserver/clientpackets/EnterWorld.java (revision 4092) +++ java/net/sf/l2j/gameserver/clientpackets/EnterWorld.java (working copy) + /** + * @author BrunoBR + **/ + if (Config.ANNOUNCE_AIO_LOGIN) + { + if (activeChar.isAio()) + { + Announcements.getInstance().announceToAll("Aio: "+activeChar.getName()+" has been logged in."); + } + } + + if (Config.ANNOUNCE_VIP_LOGIN) + { + if (activeChar.isVip()) + { + Announcements.getInstance().announceToAll("Vip: "+activeChar.getName()+" has been logged in."); + } + } + Outro Index: java/net/sf/l2j/Config.java =================================================================== --- java/net/sf/l2j/Config.java (revision 4092) +++ java/net/sf/l2j/Config.java (working copy) +public static boolean ESPECIAL_VIP_LOGIN; +ESPECIAL_VIP_LOGIN = Boolean.parseBoolean(L2JArcher.getProperty("EspecialVipLogin", "False")); Index: java/config/L2JArcher.properties =================================================================== --- java/config/L2JArcher.properties (revision 4092) +++ java/config/L2JArcher.properties (working copy) +# Fogos de Artificio, Ação Victory e Anunciar quando Vip Logar ? +EspecialVipLogin = False Index: java/net/sf/l2j/gameserver/clientpackets/EnterWorld.java =================================================================== --- java/net/sf/l2j/gameserver/clientpackets/EnterWorld.java (revision 4092) +++ java/net/sf/l2j/gameserver/clientpackets/EnterWorld.java (working copy) + /** + * @author BrunoBR + **/ + if (Config.ESPECIAL_VIP_LOGIN) + { + if (activeChar.isVip()) + { + Announcements.getInstance().announceToAll("Vip: "+activeChar.getName()+" has been logged in."); + activeChar.broadcastPacket(new SocialAction(activeChar.getObjectId(), 3)); + MagicSkillUser MSU = new MagicSkillUser(activeChar, activeChar, 2025, 1, 1, 0); + activeChar.sendPacket(MSU); + activeChar.broadcastPacket(MSU); + } + } alguma dessas precisa?
  6. ae mano agora como faz pas skills ir no aiox?eu ja botei mas n vai nem fudendo .
  7. mano por exemplo eu vo edita no other proprites e no enter word e outros arquivos alem do other proprites qual OUTRA PASTA EU MANDOO o psicotiko me falou que tem que manda uma pasta
  8. lordekb

    Npc BUff

    han fi tendi nda ?
  9. ta quem saber pff fala p/ mim
  10. lordekb

    Npc BUff

    frozen mano'
×
×
  • 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.