Training Cartography and Selling Maps in Cambria by texecutioner187

Related: Cartography

1# Training Cartography from Cambria, Credit to Jaseowns(of course) for the original script, I just modified the mapmaker and city based on input from Ian to save manual edits
2# UO Outlands = https://youtu.be/k5oVW2HwJi8
3# Requirements:  Tons of blank maps, 40+ map maker pens
4#   restock agent 5   as      10 maps and 2 map maker pens
5#   sell agent        as      map and enabled
6####
7# UPDATED September 17th 2022 to no longer need counters
8####
9#   Put your max skill on line 10 if you want to go beyond 100 skill.
10if skill 'cartography' >= 100
11    overhead 'Hit max!' 88
12    stop
13endif
14
15@setvar! mapMakerVendorId 0xAF44F
16
17// sell if the maps we have in our backpack are used and not blank
18if counttype 5356 backpack 2669 > 0 and counttype 5356 backpack 2955 = 0
19    overhead 'Selling to Penda the mapmaker'
20    menu mapMakerVendorId 2
21    wait 2000
22    if counttype 5356 backpack 2669 > 0
23        overhead "Make sure your sell agent is active and set to map!" 34
24        wait 2000
25        replay
26    endif
27endif
28
29gumpclose 949095101
30if counttype 5356 backpack 2955 < 10 or not findtype "pen and ink" backpack
31    restock 5
32    waitfortarget 
33    hotkey 'Target Self'
34    wait 2000
35endif
36
37if not findtype "pen and ink" backpack
38    overhead "No map maker pen found!" 34
39    overhead "Make sure restock agent 5 is set as maps & pens" 88
40    wait 1000
41    replay
42endif
43
44if counttype 5356 backpack 2955 = 0
45    overhead "No blank maps" 34
46    overhead "Make sure restock agent 5 is set as maps & pens" 88
47    wait 1000
48    replay
49endif
50
51if skill 'cartography' < 50
52    overhead 'Train at vendor'
53    wait 1000
54    replay
55endif
56
57while skill 'cartography' < 75 and counttype 5356 backpack 2955 > 0 and findtype 'pen and ink' backpack
58    gumpclose 949095101
59    overhead '50-75 City Map'
60    dclicktype 'pen and ink' backpack
61    waitforgump 949095101 
62    gumpresponse 100 949095101
63    waitforgump 949095101 
64    gumpresponse 201 949095101
65    waitforgump 949095101
66    wait 3500
67endwhile
68
69while skill 'cartography' < 100 and counttype 5356 backpack 2955 > 0 and findtype 'pen and ink' backpack
70    gumpclose 
71    overhead '75-100 Regional Map'
72    dclicktype 'pen and ink' backpack
73    waitforgump 949095101 
74    gumpresponse 100 949095101
75    waitforgump 949095101 
76    gumpresponse 202 949095101
77    waitforgump 949095101
78    wait 3500
79endwhile
80
81while skill 'cartography' < 120 and counttype 5356 backpack 2955 > 0 and findtype 'pen and ink' backpack
82    gumpclose 
83    overhead '100-120 World Map'
84    dclicktype 'pen and ink' backpack
85    waitforgump 949095101 
86    gumpresponse 100 949095101
87    waitforgump 949095101 
88    gumpresponse 203 949095101
89    waitforgump 949095101
90    wait 3500
91endwhile
92
93loop