forked from 2009Scape/Server
Cook all now works
This commit is contained in:
parent
8b07e874b2
commit
4b007ebd6c
2 changed files with 21 additions and 0 deletions
|
|
@ -110,6 +110,14 @@ public final class CookingDialoguePlugin extends DialoguePlugin {
|
|||
}
|
||||
});
|
||||
player.getDialogueInterpreter().sendInput(false, "Enter the amount:");
|
||||
} else if (amount == 28){
|
||||
player.setAttribute("runscript", new RunScript() {
|
||||
@Override
|
||||
public boolean handle() {
|
||||
food.cook(player, object, amount);
|
||||
return false;
|
||||
}
|
||||
});
|
||||
}
|
||||
food.cook(player, object, amount);
|
||||
break;
|
||||
|
|
@ -158,6 +166,9 @@ public final class CookingDialoguePlugin extends DialoguePlugin {
|
|||
return 5;
|
||||
case 4:
|
||||
return -1;
|
||||
case 3:
|
||||
return 28;
|
||||
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -102,6 +102,14 @@ public final class CookingDialoguePlugin extends DialoguePlugin {
|
|||
}
|
||||
});
|
||||
player.getDialogueInterpreter().sendInput(false, "Enter the amount:");
|
||||
} else if (amount == 28) {
|
||||
player.setAttribute("runscript", new RunScript() {
|
||||
@Override
|
||||
public boolean handle() {
|
||||
food.cook(player, object, amount);
|
||||
return false;
|
||||
}
|
||||
});
|
||||
}
|
||||
food.cook(player, object, amount);
|
||||
break;
|
||||
|
|
@ -150,6 +158,8 @@ public final class CookingDialoguePlugin extends DialoguePlugin {
|
|||
return 5;
|
||||
case 3:
|
||||
return -1;
|
||||
case 2:
|
||||
return 28;
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue