This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..
Question
nikosdevil20
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
3 answers to this question
Recommended Posts