Ir para conteúdo
  • Cadastre-se

OnzeBiu

Membro
  • Total de itens

    30
  • Registro em

  • Última visita

Sobre OnzeBiu

Últimos Visitantes

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

OnzeBiu's Achievements

Aprendiz de Novato

Aprendiz de Novato (1/14)

3

Reputação

  1. Alguém que saiba adaptar este mod para acis poderia fazê-lo por favor? Index: /trunk/Game/java/net/sf/l2j/gameserver/clientpackets/EnterWorld.java =================================================================== --- /trunk/Game/java/net/sf/l2j/gameserver/clientpackets/EnterWorld.java (revision 153) +++ /trunk/Game/java/net/sf/l2j/gameserver/clientpackets/EnterWorld.java (revision 178) @@ -315,4 +315,8 @@ TvTEvent.onLogin(activeChar); CrownManager.getInstance().checkCrowns(activeChar); + if (Config.CHECK_SKILLS_ON_ENTER && !Config.SKILL_LEARN) + { + activeChar.checkIlegalSkills(); + } } Index: /trunk/Game/java/net/sf/l2j/gameserver/model/actor/instance/L2VillageMasterInstance.java =================================================================== --- /trunk/Game/java/net/sf/l2j/gameserver/model/actor/instance/L2VillageMasterInstance.java (revision 88) +++ /trunk/Game/java/net/sf/l2j/gameserver/model/actor/instance/L2VillageMasterInstance.java (revision 178) @@ -71,5 +71,5 @@ { String[] commandStr = command.split(" "); - String actualCommand = commandStr[0]; // Get actual command + String actualCommand = commandStr[0]; String cmdParams = ""; @@ -256,4 +256,9 @@ content.append("Change Subclass:<br>Which of the following sub classes would you like to change?<br>"); int classIndex = 1; + + if (Config.CHECK_SKILLS_ON_ENTER && !Config.SKILL_LEARN) + { + player.checkIlegalSkills(); + } for (Iterator<SubClass> subList = iterSubClasses(player); subList.hasNext();) @@ -375,4 +380,9 @@ + CharTemplateTable.getClassNameById(player.getActiveClass()) + "</font>."); + if (Config.CHECK_SKILLS_ON_ENTER && !Config.SKILL_LEARN) + { + player.checkIlegalSkills(); + } + player.sendPacket(new SystemMessage(SystemMessageId.SUBCLASS_TRANSFER_COMPLETED)); // Transfer completed. break; @@ -410,4 +420,9 @@ player.sendPacket(new SystemMessage(SystemMessageId.ADD_NEW_SUBCLASS)); // Subclass added. + + if (Config.CHECK_SKILLS_ON_ENTER && !Config.SKILL_LEARN) + { + player.checkIlegalSkills(); + } } else Index: /trunk/Game/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java =================================================================== --- /trunk/Game/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java (revision 161) +++ /trunk/Game/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java (revision 178) @@ -10163,3 +10163,69 @@ return _currentSkillWorldPosition; } + + public void checkIlegalSkills() + { + boolean LegalSkill = false; + + if (!isGM()) + { + Collection<L2SkillLearn> skillTree = SkillTreeTable.getInstance().getAllowedSkills(getClassId()); + + for (L2Skill skill : getAllSkills()) + { + int skillid = skill.getId(); + + LegalSkill = false; + + for (L2SkillLearn temp : skillTree) + { + if (temp.getId() == skillid) + LegalSkill = true; + } + + if (isCursedWeaponEquiped() && skillid == CursedWeaponsManager.getInstance().getCursedWeapon(_cursedWeaponEquipedId).getSkillId()) + { + LegalSkill = true; + } + + if (getClan() != null && (skillid >= 370 && skillid <= 391)) + { + LegalSkill = true; + } + + if (getClan() != null && (skillid == 246 || skillid == 247)) + { + if (getClan().getLeaderId() == getObjectId()) + LegalSkill = true; + } + + if (skillid >= 1312 && skillid <= 1322) + { + LegalSkill = true; + } + + if (skillid >= 1368 && skillid <= 1373) + { + LegalSkill = true; + } + + if (skillid >= 3000 && skillid < 7000) + { + LegalSkill = true; + } + + if (Config.ALLOWED_SKILLS_LIST.contains(skillid)) + { + LegalSkill = true; + } + + if (!LegalSkill) + { + removeSkill(skill); + sendMessage("[SVR]: Ilegal skill detected: "+skill.getName()+"."); + sendMessage("[SVR]: The ilegal skill has been removed."); + } + } + } + } } Index: /trunk/Game/java/net/sf/l2j/Config.java =================================================================== --- /trunk/Game/java/net/sf/l2j/Config.java (revision 136) +++ /trunk/Game/java/net/sf/l2j/Config.java (revision 178) @@ -589,4 +589,7 @@ public static int CHAMPION_REWARD_ID; public static int CHAMPION_REWARD_QTY; + public static boolean CHECK_SKILLS_ON_ENTER; + public static String ALLOWED_SKILLS; + public static FastList<Integer> ALLOWED_SKILLS_LIST = new FastList<Integer>(); /** Events */ @@ -616,12 +619,12 @@ public static String GAME_VERSION; public static String BUILD_DATE; - + /** Data Version */ public static String DATA_VERSION; /** HexID */ - public static int SERVER_ID; - public static byte[] HEX_ID; - + public static int SERVER_ID; + public static byte[] HEX_ID; + /** Custom */ // Comming Soon ! @@ -1324,4 +1327,11 @@ CHAMPION_REWARD_ID = Integer.parseInt(Mods.getProperty("ChampionRewardItemID", "6393")); CHAMPION_REWARD_QTY = Integer.parseInt(Mods.getProperty("ChampionRewardItemQty", "1")); + CHECK_SKILLS_ON_ENTER = Boolean.parseBoolean(Mods.getProperty("CheckSkillsOnEnter", "False")); + ALLOWED_SKILLS = Mods.getProperty("AllowedSkills", "541,542,543,544,545,546,547,548,549,550,551,552,553,554,555,556,557,558,617,618,619"); + ALLOWED_SKILLS_LIST = new FastList<Integer>(); + for (String id : ALLOWED_SKILLS.trim().split(",")) + { + ALLOWED_SKILLS_LIST.add(Integer.parseInt(id.trim())); + } } catch (Exception e) @@ -1493,6 +1503,6 @@ Custom.load(is); is.close(); - - // Comming Soon + + // Commgin Soon ! } catch (Exception e) Na verdade estou com problema com o mod aio pois o mesmo permanece com as skills se trocar de subclasse... Se for mais facil poderia ser um mod que bloqueasse o player quando aio de falar com o Grand Master, assim ele não tem como add ou trocar a subclasse enquanto for aio. Porém não sei criar :S
  2. Gostaria de adaptar o modo vip (qualquer versão que tenha tempo de vip) para quando o player receber o vip ganhar uma skill custom (criada a gosto) e quando perder o vip ela sumir automaticamente? Funcionando de forma similar ao AIO. Acredito que não seja complicado mas já tentei e não consegui. Pode ser para frozen, acis ou qualquer outro pack, me viro para introduzi-lo na que utilizo, :)
  3. Tem como adaptar o modo vip (qualquer versão que tenha tempo de vip) para quando o player receber o vip ganhar uma skill custom (criada a gosto) e quando perder o vip ela sumir automaticamente? Funcionando de forma similar ao AIO. Acredito que não seja complicado mas já tentei e não consegui. Pode ser para frozen, acis ou qualquer outro pack, me viro para introduzi-lo na que utilizo, :)
  4. Seu Mysql está com senha, só adcionar la no campo Password
  5. OnzeBiu

    Project x

    Marcos, não to conseguindo editar o systemmsg-e.dat com esse código postado, dá erro ao salvar (file edit c6 salvando em 413)
  6. OnzeBiu

    Project x

    Quanto a isso está ok pois adc tudo nas custom's, mas htm muitas alteraçoes? configs e etc? Até agora não vi problemas na V3, o que foi corrigido vc tem relacionado?
  7. OnzeBiu

    Project x

    @Marcos tem como postar as alterações da v3 para a v4? Estou configurando um server na V3 e estou gostando, mas se tem correçoes na v4 melhor atualizar né. Para não iniciar do começo novamente so queria saber sobre as configs e data o que foi alterado, se possível. Parabens pelo trabalho, estou gostando!
  8. To usando um site aqui que tem esse seu "acm" e tava usando de boa no dedicado pois nele so precisei descomentar a linha extension=php_openssl.dll no php.ini O problema é que to agora com o site numa hospedagem, alguem teria ideia de como ativar esta função pelo cpanel ?
  9. Por acaso vc pegou este link do meu shared e editou o texto que descrevi o projeto em outro Fórum... ^^
  10. Gostaria de saber como botar para meu site ser direcionado a uma pagina que so libera o acesso ao site do server se votar antes. Grato!
  11. Nao esta vazio. UPDATE characters SET x = '88150' WHERE obj_Id = '".$char."'; UPDATE characters SET y = '147682' WHERE obj_Id = '".$char."'; UPDATE characters SET z = '-3405' WHERE obj_Id = '".$char."'; segue imagens para facilitar o entendimento do problema: Grato se alguem resolver! preciso dessa opcao de destravar pois acontece muito em meu server. =]
  12. logo no painel, ao clicar em destravar surge esse erro logo abaixo: Notice: Undefined index: act in C:\wamp\www\painel\indexx.php on line 100 - destravar Character Ignorando esse erro e clicando em "destravar character" escolho o char e clico em destravar ... Notice: Undefined variable: dual in C:\wamp\www\painel\indexx.php on line 144 Query was empty da esse erro ai.
  13. OnzeBiu

    Mobs paralisam

    Ne por nada nao, mas nada haver... eh interlude e tato mob lvl 1 como 80 nao mostra a animacao dele te atacando e os boss nao tao reagindo
  14. OnzeBiu

    Mobs paralisam

    To com um problema em meu server,estou usando a versao l2jarchid 381 Interlude Acontece que quando um mob ataca um player , ele paralisa mas continua hitando... so nao mostra. Ate ai tudo bem, problema pequeno... Problema maior que descobri que os Raid Boss nao atacam tbm Diferente dos mobs eles nao so nao mostram atacando como nao regem aos players. =x
  15. Gostaria de saber se tem como eu diminuir a chance do S.A. Critical Stun da Demon Splinter, ja tentei aki mas n consegui. Versao l2jFree Na xml do sa esta assim: <skill id="3016" levels="6" name="Special Ability: Critical Stun"> <!-- Automatically generated from C3 client files. Need to be checked/fixed. Target is set to TARGET_NONE, skillType to NOTDONE for server compatability. Descriptions: 1: Temporarily stuns target into paralysis. 6: Temporarily stuns target into paralysis. created 2005-05-29 23:34:30 --> <set name="target" val="TARGET_NONE"/> <set name="skillType" val="NOTDONE"/> <set name="operateType" val="OP_ACTIVE"/> <set name="castRange" val="-1"/> <for> </for> </skill> e na arma assim: <item id='6604' name="demon_splinter_crt._stun"> <for> <set val='342' order='0x08' stat='pAtk'/> <set val='132' order='0x08' stat='mAtk'/> <set val='4' order='0x08' stat='rCrit'/> <add val='4' order='0x10' stat='accCombat'/> <set val='325' order='0x08' stat='pAtkSpd'/> <enchant val='0' order='0x0C' stat='pAtk'/> <enchant val='0' order='0x0C' stat='mAtk'/> <!-- Enhances damage to target during PvP --> <mul val='1.05' order='0x30' stat='pvpPhysDmg'/> <mul val='1.05' order='0x30' stat='pvpMagicalDmg'/> </for> </item> Um cara la axou de doar pra tyrant e agora ta me tirando o sono pq ele deita all server sozinho so nos stun q tao nem parecendo q eh 25% de chance, ta mais pra 90% la... Alguem saberia como me ajudar? Pq to perdendo players ja por isso --''
×
×
  • 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.