hello guys ...i have 1 system in my pack of when player1 is in party and kill player2 if player's1 party have bishop give reward to bishop. i want make this reward from bishop have rate for example 50% for give reward to bishop....this is the code:
if(player.isInParty()) { for (L2PcInstance member : player.getParty().getPartyMembers()) { if(member.getClassId().getId() == 97) // only cardinal { member.addItem("PVP Reward", 3470, 100, member, true); } } }
if anyone know something about that post here ty