Author Topic: Why isint this finding gold in my secure?  (Read 2672 times)

0 Members and 1 Guest are viewing this topic.

Offline CoraginTopic starter

  • Wacko in Pajama's
  • Elite
  • *
  • *
  • Posts: 1641
  • Activity:
    0%
  • Reputation Power: 23
  • Coragin might someday be someone...Coragin might someday be someone...Coragin might someday be someone...Coragin might someday be someone...
  • Gender: Male
  • It Is What It Is.
  • Respect: +57
  • Referrals: 1
    • View Profile
Why isint this finding gold in my secure?
« on: February 24, 2010, 08:50:45 PM »
0
Okay, the point of this sub is to take leftover gold in my backpack, drop it in a secure IN my bank.  Then drag 2500 gold out of the secure IN my bank and drop it in my backpack.

Its taking it out of my pack fine, but the nit tells me I am out of gold (when I have over 1 mill in gold in the secure in my bank.)

Code: [Select]
set %gold POF

Display Ok Select Supply Container IN BANK.
  set #targcurs 1
      while #targcurs = 1
         wait 1
         set %secure #ltargetID
      set #lobjectID #ltargetID
      event macro 17
      wait 20
gosub getgold
Sub GetGold
    Finditem POF C_ , #backpackid
             exevent drag #findid #findstack
             exevent dropc %secure
    finditem POF C_ , %secure
         if #findkind = 0
            {
            display You are done. You are out of Gold.
            halt
            }
         exevent drag #findid 2500
         wait 10
         exevent dropc #BackpackID
         wait 20
Return
Coragin

My Facebook
And now I'm better at doing what ever it is Wolverine does!

Offline Scotch_Tape

  • Jr. Member
  • **
  • Posts: 55
  • Activity:
    0%
  • Reputation Power: 1
  • Scotch_Tape has no influence.
  • Respect: 0
  • Referrals: 0
    • View Profile
Re: Why isint this finding gold in my secure?
« Reply #1 on: February 24, 2010, 10:18:32 PM »
0
change

if #findkind = 0
            {
            display You are done. You are out of Gold.
            halt
            }


to

if #findkind = -1
            {
            display You are done. You are out of Gold.
            halt
            }


If no gold is found this variable will be -1.  

Offline Cerveza

  • Hacksimus Maximus
  • Scripthack
  • *
  • Posts: 5857
  • Activity:
    0%
  • Reputation Power: 80
  • Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!
  • Gender: Male
  • So... Hows that Hopey-Changey thing working out?
  • Respect: +403
  • Referrals: 11
    • View Profile
Re: Why isint this finding gold in my secure?
« Reply #2 on: February 25, 2010, 02:31:41 AM »
0
Have you considered

msg Withdraw 2500 $

instead of drag/drop stuff?
XXXXXXXXXX________________________________________] 20%
I've forgotten more about this game then most people will ever know.
Thank you for controlling your children. Their manners reflect your love for them.
Give a man a fish and you feed him for a day. Don't teach a man to fish, and you feed yourself. He's a grown man. Fishing's not that hard.

Offline UOMaddog

  • Maddog
  • Elite
  • *
  • *
  • Posts: 1625
  • Activity:
    0%
  • Reputation Power: 22
  • UOMaddog might someday be someone...UOMaddog might someday be someone...UOMaddog might someday be someone...UOMaddog might someday be someone...
  • Gender: Male
  • Biggest B@D@$$ of the Universe
  • Respect: +165
  • Referrals: 8
    • View Profile
    • Insane UO
Re: Why isint this finding gold in my secure?
« Reply #3 on: February 25, 2010, 02:43:13 AM »
0
I thought the exact same thing as soon as I read this Cerv! But scotch is also right about the -1.

In EasyUO, #false = -1, #true = 0
There are 10 kinds of people in this world: those that understand binary and those that don't!

Windows:  A 64-bit tweak of a 32-bit extension to a 16-bit user interface for an 8-bit operating system based on a 4-bit architecture from a 2-bit company that can't stand 1 bit of competition!

Offline NObama

  • Everything I need to know, I learned from Miffy's Item Finder.
  • Elite
  • *
  • *
  • Posts: 3454
  • Activity:
    0%
  • Reputation Power: 43
  • NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.
  • Respect: +161
  • Referrals: 2
    • View Profile
Re: Why isint this finding gold in my secure?
« Reply #4 on: February 25, 2010, 06:48:36 AM »
0
I concur that speaking 'withdraw' is probably a better option.  Pair it with a journal scan for art_thou to recognize when you're out of gold.

Offline Cerveza

  • Hacksimus Maximus
  • Scripthack
  • *
  • Posts: 5857
  • Activity:
    0%
  • Reputation Power: 80
  • Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!
  • Gender: Male
  • So... Hows that Hopey-Changey thing working out?
  • Respect: +403
  • Referrals: 11
    • View Profile
Re: Why isint this finding gold in my secure?
« Reply #5 on: February 25, 2010, 07:00:58 AM »
0
Maybe even scan around to make sure there's a banker prior to the message as well.

Item type, event property, if banker notin #property - something those lines...
XXXXXXXXXX________________________________________] 20%
I've forgotten more about this game then most people will ever know.
Thank you for controlling your children. Their manners reflect your love for them.
Give a man a fish and you feed him for a day. Don't teach a man to fish, and you feed yourself. He's a grown man. Fishing's not that hard.

Offline CoraginTopic starter

  • Wacko in Pajama's
  • Elite
  • *
  • *
  • Posts: 1641
  • Activity:
    0%
  • Reputation Power: 23
  • Coragin might someday be someone...Coragin might someday be someone...Coragin might someday be someone...Coragin might someday be someone...
  • Gender: Male
  • It Is What It Is.
  • Respect: +57
  • Referrals: 1
    • View Profile
Re: Why isint this finding gold in my secure?
« Reply #6 on: February 25, 2010, 11:34:58 AM »
0
If I can pull directly from bank box I can stay hidden 100% of the time.  Thats why I wanted to stay away from "withdraw", but I got it working, ran all night on a trial account and got me 40k of each reg.  Just ran a secondary script that if I was attacked it would call guards.
Coragin

My Facebook
And now I'm better at doing what ever it is Wolverine does!

Offline Endless Night

  • Global Moderator
  • *
  • *
  • Posts: 5467
  • Activity:
    0%
  • Reputation Power: 62
  • Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!
  • Respect: +393
  • Referrals: 1
    • View Profile
Re: Why isint this finding gold in my secure?
« Reply #7 on: February 25, 2010, 11:51:43 AM »
0
Why not use the  #gold  and then withdraw the difference.

Code: [Select]
; statusbar must be open or #gold is not set
If #gold < 2500
  {
 set %Gold 2500 - #gold
 msg Withdraw %Gold $
 }
Outlaw Josey Wales - "Manwink, A Long Gone Scripty, and Endless are always teasing us with their private sections lol. What there realy saying is scripters rule and users drool."
Briza - "Your a living breathing vortex of usefulness."

Tags: