Player Vendor Restock Script - updated for Wildlands by mustang1x1
Description: All you need it to set up prices at the top part of your script, it will ask you to select containers where you want your items placed. Your items will be placed and priced automatically
1//Script created by mustang1x1
2//In order to prevent overlapping items, separate containers for cores/scrolls/extracts etc. are recommended
3//Item placement is designed for small paragon chests, items in other containers might overlap which each other
4
5//If you want to add other items to this script
6//keep in mind that some items like tmaps, skillscrolls, etc. have the same ID and hue
7
8overhead 'Loading prices, please wait...' 2263
9
10//=========================================
11//Change this parameter value to 0 if you don't want to set target containers every time
12setvar! setContainerVariables '1'
13
14//=========================================
15//Set your prices here:
16
17//Cores
18setvar! AirCorePrice '74000'
19setvar! ArcaneCorePrice '38000'
20setvar! ArtisanCorePrice '64000'
21setvar! BloodCorePrice '8000'
22setvar! CommandCorePrice '107000'
23setvar! DeathCorePrice '9000'
24setvar! DisciplineCorePrice '16000'
25setvar! EarthCorePrice '7000'
26setvar! EldritchCorePrice '59000'
27setvar! FireCorePrice '14500'
28setvar! FortuneCorePrice '80000'
29setvar! FrostCorePrice '45000'
30setvar! GadgetCorePrice '12000'
31setvar! HarvestCorePrice '109000'
32setvar! HolyCorePrice '9000'
33setvar! LightningCorePrice '70000'
34setvar! LyricCorePrice '30000'
35setvar! MadnessCorePrice '70000'
36setvar! PoisonCorePrice '33000'
37setvar! ShadowCorePrice '19000'
38setvar! VoidCorePrice '30000'
39setvar! WaterCorePrice '12000'
40setvar! WarCorePrice '7000'
41
42//Distillations
43setvar! AirDistillationPrice '6000'
44setvar! ArcaneDistillationPrice '6000'
45setvar! ArtisanDistillationPrice '6000'
46setvar! BloodDistillationPrice '6000'
47setvar! CommandDistillationPrice '9000'
48setvar! DeathDistillationPrice '6000'
49setvar! DisciplineDistillationPrice '6000'
50setvar! EarthDistillationPrice '6000'
51setvar! EldritchDistillationPrice '6000'
52setvar! FireDistillationPrice '6000'
53setvar! FortuneDistillationPrice '6000'
54setvar! FrostDistillationPrice '6000'
55setvar! GadgetDistillationPrice '6000'
56setvar! HarvestDistillationPrice '6000'
57setvar! HolyDistillationPrice '6000'
58setvar! LightningDistillationPrice '6000'
59setvar! LyricDistillationPrice '6000'
60setvar! MadnessDistillationPrice '6000'
61setvar! PoisonDistillationPrice '6000'
62setvar! ShadowDistillationPrice '6000'
63setvar! VoidDistillationPrice '6000'
64setvar! WaterDistillationPrice '6000'
65setvar! WarDistillationPrice '6000'
66
67//Skill Scrolls
68setvar! AlchemyPrice '44000'
69setvar! AnimalLorePrice '22000'
70setvar! AnimalTamingPrice '25000'
71setvar! ArmsLorePrice '8000'
72setvar! BeggingPrice '8000'
73setvar! BlacksmithyPrice '8000'
74setvar! CampingPrice '8000'
75setvar! CarpentryPrice '8000'
76setvar! CartographyPrice '13000'
77setvar! ChivalryPrice '19000'
78setvar! CookingPrice '8000'
79setvar! DetectHiddenPrice '8000'
80setvar! DiscordancePrice '10000'
81setvar! FishingPrice '8500'
82setvar! ForensicEvalPrice '11000'
83setvar! HerdingPrice '24000'
84setvar! InscriptionPrice '25000'
85setvar! ItemIdPrice '9000'
86setvar! LockpickingPrice '9000'
87setvar! LumberjackingPrice '9000'
88setvar! MusicanshipPrice '18000'
89setvar! MiningPrice '9000'
90setvar! NecromancyPrice '31000'
91setvar! PeacemakingPrice '11000'
92setvar! PoisoningPrice '13000'
93setvar! ProvocationPrice '10000'
94setvar! RemoveTrapPrice '9500'
95setvar! SpiritSpeakPrice '9500'
96setvar! StealthPrice '10000'
97setvar! TailoringPrice '40000'
98setvar! TasteIdPrice '10000'
99setvar! TinkeringPrice '12000'
100setvar! TrackingPrice '9000'
101setvar! VeterinaryPrice '25000'
102
103//Maps
104setvar! T1Price '10000'
105setvar! T2Price '17500'
106setvar! T3Price '29500'
107setvar! T4Price '40000'
108setvar! T5Price '62000'
109setvar! T6Price '100000'
110setvar! T8Price '250000'
111
112//Other
113setvar! SkillOrbPrice '21999'
114setvar! MastercraftingDiagramPrice '175000'
115setvar! ResearchMaterialsPrice '35000'
116setvar! ArcaneScrollPrice '30000'
117
118//=========================================
119
120//Cores
121if setContainerVariables == '1'
122overhead 'Set container for Aspect Cores' 2263
123setvar aspectCoreContainer
124endif
125
126while findtype 'aspect core' backpack as item
127 getlabel item label
128 if 'Air' in label
129 lift item 1
130 drop aspectCoreContainer 30 60 0
131 pause 500
132 promptresponse AirCorePrice
133 elseif 'Artisan' in label
134 lift item 1
135 drop aspectCoreContainer 45 60 0
136 pause 500
137 promptresponse ArtisanCorePrice
138 elseif 'Blood' in label
139 lift item 1
140 drop aspectCoreContainer 60 60 0
141 pause 500
142 promptresponse BloodCorePrice
143 elseif 'Command' in label
144 lift item 1
145 drop aspectCoreContainer 75 60 0
146 pause 500
147 promptresponse CommandCorePrice
148 elseif 'Death' in label
149 lift item 1
150 drop aspectCoreContainer 90 60 0
151 pause 500
152 promptresponse DeathCorePrice
153 elseif 'Discipline' in label
154 lift item 1
155 drop aspectCoreContainer 105 60 0
156 pause 500
157 promptresponse DisciplineCorePrice
158 elseif 'Earth' in label
159 lift item 1
160 drop aspectCoreContainer 120 60 0
161 pause 500
162 promptresponse EarthCorePrice
163 elseif 'Eldritch' in label
164 lift item 1
165 drop aspectCoreContainer 135 60 0
166 pause 500
167 promptresponse EldritchCorePrice
168 elseif 'Fire' in label
169 lift item 1
170 drop aspectCoreContainer 30 80 0
171 pause 500
172 promptresponse FireCorePrice
173 elseif 'Fortune' in label
174 lift item 1
175 drop aspectCoreContainer 45 80 0
176 pause 500
177 promptresponse FortuneCorePrice
178 elseif 'Holy' in label
179 lift item 1
180 drop aspectCoreContainer 60 80 0
181 pause 500
182 promptresponse HolyCorePrice
183 elseif 'Lyric' in label
184 lift item 1
185 drop aspectCoreContainer 75 80 0
186 pause 500
187 promptresponse LyricCorePrice
188 elseif 'Poison' in label
189 lift item 1
190 drop aspectCoreContainer 90 80 0
191 pause 500
192 promptresponse PoisonCorePrice
193 elseif 'Shadow' in label
194 lift item 1
195 drop aspectCoreContainer 105 80 0
196 pause 500
197 promptresponse ShadowCorePrice
198 elseif 'Void' in label
199 lift item 1
200 drop aspectCoreContainer 120 80 0
201 pause 500
202 promptresponse VoidCorePrice
203 elseif 'Water' in label
204 lift item 1
205 drop aspectCoreContainer 135 80 0
206 pause 500
207 promptresponse WaterCorePrice
208 elseif 'Gadget' in label
209 lift item 1
210 drop aspectCoreContainer 30 100 0
211 pause 500
212 promptresponse GadgetCorePrice
213 elseif 'Harvest' in label
214 lift item 1
215 drop aspectCoreContainer 45 100 0
216 pause 500
217 promptresponse HarvestCorePrice
218 elseif 'War' in label
219 lift item 1
220 drop aspectCoreContainer 60 100 0
221 pause 500
222 promptresponse WarCorePrice
223 elseif 'Arcane' in label
224 lift item 1
225 drop aspectCoreContainer 75 100 0
226 pause 500
227 promptresponse ArcaneCorePrice
228 elseif 'Frost' in label
229 lift item 1
230 drop aspectCoreContainer 90 100 0
231 pause 500
232 promptresponse FrostCorePrice
233 elseif 'Lightning' in label
234 lift item 1
235 drop aspectCoreContainer 105 100 0
236 pause 500
237 promptresponse LightningCorePrice
238 elseif 'Madness' in label
239 lift item 1
240 drop aspectCoreContainer 120 100 0
241 pause 500
242 promptresponse MadnessCorePrice
243 endif
244endwhile
245
246
247if setContainerVariables == '1'
248overhead 'Set container for Aspect Distillations' 2263
249setvar aspectDistillationContainer
250endif
251
252while findtype 'flask' backpack as item
253 getlabel item label
254 if 'Air' in label
255 lift item 1
256 drop aspectDistillationContainer 25 50 0
257 pause 500
258 promptresponse AirDistillationPrice
259 elseif 'Artisan' in label
260 lift item 1
261 drop aspectDistillationContainer 40 50 0
262 pause 500
263 promptresponse ArtisanDistillationPrice
264 elseif 'Blood' in label
265 lift item 1
266 drop aspectDistillationContainer 55 50 0
267 pause 500
268 promptresponse BloodDistillationPrice
269 elseif 'Command' in label
270 lift item 1
271 drop aspectDistillationContainer 70 50 0
272 pause 500
273 promptresponse CommandDistillationPrice
274 elseif 'Death' in label
275 lift item 1
276 drop aspectDistillationContainer 85 50 0
277 pause 500
278 promptresponse DeathDistillationPrice
279 elseif 'Discipline' in label
280 lift item 1
281 drop aspectDistillationContainer 100 50 0
282 pause 500
283 promptresponse DisciplineDistillationPrice
284 elseif 'Earth' in label
285 lift item 1
286 drop aspectDistillationContainer 115 50 0
287 pause 500
288 promptresponse EarthDistillationPrice
289 elseif 'Eldritch' in label
290 lift item 1
291 drop aspectDistillationContainer 130 50 0
292 pause 500
293 promptresponse EldritchDistillationPrice
294 elseif 'Fire' in label
295 lift item 1
296 drop aspectDistillationContainer 30 75 0
297 pause 500
298 promptresponse FireDistillationPrice
299 elseif 'Fortune' in label
300 lift item 1
301 drop aspectDistillationContainer 45 75 0
302 pause 500
303 promptresponse FortuneDistillationPrice
304 elseif 'Holy' in label
305 lift item 1
306 drop aspectDistillationContainer 60 75 0
307 pause 500
308 promptresponse HolyDistillationPrice
309 elseif 'Lyric' in label
310 lift item 1
311 drop aspectDistillationContainer 75 75 0
312 pause 500
313 promptresponse LyricDistillationPrice
314 elseif 'Poison' in label
315 lift item 1
316 drop aspectDistillationContainer 90 75 0
317 pause 500
318 promptresponse PoisonDistillationPrice
319 elseif 'Shadow' in label
320 lift item 1
321 drop aspectDistillationContainer 105 75 0
322 pause 500
323 promptresponse ShadowDistillationPrice
324 elseif 'Void' in label
325 lift item 1
326 drop aspectDistillationContainer 120 75 0
327 pause 500
328 promptresponse VoidDistillationPrice
329 elseif 'Water' in label
330 lift item 1
331 drop aspectDistillationContainer 135 75 0
332 pause 500
333 promptresponse WaterDistillationPrice
334 elseif 'Gadget' in label
335 lift item 1
336 drop aspectDistillationContainer 30 100 0
337 pause 500
338 promptresponse GadgetDistillationPrice
339 elseif 'Harvest' in label
340 lift item 1
341 drop aspectDistillationContainer 45 100 0
342 pause 500
343 promptresponse HarvestDistillationPrice
344 elseif 'War' in label
345 lift item 1
346 drop aspectDistillationContainer 60 100 0
347 pause 500
348 promptresponse WarDistillationPrice
349 elseif 'Arcane' in label
350 lift item 1
351 drop aspectDistillationContainer 75 100 0
352 pause 500
353 promptresponse ArcaneDistillationPrice
354 elseif 'Frost' in label
355 lift item 1
356 drop aspectDistillationContainer 90 100 0
357 pause 500
358 promptresponse FrostDistillationPrice
359 elseif 'Lightning' in label
360 lift item 1
361 drop aspectDistillationContainer 105 100 0
362 pause 500
363 promptresponse LightningDistillationPrice
364 elseif 'Madness' in label
365 lift item 1
366 drop aspectDistillationContainer 120 100 0
367 pause 500
368 promptresponse MadnessDistillationPrice
369 endif
370
371endwhile
372
373//Skill Scrolls
374
375if setContainerVariables == '1'
376overhead 'Set container for Skill Scrolls' 2263
377setvar skillScrollsContainer
378endif
379
380while findtype 'scroll of calling' backpack as item
381 getlabel item label
382 if 'alchemy' in label
383 lift item 1
384 drop skillScrollsContainer 15 50 0
385 pause 500
386 promptresponse AlchemyPrice
387 elseif 'animal lore' in label
388 lift item 1
389 drop skillScrollsContainer 25 50 0
390 pause 500
391 promptresponse AnimalLorePrice
392 elseif 'animal taming' in label
393 lift item 1
394 drop skillScrollsContainer 35 50 0
395 pause 500
396 promptresponse AnimalTamingPrice
397 elseif 'arms lore' in label
398 lift item 1
399 drop skillScrollsContainer 45 50 0
400 pause 500
401 promptresponse ArmsLorePrice
402 elseif 'begging' in label
403 lift item 1
404 drop skillScrollsContainer 55 50 0
405 pause 500
406 promptresponse BeggingPrice
407 elseif 'blacksmithy' in label
408 lift item 1
409 drop skillScrollsContainer 65 50 0
410 pause 500
411 promptresponse BlacksmithyPrice
412 elseif 'camping' in label
413 lift item 1
414 drop skillScrollsContainer 75 50 0
415 pause 500
416 promptresponse CampingPrice
417 elseif 'carpentry' in label
418 lift item 1
419 drop skillScrollsContainer 85 50 0
420 pause 500
421 promptresponse CarpentryPrice
422 elseif 'cartography' in label
423 lift item 1
424 drop skillScrollsContainer 95 50 0
425 pause 500
426 promptresponse CartographyPrice
427 elseif 'chivalry' in label
428 lift item 1
429 drop skillScrollsContainer 105 50 0
430 pause 500
431 promptresponse ChivalryPrice
432 elseif 'cooking' in label
433 lift item 1
434 drop skillScrollsContainer 115 50 0
435 pause 500
436 promptresponse CookingPrice
437 elseif 'detect hidden' in label
438 lift item 1
439 drop skillScrollsContainer 125 50 0
440 pause 500
441 promptresponse DetectHiddenPrice
442 elseif 'discordance' in label
443 lift item 1
444 drop skillScrollsContainer 135 50 0
445 pause 500
446 promptresponse DiscordancePrice
447 elseif 'fishing' in label
448 lift item 1
449 drop skillScrollsContainer 20 70 0
450 pause 500
451 promptresponse FishingPrice
452 elseif 'forensic eval' in label
453 lift item 1
454 drop skillScrollsContainer 30 70 0
455 pause 500
456 promptresponse ForensicEvalPrice
457 elseif 'herding' in label
458 lift item 1
459 drop skillScrollsContainer 40 70 0
460 pause 500
461 promptresponse HerdingPrice
462 elseif 'inscription' in label
463 lift item 1
464 drop skillScrollsContainer 50 70 0
465 pause 500
466 promptresponse InscriptionPrice
467 elseif 'item id' in label
468 lift item 1
469 drop skillScrollsContainer 60 70 0
470 pause 500
471 promptresponse ItemIdPrice
472 elseif 'lockpicking' in label
473 lift item 1
474 drop skillScrollsContainer 70 70 0
475 pause 500
476 promptresponse LockpickingPrice
477 elseif 'lumberjacking' in label
478 lift item 1
479 drop skillScrollsContainer 80 70 0
480 pause 500
481 promptresponse LumberjackingPrice
482 elseif 'musicianship' in label
483 lift item 1
484 drop skillScrollsContainer 90 70 0
485 pause 500
486 promptresponse MusicanshipPrice
487 elseif 'mining' in label
488 lift item 1
489 drop skillScrollsContainer 100 70 0
490 pause 500
491 promptresponse MiningPrice
492 elseif 'necromancy' in label
493 lift item 1
494 drop skillScrollsContainer 110 70 0
495 pause 500
496 promptresponse NecromancyPrice
497 elseif 'peacemaking' in label
498 lift item 1
499 drop skillScrollsContainer 120 70 0
500 pause 500
501 promptresponse PeacemakingPrice
502 elseif 'poisoning' in label
503 lift item 1
504 drop skillScrollsContainer 130 70 0
505 pause 500
506 promptresponse PoisoningPrice
507 elseif 'provocation' in label
508 lift item 1
509 drop skillScrollsContainer 15 90 0
510 pause 500
511 promptresponse ProvocationPrice
512 elseif 'remove trap' in label
513 lift item 1
514 drop skillScrollsContainer 25 90 0
515 pause 500
516 promptresponse RemoveTrapPrice
517 elseif 'spirit speak' in label
518 lift item 1
519 drop skillScrollsContainer 35 90 0
520 pause 500
521 promptresponse SpiritSpeakPrice
522 elseif 'stealth' in label
523 lift item 1
524 drop skillScrollsContainer 45 90 0
525 pause 500
526 promptresponse StealthPrice
527 elseif 'tailoring' in label
528 lift item 1
529 drop skillScrollsContainer 55 90 0
530 pause 500
531 promptresponse TailoringPrice
532 elseif 'taste id' in label
533 lift item 1
534 drop skillScrollsContainer 65 90 0
535 pause 500
536 promptresponse TasteIdPrice
537 elseif 'tinkering' in label
538 lift item 1
539 drop skillScrollsContainer 75 90 0
540 pause 500
541 promptresponse TinkeringPrice
542 elseif 'tracking' in label
543 lift item 1
544 drop skillScrollsContainer 85 90 0
545 pause 500
546 promptresponse TrackingPrice
547 elseif 'veterinary' in label
548 lift item 1
549 drop skillScrollsContainer 95 90 0
550 pause 500
551 promptresponse VeterinaryPrice
552 endif
553endwhile
554
555//Maps
556if setContainerVariables == '1'
557 overhead 'Set container for Maps' 2263
558setvar mapsContainer
559endif
560
561while findtype 'map' backpack as item
562 getlabel item label
563 if 'level 1' in label
564 lift item 1
565 drop mapsContainer 30 60 0
566 pause 500
567 promptresponse T1Price
568 elseif 'level 2' in label
569 lift item 1
570 drop mapsContainer 45 60 0
571 pause 500
572 promptresponse T2Price
573 elseif 'level 3' in label
574 lift item 1
575 drop mapsContainer 60 60 0
576 pause 500
577 promptresponse T3Price
578 elseif 'level 4' in label
579 lift item 1
580 drop mapsContainer 75 60 0
581 pause 500
582 promptresponse T4Price
583 elseif 'level 5' in label
584 lift item 1
585 drop mapsContainer 90 60 0
586 pause 500
587 promptresponse T5Price
588 elseif 'level 6' in label
589 lift item 1
590 drop mapsContainer 105 60 0
591 pause 500
592 promptresponse T6Price
593 elseif 'level 8' in label
594 lift item 1
595 drop mapsContainer 120 60 0
596 pause 500
597 promptresponse T8Price
598 endif
599endwhile
600
601//Other rares
602if setContainerVariables == '1'
603overhead 'Set container for other items' 2263
604setvar otherItemsContainer
605endif
606
607while findtype 'Book of Truth' backpack as item
608 lift item 5
609 drop otherItemsContainer 45 60 0
610 pause 500
611 promptresponse MastercraftingDiagramPrice
612endwhile
613
614while findtype 'void orb' backpack as item
615 lift item 1
616 drop otherItemsContainer 65 60 0
617 pause 500
618 promptresponse SkillOrbPrice
619endwhile
620
621while findtype 'research materials' backpack as item
622 lift item 5
623 drop otherItemsContainer 85 60 0
624 pause 500
625 promptresponse ResearchMaterialsPrice
626endwhile
627
628while findtype 'blank scroll%s%' backpack 2609 as item
629 lift item 20
630 drop otherItemsContainer 105 60 0
631 pause 500
632 promptresponse ArcaneScrollPrice
633endwhile
634
635overhead 'Script Finished' 2263