UOGamers Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

  • To obtain new Razor updates, please reinstall Razor from our new website.

Need help for item organizer macro

Xeasin

Sorceror
I am trying to create item orginizer macro but I failed again and again. I try to write by myself and failed :( I try to copy part of the script which look like what i'm thinking but i failed agian.
I'm about to create lots of bowcrafting good but looking all of them 1 by 1 take lots of time and for a while later I'm losing my attention. I would love to automaticly seperate them based on their specialities.
For example "if a bow has slayer and mana leech put it destination box"

Could somebody help me, I cant handle it by myself :(
 
I have used something like this:

Code:
if not @findobject "SlayerHML"
  promptalias "SlayerHML"
endif
if not @findobject "BalancedHML"
  promptalias "BalancedHML"
endif
if not @findobject "Trash"
  promptalias "Trash"
endif
while @findtype 0x2d33 'any' 'backpack' 1 0
  if @property "Slayer" "found" and @property "Mana Leech" "found"
    moveitem "found" "SlayerHML"
  elseif @property "Balanced" "found" and @property "Mana Leech" "found"
    moveitem "found" "BalancedHML"
  else
    moveitem "found" "Trash"
  endif
  pause 1000
endwhile

change the item type 0x2d33 to whatever bow type you are crafting. I just have my bags in different chests in my house and then run this after each runic I burn.

You should be able to modify this template to suit your needs. Be careful on the order that you do the checks. The first set of properties that are a match are used so you could end up skipping stuff. For example if you first checked for HML and the second check was for Balanced/HML, then the Balanced/HML will never be found because it finds the HML since it was first in the filtering order. If you have problems with it, you can just tell me what you want to sort for and I'll change it for you.
 
Last edited:

Xeasin

Sorceror
Thank you this script solved most of my problem. I duplicate it 3 diffrent version and check posibilities, Slayer+ManaLeech, ManaLeech+SSI, HCI+ManaLeec.
Mostly I try to create something like this but i didnt achive. Probably I'm doing all things wrong. I'm looking documantation pdf come with program and others script I create easy scripts but hen I try to create complicated script I fail so hard :(
Code:
@setalias 'destination' 0x41bf937b
@findtype Ash Composite Bow[] 0 'backpack'
waitforproperties 'backpack' 15000
if @property 'Hit Mana Leech' 'found' >= 20 and @property 'Swing Speed Increase' 'found' >= 20
  @moveitem! 'found' 'destination'
  pause 1000
endif
 
Last edited:
So is the code you just posted not working?

This line:
@findtype Ash Composite Bow[] 0 'backpack'

Are you setting 'Ash Composite Bow' somewhere? Also I don't think you can do the spaces in there, instead do AshCompositeBow I believe. And to use the [] notation I think you need to use it in a for loop. Like this:

Code:
@removelist 'bow'
@createlist 'bow'
@pushlist 'bow' [whatever graphic type]
for o to bow
  @findtype bow[] 0 'backpack'
  ..other code
endfor
 

Xeasin

Sorceror
Nope, my code doesn't working because I dont know what excatly i am doing. I am trying to learn but it is so hard for me.
 
I will post one I use on the Test Center to get the items I want.

I have had cases were, if the line continues, the if statement fails regardless.

Hence I think (as in wait for the posted macro) I do this.

If @property 'Spell Channeling' 'found'
if @property 'Swing Speed Increase' 'found' > 19
sysmsg 'Requirements met'
endif
endif

BUT be warned I have had cases were a specific combination that should be able to occur never occurs on the Test Center. To the extent I have gone through 60K ingots / Wood and never found the desired combination. I can find the individual pieces no problem but never the combination.

A good one was Spell Channeling and Cold Damage > 79 That combination just never made it. Spell Channeling and Cold Damage 75(?) was the greatest I ever found.
 

MB

Knight
Thank you this script solved most of my problem. I duplicate it 3 diffrent version and check posibilities, Slayer+ManaLeech, ManaLeech+SSI, HCI+ManaLeec.
Mostly I try to create something like this but i didnt achive. Probably I'm doing all things wrong. I'm looking documantation pdf come with program and others script I create easy scripts but hen I try to create complicated script I fail so hard :(
Code:
@setalias 'destination' 0x41bf937b
@findtype Ash Composite Bow[] 0 'backpack'
waitforproperties 'backpack' 15000
if @property 'Hit Mana Leech' 'found' >= 20 and @property 'Swing Speed Increase' 'found' >= 20
  @moveitem! 'found' 'destination'
  pause 1000
endif


promptalias 'unsortedbag'
promptalias 'sortedbag'
clearignorelist
while @findtype 0x26c2 'any' 'unsortedbag'
waitforproperties 'found' 10000
if @property 'Hit Mana Leech' 'found' >= 20 and @property 'Swing Speed Increase' 'found' > = 20
@moveitem! 'found' 'sortedbag'
pause 800
endif
ignoreobject 'found'
endwhile
 
Well here is my script that I use on Test Server, On test server, at the item room, you can open the bank while standing down by that forge and anvil and trash barrel. Most of the serial numbers are the bank box and the trash barrel. Sorry about the commented out if's and endif's, it just saves me time ... probably should just think through the logic to allow two lists Reject and Accept.... but that is another time when I am in the mood to code.
Code:
unsetalias 'Done'
while not findalias 'Done'
// Make sure we have a tool ...
  if counttype  0x13e3 2219 'backpack' == 0
    movetype 0x13e3 0x400c8397 'backpack' 0 0 0 2219 1 0
    pause 1000
    if findtype 0x13e3 2219 'backpack' 1 0
      useobject 'found'
      pause 1000
    endif
  endif
// Make sure we have resources
  if counttype 0x1bf2 2219 'backpack' < 100
    movetype 0x1bf2 0x400c8397 'backpack' 0 0 0 2219 100 0
    pause 1000
    msg 'Refresh Resource'
    pause 2500
  endif
  pause 1000
// Make the Item
  replygump 0x38920abd 21
  waitforgump 0x38920abd 5000
  pause 1000
// Now Filter for the item attributes we want
  if @findtype 0x1401 'any' 'backpack' 1 0
    @setalias 'Item' 'found'
    // Request and wait for 5 seconds
    waitforproperties 'Item' 5000
    if property 'Mage Weapon' 'Item'
      //    if property 'Lower Reagent Cost' 'Item' > 12
      //      if property 'Physical Resist' 'Item' > 0
      //        if property 'Fire Resist' 'Item' > 19
      //          if property 'Cold Resist' 'Item' > 3
      //            if property 'Poison Resist' 'Item' > 7
      //              if property 'Energy Resist' 'Item' > 6
      msg "Rejected - Mage Weapon Found"
      pause 1000
      //      msg 'Item Found'
      pause 1000
    elseif property 'Faster Casting ' 'Item' < 0
      pause 1000
      msg 'Rejected Minus Faster Casting Found'
      pause 1000
    elseif property 'Self Repair' 'Item'
      pause 1000
      msg 'Item Found'
      pause 1000
      stop
    elseif property 'Exceptional' 'Item'
      if property 'Spell Channeling' 'Item'
        if property 'Cold Damage' 'Item' > 75
          //        if property 'Balanced' 'Item'
          //        if property 'Velocity' 'Item'
          //        if property 'Damage Increase' 'Item'
          //        if property 'Defense Chance Increase' 'Item' > 25
          setalias 'Done' 'Item'
          pause 1000
          msg 'Item Found'
          pause 1000
        endif
      endif
      //        endif
      //      endif
      //              endif
      //            endif
      //          endif
      //        endif
      //      endif
      //    endif
    endif
    if not findalias 'Done'
      moveitem! 'item' 0x4000b9c0 0 0 0 1
      //    msg 'Deleting Item'
      pause 1000
    endif
  endif
  //  if counttype 0x1bd7 2010 0x403f6b28 < 10
  //    //      moveitem 0x400f02c1 'backpack' 65535 65535 0
  //    movetype 0x1bd7 0x404041e1 'backpack' 0 0 0 2010 200 0
  //    pause 1000
  //    msg 'Refresh Resource'
  //    pause 2500
  //    //      setalias 'Done' 'Item'
  //    //      pause 1000
  //  endif
endwhile
 
Last edited:

Xeasin

Sorceror
promptalias 'unsortedbag'
promptalias 'sortedbag'
clearignorelist
while @findtype 0x26c2 'any' 'unsortedbag'
waitforproperties 'found' 10000
if @property 'Hit Mana Leech' 'found' >= 20 and @property 'Swing Speed Increase' 'found' > = 20
@moveitem! 'found' 'sortedbag'
pause 800
endif
ignoreobject 'found'
endwhile
There is a problem with this script I cant solved. Tell me choose unsorted and sorted box again and again I choose them but keep asking...
 
Sounds like you have it on loop and it's not finding anything. Are you sure you have type 0x26c2 in the unsorted bag? Also might try having the bags open or if that doesn't work you might need to clear ignore list, typing -clearignorelist
 
Top