Author Topic: C2's BOD Collector Script  (Read 172920 times)

0 Members and 1 Guest are viewing this topic.

Offline _C2_Topic starter

  • AFK FtW
  • Global Moderator
  • *
  • *****
  • Posts: 4077
  • Activity:
    0%
  • Reputation Power: 48
  • _C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!
  • RIP Pen Trick
  • Respect: +396
  • Referrals: 4
    • View Profile
Re: C2's BOD Collector Script
« Reply #30 on: June 09, 2010, 11:56:25 AM »
+1
Thanks abunch c2, those waits worked.  Just ran through all seven chars and it got a bod for each one.  I put a wait 40 in those two areas.  As soon as the backpack opens it opens the bod gump and selects ok.  Will let it run through a few more cycles.  Thanks again.

Excellent.  as soon as i can I will implement a better way to do it.  If the script was to wait for the backpack gump (the last to open 100% of the time at log in, that would be a better way that a plain wait.  then I will update the code again.  The old wait could be taken out in the other part of the script.  it is this second wait that is working.

Offline _C2_Topic starter

  • AFK FtW
  • Global Moderator
  • *
  • *****
  • Posts: 4077
  • Activity:
    0%
  • Reputation Power: 48
  • _C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!
  • RIP Pen Trick
  • Respect: +396
  • Referrals: 4
    • View Profile
Re: C2's BOD Collector Script
« Reply #31 on: June 09, 2010, 06:50:04 PM »
+1
updated with waits that helped Hoby.  Hoby if you find any glitches try this one otherwise enjoy what you did to fix it.

Offline Hoby

  • Elite
  • *
  • *
  • Posts: 1344
  • Activity:
    0%
  • Reputation Power: 14
  • Hoby barely matters.Hoby barely matters.
  • Gender: Male
  • Respect: +166
  • Referrals: 1
    • View Profile
Re: C2's BOD Collector Script
« Reply #32 on: June 09, 2010, 10:17:52 PM »
+1
thx c2 for the help!
I like you, your death shall be quick and painless!!
I may have alzheimers, but at least I don't have alzheimers.
Walruses are like vampires, only awesome
Pwned-The total domination or shut down of a person or thing. 
I believe a hangover is gods way of saying you kicked ass last night!
Life's to short to remove usb safely.

Offline asdman

  • Jr. Member
  • **
  • Posts: 20
  • Activity:
    0%
  • Reputation Power: 1
  • asdman has no influence.
  • Gender: Male
  • Respect: +20
  • Referrals: 0
    • View Profile
Re: C2's BOD Collector Script
« Reply #33 on: June 23, 2010, 08:52:52 PM »
+1
Hmm, cant get it to work on a freeshard that has a name like "Shard - Something", tried everything :(

Offline _C2_Topic starter

  • AFK FtW
  • Global Moderator
  • *
  • *****
  • Posts: 4077
  • Activity:
    0%
  • Reputation Power: 48
  • _C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!
  • RIP Pen Trick
  • Respect: +396
  • Referrals: 4
    • View Profile
Re: C2's BOD Collector Script
« Reply #34 on: June 23, 2010, 09:47:57 PM »
+1
Hmm, cant get it to work on a freeshard that has a name like "Shard - Something", tried everything :(

log in subs don't support free shard.  they use last shard numbers and stuff that I am clueless about free shard #'s if they even exist

Offline dubyabuddha

  • Newbie
  • *
  • Posts: 5
  • Activity:
    0%
  • Reputation Power: 1
  • dubyabuddha has no influence.
  • Respect: +1
  • Referrals: 0
    • View Profile
Re: C2's BOD Collector Script
« Reply #35 on: July 28, 2010, 01:53:10 PM »
+1
has anyone got this to work with a free server yet? specifically demise? been racking my brain for an hour trying to tweak this

Scrripty

  • Guest
Re: C2's BOD Collector Script
« Reply #36 on: July 28, 2010, 01:54:38 PM »
+1
I don't think anyone here plays free shards but you... :)  Most of us don't I'm sure.

Offline Masscre

  • Gran Master Jester !!
  • Scripthack
  • *
  • Posts: 4615
  • Activity:
    0%
  • Reputation Power: 55
  • Masscre is leading the good life!Masscre is leading the good life!Masscre is leading the good life!Masscre is leading the good life!Masscre is leading the good life!Masscre is leading the good life!Masscre is leading the good life!Masscre is leading the good life!Masscre is leading the good life!Masscre is leading the good life!Masscre is leading the good life!
  • Gender: Male
  • Air Guitar Commander !!
  • Respect: +390
  • Referrals: 1
    • View Profile
Re: C2's BOD Collector Script
« Reply #37 on: August 02, 2010, 10:28:29 AM »
+1
I am having the same issues as hoby was having c2. No complaints just letting you know about it.  I am going to play with the timing also as you stated to him. Everything works good but clicking on the bod to accept it is hit and miss. Some times it hits it and is collected and other times it is not hit and not collected.  With the same selected character I may or may not get a bod. Some I am sure I am on the verge of a timing issue and if my DSL holds its mouth corectly it may collect it :)

I will post back up anything that might have worked for me. For anyone later wanting to use this with similar problems.

Offline Paulonius

  • Elite
  • *
  • *
  • Posts: 2040
  • Activity:
    0%
  • Reputation Power: 29
  • Paulonius is on the verge of being accepted.Paulonius is on the verge of being accepted.Paulonius is on the verge of being accepted.Paulonius is on the verge of being accepted.Paulonius is on the verge of being accepted.
  • Respect: +304
  • Referrals: 1
    • View Profile
Re: C2's BOD Collector Script
« Reply #38 on: August 02, 2010, 10:39:48 AM »
+1
I use the following three subs in the BOD Runner to get BODs on the exchange and it seems to work reliably. I will take a look at what C2 is doing and maybe I will be able to see something or at least learn something.

Code: [Select]
;==========================================================
Sub Get_A_New_BOD
Set %Vendor_Absent False
Set %Find_Vendor_Attempts 0
Set %BODTimerInEffect No
Begin_Get_BOD:
Exevent Popup %BODVendor
Wait 15
If #ContName <> normal_gump
   {
   Gosub WaitForGump %BlacksmithNPCGump
   If ! #Result
      {
      Set %Find_Vendor_Attempts %Find_Vendor_Attempts + 1
      If %Find_Vendor_Attempts = 4
         {
         Set %Vendor_Absent True
         Return #False
         }
      Wait 10
      Finditem %BODVendor G_8
      Set %MoveTimeout #SCnt + 3
      Repeat
         {
         Event Pathfind #findx #findy #findz 2
         Wait 10
         }
      Until #CharPosX = #FindX && #CharPosY = #FindY || %MoveTimeout <= #SCnt
      wait 45
      goto Begin_Get_BOD
      }
   }
Gosub OffsetClick 60 40
Wait 10
Gosub TM_AdvJournalScan EXCHANGE Advance You_can_get_an_order_now
If #Result = #True && #ContName = Generic_Gump
   {
   Gosub Vendor_BOD_Gump_Accept
   If #Result = #True
      {
      Set %BODSReceived %BODSReceived + 1
      Return #True
      }
   }
Gosub TM_AdvJournalScan EXCHANGE Advance An_offer_may_be_available
If #Result = #True
   {
   Set %BODTimerInEffect Yes
   Return #False
   }
Gosub Wait_For_New_BOD_Gump
Gosub Vendor_BOD_Gump_Accept
If #Result = #True
   {
   Set %BODSReceived  %BODSReceived + 1
   Return #True
   }
Gosub TM_AdvJournalScan EXCHANGE Advance the_bulk_order_deed_has_been_placed
If #Result = #True
   {
   Set %BODSReceived  %BODSReceived + 1
   Return #True
   }
Return #False


Code: [Select]
;==========================================================
Sub Vendor_BOD_Gump_Accept
if #contsize = 460_207
   {
   gosub offsetClick 110 180
   Return #True
   }
if #contsize = 460_231
   {
   gosub offsetClick 110 200
   Return #True
   }
if #contsize = 460_279
   {
   gosub offsetClick 110 250
   Return #True
   }
if #contsize = 460_303
   {
   gosub offsetClick 110 270
   Return #True
   }
if #contsize = 460_327
   {
   gosub offsetClick 110 300
   Return #True
   }
if #contsize = 460_351
   {
   gosub offsetClick 110 320
   Return #True
   }
if #contsize = 460_375
   {
   gosub offsetClick 110 350
   Return #True
   }
if #contsize = 460_399
   {
   gosub offsetClick 110 370
   Return #True
   }
Return #False

Code: [Select]
;==========================================================
Sub Wait_For_New_BOD_Gump
Set %VGumpWait #SCNT + 5
Repeat
  {
if #contname = generic_gump &&  ( #contsize = 460_207 )
+ || ( #contsize = 460_231 ) || ( #contsize = 460_279 )
+ || ( #contsize = 460_351 ) || ( #contsize = 460_375 )
+ || ( #contsize = 460_399 ) || ( #contsize = 460_303 )
+ || ( #contsize = 460_327 )
Return #True
Wait 5
}
Until %VGumpWait < #SCNT
Return #False
« Last Edit: August 02, 2010, 10:44:17 AM by Paulonius »
This coin declares Caesar is "Dictator for Life." He did serve as Dictator for the remainder of his life, but his life would end only a few weeks after this issue. For Caesar to put his image on coins and essentially declare himself king was too much for Brutus and his republican allies.

"If everything seems under control, you're not going fast enough'
-Mario Andretti

"If everyone is thinking alike, someone isn't thinking."
- General George Patton Jr

Offline Ultima

  • Insane Scripter
  • *
  • Posts: 1580
  • Activity:
    0%
  • Reputation Power: 26
  • Ultima is on the verge of being accepted.Ultima is on the verge of being accepted.Ultima is on the verge of being accepted.Ultima is on the verge of being accepted.Ultima is on the verge of being accepted.
  • Gender: Male
  • Respect: +316
  • Referrals: 4
    • View Profile
Re: C2's BOD Collector Script
« Reply #39 on: August 02, 2010, 10:54:48 AM »
+1
I am having the same issues as hoby was having c2. No complaints just letting you know about it.  I am going to play with the timing also as you stated to him. Everything works good but clicking on the bod to accept it is hit and miss. Some times it hits it and is collected and other times it is not hit and not collected.  With the same selected character I may or may not get a bod. Some I am sure I am on the verge of a timing issue and if my DSL holds its mouth corectly it may collect it :)

I will post back up anything that might have worked for me. For anyone later wanting to use this with similar problems.

That makes 3 of us! ???

Certain shards I do better than others. I've adjusted tried adjusting the timing but still no dice. It's like you said hit and miss.

I know C2 mentioned once the backpack opens that becomes the gump. Some shards I'll go 6 for 6 and others I'll go 1 for 6.

Fortunately the shards I really need them on it's working for the most part. I was gonna cross shard trade with Hoby but have a hard time successfully retrieving on that shard. I'm lingering around 150 BOD's where I should easily have 500 on each character on that shard.

Offline _C2_Topic starter

  • AFK FtW
  • Global Moderator
  • *
  • *****
  • Posts: 4077
  • Activity:
    0%
  • Reputation Power: 48
  • _C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!
  • RIP Pen Trick
  • Respect: +396
  • Referrals: 4
    • View Profile
Re: C2's BOD Collector Script
« Reply #40 on: August 02, 2010, 12:05:30 PM »
+1
Well geeze guys lol.  they changed something with the timing for sure.  I will make sure that I put an updated version up with that change.  I may not of uploaded the timing fix.

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: +325
  • Referrals: 2
    • View Profile
Re: C2's BOD Collector Script
« Reply #41 on: August 22, 2010, 03:30:37 PM »
+1
Any updates?  I have finally depleted my BOD store and need to start pulling fresh ones to cycle.

Offline _C2_Topic starter

  • AFK FtW
  • Global Moderator
  • *
  • *****
  • Posts: 4077
  • Activity:
    0%
  • Reputation Power: 48
  • _C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!
  • RIP Pen Trick
  • Respect: +396
  • Referrals: 4
    • View Profile
Re: C2's BOD Collector Script
« Reply #42 on: August 22, 2010, 03:54:17 PM »
+1
i believe the posted 1.1b should handle the delayed gumps

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: +325
  • Referrals: 2
    • View Profile
Re: C2's BOD Collector Script
« Reply #43 on: August 22, 2010, 04:54:38 PM »
+1
Having an issue with the 'Ok' button on BOD offers in 1.1b.  At least 50% of the time, it misses the click.  I'm going to add a 'wait 15' to see if that helps...but I'm out of toons to test with for another 60 mins.

Also - it occurs to me that if might be more efficient to do the following, instead of waiting 60secs when you get 'an offer may be available'

- Check for BOD
- If "an offer may be available"
- Goto next toon
- If last toon, wait until master countdown timer says it's time for another cycle

Obviously, there is no pathfind or TM runebook travel built in...but that was easy to add.

« Last Edit: August 22, 2010, 04:56:59 PM by NObama »

Offline _C2_Topic starter

  • AFK FtW
  • Global Moderator
  • *
  • *****
  • Posts: 4077
  • Activity:
    0%
  • Reputation Power: 48
  • _C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!
  • RIP Pen Trick
  • Respect: +396
  • Referrals: 4
    • View Profile
Re: C2's BOD Collector Script
« Reply #44 on: August 22, 2010, 06:51:33 PM »
+1
let me know.  i was considering searching for backpack until it is open and then once it opens ... get bod gump.  the problem that i was seeing was that timing for opening packs had changed a lot.  the script was grabbing bod bump and then backpack was opening and then it would not click yes it would click a spot on your backpack.  i don't have time to set up a bod collecting acct and try it all nowadays but will certainly make edits as per suggestion and give credit for fixes.  i havent collected bods in over 3 years. let meknow what u find.  the wat 60 was intended to allow packs time to open up naturally before the script tries to get a bod only to be messed up by pack gumps opening up late.

Tags: