Mario
June 26th, 2010, 20:48
How do I add a delay to this code:
if(npc.getDefinition().getId() == 2234) {
player.playAnimation(Animation.create(881, 0));
player.getInventory().add(new Item(995, 1000));
return;
}
Like ATM it just keeps giving 1k cash, I want it to have a delay in it (so you can't spamm to get rich fast).
if(npc.getDefinition().getId() == 2234) {
player.playAnimation(Animation.create(881, 0));
player.getInventory().add(new Item(995, 1000));
return;
}
Like ATM it just keeps giving 1k cash, I want it to have a delay in it (so you can't spamm to get rich fast).