Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ If you want to contribute to d2bs/d2bot#, come to irc.synirc.net/d2bs and ask ar
## Guides
- [manual playing](https://github.com/blizzhackers/documentation/blob/master/kolbot/ManualPlay.md/#manual-playing)
- [multi botting](https://github.com/blizzhackers/documentation/blob/master/kolbot/MultiBotting.md/#multi-botting)
- [PlugY Setup for single player](https://github.com/blizzhackers/documentation/blob/master/kolbot/PlugY.md#plugy-setup-for-single-player-botting)
- [kolbot-SoloPlay](https://github.com/blizzhackers/kolbot-SoloPlay)
- [character config](https://github.com/blizzhackers/documentation/blob/master/kolbot/CharacterConfig.md/#character-configuration)
- [TCP/IP Games](https://github.com/blizzhackers/documentation/blob/master/kolbot/TCP-IP%20games.md#tcpip-games)
Expand Down
16 changes: 14 additions & 2 deletions d2bs/kolbot/libs/core/Town.js
Original file line number Diff line number Diff line change
Expand Up @@ -1425,10 +1425,22 @@ const Town = {
*/
canStash: function (item) {
if (Town.ignoreType(item.itemType)
|| [sdk.items.quest.HoradricStaff, sdk.items.quest.KhalimsWill].includes(item.classid)
|| !Town.canStashGem(item)) {
|| [sdk.items.quest.HoradricStaff, sdk.items.quest.KhalimsWill].includes(item.classid)) {
return false;
}
if ((!Storage.Stash.CanFit(item) || !Town.canStashGem(item)) && Config.SortSettings.PlugYStash) {
const firstPageBtn = me.screensize
? { x: 226, y: 463} // 800x600
: { x: 191, y: 400}; // 640x480
!getUIFlag(sdk.uiflags.Stash) && Town.openStash();
say("/swappage");
delay(50);
say("/insertpage");
console.log("Inserted new empty page into stash");
delay(250);
sendClick(firstPageBtn.x, firstPageBtn.y); //click previous page
return true
}
/**
* @todo add sorting here first if we can't fit the item
*/
Expand Down