Fixes + more

What I've done this update:
- Fixed tutorial island's chef giving infinite amounts of buckets and water to players
- Fixed fishing without a tool.
- Added the wilderness teleport lever to Edgeville south of the bank (as some have requested)
- Added some useful tools for editing cache.

Enjoy!
This commit is contained in:
jamix77 2020-01-26 17:41:13 +00:00 committed by Jamix77
parent bad68d296c
commit a5a206653e
2 changed files with 8 additions and 0 deletions

View file

@ -9,6 +9,7 @@ import java.sql.Timestamp;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.crandor.ServerConstants;
import org.crandor.cache.misc.buffer.ByteBufferUtils;
import org.crandor.game.node.entity.player.info.portal.PlayerSQLManager;
import org.crandor.game.system.SystemManager;
@ -173,6 +174,7 @@ public class AccountRegister extends SQLEntryHandler<RegistryDetails> {
}else{
statement.setString(7,null);
}
statement.executeUpdate();
SQLManager.close(statement.getConnection());
}

View file

@ -45,6 +45,11 @@ public class MasterChefDialogue extends DialoguePlugin {
case 20:
if (player.getInventory().containsAll(1933,1929)) {
Component.setUnclosable(player, interpreter.sendDialogues(npc, FacialExpression.NEUTRAL, "Mix together the flour and water to form a dough."));
Component.setUnclosable(player, interpreter.sendDialogues(npc, FacialExpression.NO_EXPRESSION, "Mix together the flour and water to form a dough."));
stage = 1;
} else if (player.getInventory().containsItem(new Item(2307))) {
Component.setUnclosable(player, interpreter.sendDialogues(npc, FacialExpression.NO_EXPRESSION, "You already have some dough, no need", "to make more."));
stage = 1;
} else if (player.getInventory().containsItem(new Item(2307))) {
@ -61,6 +66,7 @@ public class MasterChefDialogue extends DialoguePlugin {
stage = 1;
} else {
Component.setUnclosable(player, interpreter.sendDialogues(npc, FacialExpression.HALF_GUILTY, "I see you have lost your pot of flour and bucket of water,", "No worries i will supply you with more."));
Component.setUnclosable(player, interpreter.sendDialogues(npc, FacialExpression.NO_EXPRESSION, "I see you have lost your pot of flour and bucket of water,", "No worries i will supply you with more."));
if (player.getInventory().freeSlots() >= 2) {
player.getInventory().add(new Item(1933));
player.getInventory().add(new Item(1929));