MeditationHiding
Nacrem Runetome Copy.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/8aa62c09-9804-4199-a782-3a1d7449fbb9 for latest2# Automation by Jaseowns3## Script: Nacrem Runetome Copy4## Created by: nacrem#05#############################################6 7@setvar! use_summon 18@setvar! use_hiding 09 10# Define your starting rune here by its Gump ID.11# Rune 1 = 200 | Rune 2 = 201 | Rune 3 = 202 | Rune 4 = 203 | Rune 5 = 20412# Rune 6 = 205 | Rune 7 = 206 | Rune 8 = 207 | Rune 9 = 208 | Rune 10 = 20913# Rune 11= 210 | Rune 12= 211 | Rune 13= 212 | Rune 14= 213 | Rune 15= 21414# Rune 16= 215 | Rune 17= 216 | Rune 18= 217 | Rune 19= 218 | Rune 20= 21915# Rune 21= 220 | Rune 22= 221 | Rune 23= 222 | Rune 24= 223 | Rune 25= 22416# Rune 26= 22517@setvar! starting_gump_id 20018 19@setvar! current_button 1020 21@setvar! wait_short 100022@setvar! wait_loop 50023@setvar! wait_cast 250024@setvar! wait_summon 400025@setvar! wait_travel 350026@setvar! wait_target 500027@setvar! wait_gump 500028@setvar! wait_sync 250029@setvar! wait_bounce 200030 31if use_summon == 132 if skill 'Magery' < 8033 @setvar! use_summon 034 overhead 'Magery below 80: Summons disabled.' 3435 wait wait_short36 endif37endif38 39if use_hiding == 140 if skill 'Hiding' < 10041 @setvar! use_hiding 042 overhead 'Hiding below 100: Hiding disabled.' 3443 wait wait_short44 endif45endif46 47if not listexists 'rune_list'48 createlist 'rune_list'49else50 clearlist 'rune_list'51endif52 53if not listexists 'countdown_list'54 createlist 'countdown_list'55else56 clearlist 'countdown_list'57endif58 59pushlist 'rune_list' 20060pushlist 'rune_list' 20161pushlist 'rune_list' 20262pushlist 'rune_list' 20363pushlist 'rune_list' 20464pushlist 'rune_list' 20565pushlist 'rune_list' 20666pushlist 'rune_list' 20767pushlist 'rune_list' 20868pushlist 'rune_list' 20969pushlist 'rune_list' 21070pushlist 'rune_list' 21171pushlist 'rune_list' 21272pushlist 'rune_list' 21373pushlist 'rune_list' 21474pushlist 'rune_list' 21575pushlist 'rune_list' 21676pushlist 'rune_list' 21777pushlist 'rune_list' 21878pushlist 'rune_list' 21979pushlist 'rune_list' 22080pushlist 'rune_list' 22181pushlist 'rune_list' 22282pushlist 'rune_list' 22383pushlist 'rune_list' 22484pushlist 'rune_list' 22585 86pushlist 'countdown_list' 2687pushlist 'countdown_list' 2588pushlist 'countdown_list' 2489pushlist 'countdown_list' 2390pushlist 'countdown_list' 2291pushlist 'countdown_list' 2192pushlist 'countdown_list' 2093pushlist 'countdown_list' 1994pushlist 'countdown_list' 1895pushlist 'countdown_list' 1796pushlist 'countdown_list' 1697pushlist 'countdown_list' 1598pushlist 'countdown_list' 1499pushlist 'countdown_list' 13100pushlist 'countdown_list' 12101pushlist 'countdown_list' 11102pushlist 'countdown_list' 10103pushlist 'countdown_list' 9104pushlist 'countdown_list' 8105pushlist 'countdown_list' 7106pushlist 'countdown_list' 6107pushlist 'countdown_list' 5108pushlist 'countdown_list' 4109pushlist 'countdown_list' 3110pushlist 'countdown_list' 2111pushlist 'countdown_list' 1112 113overhead 'Select runebook to copy FROM (Must be on ground)' 1150114@setvar! runebookinput115 116overhead 'Select runebook to copy TO (Must be in backpack)' 1150117@setvar! runebookoutput118 119overhead 'Select your stack of BLANK RUNES (Must be in backpack)' 1150120@setvar! blank_rune_stack121 122overhead 'Checking resources...' 1150123wait wait_short124 125if counttype 0x0F7A < 55126 overhead 'Insufficient Black Pearl.' 34127 stop128endif129 130if counttype 0x0F7B < 55131 overhead 'Insufficient Blood Moss.' 34132 stop133endif134 135if counttype 0x0F86 < 55136 overhead 'Insufficient Mandrake Root.' 34137 stop138endif139 140overhead 'Starting copy process...' 90141wait wait_short142 143foreach current_rune in 'rune_list'144 145 @setvar! marks_left countdown_list[0]146 poplist 'countdown_list' front147 148 if current_rune >= starting_gump_id149 150 overhead marks_left 90151 152 sysmsg '--- RUNES REMAINING ---' 90153 sysmsg marks_left 90154 155 overhead 'Preparing next rune...' 1150156 wait 500157 158 if use_summon == 1159 if followers == 0160 overhead 'Summon missing. Casting Earth Elemental...' 88161 while followers == 0162 if mana < 50163 overhead 'Meditating for summon mana...' 88164 useskill 'meditation'165 while mana < 85166 wait wait_loop167 endwhile168 endif169 170 clearsysmsg171 cast 'Earth Elemental'172 wait wait_summon173 174 if insysmsg 'fizzle'175 overhead 'Summon fizzled. Retrying...' 53176 elseif insysmsg 'disturbed'177 overhead 'Summon interrupted. Retrying...' 53178 endif179 endwhile180 overhead 'Earth Elemental summoned.' 90181 endif182 endif183 184 if mana < 45185 overhead 'Meditating for spell mana...' 88186 useskill 'meditation'187 while mana < 85188 wait wait_loop189 endwhile190 endif191 192 if find runebookinput ground193 overhead 'Opening source runebook...' 1150194 dclick runebookinput195 waitforgump 167090027 wait_gump196 197 overhead 'Selecting rune...' 1150198 gumpresponse current_rune199 waitforgump 167090027 wait_gump200 201 overhead 'Teleporting to location...' 1150202 gumpresponse current_button203 wait wait_travel204 205 if dead206 overhead 'Character is dead. Halting script.' 34207 stop208 endif209 210 if use_summon == 1211 overhead 'Commanding pet to guard...' 1150212 say 'all guard'213 wait wait_short214 endif215 216 if use_hiding == 1217 overhead 'Attempting to hide...' 88218 useskill 'Hiding'219 wait wait_short220 endif221 222 @setvar! mark_success 0223 224 overhead 'Marking blank rune...' 88225 while mark_success == 0226 clearsysmsg227 cast 'Mark'228 wft wait_target229 target blank_rune_stack230 wait wait_cast231 232 # Failsafe: If the stack is depleted, the targeting cursor will remain active.233 if targetexists234 overhead 'Out of blank runes! Halting script.' 34235 canceltarget236 stop237 endif238 239 if insysmsg 'fizzle'240 overhead 'Mark fizzled. Retrying...' 53241 if mana < 20242 overhead 'Meditating for Mark mana...' 88243 useskill 'meditation'244 while mana < 85245 wait wait_loop246 endwhile247 endif248 elseif insysmsg 'disturbed'249 overhead 'Mark interrupted by damage. Retrying...' 53250 if mana < 20251 overhead 'Meditating for Mark mana...' 88252 useskill 'meditation'253 while mana < 85254 wait wait_loop255 endwhile256 endif257 else258 overhead 'Mark successful.' 90259 @setvar! mark_success 1260 endif261 endwhile262 263 @setvar! recall_success 0264 265 overhead 'Recalling back home...' 88266 while recall_success == 0267 clearsysmsg268 say '[Recall Home'269 wait wait_travel270 271 if dead272 overhead 'Character died during recall. Halting script.' 34273 stop274 endif275 276 if find runebookinput ground277 overhead 'Arrived home.' 90278 @setvar! recall_success 1279 elseif insysmsg 'disturbed'280 overhead 'Recall interrupted. Retrying...' 53281 if mana < 15282 overhead 'Meditating for Recall mana...' 88283 useskill 'meditation'284 while mana < 85285 wait wait_loop286 endwhile287 endif288 else289 overhead 'Recall failed/Cooldown. Retrying...' 53290 wait wait_short291 endif292 endwhile293 294 wait wait_sync295 296 # Mask the blank rune stack so Razor only detects the newly marked rune297 ignore blank_rune_stack298 wait 250299 300 if findtype 0x1F14 backpack as marked_rune301 @setvar! drop_success 0302 @setvar! retry_counter 1303 304 while drop_success == 0305 overhead 'Moving rune to new book...' 1150306 307 lift marked_rune308 wait 500309 drop runebookoutput310 wait 1500311 312 if find marked_rune backpack313 overhead 'Server bounced the drop. Retrying...' 53314 315 if retry_counter == 1316 @setvar! retry_counter 2317 elseif retry_counter == 2318 @setvar! retry_counter 3319 elseif retry_counter == 3320 @setvar! retry_counter 4321 elseif retry_counter == 4322 overhead 'Drop failed 4 times. Halting. Is the location a duplicate?' 34323 clearignore324 stop325 endif326 327 wait wait_bounce328 else329 overhead 'Rune added to book.' 90330 @setvar! drop_success 1331 endif332 endwhile333 else334 overhead 'Could not find the marked rune.' 34335 clearignore336 stop337 endif338 339 # Unmask the blank rune stack for the next sequence340 clearignore341 else342 overhead 'Critical Error: Source runebook not found at home!' 34343 stop344 endif345 endif346 347 if current_button == 10348 @setvar! current_button 20349 else350 @setvar! current_button 10351 endif352endfor353 354overhead 'Runebook Copied!' 90