Hello guys ,im searching for this code but i cant find ,i cannot create it either ,i have no idea where to start
So basically ,classes like BISHOP/EE and all other assist classes will get reward if party dps make kills (each kill is made ,the assist will get the reward too or should i say ,a part of it)
Lets begin with multifunction ,on L2PcInstance is something like this
L2MultiFunctionZone.givereward(this);
and inside this ,the code is something like this:
public static void givereward(L2PcInstance player)
+ {
+ if (player.isInsideZone(ZoneId.MULTI_FUNCTION))
+ {
+ for (int[] reward : rewards)
+ {
+ PcInventory inv = player.getInventory();
+ inv.addItem("Custom Reward", reward[0], reward[1], player, player);
+ }
+ }
+ }
Any idea perhaps?