Skip to content

Commit

Permalink
Merge pull request #3 from Borega/main
Browse files Browse the repository at this point in the history
update
  • Loading branch information
yayza authored Apr 17, 2021
2 parents a8850ea + 050c0bb commit 93b30a2
Show file tree
Hide file tree
Showing 11 changed files with 28 additions and 23 deletions.
2 changes: 1 addition & 1 deletion kolbot/libs/bots/Mapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function Mapper() {
};

this.upgradeMaps = function () {
var map, maps, roll, tome, minGold,
var map, maps, roll, minGold,
ids = Config.Mapper.Maps,
mapids = [];

Expand Down
2 changes: 1 addition & 1 deletion kolbot/libs/bots/Mausoleum.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function Mausoleum() {
}

if (Config.Mausoleum.KillBloodRaven) {
Pather.moveToPreset(17, 1, 957);
Pather.moveToPreset(17, 1, 958);
Attack.kill(getLocaleString(3111)); // Blood Raven
Pickit.pickItems();
}
Expand Down
4 changes: 3 additions & 1 deletion kolbot/libs/common/Precast.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,10 @@ var Precast = new function () {
var buffSummons = false;

if (me.classid != 5){
if (me.getSkill(226, 1)&& !me.getState(149)) {
if (me.getSkill(226, 1) && !me.getState(149)) {
Skill.cast(226, 0); // Oak Sage
} else if (me.getSkill(236, 1) && !me.getState(148)){
Skill.cast(236, 0); // Heart of the Wolverine
}
}

Expand Down
17 changes: 5 additions & 12 deletions kolbot/libs/common/Storage.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,20 +191,13 @@ var Container = function (name, width, height, location) {
var quant_types = [118, 120, 121, 122, 123, 124, 137, 104, 194, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 197];

if ((this.location === 3 || this.location === 7) && quant_types.indexOf(item.itemType) > -1) {
var stack = find_eligible_stack(item.classid, 50, this.location);
var stack = find_eligible_stack(item.classid, item.getStat(70), this.location);

if (stack) {
for (var i = 0; i < 3; i++) {
clickItem(0, stack);
var max_wait = Date.now() + 500 + me.ping;
while (Date.now() < max_wait) {
delay(10);
if (!me.itemoncursor) {
// successfully stacked?
delay(41);
return true;
}
}
delay(100 + me.ping);
return true;
}
}
}
Expand Down Expand Up @@ -413,13 +406,13 @@ var Storage = new function () {
};
};

function find_eligible_stack(item_index, max_quant, loc) {
function find_eligible_stack(item_index, currentStack, loc) {
var stacks = me.findItems(item_index, 0, loc);
if (!stacks) {
return false;
}
for (var i = 0; i < stacks.length; i++) {
if (stacks[i].getStat(70) >= 1 && stacks[i].getStat(70) < max_quant) {
if (stacks[i].getStat(70) + currentStack <= 50) {
return stacks[i];
}
}
Expand Down
4 changes: 3 additions & 1 deletion kolbot/libs/config/Amazon.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ function LoadConfig() {
Scripts.Cows = false;

// *** act 2 ***
Scripts.StonyTomb = false;
Config.StonyTomb.ClearType = 0; // 0xF = skip normal, 0x7 = champions/bosses, 0 = all
Scripts.Radament = false;
Scripts.Coldworm = false;
Config.Coldworm.KillBeetleburst = false;
Expand Down Expand Up @@ -663,4 +665,4 @@ function LoadConfig() {
Config.AutoBuild.DebugMode = true; // Debug mode prints a little more information to console and
// logs activity to /logs/AutoBuild.CharacterName._MM_DD_YYYY.log
// It automatically enables Config.AutoBuild.Verbose
}
}
4 changes: 3 additions & 1 deletion kolbot/libs/config/Assassin.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ function LoadConfig() {
Scripts.Cows = false;

// *** act 2 ***
Scripts.StonyTomb = false;
Config.StonyTomb.ClearType = 0; // 0xF = skip normal, 0x7 = champions/bosses, 0 = all
Scripts.Radament = false;
Scripts.Coldworm = false;
Config.Coldworm.KillBeetleburst = false;
Expand Down Expand Up @@ -671,4 +673,4 @@ function LoadConfig() {
Config.AutoBuild.DebugMode = true; // Debug mode prints a little more information to console and
// logs activity to /logs/AutoBuild.CharacterName._MM_DD_YYYY.log
// It automatically enables Config.AutoBuild.Verbose
}
}
4 changes: 3 additions & 1 deletion kolbot/libs/config/Barbarian.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ function LoadConfig() {
Scripts.Cows = false;

// *** act 2 ***
Scripts.StonyTomb = false;
Config.StonyTomb.ClearType = 0; // 0xF = skip normal, 0x7 = champions/bosses, 0 = all
Scripts.Radament = false;
Scripts.Coldworm = false;
Config.Coldworm.KillBeetleburst = false;
Expand Down Expand Up @@ -656,4 +658,4 @@ function LoadConfig() {
Config.AutoBuild.DebugMode = true; // Debug mode prints a little more information to console and
// logs activity to /logs/AutoBuild.CharacterName._MM_DD_YYYY.log
// It automatically enables Config.AutoBuild.Verbose
}
}
2 changes: 2 additions & 0 deletions kolbot/libs/config/Druid.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ function LoadConfig() {
Scripts.Cows = false;

// *** act 2 ***
Scripts.StonyTomb = false;
Config.StonyTomb.ClearType = 0; // 0xF = skip normal, 0x7 = champions/bosses, 0 = all
Scripts.Radament = false;
Scripts.Coldworm = false;
Config.Coldworm.KillBeetleburst = false;
Expand Down
4 changes: 3 additions & 1 deletion kolbot/libs/config/Necromancer.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ function LoadConfig() {
Scripts.Cows = false;

// *** act 2 ***
Scripts.StonyTomb = false;
Config.StonyTomb.ClearType = 0; // 0xF = skip normal, 0x7 = champions/bosses, 0 = all
Scripts.Radament = false;
Scripts.Coldworm = false;
Config.Coldworm.KillBeetleburst = false;
Expand Down Expand Up @@ -673,4 +675,4 @@ function LoadConfig() {
Config.AutoBuild.DebugMode = true; // Debug mode prints a little more information to console and
// logs activity to /logs/AutoBuild.CharacterName._MM_DD_YYYY.log
// It automatically enables Config.AutoBuild.Verbose
}
}
4 changes: 3 additions & 1 deletion kolbot/libs/config/Paladin.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ function LoadConfig() {
Scripts.Cows = false;

// *** act 2 ***
Scripts.StonyTomb = false;
Config.StonyTomb.ClearType = 0; // 0xF = skip normal, 0x7 = champions/bosses, 0 = all
Scripts.Radament = false;
Scripts.Coldworm = false;
Config.Coldworm.KillBeetleburst = false;
Expand Down Expand Up @@ -663,4 +665,4 @@ function LoadConfig() {
Config.AutoBuild.DebugMode = true; // Debug mode prints a little more information to console and
// logs activity to /logs/AutoBuild.CharacterName._MM_DD_YYYY.log
// It automatically enables Config.AutoBuild.Verbose
}
}
4 changes: 1 addition & 3 deletions kolbot/pickit/Misc.nip
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,4 @@
[Name] == primeevilsoul

//MAPS
//[Name] == tieronemap && [Quality] == Rare
//[Name] == tiertwomap && [Quality] == Rare
//[Name] == tierthreemap && [Quality] == Rare
[type] >= t1map && [type] <= t3map

0 comments on commit 93b30a2

Please sign in to comment.