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.

Anti-Townkill Macro

Anti.Christ

Sorceror
Why would I want to pop the first item in the list rather than the current item being checked?

im 99% sure it will pop the item being checked. Its a prefrence and i forget what made me start using that method.

Also here is something i just typed up idk if it will work because i wrote it on the fly so there may be typos, but based on what you seem to know i think you will know how to use this.

Insert the list part at the start of your script and replace all checks for regs with the for 0 to 'Regcheck' it should take out a very large amount of lines. making script smaller.
Code:
if not listexists 'Regcheck'
    createlist 'Regcheck'
endif
if list 'Regcheck' == 0
    pushlist! 'Regcheck'  '0xf7a'
    pushlist! 'Regcheck'  '0xf84'
    pushlist! 'Regcheck'  '0xf85'
    pushlist! 'Regcheck'  '0xf86'
    pushlist! 'Regcheck'  '0xf8d'
    pushlist! 'Regcheck' '0xf8c'
endif
Code:
for 0 to 'Regcheck'
    if counttype 'Regcheck[]' 'any' 'backpack' < 5
        @movetype 'Regcheck[]' 'bank' 'self' 0 0 0 'any' 15
        pause 600
    endif
endfor
The for 0 to 'Regcheck' is going to replace all of the parts in script that have the following.
Code:
if counttype '0xf7a' 'any' 'backpack' < 6
  @movetype '0xf7a' 'bank' 'self' 0 0 0 'any' 15
  pause 600
endif
if counttype '0xf84' 'any' 'backpack' < 1
  @movetype '0xf84' 'bank' 'self' 0 0 0 'any' 15
  pause 600
endif
if counttype '0xf85' 'any' 'backpack' < 2
  @movetype '0xf85' 'bank' 'self' 0 0 0 'any' 15
  pause 600
endif
if counttype '0xf86' 'any' 'backpack' < 3
  @movetype '0xf86' 'bank' 'self' 0 0 0 'any' 15
  pause 600
endif
if counttype '0xf8d' 'any' 'backpack' < 4
  @movetype '0xf8d' 'bank' 'self' 0 0 0 'any' 15
  pause 600
endif
if counttype '0xf8c' 'any' 'backpack' < 5
  @movetype '0xf8c' 'bank' 'self' 0 0 0 'any' 15
endif


I honestly dont see why you should have more than one check for regs. like i said i will look over the script if i get a wild hair and have time. im very busy now adays.
 
Last edited:

Vizeroth

Sorceror
That does seem like an efficient way to handle restocking, but I'm not sure it'd work for a staggered restock. As for why there are multiple check points, the reagent count must be checked before each heal, otherwise a thief could disrupt the process.
 

Anti.Christ

Sorceror
That does seem like an efficient way to handle restocking, but I'm not sure it'd work for a staggered restock. As for why there are multiple check points, the reagent count must be checked before each heal, otherwise a thief could disrupt the process.

Okay, if you would like to see what i was saying still. I was thinking i could do sections of the script at a time that way it wont be so time consuming..

what exactly are you making the script do when this it counts 3 red players or more.

Code:
   if list 'redCount' >= 3
      cast 'greater heal'
      usetype '0xf09' 'any' 'bank'
      pause 600
      if poisoned
        msg 'guards' 50
        usetype '0xf07' 'any' 'bank'
        600
      endif
      waitfortarget 900
      if hits < maxhits
        if counttype '0xf7a' 'any' 'backpack' < 6
          @movetype '0xf7a' 'bank' 'self' 0 0 0 'any' 15
          pause 600
        endif
        if counttype '0xf84' 'any' 'backpack' < 1
          @movetype '0xf84' 'bank' 'self' 0 0 0 'any' 15
          pause 600
        endif
        if counttype '0xf85' 'any' 'backpack' < 2
          @movetype '0xf85' 'bank' 'self' 0 0 0 'any' 15
          pause 600
        endif
        if counttype '0xf86' 'any' 'backpack' < 3
          @movetype '0xf86' 'bank' 'self' 0 0 0 'any' 15
          pause 600
        endif
        if counttype '0xf8d' 'any' 'backpack' < 4
          @movetype '0xf8d' 'bank' 'self' 0 0 0 'any' 15
          pause 600
        endif
        if counttype '0xf8c' 'any' 'backpack' < 5
          @movetype '0xf8c' 'bank' 'self' 0 0 0 'any' 15
          pause 600
        endif
        target 'self'
        pause 850
        cast 'greater heal'
        if poisoned
          msg 'guards' 50
          usetype '0xf07' 'any' 'bank'
          600
        endif
        waitfortarget 1500
      endif
      while targetexists
        if counttype '0xf7a' 'any' 'backpack' < 6
          @movetype '0xf7a' 'bank' 'self' 0 0 0 'any' 15
          pause 600
        endif
        if counttype '0xf84' 'any' 'backpack' < 1
          @movetype '0xf84' 'bank' 'self' 0 0 0 'any' 15
          pause 600
        endif
        if counttype '0xf85' 'any' 'backpack' < 2
          @movetype '0xf85' 'bank' 'self' 0 0 0 'any' 15
          pause 600
        endif
        if counttype '0xf86' 'any' 'backpack' < 3
          @movetype '0xf86' 'bank' 'self' 0 0 0 'any' 15
          pause 600
        endif
        if counttype '0xf8d' 'any' 'backpack' < 4
          @movetype '0xf8d' 'bank' 'self' 0 0 0 'any' 15
          pause 600
        endif
        if counttype '0xf8c' 'any' 'backpack' < 5
          @movetype '0xf8c' 'bank' 'self' 0 0 0 'any' 15
          pause 600
        endif
        if poisoned
          msg 'guards' 50
          usetype '0xf07' 'any' 'bank'
          pause 600
        endif
        if diffhits > 35
          if poisoned
            msg 'guards' 50
            usetype '0xf07' 'any' 'bank'
            600
          endif
          if targetexists
            if counttype '0xf7a' 'any' 'backpack' < 6
              @movetype '0xf7a' 'bank' 'self' 0 0 0 'any' 15
              pause 600
            endif
            if counttype '0xf84' 'any' 'backpack' < 1
              @movetype '0xf84' 'bank' 'self' 0 0 0 'any' 15
              pause 600
            endif
            if counttype '0xf85' 'any' 'backpack' < 2
              @movetype '0xf85' 'bank' 'self' 0 0 0 'any' 15
              pause 600
            endif
            if counttype '0xf86' 'any' 'backpack' < 3
              @movetype '0xf86' 'bank' 'self' 0 0 0 'any' 15
              pause 600
            endif
            if counttype '0xf8d' 'any' 'backpack' < 4
              @movetype '0xf8d' 'bank' 'self' 0 0 0 'any' 15
              pause 600
            endif
            if counttype '0xf8c' 'any' 'backpack' < 5
              @movetype '0xf8c' 'bank' 'self' 0 0 0 'any' 15
              pause 600
            endif
            target 'self'
          endif
        endif
      endwhile
    endif
1.Use STR pot
2.check for poison
3.check regs
4.heal self from using str pot.
5.pre cast heal.
6. while target is up watch regs and for damage/poison.

do i have it right....

PS : if you would like to move this is private messages feel free to message me or you can reply here. i dont mind either way
 

Anti.Christ

Sorceror
Yes, that is what's happening.
I do have something done, but man i am thinking how i can test it.... lol i dont want to post something with out testing it. im sure i have some regs in my bank on one of my chars. but testing it would kinda be difficult blah. ill download runuo on this computer and get back to you.
 

susejmaster

Traveler
what is the leanest way code wise to piss in the wind?

if counttype '0xf8d' 'any' 'pantszipper' < 4
@movetype '0xf8d' 'pantszipper' 'down' 0 0 0 'any' 15"
pause 600
if counttype '0xp15d' 'any' 'penis' < 16
@movetype '0xp15d' 'penis' 'out' 0 0 0 'any' 15"
pause 600
@movetype '0xw2h' 'wind' 'face' 000 'any' 30+mph
endif


there u go use that any time u wanna piss into the wind.
 
Top