FoooT Posted February 18, 2010 Posted February 18, 2010 Hey guys, I created Faction Type Server and now i have one problem in my server (Light Vs Dark) Dark can kill Dark and Light Can Kill Light Here is Screen Shot : Thank you guys for help and sory for my bad eanglish Quote
0 Tryskell Posted February 18, 2010 Posted February 18, 2010 I suppose you use KvN system which deeply sucks. You have to change your PvP formula on L2PcInstance first, cause even if you are of the same faction you can kill. The only thing is you haven't adenas/pvp from the kill. So mod it properly. After it depends of your chronicle, but as you want to block all, I suggest to add a condition in RequestActionUse (network.clientpackets). You can mod too autoattackable on L2PcInstance and L2skill. Refers to laikeriz faction system, which is the best faction engine shared through MXC. You can try to find fdlp one as well, even if it's more primitic. About the violet thing, remove the setpvpflag call (or something near) in L2PcInstance if you want keep your name color. Violet is stupid, imagine with 50 others ppls if they all become violet lol. Quote
0 FoooT Posted February 18, 2010 Author Posted February 18, 2010 Iget flag only then i attacking my faction then i kill other faction i dont get flag Quote
0 `Peter Posted February 18, 2010 Posted February 18, 2010 Maybe you have access in your first char, i think GMs can hit everyteam depends on what KvN System you are using. Quote
0 FoooT Posted February 18, 2010 Author Posted February 18, 2010 no, i turn on admin just for SS but all players can attack each other :( Quote
0 `Rοmeο Posted February 19, 2010 Posted February 19, 2010 Index: C:/workspace/L2_GameServer/java/net/sf/l2j/gameserver/model/actor/L2Character.java =================================================================== --- C:/workspace/L2_GameServer/java/net/sf/l2j/gameserver/model/actor/L2Character.java (revision 3338) +++ C:/workspace/L2_GameServer/java/net/sf/l2j/gameserver/model/actor/L2Character.java (working copy) @@ -759,6 +759,18 @@ return; } } + if (((L2PcInstance) this).isffaction() && ((L2PcInstance) target).isffaction() && Config.FACTION_SYSTEM_ENABLE) + { + ((L2PcInstance) this).sendMessage("Cant attack a player from your faction"); + sendPacket(ActionFailed.STATIC_PACKET); + return; + } + if (((L2PcInstance) this).issfaction() && ((L2PcInstance) target).issfaction() && Config.FACTION_SYSTEM_ENABLE) + { + ((L2PcInstance) this).sendMessage("Cant attack a player from your faction"); + sendPacket(ActionFailed.STATIC_PACKET); + return; + } // Checking if target has moved to peace zone if (target.isInsidePeaceZone((L2PcInstance)this)) { Try this code :) Quote
0 Rumble Posted March 19, 2010 Posted March 19, 2010 Man look, you kill a Same Faction :S that is the problem :). kill Light by Dark =) Thx! Quote
Question
FoooT
Hey guys, I created Faction Type Server and now i have one problem in my server (Light Vs Dark) Dark can kill Dark and Light Can Kill Light
Here is Screen Shot :
Thank you guys for help and sory for my bad eanglish
6 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.