Changeset 1676

User picture

Author: alogwe

(2012/02/10 19:32) 3 months ago

NTBot: Added /libs/GambleControls.ext for ImprisonedPride

Affected files

Updated scripts/scripts-ntbot/default.dbj Download diff

16751676
4
var sh = null; 
4
var sh = null; 
5
var ConfigVar = false;
5
var ConfigVar = false;
6
var configHook = false;
6
var configHook = false;
7
var ntbotRevision = 1671;
7
var ntbotRevision = 1676;
8
8
9
js_strict(true);
9
js_strict(true);
10
10

Updated scripts/scripts-ntbot/libs/common/NTCommon.js Download diff

16751676
87
var NTC_AREA_ID_ACT_4 = 103;
87
var NTC_AREA_ID_ACT_4 = 103;
88
var NTC_AREA_ID_ACT_5 = 109;
88
var NTC_AREA_ID_ACT_5 = 109;
89
89
90
var NTC_ActNumberToTownID = new Array(5);
90
var NTC_ActNumberToTownID = [1, 40, 75, 103, 109];
91
NTC_ActNumberToTownID[0] = 1;
92
NTC_ActNumberToTownID[1] = 40;
93
NTC_ActNumberToTownID[2] = 75;
94
NTC_ActNumberToTownID[3] = 103;
95
NTC_ActNumberToTownID[4] = 109;
96
91
97
// COLOR types
92
// COLOR types
98
var NTC_COLOR_BASE_WHITE = 0;
93
var NTC_COLOR_BASE_WHITE = 0;
...
...
121
116
122
var NTC_DELAY_FRAME = 40;
117
var NTC_DELAY_FRAME = 40;
123
118
124
var NTC_CharClassToNameList = new Array(7);
119
var NTC_CharClassToNameList = ["Amazon", "Sorceress", "Necromancer", "Paladin", "Barbarian", "Druid", "Assassin"];
125
NTC_CharClassToNameList[0] = "Amazon";
126
NTC_CharClassToNameList[1] = "Sorceress";
127
NTC_CharClassToNameList[2] = "Necromancer";
128
NTC_CharClassToNameList[3] = "Paladin";
129
NTC_CharClassToNameList[4] = "Barbarian";
130
NTC_CharClassToNameList[5] = "Druid";
131
NTC_CharClassToNameList[6] = "Assassin";
132
120
133
var NTConfig_AttackSkill =[];
121
var NTConfig_AttackSkill =
134
	NTConfig_AttackSkill[0] = 0;		// Cast your first spell once. Set to 0 if you won't
122
	[	0,		// [0] Cast your first spell once. Set to 0 if you won't
135
	NTConfig_AttackSkill[1] = 0;		// The primary skill used to attack the boss.
123
		0,		// [1] The primary skill used to attack the boss.
136
	NTConfig_AttackSkill[2] = 0;		// Cast your primary spell to others.
124
		0,		// [2] Cast your primary spell to others.
137
	NTConfig_AttackSkill[3] = 0;		// Cast your primary untimed spell if primary spell is timed spell. Set to 0 if you won't
125
		0,		// [3] Cast your primary untimed spell if primary spell is timed spell. Set to 0 if you won't
138
	NTConfig_AttackSkill[4] = 0;		// Secondary untimed skill if boss is immune to primary untimed skill!
126
		0,		// [4] Secondary untimed skill if boss is immune to primary untimed skill!
139
	NTConfig_AttackSkill[5] = 0;		// Cast your secondary untimed spell if secondary spell is timed spell. Set to 0 if you won't
127
		0	];	// [5] Cast your secondary untimed spell if secondary spell is timed spell. Set to 0 if you won't
140
128
141
var NTC_ItemQualityToNameList = new Array(9);
129
var NTC_ItemQualityToNameList = 
142
NTC_ItemQualityToNameList[0] = "None";
130
	[	"None",			//[0]
143
NTC_ItemQualityToNameList[1] = "Low Quality";
131
		"Low Quality",	//[1]
144
NTC_ItemQualityToNameList[2] = "Normal";
132
		"Normal",		//[2]
145
NTC_ItemQualityToNameList[3] = "Superior";
133
		"Superior",		//[3]
146
NTC_ItemQualityToNameList[4] = "Magic";
134
		"Magic",		//[4]
147
NTC_ItemQualityToNameList[5] = "Set";
135
		"Set",			//[5]
148
NTC_ItemQualityToNameList[6] = "Rare";
136
		"Rare",			//[6]
149
NTC_ItemQualityToNameList[7] = "Unique";
137
		"Unique",		//[7]
150
NTC_ItemQualityToNameList[8] = "Crafted";
138
		"Crafted",	];	//[8]
151
139
152
function attackPrint(nString)
140
function attackPrint(nString)
153
{
141
{
...
...
165
{
153
{
166
	if(isIncluded(filepath))
154
	if(isIncluded(filepath))
167
		return true;
155
		return true;
168
	//load("libs/" + filepath);
156
		
169
	return include(filepath);
157
	return include(filepath);
170
}
158
}
171
159

Added scripts/scripts-ntbot/libs/GambleControls.ext

Show contents