Jump to content

<< Masterio >>

Members
  • Posts

    252
  • Joined

  • Last visited

  • Days Won

    6
  • Feedback

    0%

Everything posted by << Masterio >>

  1. In next revision i will fox ALT+T and Turn off options. (If i find some time:D)
  2. Updated to v3.0.2. 1. Fixed some connections problems. 2. About Karma, problem exists when Killer kill(pk) Victim in restricted zone. (I think). 3. Try to describe situation when the problem happened: - Place (you can use /loc i game), zone_id (if possible). - Flag status (killer is flagged, have karma, victim is flagged, have karma). - Attach config file. It will help me to find bug. ;)
  3. 1. When i started play in lineage I used no grade weapon as SH into 65lvl without shots:D it was on Existence x4 :D 2. Few months ago when i spoiled ews in FoG i do PvP with some guys (i was not alone, but with friend) some guy killed me and did PK, then my friend killed him and this guy drop zaken erring. Of course my friend picked it up:D 3. I killed 3 party with 5-7 ppl in Stakato Nest (they was on high level like me:D, but i was OL) then GM changed OL stats and all f... ups. Server closed:D
  4. And from where i should know that >? if data base structure is the same it should work.
  5. Hi, i have a question about get value of pDef of armor/ pAtk for weapon from java side. I mean I want obtain value of pdef of some armor so i use this: L2ItemInstance item = _activeChar.getInventory().getItemByObjectId(itemObjectId); item.getWeaponItem().getStatFunc(item, _activeChar). ... i dont know what next (now i check all possible fields / methods ) but iam not sure if it is good method. Who know correct method for obtains this values? all values are inside xml files in nodes, but where it is store in java? sry for eng. thx.
  6. its work, maybe you have not correctly implemented path?
  7. yes,i think i fixed it in 3.0.1 version. P.S. just remove my if statement from: public void increasePkKillsAndKarma(L2Character target) method, i forgot remove it in 3.0.0 sorry for my miss ;) correct method should looks like this (its oryginal code): public void increasePkKillsAndKarma(L2Character target) { int baseKarma = Config.KARMA_MIN_KARMA; int newKarma = baseKarma; int karmaLimit = Config.KARMA_MAX_KARMA; int pkLVL = getLevel(); int pkPKCount = getPkKills(); int targLVL = target.getLevel(); int lvlDiffMulti = 0; int pkCountMulti = 0; // Check if the attacker has a PK counter greater than 0 if (pkPKCount > 0) pkCountMulti = pkPKCount / 2; else pkCountMulti = 1; if (pkCountMulti < 1) pkCountMulti = 1; // Calculate the level difference Multiplier between attacker and killed L2PcInstance if (pkLVL > targLVL) lvlDiffMulti = pkLVL / targLVL; else lvlDiffMulti = 1; if (lvlDiffMulti < 1) lvlDiffMulti = 1; // Calculate the new Karma of the attacker : newKarma = baseKarma*pkCountMulti*lvlDiffMulti newKarma *= pkCountMulti; newKarma *= lvlDiffMulti; // Make sure newKarma is less than karmaLimit and higher than baseKarma if (newKarma < baseKarma) newKarma = baseKarma; if (newKarma > karmaLimit) newKarma = karmaLimit; // Fix to prevent overflow (=> karma has a max value of 2 147 483 647) if (getKarma() > (Integer.MAX_VALUE - newKarma)) newKarma = Integer.MAX_VALUE - getKarma(); // Add karma to attacker and increase its PK counter setKarma(getKarma() + newKarma); setPkKills(getPkKills() + 1); // Send a Server->Client UserInfo packet to attacker with its Karma and PK Counter sendPacket(new UserInfo(this)); sendPacket(new ExBrExtraUserInfo(this)); }
  8. java/com/l2jserver/gameserver/handler/VoicedCommandHandler.java already in pack, rest in CustomPvpSystem.diff
  9. 1. I understand only Polish or english. 2. Patch not compatibile with UNSTABLE H5 l2j, because they changes Zone identyfications.
  10. I don't know what exactly do 'event' variable but with this convention code should looks like this: if(!CustomPvpSystemConfig.CUSTOM_PVP_LEGAL_COUNTER_ALTT_ENABLED && target instanceof L2PcInstance && AntiFeedManager.getInstance().check(this, target) || !CustomPvpSystemConfig.CUSTOM_PVP_LEGAL_COUNTER_ALTT_ENABLED && event) { // Add karma to attacker and increase its PK counter setPvpKills(getPvpKills() + 1); // Send a Server->Client UserInfo packet to attacker with its Karma and PK Counter sendPacket(new UserInfo(this)); sendPacket(new ExBrExtraUserInfo(this)); }
  11. little fix for pk counter, if alt+T is enabled. v3.0.1 released.
  12. 2.9.9 try 3.0.0, and if you have other version than l2j server H5 stable try fit it manually.
  13. If i find bugs or add new features i will update it. about images for now looks good.
  14. Hi, i have a question about get value of pDef of armor/ pAtk for weapon from java side. I mean I want obtain value of pdef of some armor so i use this: L2ItemInstance item = _activeChar.getInventory().getItemByObjectId(itemObjectId); item.getWeaponItem().getEffects(item, _activeChar). ... i dont know what next (now i check all possible fields / methods ) but iam not sure if it is good method. Who know correct method for obtains this values? all values are inside xml files in nodes, but where it is store in java? sry for eng. thx.
  15. Hi, i have a question about get value of pDef of armor/ pAtk for weapon from java side. I mean I want obtain value of pdef of some armor so i use this: L2ItemInstance item = _activeChar.getInventory().getItemByObjectId(itemObjectId); item.getWeaponItem().getEffects(item, _activeChar). ... i dont know what next (now i check all possible fields / methods ) but iam not sure if it is good method. Who know correct method for obtains this values? all values are inside xml files in nodes, but where it is store in java? sry for eng. thx.
  16. no problems, its information for me only ;) i can back to this code part, do it more clear, or check all possibilities, or add more restrictions its all:D
  17. parameter names are not important, from java code only place of parameter is important, paramenter names are used only inside the procedure. So its good.
  18. Ok i checked it, i have no errors, maybe i can't restore the situation :)
  19. I have 1 question, what is difference when i put bigger values, server works faster or what happened then?
×
×
  • 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