Shops will no longer charge if inventory is full
The ::shop can no longer be opened if the player is movement or interaction locked Rogues now drop the proper coin Rewrote the canoe station chop down as a soft script to be uninterruptible Fixed the player locks for Rellekka trapped chest and better handled the case when inventory is full Corrected the examine text of the armadyl plateskirt Fixed the dialogue for lady of the lake The player is now locked and can't interrupt stepping stone shortcuts
This commit is contained in:
@@ -307,7 +307,7 @@ class Shop(val title: String, val stock: Array<ShopItem>, val general: Boolean =
|
||||
{
|
||||
if(removeItem(player, cost))
|
||||
{
|
||||
if (item.amount == 0 && amountInInventory(player, cost.id) == 0) {
|
||||
if (item.amount == 0) {
|
||||
item.amount = 1
|
||||
}
|
||||
if(!hasSpaceFor(player, item)) {
|
||||
|
||||
@@ -175,7 +175,9 @@ class MiscCommandSet : CommandSet(Privilege.ADMIN){
|
||||
* Opens the credit/voting shop
|
||||
*/
|
||||
define("shop", Privilege.STANDARD, "", "Opens the credit shop."){ player, _ ->
|
||||
player.interfaceManager.open(Component(Components.CREDIT_SHOP))
|
||||
if (player.locks.isInteractionLocked || player.locks.isMovementLocked) {
|
||||
sendMessage(player, "You can't open the shop right now.")
|
||||
} else player.interfaceManager.open(Component(Components.CREDIT_SHOP))
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user