[Easy UO] Auto Gold Mover

If you make a Client-side script you can publish it here for other players to use
Locked
Dramoor
Legendary Scribe
Posts: 450
Joined: Wed Feb 23, 2011 7:37 pm

[Easy UO] Auto Gold Mover

Post by Dramoor »

This script will move your gold to a bag of holding or to your bank with a bag of sending (providing your bag has charges on it) when you are over the weight you specify.

Code: Select all

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Auto Gold Move                                  ;
; By: Dramoor                                     ;
; For: Lazy people on the Excelsior Shard.        ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
set %bagType 1 ; 1 for bag of sending, 2 for bag of holding.
set %resourceContainer RDKVLPD ; Put the id of either the bag of sending or holding.
set %weightLimit 400 ; Once your weight is over this amount it will put in bag of holding/sending.


 gosub checkWeight
 return
 
 
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Checks the current weight of your character                  ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
sub checkWeight
if #WEIGHT > %weightLimit
{
   event exmsg #charid 3 0 Almost Overweight!
   finditem POF C_ , #BACKPACKID
   if #FINDCNT > 0
   {
      if %bagType = 1
         gosub SendItems POF

      if %bagType = 2
      {
         event exmsg #charid 3 0 Moving Gold!
         for %weightIter 1 #findcnt
         {
             set #findindex %weightIter
             exevent drag #findid #findstack
             wait 11
             exevent dropc %resourceContainer
             wait 11
         }
      }
   }
}
return

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;               Sends gold to bank with Bag of Sending                        ;
;                                                                             ;
;                    .                                                        ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
sub SendItems
  namespace push
  namespace local SI
  set !bos_items %1
  SendItems_loop1:
    finditem CKF C_ , #BACKPACKID
    if #FINDKIND <> -1
    {
      event property #FINDID
      if sending notin #PROPERTY
      {
        ignoreitem #FINDID
        goto SendItems_loop1
      }
      set !bagofsending #FINDID
      SendItems_loop2:
        finditem !bos_items C_ , #BACKPACKID
        if #FINDKIND <> -1
        {
          event property !bagofsending
          str pos #PROPERTY Charges:
          set #STRRES #STRRES + 9
          str mid #PROPERTY #STRRES 1
          if #STRRES = 0   ; as in zero charges
          {
            ignoreitem !bagofsending
            goto SendItems_loop1
          }
          set #LOBJECTID !bagofsending
          set #LTARGETID #FINDID
          set #LTARGETKIND 1
          event macro 17
          wait 10
          target 5s
          event macro 22
          wait 10
          ignoreitem #FINDID
          set %weightwarn #FALSE
          goto SendItems_loop2
        }
    }
  set %weightwarn #FALSE
  namespace pop
return
aaron
Grandmaster Scribe
Posts: 79
Joined: Wed Jul 18, 2012 2:28 pm

Re: [Easy UO] Auto Gold Mover

Post by aaron »

Thanks Dramoor, exactly what I was looking for. Any way to add additional items like arrows and bandages?
Xianex
Novice Scribe
Posts: 5
Joined: Sun Mar 31, 2013 9:25 pm

Re: [Easy UO] Auto Gold Mover

Post by Xianex »

Perhaps you could add another option or something where if you are mounted on a mule or pack animal, it could dismount and drop the gold on that, then remount, if someone doesn't have a bag or holding or sending? Just a thought
aintfungalcream
Elder Scribe
Posts: 136
Joined: Thu Oct 14, 2010 4:13 pm

Re: [Easy UO] Auto Gold Mover

Post by aintfungalcream »

to add other items like arrows, bandages. add RWF, for arrows, and ZLF for bandages.
add the id code of the desired into the line finditem. followed by an _ to separate items

:Example:
sub checkWeight
if #WEIGHT > %weightLimit
{
event exmsg #charid 3 0 Almost Overweight!
finditem POF_RWF_ZLF C_ , #BACKPACKID <<< (line to insert id codes for stackables)
if #FINDCNT > 0



and to find an items id code. go into your side bar in EUO. and scroll down to Container Info, open it up, and scroll down to
:CONTTYPE:
and pick up a stackale item and it will give you an id code that can be inserted into the script.
May the UO Gods Bless your Aarows and Edges
-Loki
Dramoor
Legendary Scribe
Posts: 450
Joined: Wed Feb 23, 2011 7:37 pm

Re: [Easy UO] Auto Gold Mover

Post by Dramoor »

I had more items added, but i figured why help the lazy more, and it's more useful for people using a bag of sending, for which case, would be a waste to keep sending some of that stuff every time they were full of gold to their bank.
Dramoor
Legendary Scribe
Posts: 450
Joined: Wed Feb 23, 2011 7:37 pm

Re: [Easy UO] Auto Gold Mover

Post by Dramoor »

Xianex wrote:Perhaps you could add another option or something where if you are mounted on a mule or pack animal, it could dismount and drop the gold on that, then remount, if someone doesn't have a bag or holding or sending? Just a thought

Bags of sending costs are fairly cheap, the problem with the dismount, move, remount, would mean, if u move too much or cast too much, it will not want to remount and you would either have to remount manually, or it wont dismount, and u are stuck in a loop of trying to dismount but your other macros, or attack buttons are going off instead. Good idea, but isn't very effective especially since the exevent drag and likes to crash out when too many things are done at once.
aaron
Grandmaster Scribe
Posts: 79
Joined: Wed Jul 18, 2012 2:28 pm

Re: [Easy UO] Auto Gold Mover

Post by aaron »

aintfungalcream wrote:to add other items like arrows, bandages. add RWF, for arrows, and ZLF for bandages.
add the id code of the desired into the line finditem. followed by an _ to separate items.
Thanks, works great
Dramoor wrote:I had more items added, but i figured why help the lazy more, and it's more useful for people using a bag of sending, for which case, would be a waste to keep sending some of that stuff every time they were full of gold to their bank.
Isn't that what all scripts are for? Helping the lazy? lol
scuba
Elder Scribe
Posts: 101
Joined: Sun Oct 28, 2012 2:29 am

Re: [Easy UO] Auto Gold Mover

Post by scuba »

I am not sure what i have wrong but i think its the bag id trying to use it with large bag o holding anyone know what the item id is for large bag o holding?

Maybe its something else it tries to move the gold but it just ends up dropping it back into main bag and trying again
Dramoor
Legendary Scribe
Posts: 450
Joined: Wed Feb 23, 2011 7:37 pm

Re: [Easy UO] Auto Gold Mover

Post by Dramoor »

You need the actual Personal ID of it, and dont forget to change the number up top to 2 for bag of holding.
Dramoor
Legendary Scribe
Posts: 450
Joined: Wed Feb 23, 2011 7:37 pm

Re: [Easy UO] Auto Gold Mover

Post by Dramoor »

aaron wrote:
aintfungalcream wrote:to add other items like arrows, bandages. add RWF, for arrows, and ZLF for bandages.
add the id code of the desired into the line finditem. followed by an _ to separate items.
Thanks, works great
Dramoor wrote:I had more items added, but i figured why help the lazy more, and it's more useful for people using a bag of sending, for which case, would be a waste to keep sending some of that stuff every time they were full of gold to their bank.
Isn't that what all scripts are for? Helping the lazy? lol
I released this cuz people kept asking about moving gold, so i wrote a quick script for it.
Locked