Jump to content

xdem

Members
  • Posts

    4,155
  • Credits

  • Joined

  • Last visited

  • Days Won

    44
  • Feedback

    0%

Everything posted by xdem

  1. With this code you will be able to open users Default Browser with one or more URLs you choose, for example you dont need anymore to send the URL via text message which must be copied and paste to browser letter by letter BUT it will automatically open the browser with the URLs you choose, the code works on JAVA6+ String URLs[]= { "www.maxcheaters.com",//Delete or add more "www.maxcheaters.com/forum/index.php", }; try { if (Desktop.isDesktopSupported()) { Desktop desktop = Desktop.getDesktop(); if (desktop.isSupported(Desktop.Action.BROWSE)) { for (int i=0; i!=URLs.length; i++) desktop.browse(new URI(URLs[i])); } } } catch (Exception e) { e.printStackTrace(); } You can put this code in any command or in any action, even in enterworld.java! For example I created a /vote command so you can test(which AUTOMATICALLY redirects you to your vote web page), you add your URLs or a single URL into the String border and the command opens those URLs automatically, so lets start... Download the command http://www.4shared.com/file/bMDkyi-u/Vote.html? and paste it on your scripts\handlers\usercommandhandlers, then add the imports on your MasterHandler.java, and make it: import handlers.usercommandhandlers.Time; +import handlers.usercommandhandlers.Vote; AND on same file MasterHandler.java Time.class, +Vote.class, OlympiadStat.class, Also for the command to work you must add this line to your CommandName-e located in your System file (if you get errors open it reply here) i opened mine with ct2.4 file edit 133 109 a,Olympiad Score\0 +134 133 a,vote\0 Credits me for both of the code and vote, and OFC google books for help:)
  2. Thanks for your good words man...
  3. Rly I didnt gave a single shitt on ur code my friend nor I know what actionfailed packet is, the code atm works as it should
  4. I personaly fixed this my friend, thanks for your report, please go and test it if you have time
  5. I cant see any diffrence tho
  6. Your report is usefull for me and now I will go fix it, im pretty sure I will solve this bug too, the servitor heal yes its a bug on witch im gonna work on now, but the healer(who is there to use heal and mass heals) is not the one who is supposed to target the monster, but still yes this makes the code faulty and buggy so Im gonna spend more time on this PS I will only fix: SelfBuffs, SelfHeals and any other skill that casts without target
  7. I thougth it too, but never tested it, because L2MonsterInstance Extends L2Npc I think, its a little complicated, I will test
  8. thanks for the info, updated
  9. This simple code will stop players from healing or buffing monsters and raids Go at network/clientpackets/RequestMagicSkillUse // Check the validity of the skill if (skill != null) { +if (activeChar.getTarget() instanceof L2MonsterInstance) +{ + switch (skill.getSkillType()) + { + case HEAL: + case HEAL_PERCENT: + case BUFF: + { + if (skill.getTargetType()==L2TargetType.TARGET_ONE) + { + return; + } + } + } +} if ((activeChar.isTransformed() || activeChar.isInStance()) && !activeChar.containsAllowedTransformSkill(skill.getId())) Credits me, thanks for your reports guys, all fixed! for those with the previus version I recomend change asap
  10. This is not a help section my friend, here we share... But btw I dont think any1 shared it before even its easy to make
  11. Nice try but this code is retarded dude
  12. Theres actually no problem, its only a message... Server thinks that this command is suspicius so throws warning to console... Its just message
  13. Still cant find smth in there that solves my problem...
  14. So I have to add it at the bypass fyle, this has nothing to do with scrips so its not the bypasshandler... Where I can find this file to stop the annoying message?
  15. I created commands and when I call the from the game I have this error :okey: The commands ingame work perfect tho :good sir:
  16. What do I need for this? I want to call these pics simply using <img blablabla > on the html just like the icons on buffers... So what tools and what I need to do in order to import my own images? thanks in advance
  17. Sovareftite re, oloi to idio pack exoun gt mono esu vgazeis problima? Ksanakita ta configs einai ala ton rb Kai ala ton mob
  18. try adding the pictures in the game folder and call them the same way u call icons, or use the engine shared somewhere here
  19. cause maybe u trol ;D, u just have to change the method there is no other way, if im wrong trol me by sending me ur code =D
  20. let me see it and I will fix it...
×
×
  • Create New...