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); } } }
Hello. You may encounter the Push item fail error when trying to pick up an item dropped on the ground by a mob.
or
You can throw something out of your inventory and pick it up again, several times.
Probably this is a quantum dependency) I don't understand at what point this happens, sometimes two items one after another experience push item errors, and sometimes I don't have enough thousands of attempts to repeat this trick)
In any case, this is just a visual error and after the relog, the item appears in the inventory. I think first i need to disconnect the extender and check it on a bare server. I still need time to check this, maybe it's not even about the autoloot function.
https://youtu.be/6mcfmdImofE
-----------
In general, I would like to thank our wonderful Emca Eressea for her deep knowledge in programming and reverse engineering. And for the fact that her work is open to everyone, this is very amazing, and incredibly valuable.
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