Jump to content

SweeTs

Legendary Member
  • Posts

    8,941
  • Credits

  • Joined

  • Last visited

  • Days Won

    25
  • Feedback

    0%

Everything posted by SweeTs

  1. "SkillXML" on da google and the first link leads to my acc, lol.. http://www.4shared.com/rar/1yIgXMnI/skillxml.html
  2. 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..
  3. Still, switch case is better. Case number define the kill count. Anyway :D
  4. 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.
  5. http://trac.l2jserver.com/changeset/6477/
  6. This time ? :dat:
  7. 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))
  8. Check l2jserver timeline for the fix.
  9. Well, you can do it with switch, like (some old code) Index: java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java =================================================================== --- java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java (revision 198) +++ java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java (working copy) @@ -4530,6 +4531,8 @@ if (isMounted()) stopFeed(); + spreeKills = 0; + synchronized (this) { if (isFakeDeath()) @@ -4788,8 +4803,59 @@ * Increase the pvp kills count and send the info to the player * */ + private int spreeKills = 0; + public void increasePvpKills() { + spreeKills++; + + switch(spreeKills) + { + case 1: + //add skill code and w/e + break; + + case 2: + //add skill code and w/e + break; + + case 3: + //add skill code and w/e + break; + default: + ; + } // Add karma to attacker and increase its PK counter setPvpKills(getPvpKills() + 1); Well, it's good to put some sendMessage() so you can see if the code is working or not :P
  10. Devlin sux, everyone knows that.. :P
  11. Try adding the code @ rewardSkill() method, before if (Config.AUTO_LEARN_SKILLS) Also, how could that work while you put your code @ doPickupItem() method which has nothing to do with that case :happyforever:
  12. When you reach the desired lvl, does you get the msg ? Or nothing from the code is working ? sendMessage("Make sure you reach your level first. " +Config.LEVEL_TO_REWARD+ " .");
  13. http://www.maxcheaters.com/topic/180045-l2fow-pack/
  14. Already shared.. Just "adapted" to frozen ?
  15. "String value required, but not specified" :D
  16. So you did something wrong.
  17. Changeset 327 GrandBossManager, Misc GrandBossManager - Edit GrandBossManager to use a singleton, to fit with overall project writing style. - "Allowed players" system : - Move the initialization AFTER zones loading (it wasn't making any errors, but the system wasn't working). - Reworked it to simply use .add(, instead to set it using a temporary List. - Use an index system based on zoneId to avoid to search/retrieve current L2GrandBoss zone info on every SQL raw (it's doable since we order the query by ZONE and not by PLAYER anymore). Misc - Fix 2 NPEs on 2 quests, due to Trove drop (Trove was handling null by returning 0, while Java Map simply send null). Ty Root for fix. - Fix a NPE on itemid 8811. Ty sahar for report. - Add skill names on scheme buffer, using kdDer64 buffer graphic style. Also edit the extends in order to be invul. Ty sahar for patch. - Added few missing restock delays on Interlude spellbooks. Ty rebelstrik for report. - Move setPledgeClass() call leading to rank miscalculation for heroes on player restore, ty sahar. - Some Hasha TODO list : - Drop L2Skill._displayId, getter/setter. Replaced by getId(). - getAvailableHenna() is edited from array to List. Drop external null checks, as it is empty at worst. - Rename few packets typos, such as ware*H*ouse / withdraw*AL* - Drop DoorTable.putDoor(), single use. - Edited TaskSevenSignsUpdate _log definition (task system needs to be edited anyway).
  18. Download l2encded, paste the files into your system folder and run "patcher" :) http://www.4shared.com/rar/ICmhuXTmce/l2endec.html But there may be an error when you open your l2 ann the GG is not killed, it's caused by nwindow.dll (so switch it later with any). Btw, why don't you simply download the system from any l2 server? :P Also, what you mean saying
  19. lol, its amazing. You should hide it for some post count. Good job :)
  20. On aCis it's EffectZone.xml , so check if you have such zone, I guess there should be.
  21. http://www.maxcheaters.com/topic/178644-help-how-to-make-gk-ask-for-another-item/?p=2362210
  22. Take clean one and patch it on your own :P There was a topic with all patched and non systems somewhere..
  23. Nice idea, gg :P Like you mentioned, you have to add some IP restriction.
×
×
  • Create New...