Anti- Griefer Script by Mortadelaz Ever found someone gray next to you, and attacked them only to discover later they stole your bandages? No longer!! This script splits bandages, potions, arrows and reagents in small bundles, on top of…
Organizing
Anti-griefer organizer.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/88a96a32-f4cb-42f4-9420-a4ef2aef3e48 for latest2# Automation by Jaseowns3## Script: Anti-griefer organizer4## Created by: gmussi#05#############################################6 7#8# Anti- Griefer Script by Mortadelaz9#10# Ever found someone gray next to you, and 11# attacked them only to discover later they stole your bandages?12# No longer!!13#14# This script splits bandages, potions, arrows and reagents in15# small bundles, on top of each other.16# If the thief steal your 20 bandages, there will be more 2017# underneath it, and more 20 underneath that.18#19# HOW TO USE:20#21# When you run the first time, the script will ask for the pouches22# where to store stuff.23# Run the script after restocking from the shelf.24 25 26 27@setvar! globalWaitTime 65028 29# Change which ones you want to organize30@setvar! module_bandages 131@setvar! module_arrows 132@setvar! module_potions 133@setvar! module_reagents 134 35# Change how you prefer your increments36@setvar! bandage_increments 2037@setvar! arrow_increments 2538@setvar! potion_increments 1039@setvar! reagent_increments 2040 41if findlayer self backpack as found42 setvar! CHAR_BACKPACK found43endif44 45if not varexist my_pouch or not find my_pouch self46 overhead "SELECT POUCH!" 8847 @setvar! my_pouch48else49 overhead "POUCH FOUND:" 8850 overhead my_pouch 8851endif 52 53#54# MODULE BANDAGES55#56if module_bandages > 057 @setvar! bandage_id 361758 @setvar! bandage_counter 059 60 while findtype bandage_id self as b61 overhead "Moving all bandages to backpack" 8862 lift b 111163 drop CHAR_BACKPACK -1 -1 064 wait globalWaitTime65 @ignore b66 endwhile67 @clearignore68 69 while findtype bandage_id CHAR_BACKPACK as b70 overhead "Moving bandages in increments to pouch" 8871 lift b bandage_increments72 drop my_pouch73 wait globalWaitTime74 @ignore b75 endwhile76 @clearignore77endif78 79#80# MODULE ARROWS81#82if module_arrows > 083 84 if not varexist my_quiver or not find my_quiver self85 overhead "SELECT QUIVER!" 8886 @setvar! my_quiver87 else88 overhead "QUIVER FOUND:"89 overhead my_quiver90 endif91 92 while findtype "crossbow bolt" my_quiver as bolts93 overhead "Moving bolts to backpack" 8894 lift bolts 111195 drop CHAR_BACKPACK96 wait globalWaitTime97 endwhile98 99 while findtype "arrow" self as arrows100 overhead "Moving arrows to backpack" 88101 lift arrows 1111102 drop CHAR_BACKPACK103 wait globalWaitTime104 @ignore arrows105 endwhile106 @clearignore107 108 109 while findtype "crossbow bolt" CHAR_BACKPACK as bolts110 overhead "Moving bolts" 88111 lift bolts 10112 drop my_quiver113 wait globalWaitTime114 endwhile115 116 while findtype "arrow" CHAR_BACKPACK as arrows117 overhead "Moving arrows" 88118 lift arrows 10119 drop my_quiver120 wait globalWaitTime121 @ignore arrows122 endwhile123 @clearignore124endif125 126#127# MODULE REAGENTS128#129if module_reagents > 0130 clearlist 'all_reagents'131 if not listexists 'all_reagents'132 createlist 'all_reagents'133 pushlist 'all_reagents' 'garlic'134 pushlist 'all_reagents' 'ginseng'135 pushlist 'all_reagents' 'blood moss'136 pushlist 'all_reagents' 3980137 pushlist 'all_reagents' 'mandrake root'138 pushlist 'all_reagents' 'black pearl'139 pushlist 'all_reagents' 3981140 pushlist 'all_reagents' 3976141 endif142 143 if not varexist my_reagent_bag or not find my_reagent_bag self144 overhead "SELECT REAGENT BAG!" 88145 @setvar! my_reagent_bag146 else147 overhead "REAGENT BAG FOUND:" 88 148 overhead my_reagent_bag 88149 endif150 151 overhead "Moving all reagents to backpack" 88152 foreach 'reg' in 'all_reagents' 153 overhead 'reg' 88154 while findtype 'reg' self as regs155 lift regs 1111156 drop CHAR_BACKPACK157 wait globalWaitTime158 @ignore regs159 endwhile160 @clearignore161 endfor162 163 overhead "Sorting reagents in increments" 88164 foreach 'reg' in 'all_reagents' 165 overhead 'reg' 56166 167 while findtype 'reg' CHAR_BACKPACK as regs168 lift regs reagent_increments169 drop my_reagent_bag170 wait globalWaitTime171 @ignore regs172 endwhile173 @clearignore174 endfor175endif176 177#178# MODULE POTIONS179#180if module_potions > 0181 if not listexists 'all_potions'182 createlist 'all_potions'183 pushlist 'all_potions' 'yellow potion'184 pushlist 'all_potions' 'orange potion'185 pushlist 'all_potions' 'red potion'186 pushlist 'all_potions' 'blue potion'187 pushlist 'all_potions' 'white potion'188 pushlist 'all_potions' 'black potion'189 pushlist 'all_potions' 'purple potion'190 pushlist 'all_potions' 'green potion'191 endif192 193 if not varexist my_potion_bag or not find my_potion_bag self194 overhead "SELECT POTION BAG!" 88195 @setvar! my_potion_bag196 else197 overhead "POTION BAG FOUND:" 88 198 overhead my_potion_bag 88199 endif200 201 overhead "Moving all potions to backpack" 88202 foreach 'potion' in 'all_potions' 203 overhead 'potion' 88204 while findtype 'potion' self as heal_potions205 lift heal_potions 1111206 drop CHAR_BACKPACK207 wait globalWaitTime208 @ignore heal_potions209 endwhile210 @clearignore211 endfor212 213 overhead "Sorting potions in increments" 88214 foreach 'potion' in 'all_potions' 215 overhead 'potion' 88216 217 while findtype 'potion' CHAR_BACKPACK as heal_potions218 lift heal_potions potion_increments219 drop my_potion_bag220 wait globalWaitTime221 @ignore heal_potions222 endwhile223 @clearignore224 endfor225endif