Intrepid Posted March 1, 2009 Share Posted March 1, 2009 Go to net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.java search for that: // Check if this L2PcInstance is autoAttackable if (isAutoAttackable(player) || (player._inEventCTF && CTF._started)) { after that insert the code: if (!isClanLeader()) { if(player.getLevel() > 20 && ((L2Character) player.getTarget()).getLevel() < 20) { player.sendMessage("Your target is not in your grade!"); player.sendPacket(ActionFailed.STATIC_PACKET); } if(player.getLevel() > 40 && ((L2Character) player.getTarget()).getLevel() < 40) { player.sendMessage("Your target is not in your grade!"); player.sendPacket(ActionFailed.STATIC_PACKET); } if(player.getLevel() > 52 && ((L2Character) player.getTarget()).getLevel() < 52) { player.sendMessage("Your target is not in your grade!"); player.sendPacket(ActionFailed.STATIC_PACKET); } if(player.getLevel() > 61 && ((L2Character) player.getTarget()).getLevel() < 61) { player.sendMessage("Your target is not in your grade!"); player.sendPacket(ActionFailed.STATIC_PACKET); } if(player.getLevel() > 76 && ((L2Character) player.getTarget()).getLevel() < 76) { player.sendMessage("Your target is not in your grade!"); player.sendPacket(ActionFailed.STATIC_PACKET); } if(player.getLevel() < 20 && ((L2Character) player.getTarget()).getLevel() > 20) { player.sendMessage("Your target is not in your grade!"); player.sendPacket(ActionFailed.STATIC_PACKET); } if(player.getLevel() < 40 && ((L2Character) player.getTarget()).getLevel() > 40) { player.sendMessage("Your target is not in your grade!"); player.sendPacket(ActionFailed.STATIC_PACKET); } if(player.getLevel() < 52 && ((L2Character) player.getTarget()).getLevel() > 52) { player.sendMessage("Your target is not in your grade!"); player.sendPacket(ActionFailed.STATIC_PACKET); } if(player.getLevel() < 61 && ((L2Character) player.getTarget()).getLevel() > 61) { player.sendMessage("Your target is not in your grade!"); player.sendPacket(ActionFailed.STATIC_PACKET); } if(player.getLevel() < 76 && ((L2Character) player.getTarget()).getLevel() > 76) { player.sendMessage("Your target is not in your grade!"); player.sendPacket(ActionFailed.STATIC_PACKET); } } the difference is the basic one that implemented in l2jfree dont allow pvp until X level my share allow you to pvp beetwen grades so for example you have 500x server there are low lvl char killing you make the player protection until 76 no low lvl char killing but they cant make pvp with a lower char than 76 and its not so good so:) Credits to me. Link to comment Share on other sites More sharing options...
StarChild Posted March 1, 2009 Share Posted March 1, 2009 Nice, gonna try that... Thank you :) Link to comment Share on other sites More sharing options...
sτrίkε- Posted March 1, 2009 Share Posted March 1, 2009 and which is the difference of another char protection? Link to comment Share on other sites More sharing options...
Intrepid Posted March 1, 2009 Author Share Posted March 1, 2009 and which is the difference of another char protection? the difference is the basic one that implemented in l2jfree dont allow pvp until X level my share allow you to pvp beetwen grades so for example you have 500x server there are low lvl char killing you make the player protection until 76 no low lvl char killing but they cant make pvp with a lower char than 76 and its not so good so:) Link to comment Share on other sites More sharing options...
sτrίkε- Posted March 1, 2009 Share Posted March 1, 2009 the difference is the basic one that implemented in l2jfree dont allow pvp until X level my share allow you to pvp beetwen grades so for example you have 500x server there are low lvl char killing you make the player protection until 76 no low lvl char killing but they cant make pvp with a lower char than 76 and its not so good so:) ahhh i understand now :P Great job keep sharing :D Link to comment Share on other sites More sharing options...
DāЯқŜiĐє Posted March 1, 2009 Share Posted March 1, 2009 the difference is the basic one that implemented in l2jfree dont allow pvp until X level my share allow you to pvp beetwen grades so for example you have 500x server there are low lvl char killing you make the player protection until 76 no low lvl char killing but they cant make pvp with a lower char than 76 and its not so good so:) yap add that in your main post :P (Great job and another great share from Intrepid) Link to comment Share on other sites More sharing options...
xXxExosoulerxXx Posted March 2, 2009 Share Posted March 2, 2009 very nice i thank you.Btw i saw on some server which had protection in low lvl a bug.A leader ,who was low lvl, went to prey room at sieges and nobody could hit him.There is a fix to this problem? Link to comment Share on other sites More sharing options...
Intrepid Posted March 2, 2009 Author Share Posted March 2, 2009 very nice i thank you.Btw i saw on some server which had protection in low lvl a bug.A leader ,who was low lvl, went to prey room at sieges and nobody could hit him.There is a fix to this problem? 1st post updated bug fixed:) Link to comment Share on other sites More sharing options...
xXxExosoulerxXx Posted March 2, 2009 Share Posted March 2, 2009 1st post updated bug fixed:) GJ I will test it Link to comment Share on other sites More sharing options...
Fogotendx20 Posted March 2, 2009 Share Posted March 2, 2009 Share: Nice Usefully: No, server must use off values... :) Link to comment Share on other sites More sharing options...
Intrepid Posted March 2, 2009 Author Share Posted March 2, 2009 Share: Nice Usefully: No, server must use off values... :) i dont say nothing about that...make the 3245236958643298146328164. gmshop the 325476523464365.npc buffer the 3242359864398659835. GGK its very usefull... Link to comment Share on other sites More sharing options...
Rizel Posted March 2, 2009 Share Posted March 2, 2009 off values? :D 90% of the shares in this forum is some custom stuff :) Link to comment Share on other sites More sharing options...
Fogotendx20 Posted March 2, 2009 Share Posted March 2, 2009 i know... :) from all this only the 40-50% is for pvp serv ... for serius low rates server 1% and all other shares is for fun.... when have free time to play/test its :) Link to comment Share on other sites More sharing options...
GoDofAdeN Posted March 2, 2009 Share Posted March 2, 2009 for me this worked Great !. Thanks. Link to comment Share on other sites More sharing options...
jossoo Posted March 2, 2009 Share Posted March 2, 2009 its ok but i think its poor...think about on siege..or is fixed? i mean that if all 80-85 lvl chars go for siege and 1 dwarf 40 lvl (clan leader on sub..) can take easy the castle.. Link to comment Share on other sites More sharing options...
Recommended Posts