ScriptUO

Official ScriptUO EasyUO Scripts => Script Snippets => Topic started by: TrailMyx on June 28, 2008, 05:38:31 PM

Title: TrailMyx's Ancient SOS sorter
Post by: TrailMyx on June 28, 2008, 05:38:31 PM
This one is pretty easy.  Just open up all bags/containers you want to hunt through and run the script.  It will open all MIBs and if the script finds an ASOS, it will be dragged to your backpack.

Code: easyuo
  1. set #LPC 100
  2. repeat
  3.   finditem HTD *
  4.   if #FINDKIND <> -1
  5.   {
  6.     event property #FINDID
  7.     if message in #PROPERTY
  8.     {
  9.       set #LOBJECTID #FINDID
  10.       event macro 17 0
  11.       wait 20
  12.     }
  13.     ignoreitem #FINDID
  14. }
  15. until #FINDKIND = -1
  16.  
  17. ignoreitem reset
  18.  
  19. set %complete #FALSe
  20. repeat
  21.   finditem UVH *
  22.   if #FINDKIND <> -1
  23.   {
  24.     event property #FINDID
  25.     if ancient in #PROPERTY
  26.     {
  27.       set %bottle #FINDID
  28.       finditem %bottle G_18
  29.       if #FINDID <> %bottle
  30.       {
  31.         exevent drag %bottle
  32.         wait 10
  33.         exevent dropc #BACKPACKID
  34.         wait 20
  35.       }
  36.       ignoreitem %bottle
  37.     }
  38.     else
  39.     {
  40.       ignoreitem #FINDID
  41.     }
  42.   }
  43.   else
  44.   {
  45.     set %complete #TRUE
  46.   }
  47. until %complete = #TRUE
  48. display ok Complete
  49. stop
  50.