|
@@ -9603,7 +9603,7 @@ void clif_refresh_storagewindow(struct map_session_data *sd) {
|
|
if( sd->state.storage_flag == 1 ) {
|
|
if( sd->state.storage_flag == 1 ) {
|
|
storage_sortitem(sd->storage.u.items_storage, ARRAYLENGTH(sd->storage.u.items_storage));
|
|
storage_sortitem(sd->storage.u.items_storage, ARRAYLENGTH(sd->storage.u.items_storage));
|
|
clif_storagelist(sd, sd->storage.u.items_storage, ARRAYLENGTH(sd->storage.u.items_storage), storage_getName(0));
|
|
clif_storagelist(sd, sd->storage.u.items_storage, ARRAYLENGTH(sd->storage.u.items_storage), storage_getName(0));
|
|
- clif_updatestorageamount(sd, sd->storage.amount, MAX_STORAGE);
|
|
|
|
|
|
+ clif_updatestorageamount(sd, sd->storage.amount, sd->storage.max_amount);
|
|
}
|
|
}
|
|
// Notify the client that the gstorage is open otherwise it will
|
|
// Notify the client that the gstorage is open otherwise it will
|
|
// remain locked forever and nobody will be able to access it
|
|
// remain locked forever and nobody will be able to access it
|
|
@@ -9615,9 +9615,15 @@ void clif_refresh_storagewindow(struct map_session_data *sd) {
|
|
else {
|
|
else {
|
|
storage_sortitem(gstor->u.items_guild, ARRAYLENGTH(gstor->u.items_guild));
|
|
storage_sortitem(gstor->u.items_guild, ARRAYLENGTH(gstor->u.items_guild));
|
|
clif_storagelist(sd, gstor->u.items_guild, ARRAYLENGTH(gstor->u.items_guild), "Guild Storage");
|
|
clif_storagelist(sd, gstor->u.items_guild, ARRAYLENGTH(gstor->u.items_guild), "Guild Storage");
|
|
- clif_updatestorageamount(sd, gstor->amount, MAX_GUILD_STORAGE);
|
|
|
|
|
|
+ clif_updatestorageamount(sd, gstor->amount, gstor->max_amount);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ // Notify the client that the premium storage is open
|
|
|
|
+ if (sd->state.storage_flag == 3) {
|
|
|
|
+ storage_sortitem(sd->premiumStorage.u.items_storage, ARRAYLENGTH(sd->premiumStorage.u.items_storage));
|
|
|
|
+ clif_storagelist(sd, sd->premiumStorage.u.items_storage, ARRAYLENGTH(sd->premiumStorage.u.items_storage), storage_getName(sd->premiumStorage.stor_id));
|
|
|
|
+ clif_updatestorageamount(sd, sd->premiumStorage.amount, sd->premiumStorage.max_amount);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
// refresh the client's screen, getting rid of any effects
|
|
// refresh the client's screen, getting rid of any effects
|