Razor script
poison necro mage summoner 1 button v1.1 ( work in progress )
by stoned summoner · 548 lines
One hotkey necro mage cycle by Jaseowns edited by stoned summoner. any problems are probly my fault not jase's =) UO Outlands - https://youtu.be/K3bVPhHcInE
MagicMeditation
poison necro mage summoner 1 button v11 work in progress.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/2ceac24d-0a50-417f-ab6e-048e4c5b0d27 for latest2# Automation by Jaseowns3## Script: poison necro mage summoner 1 button v1.1 ( work in progress )4## Created by: stoned summoner#28325#############################################6 7//One hotkey necro mage cycle by Jaseowns8//edited by stoned summoner. any problems are probly my fault not jase's =)9//UO Outlands - https://youtu.be/K3bVPhHcInE10 11//v1.1 added bless to buffs12//v1.1 added protection spell13//v1.1 added poison strike between fs and meditate. mabey a poison tick check would be better14//v1.1 added a check for deadly and lethal poison. to move onto cds before dumping mana on poison15//v1.1 added food buff check and eat16//v1.1 added item id buff check and use. targets someplace... gets blocked once in awhile... gotta fix that17//v1.1 18 19# Update this variable to 1 for ALL KILL20# Update this variable to 0 for target nearest21@setvar! setThisAsOneIfYouWantToTargetYourOwnKillOrItWillTargetClosestMonster 022 23// these cd are your wizard book timers. they could be different than mine24@setvar! cdLightning 2000025@setvar! cdMagicArrow 2000026@setvar! cdHarm 2000027@setvar! cdFireball 2000028@setvar! cdMushroom 6000029 30// cd below should not need to change31@setvar! cdEvilOmen 3000032@setvar! cdVampiricEmbrace 3000033@setvar! cdCorpse 3000034@setvar! cdMindRot 3000035@setvar! cdMagicShield 6000036@setvar! cdReactiveArmor 6000037@setvar! cdstrike 3000038@setvar! cdoath 3000039 40if not timerexists oathTimer41 createtimer oathTimer42 settimer oathTimer cdoath43endif44 45if not timerexists strikeTimer46 createtimer strikeTimer47 settimer strikeTimer cdstrike48endif49 50if not timerexists reactiveArmorTimer51 createtimer reactiveArmorTimer52 settimer reactiveArmorTimer cdMagicShield53endif54 55if not timerexists magicShieldTimer56 createtimer magicShieldTimer57 settimer magicShieldTimer cdMagicShield58endif59 60 61if not timerexists magicMushroomTimer62 createtimer magicMushroomTimer63 settimer magicMushroomTimer cdMushroom64endif65 66if not timerexists magicArrowTimer67 createtimer magicArrowTimer68 settimer magicArrowTimer cdMagicArrow69endif70 71if not timerexists lightningTimer72 createtimer lightningTimer73 settimer lightningTimer cdLightning74endif75 76if not timerexists harmTimer77 createtimer harmTimer78 settimer harmTimer cdHarm79endif80 81if not timerexists fireballTimer82 createtimer fireballTimer83 settimer fireballTimer cdFireball84endif85 86if not timerexists evilOmenTimer87 createtimer evilOmenTimer88 settimer evilOmenTimer cdEvilOmen89endif90 91if not timerexists vampiricEmbraceTimer92 createtimer vampiricEmbraceTimer93 settimer vampiricEmbraceTimer cdVampiricEmbrace94endif95 96if not timerexists corpseTimer97 createtimer corpseTimer98 settimer corpseTimer cdCorpse99endif100 101if not timerexists mindRotTimer102 createtimer mindRotTimer103 settimer mindRotTimer cdMindRot104endif105 106 107// check for item id buff108if not findbuff 'herbal poultice' and skill 'tasteidentification' >= 100 109 skill 'tasteidentification'110 waitfortarget 111 targettype 'backpack'112 wait 50113 endif114 115 // check for food buff116if not findbuff 'food satisfaction' and findtype 'tray' backpack117 overhead '[ Eating Food ]' 54118dclicktype 'tray' backpack119wait 50120endif 121 122// check for tank pet change name to ur pets name123 if findtype "shield" ground -1 -1 2 as myPet124 if noto myPet = "friend"125 wait 50126 endif127 @setvar! myEarthPet myPet128 endif129 say "all guard me"130 ## endif131 132if setThisAsOneIfYouWantToTargetYourOwnKillOrItWillTargetClosestMonster = 1133 say "all kill"134 wait 200135 while targetexists 136 // wait137 wait 50138 endwhile139else140 hotkey 'Target Closest Non-Friendly Monster'141 wait 200142 if insysmsg "No one matching that was found" or insysmsg "cannot be seen"143 overhead "[ Target Not Found ]" 54144 stop145 endif 146endif147 148@setvar myKillTarget lasttarget 149 150if not varexist myPreviousKillTarget151 @setvar myPreviousKillTarget 0 152endif153 154getlabel myKillTarget desc155 156if not varexist myEarthPet or dead myEarthPet157 overhead "[ Dead Pet ]" 54158else159 menu myEarthPet 2160 wft 500161 target myKillTarget162endif163 164if diffhits >= 30 and mana > 12165 while not targetexists166 if diffhits >= 60167 cast 'Heal'168 else169 cast 'Greater Heal' 170 endif171 wait 50172 if hp = maxhp173 hotkey '> Interrupt'174 break175 endif176 endwhile177 if targetexists178 target self179 endif180endif181 182if find myKillTarget -1 -1 12 as killy183 if myKillTarget = myPreviousKillTarget184 // do nthoing185 else186 187 while not targetexists and not dead myKillTarget188 if diffhits < 30189 cast 'Curse'190 wait 50191 elseif diffhits >= 30 192 hotkey '> Interrupt'193 break194 endif195 endwhile196 if targetexists197 target myKillTarget198 wait 500199 endif200 201 while not targetexists and not dead myKillTarget202 if diffhits < 30203 cast 'mana drain'204 wait 50205 elseif diffhits >= 30 206 hotkey '> Interrupt'207 break208 endif 209 endwhile210 if targetexists211 target myKillTarget212 wait 500213 endif214 @setvar myPreviousKillTarget myKillTarget215 endif216else217 overhead "[ Out of range ]" 54218endif219 220clearsysmsg 221 222say "all guard"223 224@setvar! poisonlevel 0225 226while not dead myKillTarget and find myKillTarget -1 -1 12 as killy227 228// spellbook check229if findlayer self righthand as item230 // do nothing231elseif findtype "3834" backpack as item232 dclick item233else 234 overhead "[ No Book Equiped ]" 34235endif236 237 if not findbuff 'strength' 238 cast 'bless'239 waitfortarget 240 target self241 wait 200242 endif243 244if not findbuff 'protection'245 cast 'protection'246wait 200247endif248 249 if timer magicShieldTimer >= cdMagicShield and not findbuff "Magic Reflection"250 cast "Magic Reflection"251 wait 1000252 elseif not findbuff "Magic Reflection" and not findbuff "Magic Resist Potion" and findtype "Black Potion" backpack as pot253 dclick pot254 wait 200255 endif256 257 if findbuff "Magic Reflection"258 settimer magicShieldTimer 0259 endif260 261 if timer reactiveArmorTimer >= cdReactiveArmor and not findbuff "Reactive Armor"262 cast "Reactive Armor"263 wait 200264 endif265 266 if findbuff "Reactive Armor"267 settimer reactiveArmorTimer 0268 endif269 270 if timer corpseTimer >= cdCorpse and skill 'necromancy' >= 100271 overhead "[ Corpse Skin ]" 54272 say "[CorpseSkin"273 settimer corpseTimer 0274 wait 750275 endif276 277 if skill "poisoning" >= 100278 279 if timer evilOmenTimer >= cdEvilOmen and skill 'necromancy' >= 100280 overhead '[ Evil Omen ]' 54281 say "[evilomen"282 settimer evilOmenTimer 0283 wait 750284 endif285 286 if timer mindRotTimer >= cdMindRot and skill 'necromancy' >= 100287 overhead '[ Mind Rot ]' 54288 say '[mindrot'289 settimer mindRotTimer 0290 wait 750291 endif292 293 while poisonlevel = 0294 getlabel myKillTarget desc2295 overhead desc2 66296 // poison lethal297 if "Lethal" in desc2 or "Deadly" in desc2298 @setvar! poisonlevel 1299 break300 elseif diffhits >= 30 301 // need a heal302 break303 elseif mana >= 9304 while not targetexists305 cast 'poison'306 wait 50307 if dead myKillTarget308 hotkey '> Interrupt'309 break310 endif311 endwhile312 target myKillTarget313 else314 wait 200315 endif316 endwhile317 endif318 319 if find myKillTarget -1 -1 12 as killy320 // do nothing321 else322 overhead "[ Out of range] " 54323 break324 endif325 326 if poisoned327 if findtype "Orange Potion" backpack as pot 328 dclick pot329 wait 200330 else331 while not targetexists332 if not poisoned333 hotkey '> Interrupt'334 break335 else336 cast 'Cure'337 wait 50338 endif 339 endwhile340 if targetexists341 target self342 wait 500343 endif344 endif345 endif346 347 if diffhits < 30 and timer evilOmenTimer >= cdEvilOmen and skill 'necromancy' >= 100348 overhead '[ Evil Omen ]' 54349 say '[evilomen'350 settimer evilOmenTimer 0351 wait 650352 endif353 354 if diffhits < 30 and timer mindRotTimer >= cdMindRot and skill 'necromancy' >= 100355 overhead '[ Mind Rot ]' 54356 say '[mindrot'357 settimer mindRotTimer 0358 wait 750359 endif360 361 362 if diffhits < 30 and timer corpseTimer >= cdCorpse and skill 'necromancy' >= 100363 overhead "[ Corpse Skin ]" 54364 say "[CorpseSkin"365 settimer corpseTimer 0366 wait 750367 endif368 369 370 if diffhits < 30 and mana >= 12 and timer lightningTimer >= cdLightning371 while not targetexists372 if dead myKillTarget or diffhits >= 30373 hotkey '> Interrupt'374 break375 else376 cast 'Lightning'377 wait 50378 endif 379 endwhile380 if targetexists381 target myKillTarget382 settimer lightningTimer 0383 wait 500384 endif385 endif386 387 if diffhits < 30 and mana >= 12 and timer fireballTimer >= cdFireball388 while not targetexists389 if dead myKillTarget or diffhits >= 30390 hotkey '> Interrupt'391 break392 else393 cast 'fireball'394 wait 50395 endif 396 endwhile397 if targetexists398 target myKillTarget399 settimer fireballTimer 0400 wait 500401 endif402 endif403 404 405 if diffhits < 30 and mana >= 5 and timer magicArrowTimer >= cdMagicArrow406 while not targetexists407 if dead myKillTarget or diffhits >= 30408 hotkey '> Interrupt'409 break410 else411 cast 'magic arrow'412 wait 50413 endif 414 endwhile415 if targetexists416 target myKillTarget417 settimer magicArrowTimer 0418 wait 500419 endif420 endif421 422 if diffhits < 30 and mana >= 9 and timer harmTimer >= cdHarm423 while not targetexists424 if dead myKillTarget or diffhits >= 30425 hotkey '> Interrupt'426 break427 else428 cast 'harm'429 wait 50430 endif 431 endwhile432 if targetexists433 target myKillTarget434 settimer harmTimer 0435 wait 500436 endif437 endif438 439 if diffhits >= 30440 441 if findtype "Yellow Potion" backpack as pot 442 getlabel pot desc443 if "next usable" in desc444 // do nothing445 else446 overhead '[ Drinking Heal ]' 54447 dclick pot448 wait 200449 endif450 endif451 452 if diffhits >= 30 and mana >= 12453 while not targetexists454 if diffhits >= 60455 cast 'Heal'456 else457 cast 'Greater Heal' 458 endif459 wait 50460 if hp = maxhp461 hotkey '> Interrupt'462 break463 endif464 endwhile465 if targetexists466 target self467 wait 50468 endif469 endif470 471 if skill 'poisoning' >= 100472 while poisonlevel = 1473 getlabel myKillTarget desc2474 overhead desc2 66475 if "Lethal" in desc2476 @setvar! poisonlevel 2477 break478 elseif diffhits >= 30 479 // need a heal480 break481 elseif mana >= 9482 while not targetexists483 cast 'poison'484 wait 50485 if dead myKillTarget486 hotkey '> Interrupt'487 break488 endif489 endwhile490 target myKillTarget491 else492 wait 200493 endif494 endwhile495 endif496 497 elseif mana < 42 and findbuff "actively meditating" 498 // wait for mana499 elseif mana > 42 500 while not targetexists and mana > 40 501 if dead myKillTarget or diffhits >= 30502 hotkey '> Interrupt'503 break504 else505 cast 'Flamestrike'506 wait 50507 endif 508 endwhile509 if targetexists510 target myKillTarget511 wait 500512 endif513 514 elseif not findbuff 'actively meditating' and timer strikeTimer >= cdstrike 515 overhead '[ Poison Strike ]' 54 516 say '[poisonstrike' 517 waitfortarget 518 target myKillTarget519 settimer strikeTimer 0520 521 elseif not findbuff "actively meditating" and timer magicMushroomTimer >= cdMushroom and findtype "mushroom" backpack as mushy522 dclick mushy523 settimer magicMushroomTimer 0524 525 elseif not findbuff "actively meditating" 526 useskill 'meditation'527 wait 500528 endif529 wait 50530endwhile531wait 500532if targetexists 533 hotkey 'Cancel Current Target'534endif535say "all guard me"536if counttype "mushroom" backpack < 5537 while counttype "mushroom" backpack < 5538 cast "Create Food"539 wait 200540 endwhile541endif542while mana < 50543 if not findbuff "actively meditating" 544 useskill 'meditation'545 endif546 wait 500547endwhile548loop