Skip to content
Outlands Hub

Razor script

Mushnar's Mostly Safe Mining

by mushnar · 902 lines
Download

WARNING ######################## Verify the following Razor settings Open Razor > Filters tab > Text & Messages tab ### UNCHECK Filter repeating system messages ### UNCHECK Filter repeating Razor messages ### UNCHECK Filter repeating…

GatheringMiningTracking
Mushnars Mostly Safe Mining.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/4c677d36-c276-403c-833c-65f893ae76f7 for latest2# Automation by Jaseowns3## Script: Mushnar's Mostly Safe Mining4## Created by: mushnar#05#############################################6 7####################### WARNING ########################8	# Verify the following Razor settings9	# Open Razor > Filters tab > Text & Messages tab10	# ### UNCHECK Filter repeating system messages11	# ### UNCHECK Filter repeating Razor messages12	# ### UNCHECK Filter repeating overhead messages13########################################################14 15 16##################### CHANGE LOG ######################17    # VERSION 1.718    # ## Added additional non-hostile mobs to the peacemaking ignore list19    # ## Changed the automatically gate when hostiles detected distance to 50 steps after a few "accidents"20    # ## Added the stone grate forge object to the forge detection21    # ### Forges inside the quarry are usable to smelt ore manually, but aren't able to be detected by scripts due to lacking an item ID with >info22########################################################23 24 25##################### SCRIPT SETUP #####################26	# CUSTOMIZE THE FOLLOWING VARIABLES27	# ## house_door_id_number_when_open28	# ## house_door_serial_number29	# ## resource_stockpile_serial_number30	# ## storage_container_id_number31 32	# ALL OTHER VARIABLES SET 1 TO ENABLE 0 TO DISABLE33 34	# REPLACE "HOME RUNE NAME" ON LINES 301, 397, 409, 669, 680, 69135########################################################36 37 38@clearsysmsg39@clearignore40 41@setvar! automatically_gate_when_overweight 042@setvar! weight_remaining_limit 3043@setvar! automatically_gate_when_detecting_hostile_any_distance 044@setvar! automatically_gate_when_detecting_hostile_within_50_steps 145 46@setvar! track_only_red_players 047@setvar! automatically_detect_popped_pouches 148@setvar! automatically_gate_when_pouch_popped 049 50@setvar! warn_if_low_pickaxe_count 151@setvar! low_pick_axe_count 252@setvar! stop_script_if_no_runebook 153 54@setvar! storage_container_id_number 247355 56 57@setvar! automatically_gate_when_large_amount_of_ingots 058@setvar! automatically_gate_when_large_amount_of_ore 059@setvar! ingots_gate_amount 125060@setvar! ore_gate_amount 100061 62 63@setvar! automatically_smelt_ore 164@setvar! automatically_restock_at_resource_stockpile 165@setvar! always_display_tracking_window 166@setvar! use_peacemaking 167@setvar! detect_hidden_during_warmode 068 69 70@setvar! automatically_close_house_door 171@setvar! house_door_id_number_when_open 166472@setvar! house_door_serial_number 0x4A6A2E7F73@setvar! resource_stockpile_serial_number 0x420A5B1974 75 76@setvar! automatically_bandage_player 177@setvar! automatically_drink_potions 178@setvar! automatically_open_potion_satchel 179@setvar! automatically_drink_healing_potion 180@setvar! automatically_drink_cure_potion 181 82@setvar! health_value_to_drink_healing_potion 7583@setvar! health_value_to_drink_cure_potion 7584 85@setvar! potion_error_message_frequency 300086@setvar! overhead_message_frequency 1000087@setvar! error_message_frequency 300088@setvar! forge_overhead_ping_frequency 400089@setvar! tracking_hostile_overhead_alert_frequency 500090 91 92if not timerexists "skill_cooldown_timer"93    createtimer "skill_cooldown_timer"94    settimer "skill_cooldown_timer" 1000095endif96 97 98if not timerexists "forge_ping"99    createtimer "forge_ping"100    settimer "forge_ping" forge_overhead_ping_frequency101endif102 103if not timerexists "overhead_cooldown"104    createtimer "overhead_cooldown"105    settimer "overhead_cooldown" overhead_message_frequency106endif107 108if not timerexists "tracking_hostile_overhead_alert"109    createtimer "tracking_hostile_overhead_alert"110    settimer "tracking_hostile_overhead_alert" tracking_hostile_overhead_alert_frequency111endif112 113if not timerexists "error_overhead_cooldown"114    createtimer "error_overhead_cooldown"115    settimer "error_overhead_cooldown" error_message_frequency116endif117 118removetimer "potion_error_message_cooldown"119if not timerexists "potion_error_message_cooldown"120    createtimer "potion_error_message_cooldown"121    settimer "potion_error_message_cooldown" potion_error_message_frequency122endif123 124 125removelist animalsIgnoreList126createlist animalsIgnoreList127pushlist animalsIgnoreList "a plover"128pushlist animalsIgnoreList "a sheep"129pushlist animalsIgnoreList "a frenzied ostard"130pushlist animalsIgnoreList "a tundra ostard"131pushlist animalsIgnoreList "a desert ostard"132pushlist animalsIgnoreList "a forest ostard"133pushlist animalsIgnoreList "a finch"134pushlist animalsIgnoreList "a sparrow"135pushlist animalsIgnoreList "a towhee"136pushlist animalsIgnoreList "a lapwing"137pushlist animalsIgnoreList "a silverback"138pushlist animalsIgnoreList "a crow"139pushlist animalsIgnoreList "a woodpecker"140pushlist animalsIgnoreList "a horse"141pushlist animalsIgnoreList "a swift"142pushlist animalsIgnoreList "a skylark"143pushlist animalsIgnoreList "a hawk"144pushlist animalsIgnoreList "a chickadee"145pushlist animalsIgnoreList "a cat"146pushlist animalsIgnoreList "a dog"147pushlist animalsIgnoreList "a black bear"148pushlist animalsIgnoreList "a brown bear"149pushlist animalsIgnoreList "a bull"150pushlist animalsIgnoreList "a cow"151pushlist animalsIgnoreList "a chicken"152pushlist animalsIgnoreList "a bird"153pushlist animalsIgnoreList "an eagle"154pushlist animalsIgnoreList "a nuthatch"155pushlist animalsIgnoreList "an elk"156pushlist animalsIgnoreList "a great hart"157pushlist animalsIgnoreList "a kingfisher"158pushlist animalsIgnoreList "a hind"159pushlist animalsIgnoreList "a llama"160pushlist animalsIgnoreList "a sand crab"161pushlist animalsIgnoreList "a pig"162pushlist animalsIgnoreList "a polar bear"163pushlist animalsIgnoreList "a walrus"164pushlist animalsIgnoreList "a cougar"165pushlist animalsIgnoreList "a goat"166pushlist animalsIgnoreList "a raven"167pushlist animalsIgnoreList "a magpie"168pushlist animalsIgnoreList "a warbler"169pushlist animalsIgnoreList "a tern"170pushlist animalsIgnoreList "a nightingale"171pushlist animalsIgnoreList "a wren"172pushlist animalsIgnoreList "red rubble"173pushlist animalsIgnoreList "a spirit wolf"174pushlist animalsIgnoreList "a spirit sabertus"175pushlist animalsIgnoreList "a death asp"176pushlist animalsIgnoreList "a death adder"177pushlist animalsIgnoreList "a wisp"178pushlist animalsIgnoreList "a bison"179pushlist animalsIgnoreList "a wolf"180pushlist animalsIgnoreList "a cuckoo"181pushlist animalsIgnoreList "a starling"182 183 184if use_peacemaking = 1185	if timer "skill_cooldown_timer" >= 10000186	    skill "Peacemaking"187	    waitfortarget 1000188	endif189 190	if insysmsg "What instrument shall you play"191	    if findtype "standing harp|sackbut|bamboo flute|tambourine|drum|lute|lap harp|gemshorn|hurdy gurdy|psaltery|shawm|vielle" as instrument192	        target instrument193	        settimer "skill_cooldown_timer" 0194	    else195	        overhead "NO INSTRUMENT" 33196	        overhead "NO INSTRUMENT" 33197	        overhead "NO INSTRUMENT" 33198	        overhead "NO INSTRUMENT" 33199	        overhead "NO INSTRUMENT" 33200	    endif201    elseif insysmsg "What do you wish to pacify"202	    hotkey "Cancel Current Target"203	    settimer "skill_cooldown_timer" 10000204	    wait 500205	endif206endif207 208 209if not findtype "runebook" backpack and not findtype "runetome" backpack210    overhead "NO RUNEBOOK" 1288211    overhead "NO RUNEBOOK" 1288212    overhead "NO RUNEBOOK" 1288213    overhead "NO RUNEBOOK" 1288214    overhead "NO RUNEBOOK" 1288215 216    if stop_script_if_no_runebook = 1217    	stop218    endif219endif220 221 222if warn_if_low_pickaxe_count = 1223	if counttype "pickaxe" =< low_pick_axe_count224		if timer "error_overhead_cooldown" >= error_message_frequency225			overhead "LOW ON PICKAXES" 1288226	        settimer "error_overhead_cooldown" 0227	    endif228	endif229endif230 231 232 233while not dead234    if skill "Tracking" > 0235        if not findbuff "tracking"236            clearsysmsg237            if timer "skill_cooldown_timer" >= 10000238                while not gumpexists 4267467659239                    useskill 'tracking'240                    getlabel backpack ping241                    settimer "skill_cooldown_timer" 0242                endwhile243            endif244            if gumpexists 4267467659245            	if track_only_red_players = 1246	                while not insysmsg "You will now hunt murderer players"247	                    gumpresponse 8 4267467659248	                    waitforgump 4267467659 5000249	                endwhile250	            else251	          		while not insysmsg "You will now hunt all hostile players"252	                    gumpresponse 8 4267467659253	                    waitforgump 4267467659 5000254	                endwhile255	            endif256                gumpresponse 6 4267467659257                getlabel backpack ping258            endif259            if always_display_tracking_window = 0260            	gumpclose 4267467659261           	endif262        endif263    endif264 265 266    if always_display_tracking_window = 1267    	if not gumpexists 4267467659268	        useskill 'tracking'269    	    getlabel backpack ping270    	endif271    endif272 273 274    if timer "skill_cooldown_timer" >= 10000275        if detect_hidden_during_warmode = 1276	        skill "detectinghidden"277	        waitfortarget 100278	        target "self"279	        settimer "skill_cooldown_timer" 0280	    else281	   		if warmode on282	   			# Do nothing283	   		else284	   			skill "detectinghidden"285		        waitfortarget 100286		        target "self"287		        settimer "skill_cooldown_timer" 0288	   		endif289	    endif290    endif291 292 293    if insysmsg "You reveal what was hidden"294        overhead "HIDDEN REVEALED" 53295        overhead "HIDDEN REVEALED" 53296        overhead "HIDDEN REVEALED" 53297        overhead "HIDDEN REVEALED" 53298        overhead "HIDDEN REVEALED" 53299    endif300 301 302    if insysmsg "attempting to peak into"303        overhead "THIEF SNOOPING" 53304        overhead "THIEF SNOOPING" 53305        overhead "THIEF SNOOPING" 53306        overhead "THIEF SNOOPING" 53307        overhead "THIEF SNOOPING" 53308    endif309 310 311    if automatically_detect_popped_pouches = 1312	    if findtype 3705 backpack 0 as popped_pouch313	        overhead "POUCH POPPED" 33314	        overhead "POUCH POPPED" 33315	        overhead "POUCH POPPED" 33316	        overhead "POUCH POPPED" 33317	        overhead "POUCH POPPED" 33318	        @ignore popped_pouch319 320	        if automatically_gate_when_pouch_popped = 1321	        	overhead "�� GATING HOME ��" 88322	        	say "[RecallCharge HOME RUNE NAME"323	        endif324	    endif325	endif326 327    328    if automatically_gate_when_detecting_hostile_within_50_steps = 1329        @setvar! gate_now 0330 331		if insysmsg "Distance to destination: 50 steps" or insysmsg "(50 spaces to target)"332            @setvar! gate_now 1333        elseif insysmsg "Distance to destination: 49 steps" or insysmsg "(49 spaces to target)"334            @setvar! gate_now 1335        elseif insysmsg "Distance to destination: 48 steps" or insysmsg "(48 spaces to target)"336            @setvar! gate_now 1337        elseif insysmsg "Distance to destination: 47 steps" or insysmsg "(47 spaces to target)"338            @setvar! gate_now 1339        elseif insysmsg "Distance to destination: 46 steps" or insysmsg "(46 spaces to target)"340            @setvar! gate_now 1341        elseif insysmsg "Distance to destination: 45 steps" or insysmsg "(45 spaces to target)"342            @setvar! gate_now 1343        elseif insysmsg "Distance to destination: 44 steps" or insysmsg "(44 spaces to target)"344            @setvar! gate_now 1345        elseif insysmsg "Distance to destination: 43 steps" or insysmsg "(43 spaces to target)"346            @setvar! gate_now 1347        elseif insysmsg "Distance to destination: 42 steps" or insysmsg "(42 spaces to target)"348            @setvar! gate_now 1349        elseif insysmsg "Distance to destination: 41 steps" or insysmsg "(41 spaces to target)"350            @setvar! gate_now 1351        elseif insysmsg "Distance to destination: 40 steps" or insysmsg "(40 spaces to target)"352			@setvar! gate_now 1353		elseif insysmsg "Distance to destination: 39 steps" or insysmsg "(39 spaces to target)"354			@setvar! gate_now 1355		elseif insysmsg "Distance to destination: 38 steps" or insysmsg "(38 spaces to target)"356			@setvar! gate_now 1357		elseif insysmsg "Distance to destination: 37 steps" or insysmsg "(37 spaces to target)"358			@setvar! gate_now 1359		elseif insysmsg "Distance to destination: 36 steps" or insysmsg "(36 spaces to target)"360			@setvar! gate_now 1361		elseif insysmsg "Distance to destination: 35 steps" or insysmsg "(35 spaces to target)"362			@setvar! gate_now 1363		elseif insysmsg "Distance to destination: 34 steps" or insysmsg "(34 spaces to target)"364			@setvar! gate_now 1365		elseif insysmsg "Distance to destination: 33 steps" or insysmsg "(33 spaces to target)"366			@setvar! gate_now 1367		elseif insysmsg "Distance to destination: 32 steps" or insysmsg "(32 spaces to target)"368			@setvar! gate_now 1369		elseif insysmsg "Distance to destination: 31 steps" or insysmsg "(31 spaces to target)"370			@setvar! gate_now 1371		elseif insysmsg "Distance to destination: 30 steps" or insysmsg "(30 spaces to target)"372			@setvar! gate_now 1373		elseif insysmsg "Distance to destination: 29 steps" or insysmsg "(29 spaces to target)"374			@setvar! gate_now 1375		elseif insysmsg "Distance to destination: 28 steps" or insysmsg "(28 spaces to target)"376			@setvar! gate_now 1377		elseif insysmsg "Distance to destination: 27 steps" or insysmsg "(27 spaces to target)"378			@setvar! gate_now 1379		elseif insysmsg "Distance to destination: 26 steps" or insysmsg "(26 spaces to target)"380			@setvar! gate_now 1381		elseif insysmsg "Distance to destination: 25 steps" or insysmsg "(25 spaces to target)"382			@setvar! gate_now 1383		elseif insysmsg "Distance to destination: 24 steps" or insysmsg "(24 spaces to target)"384			@setvar! gate_now 1385		elseif insysmsg "Distance to destination: 23 steps" or insysmsg "(23 spaces to target)"386			@setvar! gate_now 1387		elseif insysmsg "Distance to destination: 22 steps" or insysmsg "(22 spaces to target)"388			@setvar! gate_now 1389		elseif insysmsg "Distance to destination: 21 steps" or insysmsg "(21 spaces to target)"390			@setvar! gate_now 1391		elseif insysmsg "Distance to destination: 20 steps" or insysmsg "(20 spaces to target)"392			@setvar! gate_now 1393		elseif insysmsg "Distance to destination: 19 steps" or insysmsg "(19 spaces to target)"394			@setvar! gate_now 1395		elseif insysmsg "Distance to destination: 18 steps" or insysmsg "(18 spaces to target)"396			@setvar! gate_now 1397		elseif insysmsg "Distance to destination: 17 steps" or insysmsg "(17 spaces to target)"398			@setvar! gate_now 1399		elseif insysmsg "Distance to destination: 16 steps" or insysmsg "(16 spaces to target)"400			@setvar! gate_now 1401		elseif insysmsg "Distance to destination: 15 steps" or insysmsg "(15 spaces to target)"402			@setvar! gate_now 1403		elseif insysmsg "Distance to destination: 14 steps" or insysmsg "(14 spaces to target)"404			@setvar! gate_now 1405		elseif insysmsg "Distance to destination: 13 steps" or insysmsg "(13 spaces to target)"406            @setvar! gate_now 1407        elseif insysmsg "Distance to destination: 12 steps" or insysmsg "(12 spaces to target)"408            @setvar! gate_now 1409        elseif insysmsg "Distance to destination: 11 steps" or insysmsg "(11 spaces to target)"410            @setvar! gate_now 1411        elseif insysmsg "Distance to destination: 10 steps" or insysmsg "(10 spaces to target)"412            @setvar! gate_now 1413        elseif insysmsg "Distance to destination: 9 steps" or insysmsg "(9 spaces to target)"414            @setvar! gate_now 1415        elseif insysmsg "Distance to destination: 8 steps" or insysmsg "(8 spaces to target)"416            @setvar! gate_now 1417        elseif insysmsg "Distance to destination: 7 steps" or insysmsg "(7 spaces to target)"418            @setvar! gate_now 1419        elseif insysmsg "Distance to destination: 6 steps" or insysmsg "(6 spaces to target)"420            @setvar! gate_now 1421        elseif insysmsg "Distance to destination: 5 steps" or insysmsg "(5 spaces to target)"422            @setvar! gate_now 1423        elseif insysmsg "Distance to destination: 4 steps" or insysmsg "(4 spaces to target)"424            @setvar! gate_now 1425        elseif insysmsg "Distance to destination: 3 steps" or insysmsg "(3 spaces to target)"426            @setvar! gate_now 1427        elseif insysmsg "Distance to destination: 2 steps" or insysmsg "(2 spaces to target)"428            @setvar! gate_now 1429        elseif insysmsg "Distance to destination: 1 steps" or insysmsg "(1 spaces to target)"430            @setvar! gate_now 1431        endif432        433        if gate_now = 1          434            overhead "HOSTILES TOO CLOSE" 33435            overhead "HOSTILES TOO CLOSE" 33436            overhead "HOSTILES TOO CLOSE" 33437        	overhead "�� GATING HOME ��" 88438            say "[RecallCharge HOME RUNE NAME"439        endif440    endif441 442 443	if automatically_gate_when_detecting_hostile_any_distance = 1444        if insysmsg "Now tracking:"445            overhead "HOSTILES TOO CLOSE" 33446            overhead "HOSTILES TOO CLOSE" 33447            overhead "HOSTILES TOO CLOSE" 33448 449            overhead "�� GATING HOME ��" 88450            say "[RecallCharge HOME RUNE NAME"451        endif452    endif453 454    if insysmsg "Now tracking:" or insysmsg "Distance to destination:"455    	if timer "tracking_hostile_overhead_alert" >= tracking_hostile_overhead_alert_frequency456	        overhead "DISTANT HOSTILES DETECTED" 33457	        settimer "tracking_hostile_overhead_alert" 0458	    endif459    endif460 461 462 463    if rhandempty464		while casting465			wait 500466		endwhile467		wait 100468 469		if findtype "pickaxe" backpack as found_pickaxe470			dclick found_pickaxe471			wait 600472			dclick righthand473		elseif timer "error_overhead_cooldown" >= error_message_frequency474			overhead "OUT OF PICKAXES" 1288475            overhead "OUT OF PICKAXES" 1288476            overhead "OUT OF PICKAXES" 1288477            overhead "OUT OF PICKAXES" 1288478            overhead "OUT OF PICKAXES" 1288479            settimer "error_overhead_cooldown" 0        480		endif481	else482		getlabel righthand righthand_description483	    if "pickaxe" in righthand_description484	    	dclick righthand485 486			if warmode487					# Do nothing488			elseif counttype "pickaxe" self <= 1489			    getlabel righthand righthand_description490 491			    if "(100 uses remaining)" in righthand_description492			        if timer "overhead_cooldown" >= overhead_message_frequency493			        	overhead "PICKAXE LOW: 100" 63494			        	settimer "overhead_cooldown" 0495			        endif496			    elseif "(50 uses remaining)" in righthand_description497			        if timer "overhead_cooldown" >= overhead_message_frequency498			        	overhead "PICKAXE LOW: 50" 88499			        	overhead "PICKAXE LOW: 50" 88500			        	settimer "overhead_cooldown" 0501			        endif502			    elseif "(25 uses remaining)" in righthand_description503			        if timer "overhead_cooldown" >= overhead_message_frequency504				        overhead "PICKAXE LOW: 25" 53505				        overhead "PICKAXE LOW: 25" 53506				        overhead "PICKAXE LOW: 25" 53507				        settimer "overhead_cooldown" 0508				    endif509			    elseif "(10 uses remaining)" in righthand_description510			        if timer "overhead_cooldown" >= overhead_message_frequency511				        overhead "PICKAXE LOW: 10" 1257512				        overhead "PICKAXE LOW: 10" 1257513				        overhead "PICKAXE LOW: 10" 1257514				        overhead "PICKAXE LOW: 10" 1257515				        settimer "overhead_cooldown" 0516				    endif517			    elseif "(5 uses remaining)" in righthand_description518			        if timer "overhead_cooldown" >= overhead_message_frequency519				        overhead "PICKAXE LOW: 5" 1288520				        overhead "PICKAXE LOW: 5" 1288521				        overhead "PICKAXE LOW: 5" 1288522				        overhead "PICKAXE LOW: 5" 1288523				        overhead "PICKAXE LOW: 5" 1288524				        settimer "overhead_cooldown" 0525				    endif526			    endif527			endif528	    elseif findtype "pickaxe" backpack as found_pickaxe529			dclick found_pickaxe530			wait 600531			dclick righthand532		elseif timer "error_overhead_cooldown" >= error_message_frequency533			overhead "OUT OF PICKAXES" 1288534            overhead "OUT OF PICKAXES" 1288535            overhead "OUT OF PICKAXES" 1288536            overhead "OUT OF PICKAXES" 1288537            overhead "OUT OF PICKAXES" 1288538            settimer "error_overhead_cooldown" 0539		endif540	endif541 542 543 544    if insysmsg "Harvest double yield/loot triggered"545    	overhead "� HARVEST PROC �" 62546    endif547 548    if insysmsg "You loosen some rocks but fail to find any useable ore" or insysmsg "You dig some"549        overhead "� MINING �" 1366550    elseif insysmsg "You do not see any harvestable resources nearby"551        overhead "� NEXT SPOT �" 53     552    elseif insysmsg "harvesting is not allowed"553        overhead "LEAVE TOWN" 53554        overhead "LEAVE TOWN" 53555        overhead "LEAVE TOWN" 53556    elseif insysmsg "You have recently traveled"557        if timer "error_overhead_cooldown" >= error_message_frequency558            overhead "Waiting on travel cooldown"559            overhead "� MINING �" 1366 560            settimer "error_overhead_cooldown" 0561        endif562    endif563 564 565 566    if findtype 6585 backpack as found_ore567        @getlabel found_ore ore_description568 569        if "iron" in ore_description570            if "shadow" in ore_description571                overhead "SHADOW IRON" 2406572            else573                overhead "IRON" 0574            endif575        elseif "copper" in ore_description576            if "dull copper" in ore_description577                overhead "DULL COPPER" 2419578            else579                overhead "COPPER" 2413580            endif581	    elseif "bronze" in ore_description582            overhead "BRONZE" 2418583        elseif "gold" in ore_description584            overhead "GOLD" 2213585        elseif "agapite" in ore_description586            overhead "AGAPITE" 2425587        elseif "verite" in ore_description588            overhead "VERITE" 2207589        elseif "valorite" in ore_description590            overhead "VALORITE" 2219591        elseif "avarite" in ore_description592            overhead "AVARITE" 1763593        endif594 595	    if findtype storage_container_id_number backpack as storage_container596            @drop backpack -1 -1 -1597            getlabel backpack ping598            wait 500599            lift found_ore 9999600            getlabel backpack ping601            drop storage_container -1 -1 -1           602            wait 500603            @ignore found_ore604        endif605    endif606 607    if findtype 4017|47190 ground any any 2 as found_forge608        if timer "forge_ping" >= forge_overhead_ping_frequency609            overhead "�� FORGE ��" 88 found_forge610            settimer "forge_ping" 0611        endif612        613        if automatically_smelt_ore = 1614	        @clearignore615	        if findtype storage_container_id_number backpack as storage_container616	            while findtype 7154 storage_container as found_ingots617	                @ignore found_ingots618	            endwhile619	        endif620	        621	        while findtype 6585 backpack as found_ore622	            overhead "� SMELTING ORE �"623	            dclick found_ore624	            @ignore found_ore625	            wait 500626	        endwhile627	    endif628    endif629 630 631    if findtype 7154 backpack as found_ingots632        @getlabel found_ingots ingot_description633 634        if "iron" in ore_description635            if "shadow" in ore_description636                overhead "SHADOW IRON" 2406637            else638                overhead "IRON" 0639            endif640        elseif "copper" in ore_description641            if "dull copper" in ore_description642                overhead "DULL COPPER" 2419643            else644                overhead "COPPER" 2413645            endif646	    elseif "bronze" in ore_description647            overhead "BRONZE" 2418648        elseif "gold" in ore_description649            overhead "GOLD" 2213650        elseif "agapite" in ore_description651            overhead "AGAPITE" 2425652        elseif "verite" in ore_description653            overhead "VERITE" 2207654        elseif "valorite" in ore_description655            overhead "VALORITE" 2219656        elseif "avarite" in ore_description657            overhead "AVARITE" 1763658        endif659    	660    	if findtype storage_container_id_number backpack as storage_container661            @drop backpack -1 -1 -1662            getlabel backpack ping663            wait 500664            lift found_ingots 9999665            getlabel backpack ping666            drop storage_container -1 -1 -1667            wait 600668            @ignore found_ingots      669        endif670    endif671       672    673    if findtype 4017|47190 ground any any 6 as found_forge674        if timer "forge_ping" >= forge_overhead_ping_frequency675            overhead "�� FORGE ��" 88 found_forge676            settimer "forge_ping" 0677        endif678	elseif findtype 4017|47190 ground any any 12 as found_forge679        if timer "forge_ping" >= forge_overhead_ping_frequency680            overhead "�� FORGE ��" 88 found_forge681            settimer "forge_ping" 0682        endif    683    elseif findtype 4017|47190 ground any any 18 as found_forge684        if timer "forge_ping" >= forge_overhead_ping_frequency685            overhead "�� FORGE ��" 88 found_forge686            settimer "forge_ping" 0687        endif688    endif689 690 691    if automatically_restock_at_resource_stockpile = 1692	    if find resource_stockpile_serial_number ground any any 2 as my_resource_stockpile693		    @clearignore694		    if findtype 7154 backpack as found_ingots695			    overhead "RESTOCKING INGOTS" 88696			    menu resource_stockpile_serial_number 0697			    waitfortarget 1000698			    target self699			    wait 1000700			endif701	    endif702	endif703 704 705    if diffweight <= weight_remaining_limit706        overhead "OVERWEIGHT" 53707 708   	    if automatically_gate_when_overweight = 1709        	overhead "�� GATING HOME ��" 88710        	say "[RecallCharge HOME RUNE NAME"711        	stop712        endif713    endif714 715 716    if counttype 7154 backpack >= ingots_gate_amount717    	overhead "Too many ingots!" 53718 719   	    if automatically_gate_when_large_amount_of_ingots = 1720        	overhead "�� GATING HOME ��" 88721        	say "[RecallCharge HOME RUNE NAME"722        	stop723        endif724    endif725 726 727    if counttype 6585 backpack >= ore_gate_amount728    	overhead "Too much ore!" 53729    	730   	    if automatically_gate_when_large_amount_of_ore = 1731        	overhead "�� GATING HOME ��" 88732        	say "[RecallCharge HOME RUNE NAME"733        	stop734        endif735    endif736 737    ####################### BANDAGE PLAYER ########################738	    if automatically_bandage_player = 1739	        if findtype 3617 backpack as found_bandage740	            if not bandaging741	                if hp < maxhp or poisoned or findbuff "bleed" or findbuff "disease"742	                    dclick found_bandage743	                    getlabel backpack ping744	                    waitfortarget 1000745	                    target "self"746	                    getlabel backpack ping747	                    settimer "bandage_cooldown" 0748	                endif749	            endif750	        endif751	    endif752	###############################################################753 754 755    if automatically_drink_potions = 1756        ########## OPEN POTION SATCHEL ##########757            if automatically_open_potion_satchel = 1758			    #Opens potion satchel to display potions on hotbar759			    if findtype 31262 self as alchemist_satchel760			        dclick alchemist_satchel761			    endif762            endif763        ####################################764 765 766        ########## HEALING POTION ##########767            if automatically_drink_healing_potion = 1 and hp <= health_value_to_drink_healing_potion768                if findtype "Yellow Potion" self as healing_potion769                    getlabel healing_potion healing_potion_description770 771                    if "next usabel" in healing_potion_description772                        if timer "potion_error_message_cooldown" >= potion_error_message_frequency773                            overhead "Healing Potion On Cooldown!" 34774                        endif775                    else776                        overhead "Drinking Healing Potion" 53777                        dclick healing_potion778                        getlabel backpack ping779                        cooldown "Yellow Potion" 10000780                    endif781                else782                    overhead "Out of Healing Potions!" 34783                endif784            endif785        ####################################786 787 788        ########## CURE POTION ##########789            if automatically_drink_cure_potion = 1 and poisoned and hp <= health_value_to_drink_cure_potion790                if findtype "Orange Potion" self as cure_potion791                    overhead "Drinking Cure Potion" 44792                    dclick cure_potion793                    getlabel backpack ping794                endif795            endif796        #################################797    endif798 799 800    if paralyzed 801        if findtype 3705 backpack 38 802            yell "[Pouch"803            getlabel backpack ping804        else805            overhead "Out of Pouches!" 34806        endif807    endif808 809 810    if use_peacemaking = 1811        if warmode on812            target closest grey monster813    814            if find lasttarget ground any any 18815                @setvar! target_to_analyze lasttarget816                getlabel target_to_analyze target_description817            818                if inlist animalsIgnoreList target_description819                    @ignore target_to_analyze820                elseif find target_to_analyze ground -1 -1 12821                        if timer "skill_cooldown_timer" >= 10000822                            skill "Peacemaking"823                            waitfortarget 1000824                        endif825                        826                        if insysmsg "What instrument shall you play"827                            if findtype "standing harp|sackbut|bamboo flute|tambourine|drum|lute|lap harp|gemshorn|hurdy gurdy|psaltery|shawm|vielle" as instrument828                                target instrument829                            else830                                overhead "NO INSTRUMENT" 33831                                overhead "NO INSTRUMENT" 33832                                overhead "NO INSTRUMENT" 33833                                overhead "NO INSTRUMENT" 33834                                overhead "NO INSTRUMENT" 33835                                wait 100836                                target self837                            endif838                        elseif timer "skill_cooldown_timer" >= 10000839                            skill "Peacemaking"840                            waitfortarget 1000841                            target target_to_analyze842                            settimer "skill_cooldown_timer" 0843                            844                            if insysmsg "You fail to pacify your opponent"845                                overhead "� PEACE FAILED �" 53 target_to_analyze846                                overhead "� PEACE FAILED �" 53 target_to_analyze847                                overhead "� PEACE FAILED �" 53 target_to_analyze848                                settimer "skill_cooldown_timer" 5000849                            elseif insysmsg "You play successfully, pacifying your target"850                                overhead "� PEACED �" 63 target_to_analyze851                            endif852 853                            getlabel target_to_analyze target_description854                            if "pacified" in target_description855                                overhead target_description 88 target_to_analyze856                            endif857                        endif858                    endif859                endif860             endif861        endif862    endif863 864 865    #################### WORLD SAVE ######################    866	    if insysmsg "world will save"867	        overhead "World save coming soon" 53868	        @setvar! world_save_cooldown 13500869 870	        removetimer "world_save_timer"871	        if not timerexists "world_save_timer"    872	            createtimer "world_save_timer"873	            settimer "world_save_timer" 0874	        endif875 876	        clearsysmsg877	        getlabel backpack ping878	    endif879 880 881	    if timerexists "world_save_timer"882	        if timer "world_save_timer" >= world_save_cooldown883	            overhead "Waiting for world save..." 53884	            removetimer "world_save_timer"885	        endif886	    endif887 888 889	    if insysmsg "save complete"890	        overhead "World save complete!" 63                891	        clearsysmsg892	        getlabel backpack ping893	    endif894######################################################895 896	if automatically_close_house_door = 1897		if findtype house_door_id_number_when_open ground any any 2898		    dclick house_door_serial_number899		    wait 500900		endif901	endif902endwhile