osrs-tools 0.1.1 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. package/README.md +106 -30
  2. package/package.json +90 -75
  3. package/src/index.ts +6 -433
  4. package/src/model/Requirement.ts +173 -0
  5. package/src/model/account/OsrsAccount.ts +82 -0
  6. package/src/model/quest/Quest.ts +44 -0
  7. package/src/model/quest/QuestTool.ts +96 -0
  8. package/src/model/slayer/Assignment.ts +40 -0
  9. package/src/model/slayer/SlayerMaster.ts +137 -0
  10. package/src/model/slayer/SlayerReward.ts +39 -0
  11. package/src/model/slayer/Task.ts +168 -0
  12. package/src/resources/QuestData.json +754 -0
  13. package/src/{data/Diaries → resources/quest}/diaries.json +3 -3
  14. package/src/{data/quest/questData.ts → resources/quest/questData.js} +169 -223
  15. package/src/{data/quest/questDataArray.json → resources/quest/questData.json} +950 -1833
  16. package/src/resources/quest/questDataArray.js +5489 -0
  17. package/src/{data/quest/questData.json → resources/quest/questDataArray.json} +642 -643
  18. package/src/{data/quest/miniquestQuestArray.json → resources/quest/subquestArray.js} +2 -2
  19. package/src/{data/quest/subQuestArray.json → resources/quest/subquestArray.json} +1 -1
  20. package/src/{data → resources}/quest/testObj.json +148 -148
  21. package/src/{data → resources}/quest/testarray.json +149 -149
  22. package/src/resources/quests/CooksAssistant.json +34 -0
  23. package/src/resources/slayer/Masters.ts +180 -0
  24. package/src/resources/slayer/SlayerData.ts +45 -0
  25. package/src/resources/slayer/SlayerExtends.ts +218 -0
  26. package/src/resources/slayer/SlayerUnlock.ts +194 -0
  27. package/src/resources/slayer/slayer.json +3581 -0
  28. package/src/resources/slayer/slayerBuys.ts +38 -0
  29. package/src/resources/slayer/slayerData.json +4431 -0
  30. package/src/resources/slayer/tasks/ChaelderTasks.ts +235 -0
  31. package/src/resources/slayer/tasks/DuradelTasks.ts +75 -0
  32. package/src/resources/slayer/tasks/KonarTasks.ts +6 -0
  33. package/src/resources/slayer/tasks/MazchnaTasks.ts +5 -0
  34. package/src/resources/slayer/tasks/NieveTasks.ts +235 -0
  35. package/src/resources/slayer/tasks/ReadTasks.ts +55 -0
  36. package/src/resources/slayer/tasks/SpriaTasks.ts +344 -0
  37. package/src/resources/slayer/tasks/Tureal.ts +436 -0
  38. package/src/resources/slayer/tasks/VannakaTasks.ts +236 -0
  39. package/src/resources/slayer/tasks/json/Chaeldar.json +348 -0
  40. package/src/resources/slayer/tasks/json/Duradel.json +541 -0
  41. package/src/resources/slayer/tasks/json/Krystilia.json +2 -0
  42. package/src/resources/slayer/tasks/json/Mazchna.json +379 -0
  43. package/src/resources/slayer/tasks/json/Neive.json +320 -0
  44. package/src/resources/slayer/tasks/json/Spria.json +345 -0
  45. package/src/resources/slayer/tasks/json/Tureal.json +341 -0
  46. package/src/resources/slayer/tasks/json/Vannaka.json +547 -0
  47. package/src/cli.js +0 -9
  48. package/src/data/farming/fruitTrees.json +0 -165
  49. package/src/data/farming/locations.json +0 -78
  50. package/src/data/farming/patches.json +0 -102
  51. package/src/data/farming/seeds.json +0 -170
  52. package/src/data/farming/teleports.json +0 -301
  53. package/src/data/farming/treePatches.json +0 -3
  54. package/src/data/farming/trees.json +0 -103
  55. package/src/data/quest/miniquestQuestArray.ts +0 -8
  56. package/src/data/quest/questDataArray.ts +0 -4134
  57. package/src/data/quest/subQuestArray.ts +0 -60
  58. package/src/tests/QuestTest.js +0 -71
  59. package/src/tests/getAllQuestSeries.ts +0 -6
  60. package/src/tests/test Quest Array.ts +0 -9
  61. package/src/tests/test Requirements.ts +0 -56
  62. package/src/tests/test.ts +0 -402
  63. package/src/tests/test3.js +0 -370
  64. package/src/tests/testQuestCompletion.js +0 -367
  65. package/src/tests/testSeed.js +0 -8
  66. package/src/utils/AchievementDiary.ts +0 -18
  67. package/src/utils/Farming/FarmingTool.ts +0 -110
  68. package/src/utils/Farming/Seed.js +0 -42
  69. package/src/utils/Farming/TreeSeed.js +0 -21
  70. package/src/utils/OsrsAccount.ts +0 -280
  71. package/src/utils/Quest.ts +0 -99
  72. package/src/utils/QuestTool.ts +0 -437
  73. package/src/utils/Requirement.ts +0 -63
  74. package/src/utils/Skill.ts +0 -11
  75. /package/src/{data/Diaries → resources/quest}/diariesArray.json +0 -0
  76. /package/src/{data → resources/quest}/exp.json +0 -0
@@ -1,78 +0,0 @@
1
- [
2
- {
3
- "name": "South of Falador",
4
- "id": "L1",
5
- "coordinates": [
6
- 3059,
7
- 3312
8
- ],
9
- "teleports": {
10
- "1": "Explorers ring 2+",
11
- "2": "Spirit tree to Port Sarim",
12
- "3": "Draynor Manor Teleport",
13
- "4": "Amulet of glory to Draynor Village",
14
- "5": "Skills necklace to Mining Guild",
15
- "6": "Ring of Wealth to Falador Park",
16
- "7": "Falador Teleport/Tab"
17
- }
18
- },
19
- {
20
- "name": "West of Port Phasmatys",
21
- "id": "L2",
22
- "coordinates": [
23
- 3606,
24
- 3530
25
- ],
26
- "teleports": {
27
- "1": "Fairy ring code ALQ",
28
- "2": "Ectophial",
29
- "3": "Fenkenstrains Castle Teleport",
30
- "4": "Kharyll Teleport",
31
- "5": "Charter ship to Port Phasmatys"
32
- }
33
- },
34
- {
35
- "name": "North of Catherby",
36
- "id": "L3",
37
- "coordinates": [
38
- 2814,
39
- 3468
40
- ],
41
- "teleports": {
42
- "1": "Catherby Teleport",
43
- "2": "Camelot Teleport"
44
- }
45
- },
46
- {
47
- "name": "North of Ardougne",
48
- "id": "L4",
49
- "coordinates": [
50
- 2671,
51
- 3379
52
- ],
53
- "teleports": {
54
- "1": "Ardougne Cloak 2+",
55
- "2": "Skills necklaces to Fishing Guild",
56
- "3": "Fishing Guild Teleport",
57
- "4": "Combat bracelet to Ranging Guild",
58
- "5": "Quest Cape Teleport",
59
- "6": "Fairy ring code BLR",
60
- "7": "Ardougne Teleport"
61
- }
62
- },
63
- {
64
- "name": "Southwest corner of Hosidius",
65
- "id": "L5",
66
- "coordinates": [
67
- 1739,
68
- 3559
69
- ],
70
- "teleports": {
71
- "1": "Xerics talisman to Xerics Glade",
72
- "2": "Hosidius portal: Teleport to House/Redirected House Tab",
73
- "3": "Kharedst memoirs to Lunch by the lancalliums",
74
- "4": "Tithe Farm minigame teleport",
75
- "5": "Skills Necklace to Woodcutting Guilde, then run east"
76
- }
77
- }
78
- ]
@@ -1,102 +0,0 @@
1
- [
2
- {
3
- "id": "L11",
4
- "type": "allotment",
5
- "location": "South of Falador"
6
- },
7
- {
8
- "id": "L12",
9
- "type": "allotment",
10
- "location": "South of Falador"
11
- },
12
- {
13
- "id": "L13",
14
- "type": "flower",
15
- "location": "South of Falador"
16
- },
17
- {
18
- "id": "L14",
19
- "type": "herb",
20
- "location": "South of Falador"
21
- },
22
- {
23
- "id": "L21",
24
- "type": "allotment",
25
- "location": "West of Port Phasmatys"
26
- },
27
- {
28
- "id": "L22",
29
- "type": "allotment",
30
- "location": "West of Port Phasmatys"
31
- },
32
- {
33
- "id": "L23",
34
- "type": "flower",
35
- "location": "West of Port Phasmatys"
36
- },
37
- {
38
- "id": "L24",
39
- "type": "herb",
40
- "location": "West of Port Phasmatys"
41
- },
42
- {
43
- "id": "L31",
44
- "type": "allotment",
45
- "location": "North of Catherby"
46
- },
47
- {
48
- "id": "L32",
49
- "type": "allotment",
50
- "location": "North of Catherby"
51
- },
52
- {
53
- "id": "L33",
54
- "type": "flower",
55
- "location": "North of Catherby"
56
- },
57
- {
58
- "id": "L34",
59
- "type": "herb",
60
- "location": "North of Catherby"
61
- },
62
- {
63
- "id": "L41",
64
- "type": "allotment",
65
- "location": "North of Ardougne"
66
- },
67
- {
68
- "id": "L42",
69
- "type": "allotment",
70
- "location": "North of Ardougne"
71
- },
72
- {
73
- "id": "L43",
74
- "type": "flower",
75
- "location": "North of Ardougne"
76
- },
77
- {
78
- "id": "L44",
79
- "type": "herb",
80
- "location": "North of Ardougne"
81
- },
82
- {
83
- "id": "L51",
84
- "type": "allotment",
85
- "location": "Southwest corner of Hosidius"
86
- },
87
- {
88
- "id": "L52",
89
- "type": "allotment",
90
- "location": "Southwest corner of Hosidius"
91
- },
92
- {
93
- "id": "L53",
94
- "type": "flower",
95
- "location": "Southwest corner of Hosidius"
96
- },
97
- {
98
- "id": "L54",
99
- "type": "herb",
100
- "location": "Southwest corner of Hosidius"
101
- }
102
- ]
@@ -1,170 +0,0 @@
1
- [
2
- {
3
- "name": "Babyseed",
4
- "level": 0,
5
- "xp": 0,
6
- "type": "god"
7
- },
8
- {
9
- "name": "Potato",
10
- "level": 1,
11
- "xp": 98,
12
- "type": "allotment"
13
- },
14
- {
15
- "name": "Onion",
16
- "level": 5,
17
- "xp": 114.5,
18
- "type": "allotment"
19
- },
20
- {
21
- "name": "Cabbage",
22
- "level": 7,
23
- "xp": 125,
24
- "type": "allotment"
25
- },
26
- {
27
- "name": "Tomato",
28
- "level": 12,
29
- "xp": 152.5,
30
- "type": "allotment"
31
- },
32
- {
33
- "name": "Sweetcorn",
34
- "level": 20,
35
- "xp": 207,
36
- "type": "allotment"
37
- },
38
- {
39
- "name": "Strawberry",
40
- "level": 31,
41
- "xp": 316,
42
- "type": "allotment"
43
- },
44
- {
45
- "name": "Watermelon",
46
- "level": 47,
47
- "xp": 593.5,
48
- "type": "allotment"
49
- },
50
- {
51
- "name": "Marigold",
52
- "level": 2,
53
- "xp": 55.5,
54
- "type": "flower"
55
- },
56
- {
57
- "name": "Rosemary",
58
- "level": 11,
59
- "xp": 78.5,
60
- "type": "flower"
61
- },
62
- {
63
- "name": "Nasturtium",
64
- "level": 24,
65
- "xp": 130.5,
66
- "type": "flower"
67
- },
68
- {
69
- "name": "Woad",
70
- "level": 25,
71
- "xp": 136,
72
- "type": "flower"
73
- },
74
- {
75
- "name": "Limpwurt",
76
- "level": 26,
77
- "xp": 160,
78
- "type": "flower"
79
- },
80
- {
81
- "name": "Guam",
82
- "level": 9,
83
- "xp": 98.5,
84
- "type": "herb"
85
- },
86
- {
87
- "name": "Marrentill",
88
- "level": 14,
89
- "xp": 118.5,
90
- "type": "herb"
91
- },
92
- {
93
- "name": "Tarromin",
94
- "level": 19,
95
- "xp": 142,
96
- "type": "herb"
97
- },
98
- {
99
- "name": "Harralander",
100
- "level": 26,
101
- "xp": 189.5,
102
- "type": "herb"
103
- },
104
- {
105
- "name": "Gout",
106
- "level": 29,
107
- "xp": 420,
108
- "type": "herb"
109
- },
110
- {
111
- "name": "Ranarr",
112
- "level": 32,
113
- "xp": 240.5,
114
- "type": "herb"
115
- },
116
- {
117
- "name": "Toadflax",
118
- "level": 38,
119
- "xp": 303.5,
120
- "type": "herb"
121
- },
122
- {
123
- "name": "Irit",
124
- "level": 44,
125
- "xp": 382.5,
126
- "type": "herb"
127
- },
128
- {
129
- "name": "Avantoe",
130
- "level": 50,
131
- "xp": 485,
132
- "type": "herb"
133
- },
134
- {
135
- "name": "Kwuarm",
136
- "level": 56,
137
- "xp": 615,
138
- "type": "herb"
139
- },
140
- {
141
- "name": "Snapdragon",
142
- "level": 62,
143
- "xp": 777,
144
- "type": "herb"
145
- },
146
- {
147
- "name": "Cadantine",
148
- "level": 67,
149
- "xp": 946.5,
150
- "type": "herb"
151
- },
152
- {
153
- "name": "Lantadyme",
154
- "level": 73,
155
- "xp": 1195,
156
- "type": "herb"
157
- },
158
- {
159
- "name": "Dwarf",
160
- "level": 79,
161
- "xp": 1514.5,
162
- "type": "herb"
163
- },
164
- {
165
- "name": "Torstol",
166
- "level": 85,
167
- "xp": 1771,
168
- "type": "herb"
169
- }
170
- ]
@@ -1,301 +0,0 @@
1
- [
2
- {
3
- "name": "Explorers Ring 2T",
4
- "coordinates": [
5
- 2000,
6
- 4000
7
- ],
8
- "items": [
9
- "Explorers Ring"
10
- ],
11
- "requirements": {
12
- "Explorers Ring?": false
13
- }
14
- },
15
- {
16
- "name": "Spirit Tree to Port Sarim",
17
- "coordinates": [
18
- 1000,
19
- 1000
20
- ],
21
- "items": [
22
- ""
23
- ],
24
- "requirements": {
25
- "Spirit Tree to Port Sarim": false
26
- }
27
- },
28
- {
29
- "name": "Draynor Manor Teleport",
30
- "coordinates": [
31
- 1000,
32
- 1000
33
- ],
34
- "items": [
35
- "Draynor Manor Teleport (Tablet)"
36
- ],
37
- "requirements": {
38
- "": true
39
- }
40
- },
41
- {
42
- "name": "Amulet of Glory to Draynor Village",
43
- "coordinates": [
44
- 1000,
45
- 1000
46
- ],
47
- "items": [
48
- "Amulet of Glory"
49
- ],
50
- "requirements": {
51
- "": true
52
- }
53
- },
54
- {
55
- "name": "Skills necklace to Mining Guild",
56
- "coordinates": [
57
- 1000,
58
- 1000
59
- ],
60
- "items": [
61
- "Skills Necklace"
62
- ],
63
- "requirements": {
64
- "": true
65
- }
66
- },
67
- {
68
- "name": "Ring of Wealth to Falador Park",
69
- "coordinates": [
70
- 1000,
71
- 1000
72
- ],
73
- "items": [
74
- "Ring of Wealth"
75
- ],
76
- "requirements": {
77
- "": true
78
- }
79
- },
80
- {
81
- "name": "Falador Teleport",
82
- "coordinates": [
83
- 1000,
84
- 1000
85
- ],
86
- "items": [
87
- "Falador Teleport (Tablet)"
88
- ],
89
- "requirements": {
90
- "": true
91
- }
92
- },
93
- {
94
- "name": "Fairy Ring ALQ",
95
- "coordinates": [
96
- 1000,
97
- 1000
98
- ],
99
- "items": [
100
- "Dramen Staff"
101
- ],
102
- "requirements": {
103
- "Fairy Rings?": false
104
- }
105
- },
106
- {
107
- "name": "Ectophial",
108
- "coordinates": [
109
- 1000,
110
- 1000
111
- ],
112
- "items": [
113
- "Ectophial"
114
- ],
115
- "requirements": {
116
- "Ectophial?": false
117
- }
118
- },
119
- {
120
- "name": "Fenkenstrains Castle Teleport",
121
- "coordinates": [
122
- 1000,
123
- 1000
124
- ],
125
- "items": [
126
- "Fenkenstrains Castle Teleport (Tablet)"
127
- ],
128
- "requirements": {
129
- "": true
130
- }
131
- },
132
- {
133
- "name": "Kharyll Teleport",
134
- "coordinates": [
135
- 1000,
136
- 1000
137
- ],
138
- "items": [
139
- "Kharyll Teleport (Tablet)"
140
- ],
141
- "requirements": {
142
- "": true
143
- }
144
- },
145
- {
146
- "name": "Charter ship to Port Phasmatys",
147
- "coordinates": [
148
- 1000,
149
- 1000
150
- ],
151
- "items": [
152
- "coins"
153
- ],
154
- "requirements": {
155
- "": true
156
- }
157
- },
158
- {
159
- "name": "Catherby Teleport",
160
- "coordinates": [
161
- 1000,
162
- 1000
163
- ],
164
- "items": [
165
- "Catherby Teleport (Tablet)"
166
- ],
167
- "requirements": {
168
- "": true
169
- }
170
- },
171
- {
172
- "name": "Camelot Teleport",
173
- "coordinates": [
174
- 1000,
175
- 1000
176
- ],
177
- "items": [
178
- "Camelot Teleport (Tablet)"
179
- ],
180
- "requirements": {
181
- "": true
182
- }
183
- },
184
- {
185
- "name": "Ardougne Cloak 2+",
186
- "coordinates": [
187
- 1000,
188
- 1000
189
- ],
190
- "items": [
191
- "Ardougne Cloak"
192
- ],
193
- "requirements": {
194
- "Ardougne Cloak?": false
195
- }
196
- },
197
- {
198
- "name": "Skills Necklace to Fishing Guild",
199
- "coordinates": [
200
- 1000,
201
- 1000
202
- ],
203
- "items": [
204
- "Skills Necklace"
205
- ],
206
- "requirements": {
207
- "": true
208
- }
209
- },
210
- {
211
- "name": "Fishing Guild Teleport",
212
- "coordinates": [
213
- 1000,
214
- 1000
215
- ],
216
- "items": [
217
- "Fishing Guild Teleport (Tablet)"
218
- ],
219
- "requirements": {
220
- "": true
221
- }
222
- },
223
- {
224
- "name": "Combat Bracelet to Ranging Guild",
225
- "coordinates": [
226
- 1000,
227
- 1000
228
- ],
229
- "items": [
230
- "Combat Bracelet"
231
- ],
232
- "requirements": {
233
- "": true
234
- }
235
- },
236
- {
237
- "name": "Quest Cape Teleport",
238
- "coordinates": [
239
- 1000,
240
- 1000
241
- ],
242
- "items": [
243
- "Quest Cape"
244
- ],
245
- "requirements": {
246
- "Quest Cape?": false
247
- }
248
- },
249
- {
250
- "name": "Fairy Ring BLR",
251
- "coordinates": [
252
- 1000,
253
- 1000
254
- ],
255
- "items": [
256
- "Dramen Staff"
257
- ],
258
- "requirements": {
259
- "Fairy Rings?": false
260
- }
261
- },
262
- {
263
- "name": "Ardougne Teleport",
264
- "coordinates": [
265
- 1000,
266
- 1000
267
- ],
268
- "items": [
269
- "Ardougne Teleport (Tablet)"
270
- ],
271
- "requirements": {
272
- "": true
273
- }
274
- },
275
- {
276
- "name": "Xerics Talisman to Xerics Glade",
277
- "coordinates": [
278
- 1000,
279
- 1000
280
- ],
281
- "items": [
282
- "Xerics Talisman"
283
- ],
284
- "requirements": {
285
- "Xerics Talisman?": false
286
- }
287
- },
288
- {
289
- "name": "Skills Necklace to Woodcutting Guild",
290
- "coordinates": [
291
- 1000,
292
- 1000
293
- ],
294
- "items": [
295
- "Skills Necklace"
296
- ],
297
- "requirements": {
298
- "": true
299
- }
300
- }
301
- ]
@@ -1,3 +0,0 @@
1
- [
2
- {}
3
- ]