Hey guys,
Recently I started scripting, I've got a decent level with PHP and web developing so the java basics are easy for me.
My problem is :
I'm making a smithing script for al kharid, I've got the backbone basicly but im kinda stuck with the conditions.
Like when the player has 9 iron and 19 coal it needs to walk to the furnace (case smithing) then it needs to make steel bars until it can no longer make them, then it needs to bank. But my brain thinks way to complex so I'm not able to get it to work flawlessly.
private State getState() {
if (inventory.getAmount("Coal") > 1 && inventory.getAmount("Iron ore") > 0 ){
return State.SMITH;
}
return State.BANK;
}
^ This is one method I used.
Can somebody please make it clear how to condition this the right way