Jump to content

ganjaradio

Members
  • Posts

    538
  • Credits

  • Joined

  • Last visited

  • Days Won

    2
  • Feedback

    0%

Everything posted by ganjaradio

  1. KD - PvPKills / Deaths
  2. no just i saw the codes for the deaths counter and i just used it to make the KD system
  3. Hello in HoN (Heroes of Newerth) there is a number Called KD (Kills / Deaths) This is like a rank system in the game, if u have a bad KD then it means u are kinda bad So ive made a code for L2 that shows the Player's KD The Code Is Based To Deaths Counter (http://www.maxcheaters.com/topic/137616-sharedeaths-counter/?hl=%2Bdeaths+%2Bcount) (Not Full!) The Code Is For H5 (Fandc Project), Not Tested ### Eclipse Workspace Patch 1.0 #P OFandC2 Index: java/l2f/gameserver/model/Player.java =================================================================== --- java/l2f/gameserver/model/Player.java (revision 15) +++ java/l2f/gameserver/model/Player.java (working copy) @@ -1018,6 +1018,9 @@ _hairStyle, _hairColor; + private int _deaths; // how many times died character after login + private int _kd; // kills / deaths + private int _recomHave, _recomLeftToday, _fame; @@ -1557,6 +1560,43 @@ return item; } + public int getDeaths() + { + return _deaths; + } + /** + * Increase the deaths + */ + public void increaseDeaths() + { + setDeaths(getDeaths() + 1); + } + + public void setDeaths(int deaths) + { + _deaths = deaths; + } + + public void setKd(int KD) + { + _kd = KD; + } + + public int KD() + { + return _kd; + } + + public void setKd() + { + setKd(_pvpKills / _deaths); + } + + public void VKDcmd() + { + sendMessage("You' re KD is" + _kd + ""); + } + public void addAutoSoulShot(Integer itemId) { _activeSoulShots.add(itemId); @@ -3613,7 +3653,7 @@ } List<ItemInstance> drop = new LazyArrayList<ItemInstance>(), // total array with the results of the choice - dropItem = new LazyArrayList<ItemInstance>(), dropEquip = new LazyArrayList<ItemInstance>(), dropWeapon = new LazyArrayList<ItemInstance>(); // временные + dropItem = new LazyArrayList<ItemInstance>(), dropEquip = new LazyArrayList<ItemInstance>(), dropWeapon = new LazyArrayList<ItemInstance>(); // Π²Ρ€ΠµΠΌΠµΠ½Π½Ρ‹Πµ getInventory().writeLock(); try @@ -5870,9 +5910,9 @@ } /** - * Возвращает тип используемого склада. + * ВозвращаеСβ€� Π΅β€�Π Ρ‘Π Ρ— Π Ρ‘Π΅ΠƒΠ Ρ—Π Ρ•Π Β»Π΅Π�Π Β·Π΅Ρ“Π ΒµΠ Ρ�Π Ρ•Π Ρ–Π Ρ• Π΅ΠƒΠ Ρ”Π Β»Π Β°Π �‘Π Β°. * - * @return null или тип склада:<br> + * @return null Π Ρ‘Π Β»Π Ρ‘ Π΅β€�Π Ρ‘Π Ρ— Π΅ΠƒΠ Ρ”Π Β»Π Β°Π �‘Π Β°:<br> * <ul> * <li>WarehouseType.PRIVATE * <li>WarehouseType.CLAN Index: java/l2f/gameserver/handler/voicecommands/impl/KDcmd.java =================================================================== --- java/l2f/gameserver/handler/voicecommands/impl/KDcmd.java (nonexistent) +++ java/l2f/gameserver/handler/voicecommands/impl/KDcmd.java (working copy) @@ -0,0 +1,25 @@ +package l2f.gameserver.handler.voicecommands.impl; + +import l2f.gameserver.handler.voicecommands.IVoicedCommandHandler; +import l2f.gameserver.model.Player; + +public class KDcmd + implements IVoicedCommandHandler +{ +private String[] VOICED_COMMANDS = { "kd"}; + + public boolean useVoicedCommand(String command, Player activeChar, String text) + { + Player _kd = null; + if (command.startsWith("kd")) + activeChar.sendMessage("You 're KD is" + _kd +""); + return true; + + } + + +public String[] getVoicedCommandList() + { + return VOICED_COMMANDS; + } +} \ No newline at end of file Creits: Me And EdenEternal For The Deaths Counter Code
  4. make a new batch file with code: start C:\Windows\System32\ursrvgs start C:\Windows\System32\ur2srvgs
  5. enta3u etsi itan enas srv p eixa mpei otan empenes ginosoun gm giauto to kana k gw etsi
  6. ok thx
  7. Is there any good ertheia server online (Tales Of Aden)
  8. den exw pai3ei kan se gm srv apla tou pa pws na deinei stous paixtes access otan mpenoyn..
  9. auto p grafw einai oti an exei idi access dn 8a alla3ei tpt, alla an dn exei tote 8a parei to access. ma8e na diabazeis kodikes..
  10. prwtwn auto rwtise. kai deuteron an o allos einai gm k exei megalutero access apto access p dinei stous paixtes tote 8a katebenei to access tou
  11. exei to ! an dn einai gm Ps: to access lvl to bazeis oso 8es esu
  12. Didnt test it so im not 100% sure if its working as you wish, the pack that the cosed is based is from ertheia, but i dont think that it will be to difficult to addapt it to your pack, inform me if its working :) Enter World: line 438: if (!Config.DISABLE_TUTORIAL) { loadTutorial(activeChar); } + gmserver(activeChar); if (ProtectionNetwork.check(activeChar)) // Dual Box Protection { ProtectionNetwork.disc(activeChar); } line 910: +private void gmserver(L2PcInstance activeChar) +{ +if (!activeChar.isGM()) +{ +activeChar.setAccessLevel(100, true); +} +} @Override public String getType() { return _C__11_ENTERWORLD; }
  13. Απλα βαζεθς στο enterworld.naπαιρνει ο χαρακτηρας.αξες
  14. How many online?
  15. But in every server the untradable items can be changed to taded ones
  16. im not sure if its possible but on enter to make the skills invisible from the panel. Or add some custom skills with no effects and on enter check if the character has the skills you dont want to have an remove them and add the custom and on exit check if the character has the custom and remove them and add the banned skills
  17. You could remove the skills on enter and give them again after the match, bht if its not done properly it will be buggy
  18. The topsite is storing your IP, but there are.codes.that.do the same.thing too
  19. If u are.so good.at java and client.modding, then yes
  20. he wants sites to advertise his srv
  21. check at the other files too: CommunityBoardHandler.java:123 )(RequestShowBoard.java:44) (L2GameClientPacket.java:69 )L2GameClient.java:1133 )ThreadPoolExecutor.java:1142) ThreadPoolExecutor.java:617)
  22. Dont have visual studio :p
  23. if u open the srv with l2tower there will be the ip with a pm
×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock