Jump to content

SweeTs

Legendary Member
  • Posts

    8,941
  • Joined

  • Last visited

  • Days Won

    25
  • Feedback

    0%

Everything posted by SweeTs

  1. You can do it even with 100-150 euro. Let's say dedi from any OVH reseller (which included basic ddos prot, good enough), 50 euro from someone (check the dedicated section for powersupport or how it was called) or you can buy from HostChefs for 65+ with support and such and microprotection from HyperFilter for some $$ http://hostchefs.eu/lineage2.php http://www.hyperfilter.com/micro-protection/ Seriously, you don't need much when it's about dedi.
  2. As I told, just drop the zone check and leave return false;
  3. Cool story brah.
  4. And what is your problem, cuz I don't get it.. ? Just add this check @ L2NpcInstance.java . With that, you won't be able to hit npcs inside a town zone. Drop the check or leave, make a config or w/e :P @Override public boolean isAttackable() { if(isInsideZone(ZoneId.TOWN)) return false; return true; }
  5. Yup. Just change the name of property to w/e you want.
  6. That's.. sad.. I gave you example on HOW TO create "new property". So.. do like that.
  7. Still, you don't. Hopzone getVote method is enough huehue :P
  8. What for you need it ? Ohh wait.. you don't. :troll:
  9. public static final String CLANS_FILE = "./config/clans.properties"; // Clans settings ExProperties clans = load(CLANS_FILE); That's it.
  10. Check the file (Config.java) how the properties file is separated. You don't need this.
  11. Talking about karma < 0
  12. > 0 you mean.
  13. Yup, I know that.. Anyway.
  14. You rly expect me to c/p rdy code cuz someone wants it ? :troll: Btw, he was asking only for that and it's obvious to check if the party is not null, so well.. :)
  15. L2Party party = player.getParty(); if (party.getMemberCount() < 3) { player.sendMessage("You need a party with at least 3 members."); return; }
  16. This. If you have no clue how to add such things, just don't add. Start from begining, I mean, from adding simple usercommandhandlers like those you mentioned.. Start from lvl 1, do not skip them.
  17. "SkillXML" on da google and the first link leads to my acc, lol.. http://www.4shared.com/rar/1yIgXMnI/skillxml.html
  18. This.. Everywhere the same shitty html.. Server owner should be able to edit godamn htm on his own and make the style he wants to and not just c/p and "done". lmao.. He point out you did a mistake in your htm and you're 'attacking' him..
  19. Still, switch case is better. Case number define the kill count. Anyway :D
  20. It is, just put the comboDie at doDie method :P Just noticed if(combo < Config.COMBO1_KILLS) Should be >= since it's not reseted yet.
  21. http://trac.l2jserver.com/changeset/6477/
  22. This time ? :dat:
  23. Basically yup, I'd go with switch, but well.. You have your own way and that's cool :) I tested you code, and guess what.. It's working fine. Dunno how you tested, but it's working only for the pvp case, not pk :P So, if it's not working for you, you facked the placement of the code. ### Eclipse Workspace Patch 1.0 #P aCis_gameserver Index: java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java =================================================================== --- java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java (revision 327) +++ java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java (working copy) @@ -4012,6 +4012,9 @@ if (isMounted()) stopFeed(); + comboDie(killer); + removeSkill(264); + synchronized (this) { if (isFakeDeath()) @@ -4226,6 +4229,9 @@ // Add PvP point to attacker. setPvpKills(getPvpKills() + 1); + // killing spree + checkCombo(); + // Send UserInfo packet to attacker with its Karma and PK Counter sendPacket(new UserInfo(this)); } @@ -4245,6 +4251,56 @@ } } + /** Fallen system */ + private int combo = 0; + + private void checkCombo() + { + int i = 0; + combo++; + int combos = 0; + + if(combo == 1) + { + i = 1; + addSkill(SkillTable.getInstance().getInfo(264, 1), false); + combos = 1; + } + else if(combo == 2) + { + i = 2; + addSkill(SkillTable.getInstance().getInfo(264, 110), false); + combos = 2; + } + else if(combo == 3) + { + i = 3; + addSkill(SkillTable.getInstance().getInfo(264, 120), false); + combos = 3; + } + + if(i > 0) + { + sendMessage("You have been rewarded with a skill."); + Broadcast.announceToOnlinePlayers("Player "+getName() + " is in a Combo Mode with " +combos +" pvp kills in a row!"); + } + + i = 0; + combos = 0; + } + + private void comboDie(L2Character killer) + { + if(combo > 1) + Broadcast.announceToOnlinePlayers("Player "+getName() +" has lost his combo of "+combo +" kills by "+killer.getName()); + + combo = 0; + } + public void updatePvPStatus() { if (isInsideZone(ZoneId.PVP))
×
×
  • 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