Official ScriptUO EasyUO Scripts > Script Debug

Bag of Sending

<< < (2/3) > >>

Endless Night:

--- Quote from: The Ghost on October 22, 2019, 01:51:42 PM ---I have this
if %lootBOS = #true
        {
           if #weight => %sendweight
          sub bagofsending
      }
I try 8 different sub and none are able to detect the gold in my pack.   I'm trying to figure what I did to hide that gold :(

--- End quote ---

Shouldnt that be   Gosub Bagofsending   ???  I presuming that was a typo and not your actual  issue...  Post more code its going to be a silly error...

The Ghost:
Like EN mention, it was a silly error. 
 

My Looting sub have  ignoreitem #FINDID inside, what was hiding the gold too.    In the BOS sub, I add a ignoreitem reset POF  Voila it work. 

--- Code: ---event property #FINDID
       if coin in #PROPERTY 3
           exevent drag #FINDID #FINDSTACK
           exevent dropc #BACKPACKID
            wait 15
if speed , #spc , increase , #spc , 10 in #PROPERTY && ring in #PROPERTY || speed , #spc , increase , #spc , 10 in #PROPERTY && bracelet in #PROPERTY || Animated in #PROPERTY || luck , #spc , 150 in #PROPERTY || arcane in #PROPERTY || Gift in #PROPERTY || Immolating in #PROPERTY || attunement in #PROPERTY || thunderstorm in #PROPERTY || fury in #PROPERTY || form in #PROPERTY || wildfire in #PROPERTY || essence in #PROPERTY || allure in #PROPERTY || voyage in #PROPERTY || death in #PROPERTY
         {
             exevent drag #FINDID #FINDSTACK
                if %lootContainerDrop = N/A
                   exevent dropc #BACKPACKID
                 else
                    exevent dropc %lootContainerDrop
              wait 30
          }
       else
        ignoreitem #FINDID
      }
--- End code ---
Trying to use my own looting sub, when it only for small items, so I don't need to create huge rule

The Ghost:
I didn't fix it.  Still wont send the gold after it start looting :(

Thinking cap is back on.

Endless Night:
I generally never use ignoreitem it can cause all sorts of unintended knock on effects.  The one time i used it in character toolbox and forgot about it, 3+ years later it caused an unintended effect (recently)

We can help if you post your code so we can look at it more closely... 

So can also add random check to see where the problem is  by adding a gosub checkforgold  in places until you find out where it no longer finds the gold.  If you have your statusbar open it sets #gold


--- Code: ---sub checkforgold
   finditem pof C_ , #backpackid    ; pof is gold right ?
   display ok  FindGold: , #spc , #Findstack , #spc , StatusGold: , #spc , #Gold
return

--- End code ---

The Ghost:
I figure  the missing I was making. 

I have my find gold and find items in the same loop.   So now that I pick up the gold before entering the loop, my gold don't get ignore anymore. 


--- Code: ---; ============================ Looting ===============
sub TG_Looting
finditem YFM G_2
  if #FINDCNT > 0
    {
      set %lootmob #FINDID
      set #LOBJECTID %lootmob
      event macro 17 0
      wait 20
      ignoreitem %lootmob

     if #contsize = 144_212
        set %lootContainer #contId
    }
  if #findkind = -1
    return
; -----------------

    finditem POF C_ , %lootcontainer
    if #findkind <> -1
    {
      exevent drag #findid #findstack
      wait 15
      exevent dropc #backpackid
      wait 15
    }


finditem * C_ , %lootContainer
  for #findindex 1 #findcnt
  {
     if #menuButton <> n/a  2
         gosub #menubutton
              return
       event property #FINDID
        if speed , #spc , increase , #spc , 10 in #PROPERTY && ring in #PROPERTY || speed , #spc , increase , #spc , 10 in #PROPERTY && bracelet in #PROPERTY || Animated in #PROPERTY || luck , #spc , 150 in #PROPERTY || arcane in #PROPERTY || Gift in #PROPERTY || Immolating in #PROPERTY || attunement in #PROPERTY || thunderstorm in #PROPERTY || fury in #PROPERTY || form in #PROPERTY || wildfire in #PROPERTY || essence in #PROPERTY || allure in #PROPERTY || voyage in #PROPERTY || death in #PROPERTY
         {
             exevent drag #FINDID #FINDSTACK
                if %lootContainerDrop = N/A
                   exevent dropc #BACKPACKID
                 else
                    exevent dropc %lootContainerDrop
                     }
       else
        ignoreitem #FINDID
          }

 }
Return
--- End code ---

Also  what the difference between  those

--- Code: ---finditem * C_ , %lootContainer
  for #findindex 1 #findcnt

and

finditem * C_ , %lootContainer
  for %1 1 #findcnt

--- End code ---

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version