Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add NoTele param [default: false] #2206

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
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 d2bs/kolbot/libs/common/Config.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ var Config = {
LowManaSkill: [],
CustomAttack: {},
TeleStomp: false,
NoTele: false,
ClearType: false,
ClearPath: false,
BossPriority: false,
Expand Down
2 changes: 1 addition & 1 deletion d2bs/kolbot/libs/common/Pather.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ var Pather = {
recursion: true,

useTeleport: function () {
return this.teleport && !me.getState(139) && !me.getState(140) && !me.inTown && ((me.classid === 1 && me.getSkill(54, 1)) || me.getStat(97, 54));
return this.teleport && !Config.NoTele && !me.getState(139) && !me.getState(140) && !me.inTown && ((me.classid === 1 && me.getSkill(54, 1)) || me.getStat(97, 54));
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there is redundancy with Pather.teleport here.
i'd suggest removing this addition and just modify the block a few lines above to something like this:

var Pather = {
	teleport: !Config.NoTele,

},

/*
Expand Down
1 change: 1 addition & 0 deletions d2bs/kolbot/libs/config/Amazon.js
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,7 @@ function LoadConfig() {
//"Monster Name": [-1, -1]
};

Config.NoTele = false; // Restrict char from teleporting. Useful for low level/low mana chars
Config.Dodge = false; // Move away from monsters that get too close. Don't use with short-ranged attacks like Poison Dagger.
Config.DodgeRange = 15; // Distance to keep from monsters.
Config.DodgeHP = 100; // Dodge only if HP percent is less than or equal to Config.DodgeHP. 100 = always dodge.
Expand Down
1 change: 1 addition & 0 deletions d2bs/kolbot/libs/config/Assassin.js
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,7 @@ function LoadConfig() {
//"Monster Name": [-1, -1]
};

Config.NoTele = false; // Restrict char from teleporting. Useful for low level/low mana chars
Config.Dodge = false; // Move away from monsters that get too close. Don't use with short-ranged attacks like Poison Dagger.
Config.DodgeRange = 15; // Distance to keep from monsters.
Config.DodgeHP = 100; // Dodge only if HP percent is less than or equal to Config.DodgeHP. 100 = always dodge.
Expand Down
1 change: 1 addition & 0 deletions d2bs/kolbot/libs/config/Barbarian.js
Original file line number Diff line number Diff line change
Expand Up @@ -501,6 +501,7 @@ function LoadConfig() {
//"Monster Name": [-1]
};

Config.NoTele = false; // Restrict char from teleporting. Useful for low level/low mana chars
Config.BossPriority = false; // Set to true to attack Unique/SuperUnique monsters first when clearing
Config.ClearType = 0xF; // Monster spectype to kill in level clear scripts (ie. Mausoleum). 0xF = skip normal, 0x7 = champions/bosses, 0 = all

Expand Down
1 change: 1 addition & 0 deletions d2bs/kolbot/libs/config/Druid.js
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,7 @@ function LoadConfig() {
//"Monster Name": [-1, -1]
};

Config.NoTele = false; // Restrict char from teleporting. Useful for low level/low mana chars
Config.BossPriority = false; // Set to true to attack Unique/SuperUnique monsters first when clearing
Config.ClearType = 0xF; // Monster spectype to kill in level clear scripts (ie. Mausoleum). 0xF = skip normal, 0x7 = champions/bosses, 0 = all
Config.TeleStomp = false; // Use merc to attack bosses if they're immune to attacks, but not to physical damage
Expand Down
1 change: 1 addition & 0 deletions d2bs/kolbot/libs/config/Necromancer.js
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,7 @@ function LoadConfig() {
//"Monster Name": [-1, -1]
};

Config.NoTele = false; // Restrict char from teleporting. Useful for low level/low mana chars
Config.Dodge = false; // Move away from monsters that get too close. Don't use with short-ranged attacks like Poison Dagger.
Config.DodgeRange = 15; // Distance to keep from monsters.
Config.DodgeHP = 100; // Dodge only if HP percent is less than or equal to Config.DodgeHP. 100 = always dodge.
Expand Down
1 change: 1 addition & 0 deletions d2bs/kolbot/libs/config/Paladin.js
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,7 @@ function LoadConfig() {
//"Monster Name": [-1, -1]
};

Config.NoTele = false; // Restrict char from teleporting. Useful for low level/low mana chars
Config.BossPriority = false; // Set to true to attack Unique/SuperUnique monsters first when clearing
Config.ClearType = 0xF; // Monster spectype to kill in level clear scripts (ie. Mausoleum). 0xF = skip normal, 0x7 = champions/bosses, 0 = all

Expand Down
1 change: 1 addition & 0 deletions d2bs/kolbot/libs/config/Sorceress.js
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,7 @@ function LoadConfig() {
//"Monster Name": [-1, -1]
};

Config.NoTele = false; // Restrict char from teleporting. Useful for low level/low mana chars
Config.Dodge = false; // Move away from monsters that get too close. Don't use with short-ranged attacks like Poison Dagger.
Config.DodgeRange = 15; // Distance to keep from monsters.
Config.DodgeHP = 100; // Dodge only if HP percent is less than or equal to Config.DodgeHP. 100 = always dodge.
Expand Down