mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-04 08:39:05 +00:00
don't charge player to withdraw items from their store
This commit is contained in:
@@ -177,6 +177,7 @@ public class ShopHandler {
|
||||
int id = getEmptyShop();
|
||||
player.myShopId = id;
|
||||
ShopSModifier[id] = 0;
|
||||
ShopBModifier[id] = 0;
|
||||
ShopName[id] = player.properName + "'s Store";
|
||||
for (int i = 0; i < MaxShopItems; i++){
|
||||
ShopItems[id][i] = player.bankItems[i];
|
||||
@@ -229,4 +230,8 @@ public class ShopHandler {
|
||||
}
|
||||
refreshShop(shop_id);
|
||||
}
|
||||
|
||||
public static boolean playerOwnsStore(int shop_id, Client player){
|
||||
return ShopSModifier[shop_id] == 0 && ShopBModifier[shop_id] == 0 && ShopName[shop_id].equalsIgnoreCase(player.properName + "'s Store");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user