Bulk Order Deed (BOD) Acquisition

Discussion about the technical aspects of scripting. Ask about all issues involving your freelance projects here.
Locked
myoung7056
Novice Scribe
Posts: 6
Joined: Sun Mar 14, 2010 8:17 pm

Bulk Order Deed (BOD) Acquisition

Post by myoung7056 »

I've been trying to use Razor or EasyUO to come up with a macro that will let me hit F12 or something when I am near a BOD giver and get a BOD. I can't seem to get anything to work, which leads me to suspect each BOD has a different gump. Obviously, this may be to prevent macroing BOD acquisition. But is there a way to set up a script to acquire a BOD with one key push? I can always get to the point of being offered a BOD. The accept/cancel part is the trick it seems.

Thoughts?
User avatar
Thorgal
Legendary Scribe
Posts: 238
Joined: Mon Aug 23, 2010 8:14 am

Re: Bulk Order Deed (BOD) Acquisition

Post by Thorgal »

A macro to save 3 clicks...

How lazy can one get? Im not against using macros for use last object command or pet commands and such, but to get a BOD with the simple touch of a key to spare a total of 3 clicks, that seems just point lazy to me.

Sorry if i offended you but thats my opinion!


I
Ramious
Grandmaster Scribe
Posts: 72
Joined: Sat Dec 01, 2007 4:56 pm

Re: Bulk Order Deed (BOD) Acquisition

Post by Ramious »

That's a good way to keep new players around make them feel like that. If you don't want to help don't post :?
“What will you do without freedom? Fight and you may die; run, and you’ll live, at least a while. What would you give for one chance, just one chance, to tell our enemies that they may take our lives but they’ll never take our freedom?
myoung7056
Novice Scribe
Posts: 6
Joined: Sun Mar 14, 2010 8:17 pm

Re: Bulk Order Deed (BOD) Acquisition

Post by myoung7056 »

Thanks for coming to my defense Ramious!

Thorgal, thanks for sharing :roll:

I'm learning razor and a little scripting and thought this might be an easy question that also would help me learn something if I am missing something obvious. It is much easier troubleshooting something that replaces a few keys than a loot script or something.
User avatar
Efanchenko_MM
Legendary Scribe
Posts: 213
Joined: Mon Aug 11, 2008 4:13 pm
Location: Essex, England

Re: Bulk Order Deed (BOD) Acquisition

Post by Efanchenko_MM »

I'm pretty sure about a year a go something was put in place so something like this could not be macro'd, Due to people farming BODS all night... Might be wrong.
EFANCHENKO MM
myoung7056
Novice Scribe
Posts: 6
Joined: Sun Mar 14, 2010 8:17 pm

Re: Bulk Order Deed (BOD) Acquisition

Post by myoung7056 »

Makes sense. That would explain the gump issues. Thanks!
User avatar
Kaiana
Elder Scribe
Posts: 148
Joined: Mon Jul 13, 2009 3:07 pm

Re: Bulk Order Deed (BOD) Acquisition

Post by Kaiana »

I'll take a look at it a little when I get home. If the Bod windows have random sizes it may not be possible...
♥Kaiana♥ - Administrator of the Heart

Yay for scripting and programming! :)
public bool EasyUOMastery = true;
private double CSharpSkillz = 30.0; //and rising!
Trellen
Passer by
Posts: 2
Joined: Sun Sep 26, 2010 10:57 am

Re: Bulk Order Deed (BOD) Acquisition

Post by Trellen »

Ok, here is a quick'n'dirty, it has had very little testing, but it did work (most of the time ...)

right now its keyed to run when F7 is pressed but you can easily change that to suit your needs

Code: Select all

;Script for acquiring Bod's

mainloop:
 onhotkey f7
  gosub getbod
goto mainloop


sub getbod
    finditem * G_6
    for #findindex 1 #findcnt
    {
     gosub askforbod
     if #contname = generic_gump
     {
      str pos #contsize _
      str del #contsize 1 #strres
      set %clickx #contposx + 115
      set %clicky #contposy + #strres - 25
      click %clickx %clicky dmc
      wait 20
     }
    }
    return

sub askforbod
     event property #findid
     if armorer in #property || carpenter in #property || tailor in #property || weaver in #property || bowyer in #property || ( blacksmith in #property && guild notin #property )
     {
      exevent Popup #findid 4
      wait 20
     }
     if trainer in #property
     {
      exevent Popup #findid
      wait 20
      if #contsize = 140_168
      {
       exevent Popup #findid 5
      }
      if #contsize = 140_186
      {
       exevent Popup #findid 6
      }
      wait 20
     }
     return
myoung7056
Novice Scribe
Posts: 6
Joined: Sun Mar 14, 2010 8:17 pm

Re: Bulk Order Deed (BOD) Acquisition

Post by myoung7056 »

Thanks! Will test it out now.
Hanamichi
Apprentice Scribe
Posts: 12
Joined: Wed Jan 19, 2011 5:06 pm

Re: Bulk Order Deed (BOD) Acquisition

Post by Hanamichi »

Nice script, not sure if you still play or not. But if you ever find time to update it I would love to see it setup to where it will put your bods in specific books. Wonderful script no more torture clicking thanks!
Superduke
Grandmaster Scribe
Posts: 83
Joined: Fri May 27, 2011 2:28 am

Re: Bulk Order Deed (BOD) Acquisition

Post by Superduke »

I'm having a bit of an issue. Let me explain.

I'm using a bod collecting script i've used on OSI.
8 out of 10 times when i try to get a bod i actually don't get one. There is a system message that says ' you can get a bod now' but the bod gump doesn't show up. I have to wait an hour to get another bod (hoping the gump does come up that time)

Does this have to do with the exevent popup command or is something else preventing it?

Thanks for your input.

SD
User avatar
Ilsanor
Legendary Scribe
Posts: 407
Joined: Tue Jun 07, 2011 5:47 am

Re: Bulk Order Deed (BOD) Acquisition

Post by Ilsanor »

Well, I had a similar issue and noticed that the skill level seems to play a role here. A char with 0,1 in all craft skills except carpentry (45) would get 1 or 2 bods for every 10 request made, but got 10/10 carp bods. After training the remaining skills to 25-30 the missing BODs ceased to happen and I now recieve all 4 (don't do taming) everytime I ask for a BOD. Another suggestion was that some other script might be interfering with getting the BOD - that might be the case too. Experiment and post your findings. :)

Just a tip for those that didn't know: A location for this script is ex halls - vendors for all bods except taming are there in one place and you can get 4 in one run.
Superduke
Grandmaster Scribe
Posts: 83
Joined: Fri May 27, 2011 2:28 am

Re: Bulk Order Deed (BOD) Acquisition

Post by Superduke »

Awesome! This solved my problem.
My characters were indeed having just 1 skill point. I paid the npc to learn my characters all he knows and I was able to get a bod on all characters since than.
Many thanks!

SD
User avatar
Thorgal
Legendary Scribe
Posts: 238
Joined: Mon Aug 23, 2010 8:14 am

Re: Bulk Order Deed (BOD) Acquisition

Post by Thorgal »

Wow, i just saw the post i left on top... what an @$$ i was... sorry about that, i guess i was having a bad day! Funny when you think about it, to day i am a script addict ^^.

Anyway's 2 thumb down for me on that one!
Locked