Author Topic: Full Auto BOD filler, Runic Farmer.  (Read 10693 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
Full Auto BOD filler, Runic Farmer.
« on: November 07, 2009, 10:49:17 AM »
0
FULL AUTO BOD

Right now it only does smithing!

The project will start at home with a secure, have two bags inside.  Secure will hold ingots, tinker tools and tongs.  Two bags, one for rewards, one for lbods to store in.

This script will full auto do bods, fill them, turn them in, get new ones and repeat.  Store runics and rewards from turning in ect.  Will know what kind of bod it is and check materials.  If it gets a lbod, it will store it and grab a small from secure to keep going if any are available and if the option is enabled.

This is going to be a big script, lots of code, I will need help.  I have a lot of it completed, but could use suggestions on condensing subs and such.

If TM adds it to a special project, that would be great.  For now it remains here, if you are working on it let me know so you can be added to the list for credits.

If you are interested, let me know with a yes or no.  I will probably get a lot of pm's on this, so please keep it short and simple, suggestions and code are 100% welcome to get this into testing phase. 

If you are gonna work on it with me, please please please, post what part of the code or sub you are currently working on so we dont have 3 or 4 people writing the same thing. 

Thanks guys!

Currently Working on:
Coragin - Weapon and armor set ID's

Code: [Select]
;===================================================================================================
; SUO's Fully functional BOD runner.
; Version: 1.0 Alpha
; Setup: Smithing Only!
;
; Purpose: Fully functional BOD runner.Will recall to runes you select for blacksmiths, identify
; the Bulk Order Deed and fill it.  Then turn it in and get another and repeat.  NOT setup for large
; BOD's as of yet, Only single's.  Will store ALL Powder, Runic, PS in a runic secure at home setup.
;
; TODO: Add support for LBOD's
;       Add support for getting Small BOD's from home secure if NPC gives you a LArge to keep going.
;       Add Tailoring Support.
;
;
; ALPHA STAGE MEANS STILL WRITING!
;
;
;
;===================================================================================================
;
;===================================================User Setup======================================
set %Homerune 1
set %ShopRune 2
set %Runebook
;===================================================End User Setup==================================
gosub setup
Mainloop:
gosub GetBod
gosub MakeBod
gosub TurninBod
gosub StoreRunic
goto Mainloop

Sub Setup ;=========================================Variable Setup==================================
gosub setupsecure
gosub setupsmithingmenu
gosub EUOMenu
set %smithNPC Blacksmith$
set %tinkertools
set %tongs
set %runic
set %powder
set %powerscroll
set %anvildeed
set %shovel
set %gargpickaxe
set %prospect
set %ingots
set %bod
set %dullcopper Dull , #SPC , Copper
set %ironcolor                                  ;====Begin Ingot Color
set %dullcoppercolor
set %shadowcolor
set %coppercolor
set %bronzecolor
set %goldcolor
set %vertitecolor
set %apagitecolor
set %valoritecolor
set %chainmailtunic                             ;====Begin Armor Sets
set %chainmaillegs
set %chainmailcoif
set %platemailgorget
set %platemailarms
set %platemaillegs
set %platemailgloves
set %platemailchest
set %femaleplate
set %ringmailgloves
set %ringmailtunic
set %ringmaillegs
set %ringmailarms
set %platmailhelm
set %closehelm                                ;====Begin Helms
set %basinet
set %norsehelm
set %dagger
set %kryss
set %katana
set %crescentblade
set %

Sub SetupSecure ;=======================================Secure Setup===============================
display yesno press yes to use small bods from secure $or no to halt on Large?
set %swapbods #true
if #dispres = no
  {
  set %swapbods #false
  }
Display Ok Select your Home Secure.
  set #targcurs 1
      while #targcurs = 1
         wait 1
         set %ResourceBag #ltargetID
      set #lobjectID #ltargetID
      set #nextcposx 100
      set #nextcposy 0
      event macro 17
      wait 20
Display Ok Select your RUNIC Bag in SECURE Container.
  set #targcurs 1
      while #targcurs = 1
         wait 1
      set %RunicBag #ltargetID
      set #lobjectID #ltargetID
      set #nextcposx 300
      set #nextcposy 0
      event macro 17
      wait 20
Display Ok Select your LARGE BOD Bag in SECURE Container.
  set #targcurs 1
      while #targcurs = 1
         wait 1
      set %LBodBag #ltargetID
      set #lobjectID #ltargetID
      set #nextcposx 500
      set #nextcposy 0
      event macro 17
      wait 20
Return

Sub EUOMenu ;=========================================EUO Menu======================================
Return

Sub GetBod ;==========================================Get Bod=======================================
gosub TM_TravelFromNamedRunebook RE %ShopRune %ShopRune %RuneBook      ;Travel to Shop
gosub TM_TravelFromNamedRunebook RE %HomeRune %HomeRune %RuneBook      ;travel Home
Return

Sub GetBod2 ;=========================================Get BOD After Turnin of Filled BOD============
Return

Sub MakeBod ;========================================Make Bod=======================================
gosub IdentifyBod                                                      ;Color, Quantity, Quality
gosub IdentifyType                                                     ;Armor or Weapons

Return

Sub TurninBod ;====================================Turnin Bod=======================================
gosub TM_TravelFromNamedRunebook RE %ShopRune %ShopRune %RuneBook      ;Travel to Shop
gosub GetBod2                                                          ; Get BOD After Turnin of FILLED BOD
gosub TM_TravelFromNamedRunebook RE %HomeRune %HomeRune %RuneBook      ;Travel Home
Return

Sub StoreRunic ;==================================Store Runic=======================================
Return

Sub SetupSmithingMenu ;===========================Setup Smithing Clicks=============================
;=================================================Weapon Selection Menus (Left Pane)================
set %menu1x 80
set %menu1y 140
set %menu2x 80
set %menu2y 160
set %menu3x 80
set %menu3y 180
set %menu4x 80
set %menu4y 200
set %menu5x 80
set %menu5y 200
set %menu6x 80
set %menu6y 220
set %menu7x 80
set %menu7y 240
set %menu8x 80
set %menu8y 260
set %menu9x 80
set %menu9y 280
set %menu10x 80
set %menu10y 300
set %menu11x 80
set %menu11y 320
;==================================================Make Menus (Right Pane)=========================
set %wmenu1x 285
set %wmenu1y 120
set %wmenu2x 285
set %wmenu2y 140
set %wmenu3x 285
set %wmenu3y 160
set %wmenu4x 285
set %wmenu4y 180
set %wmenu5x 285
set %wmenu5y 200
set %wmenu6x 285
set %wmenu6y 220
set %wmenu7x 285
set %wmenu7y 240
set %wmenu8x 285
set %wmenu8y 260
set %wmenu9x 285
set %wmenu9y 280
set %wmenu10x 285
set %wmenu10y 300
;===============================================Next Page X/Y=======================================
set %nextpagex 435
set %nextpagey 320
;===============================================Change Wood X/Y=====================================
set %changewoodx 80
set %changewoody 420
;===============================================Smelt X/Y===========================================
set %smeltx 80
set %smelty 400
;===============================================Make Last X/Y=======================================
set %makelastx 330
set %makelasty 500
;===============================================Exit Craft Gump X/Y=================================
set %exitx 80
set %exity 500
return

Sub IdentifyBod ;=================================Identify Bod======================================
identifyloop:
    finditem %bod C_ , #backpackid
      if #findcnt < 1
         {
         finditem %bod C_ , %ResourceBag
         if #findkind = -1
            {
            gosub GetSmall
            goto identifyloop
            }
         goto identifysize
         }
finditem %bod C_ , #backpackid
  if #findkind <> -1
  {
  event property #findid
  if Large in #property
     {
     gosub LargeBod
     goto identifyloop
     }
  Goto identify
  }
identify:
finditem %bod C_ , #backpackid
  if #findkind <> -1
  {
  event property #findid
  if 10 in #property
     set %quantity 10
  if 15 in #property
     set %quantity 15
  if 20 in #property
     set %quantity 20
  if exceptional in #property
     set %exceptional = #true
  if exceptional notin #property
     set %exceptional = #false
  if iron in #property
     set %bodcolor = %ironcolor
  if %dullcopper in #property
     set %bodcolor = %dullcoppercolor
  if shadow in #property
     set %bodcolor = %shadowcolor
  if copper in #property && dull notin #property
     set %bodcolor = %coppercolor
  if bronze in #property
     set %bodcolor = %bronzecolor
  if gold in #property
     set %bodcolor = %goldcolor
  if apagite in #property
     set %bodcolor = %apagitecolor
  if vertite in #property
     set %bodcolor = %vertitecolor
  if valorite in #property
     set %bodcolor = %valoritecolor
  }
gosub IdentifyType
Return

Sub IdentifyType ;================================Identify Type of Bod Armor/Weapon=================

Sub LargeBod ;====================================Large Bod=========================================
    finditem %bod C_ , #backpackid
    exevent #findid 1
    wait 10
    exevent dropc %LBodBag
    wait 10
return

sub GetSmall ;====================================Get Small Bod From Secure=========================
if %swapbods = #false
   {
   Display All done!
   Halt
   }
    finditem %bod C_ , %resourcebag
      if #findcnt < 1
      {
      Display All Out of Bod's in resource
      Halt
      }
    exevent #findid 1
    wait 10
    exevent dropc #backpackid
    wait 10
    }
Return
Coragin

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

Offline sheen

  • Jr. Member
  • **
  • Posts: 18
  • Activity:
    0%
  • Reputation Power: 0
  • sheen has no influence.
  • Respect: +4
  • Referrals: 0
    • View Profile
Re: Full Auto BOD filler, Runic Farmer.
« Reply #1 on: November 08, 2009, 12:26:25 AM »
0
maybe it's easier to use s7 filler for filling bods, change materials asf...its callable


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: Full Auto BOD filler, Runic Farmer.
« Reply #2 on: November 08, 2009, 08:40:22 AM »
0
That is a great idea and to be honest, I considered it because this is a script I would really like to have ASAP.  However, I also want it to be 100% original to SUO, that is why I am looking for co-authors to help.  EasyUO has a lot of nice scripts over there, but I love the community here.
Coragin

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

Offline sheen

  • Jr. Member
  • **
  • Posts: 18
  • Activity:
    0%
  • Reputation Power: 0
  • sheen has no influence.
  • Respect: +4
  • Referrals: 0
    • View Profile
Re: Full Auto BOD filler, Runic Farmer.
« Reply #3 on: November 08, 2009, 09:06:22 PM »
0
yes i know...but s7 write on his page, that we can modify his script. or write another script which doing all the recalling, sorting rewards and call his script only for the filling...

but i'm also interested to use this and will help you (but i'm a really coding newb ;-) )

for filling bods you can use this:

Code: [Select]
call s7BODFiller.euo <ID of BOD to fill> %RessourceBag #false

nice would be as additional feature:
- if it take the bods out from a bod book and put them back in an empty one...
- sorting the s- and lbods depending on runic color  (because we only wanna fill the iron, PoF and crap color bods...)
- supplies multiple bod books with empty bods


 i will try to do the turnin part with a rail (so you need just one recall spot for returning tailor and smith bods)

Scrripty

  • Guest
Re: Full Auto BOD filler, Runic Farmer.
« Reply #4 on: November 24, 2009, 09:27:18 AM »
0
Cor, you can always use his to get it up and running, then keep working on yours till it's done. :)

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: Full Auto BOD filler, Runic Farmer.
« Reply #5 on: November 24, 2009, 09:56:20 AM »
0
Cor, you can always use his to get it up and running, then keep working on yours till it's done. :)


Good idea bro, I can do that.  This is a lot of work, would love for some of you scripting gods to work it with me, pick a sub or something, I have kinda set this aside since its kind of overwhealming.
Coragin

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

Scrripty

  • Guest
Re: Full Auto BOD filler, Runic Farmer.
« Reply #6 on: November 24, 2009, 10:20:32 AM »
0
Cor, you can always use his to get it up and running, then keep working on yours till it's done. :)


Good idea bro, I can do that.  This is a lot of work, would love for some of you scripting gods to work it with me, pick a sub or something, I have kinda set this aside since its kind of overwhealming.

It's actually fairly straight forward if you use S7's called script... his will fill the bod's for you, you just write the rest around that...  As the other guy was sayin. :)

Offline kenshin87

  • Full Member
  • ***
  • Posts: 113
  • Activity:
    0%
  • Reputation Power: 2
  • kenshin87 has no influence.
  • Respect: +35
  • Referrals: 1
    • View Profile
Re: Full Auto BOD filler, Runic Farmer.
« Reply #7 on: January 26, 2010, 08:37:16 PM »
0
hey cor just downloaded the script and started to run it. i dont know if i am doing it wrong but it seems to go through the entire setup and repeat the setup process again. i manual did it through easyuo and it seems to go trough everything but doesnt do much lol. i hope this is a start and i will be willing to help you out along the way with testing and everything.
« Last Edit: January 26, 2010, 08:43:26 PM by kenshin87 »

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: Full Auto BOD filler, Runic Farmer.
« Reply #8 on: January 27, 2010, 04:36:04 AM »
0
hey cor just downloaded the script and started to run it. i dont know if i am doing it wrong but it seems to go through the entire setup and repeat the setup process again. i manual did it through easyuo and it seems to go trough everything but doesnt do much lol. i hope this is a start and i will be willing to help you out along the way with testing and everything.

That is because it is not functional yet.  It is being worked on by a lot of different people, you just dont see it ;)
Coragin

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

Offline kenshin87

  • Full Member
  • ***
  • Posts: 113
  • Activity:
    0%
  • Reputation Power: 2
  • kenshin87 has no influence.
  • Respect: +35
  • Referrals: 1
    • View Profile
Re: Full Auto BOD filler, Runic Farmer.
« Reply #9 on: January 27, 2010, 08:26:53 AM »
0
oh haha well that will explain it wouldnt it. well if you need a tester to figure out bugs and try out different functions i am more then willing to help out. i have tested and currently testing some scripts for others and will be more then happy to tack another one on to my resume  lol. good luck with it otherwise and i hope it works out well! seems like a great script. for a heads up though you may want to have a second rune location for recalling in just in case it is blocked. i noticed that there was only one scripted in. again good luck

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: Full Auto BOD filler, Runic Farmer.
« Reply #10 on: January 27, 2010, 08:30:34 AM »
0
oh haha well that will explain it wouldnt it. well if you need a tester to figure out bugs and try out different functions i am more then willing to help out. i have tested and currently testing some scripts for others and will be more then happy to tack another one on to my resume  lol. good luck with it otherwise and i hope it works out well! seems like a great script. for a heads up though you may want to have a second rune location for recalling in just in case it is blocked. i noticed that there was only one scripted in. again good luck

It is not up to me to add you to that project group.  But he will see this and if he wants to add you he will.
Coragin

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

Offline kenshin87

  • Full Member
  • ***
  • Posts: 113
  • Activity:
    0%
  • Reputation Power: 2
  • kenshin87 has no influence.
  • Respect: +35
  • Referrals: 1
    • View Profile
Re: Full Auto BOD filler, Runic Farmer.
« Reply #11 on: February 03, 2010, 08:29:09 AM »
0
hey Coragin. i was jsut wondering who project leader was? i am interested in testing the script and helping along the way.

Offline OMGBurgers

  • Hero Member
  • *
  • Posts: 800
  • Activity:
    0%
  • Reputation Power: 7
  • OMGBurgers has no influence.
  • Respect: +44
  • Referrals: 0
    • View Profile
Re: Full Auto BOD filler, Runic Farmer.
« Reply #12 on: February 03, 2010, 01:46:41 PM »
0
Is this script just going to fill/turn in BODs that give runics?

Or will it also fill & turnin iron bods & other small bods like DC/Shadow/Copper & POF BODs & stash those away while getting new BODs in an almost never ending cycle! lol.

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: +162
  • Referrals: 1
    • View Profile
Re: Full Auto BOD filler, Runic Farmer.
« Reply #13 on: February 03, 2010, 01:47:59 PM »
0
OMG, there is a more advanced thread on this project in Project E.
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 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: Full Auto BOD filler, Runic Farmer.
« Reply #14 on: February 03, 2010, 01:59:56 PM »
0
Yes this project has been moved to Special Projects E.  You will have to contact the owner if you wish to help and are not elite.
Coragin

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

Tags: