well i want you to figure it out yourself
Code:
public void execute(CycleEventContainer container) {
if (!SkillHandler.checkObject(id, obX, obY, player.getPosition().getZ())) {
player.getActionSender().sendMessage("Too late, the plant is gone.");
container.stop();
return;
}
player.getActionSender().sendSound(356, 1, 0);
player.getInventory().addItem(item);
if (item.getId() != 1779 || Misc.random(3) == 0) {
int face = SkillHandler.getFace(id, obX, obY, player.getPosition().getZ());
new GameObject(Constants.EMPTY_OBJECT, obX, obY, player.getPosition().getZ(), face, 10, id, 20);
}
player.getActionSender().sendMessage("You pick a " + plantName + ".");
container.stop();
}
@Override
public void stop() {
player.setStopPacket(false);
}
});
CycleEventHandler.getInstance().addEvent(player, player.getSkilling(), 2);
return true;
}
}
I've colored the important code in that. You need to incorporate what is red into the code below.
Code:
if(!player.isDonator()) {
player.getInventory().addItem(new Item(1779, 1));
int face = SkillHandler.getFace(id, obX, obY, player.getPosition().getZ());
new GameObject(Constants.EMPTY_OBJECT, obX, obY, player.getPosition().getZ(), face, 10, id, 20);
}
else if(player.isDonator()) {
player.getInventory().addItem(new Item(1780, 1));
int face = SkillHandler.getFace(id, obX, obY, player.getPosition().getZ());
new GameObject(Constants.EMPTY_OBJECT, obX, obY, player.getPosition().getZ(), face, 10, id, 20);
}
player.getActionSender().sendMessage("You pick a " + plantName + ".");
container.stop();
}
Code:
player.getInventory().addItem(new Item(1780, 1));
this creates 1 unnoted flax(ID: 1780)
noted flax ID will be somewhere around 1780.
if you join the discord it will be easier to help u