Faster shop restocking - Brought back normal stack of items in shops … (#164)

* Faster shop restocking - Brought back normal stack of items in shops - Added chat message to camoe transport system

Faster shop restocking - Brought back normal stack of items in shops - Added chat message to camoe transport system

* Fixed typo

Fixed typo
This commit is contained in:
Gptaqbc
2019-11-10 19:46:24 -05:00
committed by Daniel Ginovker
parent c6155eb529
commit dc3f561868
5 changed files with 26 additions and 8 deletions
@@ -96,10 +96,28 @@ public class Woodcutting {
}
public static void handleCanoe(final Client player, final int objectId) {
Boolean gotAxe = false;
if (player.playerLevel[player.playerWoodcutting] < 12) {
player.getActionSender().sendMessage("You need a woodcutting level of at least 12 to use the canoe station.");
return;
}
for (int axes[] : Axe_Settings) {
int type = axes[0];
if ( player.getItemAssistant().playerHasItem(type) || player.playerEquipment[player.playerWeapon] == type)
{
gotAxe = true;
}
}
if (gotAxe)
{
player.getActionSender().sendMessage("You swing your axe at the station.");
}
else
{
player.getActionSender().sendMessage("You need an axe to cut the station.");
return;
}
for (int axes[] : Axe_Settings) {
int type = axes[0];
int level = axes[1];
@@ -107,7 +125,6 @@ public class Woodcutting {
if (player.playerLevel[player.playerWoodcutting] >= level && player.getItemAssistant().playerHasItem(type) || player.playerLevel[player.playerWoodcutting] >= level && player.playerEquipment[player.playerWeapon] == type) {
player.turnPlayerTo(player.objectX, player.objectY);
player.startAnimation(anim);
player.getActionSender().sendMessage("You swing your axe at the station.");
CycleEventHandler.getSingleton().addEvent(player, new CycleEvent() {
@Override
public void execute(CycleEventContainer container) {
@@ -76,7 +76,7 @@ public class LightSources {
return true;
}
}
c.getActionSender().sendMessage("It's recommened that you get a light source to continue.");
c.getActionSender().sendMessage("It's recommended that you get a light source to continue.");
brightness1(c);
return false;
}
@@ -2444,7 +2444,7 @@ public class PlayerAssistant {
if (!player.hasBankpin) {
player.getActionSender()
.sendMessage(
"You do not, have a bank pin it is highly recommened you set one.");
"You do not, have a bank pin it is highly recommended you set one.");
}
}
}
@@ -5,6 +5,7 @@ import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import redone.game.players.Client;
import redone.game.players.PlayerHandler;
import redone.util.Misc;
@@ -16,7 +17,7 @@ public class ShopHandler {
public static int MaxShops = 200;
public static int MaxShopItems = 200;
public static int MaxShowDelay = 10;
public static int MaxShowDelay = 2;
public static int MaxSpecShowDelay = 60;
public static int TotalShops = 0;
public static int[][] ShopItems = new int[MaxShops][MaxShopItems];
@@ -48,7 +49,7 @@ public class ShopHandler {
switch(itemId) {
default:
return 5000;
return 1000;
}
}