Author Topic: frneo's Crafter v2.1 09/02/11 with TM's Advanced CLAw support  (Read 73403 times)

0 Members and 1 Guest are viewing this topic.

Offline NeoTopic starter

  • Prime Program
  • Elite
  • *
  • *
  • Posts: 823
  • Activity:
    0%
  • Reputation Power: 13
  • Neo barely matters.Neo barely matters.
  • Respect: +351
  • Referrals: 4
    • View Profile
frneo's Crafter v2.1 09/02/11 with TM's Advanced CLAw support
« on: August 30, 2011, 12:38:12 PM »
+1
Well, I guess I finally found a way to make this more complete, so here it is:
Code: [Select]
;===================================================================================
; Script Name: frneo's crafter with TM's Advanced CLAw Support
; Author: frneo
; Version: 2.1
; Client Tested With: 7.0.16.3
; EUO version tested with: 1.50 199
; Shard OSI / FS: OSI
; Revision Date: 09/02/2011
; Public Release: 08/30/2011
; Purpose: You can make anything from pieces of armors, weapons, jewelry, and set
;          the rules of items you want to keep in TM's Advanced CLAw. You can also
;          choose a trashing method like recycling in the salvage
;          bag, unraveling or simply moving to trash barrel.
;          If the item you're crafting requires special ingredients, other than
;          the boards, ingots or leather, you can also add them to a list.
;          If you want to craft items using colored material, so that we choose
;          the correct unraveling option for them, there's also an
;          option for that in the menu. If you have any suggestions on what I could
;          still add/change here, please let me know.
;
;          If you're crazy and don't want to use the CLAw to evaluate stuff, you still
;          have the option to use my old evaluation method. However, it will only work
;          for armor pieces AND is no longer supported.
;--------------------------------------------------------------------------------------
; Thank you TM for letting me use the CLAw with this.
; I hope you can find this worthy of it! :)
; Thank you Paulonius for the suggestion on using the CLAw. This wouldn't be viable
; without it.
;-----------------------------------------------------------------------------------
; Url:     http://www.scriptuo.com/index.php?topic=8378.0
;===================================================================================
; Version   2.1   - Fixed issue with tools not being properly selected before using
;                 - Fixed remove extra ingredient button
;--------------------------------------------------------------------------------------
; Version   2.0   Major changes:
;                 - Menu totally rebuilt
;                 - Option to add all necessary ingredients to craft virtually any item
;                   from weapons, armors or magic jewelry. You must manually add these
;                   before you start crafting
;                 Please read the instructions, and if you have any questions, please
;                 ask them in the script topic @ scriptuo.com
;-------------------------------------------------------------------------------------
; Version   1.1   Magic jewel crafting fixed.
;                 Script currently works with:
;                 - Armor crafting
;                 - Weapon crafting
;                 - Jewelry crafting
;-------------------------------------------------------------------------------------
; Version   1.0   Changed the name of the script to 'frneo's All-in-one crafter'
;                 Why? Because from now on, I will try and make this able to craft
;                 anything. Weapons, armor, jewelry, and let you use the CLAw to choose
;                 what to keep and what to trash. :)
;
;                 - Removed wait time from gumpwait to make crafting faster
;                 - Added runic tools support
;                 - Will unravel if you're using runic tools
;                 - Added colored material option
;-------------------------------------------------------------------------------------
; Version   0.3.1 - Fixed issue with pause/resume
;-----------------------------------------------------------------------------------
; Version   0.3 - Now supports TM's Advanced CLAw! Thank you TM for letting me use it!
;                 You can download the claw here:
;                 http://www.scriptuo.com/index.php/index.php?topic=17.0
;                 If you choose to use the CLAw with this, you must thank TM for it in
;                 the above topic! :)
;
;               - Fixed issue that could cause you to run out of ingots while crafting
;                 tools and looping forever
;-------------------------------------------------------------------------------------
; Version   0.2 - Fixed menu background color issue
;               - Script will now pause instead of halting when you run out of items
;-----------------------------------------------------------------------------------
; Instructions: You must have the following items inside your backpack:
;               - A Salvage Bag
;               - At least one Tinker Tool
;                 (you must have enough tinker skill to craft tools)
;               - Tong for blacksmithy, saw for carpentry, sewing kit for tailoring.
;               Also:
;               - If blacksmithing, you must be near forge and anvil.
;               - If tailoring, you must have scissors inside your backpack
;               - If using carpentry, you must have an axe inside your backpack
;               - If crafting Woodland Armor, or anything that requires extra ingredients
;                 mark the checkbox "Use extra crafting ingredients"
;               - You must have enough material to craft the first piece
;                 inside your backpack
;               - You must have IRON INGOTS inside your resource secure, to be
;                 able to craft tools as needed.
;               - If you don't want to craft tools, you can mark the option 'Use runic tools'
;                 This will make sure you grab the selected tool from a secure, even if
;                 they're not really runic tools.
;
;               If you wish to use TM's Advanced CLAw to evaluate the items, you need
;               to download it at http://www.scriptuo.com/index.php/index.php?topic=17.0
;               The CLAw must be running and set up BEFORE running the crafting script.
;               You need to set up the properties to look for in the CLAw's menu.
;               Instructions on how to do this can be found in the CLAw's topic.
;               Once this is done, you can start crafting! :)
;
;
;------------------------------------------------------------------------------------
;
; Special Thanks:
; TM for letting me use his Advanced CLAw, this script got A LOT better with it.
; MeWonUo for all the tips and suggestions in writing this.
; TM for his NGFS sub which I use in almost everything I write
;-------------------------------------------------------------------------------------
Thank you TM for letting me use the Claw for this!
I'm sure everyone is gonna love the hability to use the claw to evaluate stuff...

You can download TM's Advanced CLAw and find instructions on how to set it up here:
http://www.scriptuo.com/index.php?topic=17.0

Also, thank you Paulonius for suggesting the Claw integration...

New Crafter 2.0



Make sure you read the instructions here as well, on how to get this script working with the claw...
If you use this, please tell me how it worked for you, so I can keep improving it.

The script will auto-detect if you have TM's CLAw running or not... If it isn't running, you will get the choice to use the old armor crafter instead... Although it is not recommended, and also no longer supported! :)

Also, any kind of feedback and/or suggestions are well appreciated.

Neo

Currently works with armors, weapons and magic jewelry.


There are 7 attachment(s) in this post. You must register and post an acceptable introduction to download
all-in-one_crafter_suo_1.0_with_claw_support.txt
all-in-one_crafter_suo_1.1_with_claw_support.txt
armor_crafter_suo_0.2.txt
armor_crafter_suo_0.3.1_with_claw_support.txt
armor_crafter_suo_0.3_with_claw_support.txt
frneo_crafter_suo_2.0_with_claw_support.txt
frneo_crafter_suo_2.1_with_claw_support.txt
« Last Edit: September 02, 2011, 12:16:56 PM by frneo »
Never refuse an invitation.
Never resist the unfamiliar.
Never fail to be polite.
And never outstay your welcome.

Offline Canuker

  • Sr. Member
  • *
  • Posts: 479
  • Activity:
    0%
  • Reputation Power: 7
  • Canuker has no influence.
  • Respect: +70
  • Referrals: 2
    • View Profile
Re: frneo's Armor Crafter v0.1 08/30/11
« Reply #1 on: August 30, 2011, 12:57:14 PM »
+1
Wow, you are pumping out some amazing stuff.  I'll give it a good test tonight after I get home.
Nope!  I'm doing what all the real PvPers do:  Scripting everything except the running away part!  I'm real good at that already...

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: +786
  • Referrals: 1
    • View Profile
Re: frneo's Armor Crafter v0.1 08/30/11
« Reply #2 on: August 30, 2011, 01:03:43 PM »
+1
sweet...
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."

Offline MeWonUo

  • Hero Member
  • *
  • Posts: 913
  • Activity:
    0%
  • Reputation Power: 11
  • MeWonUo barely matters.MeWonUo barely matters.
  • Gender: Male
  • Respect: +189
  • Referrals: 1
    • View Profile
Re: frneo's Armor Crafter v0.1 08/30/11
« Reply #3 on: August 30, 2011, 01:10:03 PM »
-1
Happy to help, Neo.  This thing is on it's way to making a lot of peoples lives all that much easier. :P

Offline UoLugnutz

  • Full Member
  • ***
  • Posts: 123
  • Activity:
    0%
  • Reputation Power: 2
  • UoLugnutz has no influence.
  • Respect: +45
  • Referrals: 0
    • View Profile
Re: frneo's Armor Crafter v0.1 08/30/11
« Reply #4 on: August 30, 2011, 01:31:17 PM »
-1
Wow! When do you actually sleep?!?!?! Or maybe you don't. This one will also be a fan favorite

Offline NeoTopic starter

  • Prime Program
  • Elite
  • *
  • *
  • Posts: 823
  • Activity:
    0%
  • Reputation Power: 13
  • Neo barely matters.Neo barely matters.
  • Respect: +351
  • Referrals: 4
    • View Profile
Re: frneo's Armor Crafter v0.2 08/30/11
« Reply #5 on: August 30, 2011, 03:22:00 PM »
+1
Thanks for trying this out guys! :)

V 0.2 out
Never refuse an invitation.
Never resist the unfamiliar.
Never fail to be polite.
And never outstay your welcome.

Offline Canuker

  • Sr. Member
  • *
  • Posts: 479
  • Activity:
    0%
  • Reputation Power: 7
  • Canuker has no influence.
  • Respect: +70
  • Referrals: 2
    • View Profile
Re: frneo's Armor Crafter v0.2 08/30/11
« Reply #6 on: August 30, 2011, 06:12:45 PM »
-1
If you are a moron like this Canuker salvage bags can be bought at the Provisioner. 

Ok now to try and test again.
Nope!  I'm doing what all the real PvPers do:  Scripting everything except the running away part!  I'm real good at that already...

Offline Canuker

  • Sr. Member
  • *
  • Posts: 479
  • Activity:
    0%
  • Reputation Power: 7
  • Canuker has no influence.
  • Respect: +70
  • Referrals: 2
    • View Profile
Re: frneo's Armor Crafter v0.2 08/30/11
« Reply #7 on: August 30, 2011, 06:48:33 PM »
+1
I must be missing something.  I thought I had set this to look for only items <=3 5 4 4 4 as this would indicate that a hit was made at near the lowest possible resist in any of the areas but it never seemed to pick up a item.  I was using normal leather and had it cut up a 2 physical resist piece.  Am I reading this wrong?


Oh my, I never added this combination or any other ones.....so my first part of this thread should be a indicator for anyone....sigh.
Nope!  I'm doing what all the real PvPers do:  Scripting everything except the running away part!  I'm real good at that already...

Offline NeoTopic starter

  • Prime Program
  • Elite
  • *
  • *
  • Posts: 823
  • Activity:
    0%
  • Reputation Power: 13
  • Neo barely matters.Neo barely matters.
  • Respect: +351
  • Referrals: 4
    • View Profile
Re: frneo's Armor Crafter v0.2 08/30/11
« Reply #8 on: August 30, 2011, 06:53:12 PM »
+1
I must be missing something.  I thought I had set this to look for only items <=3 5 4 4 4 as this would indicate that a hit was made at near the lowest possible resist in any of the areas but it never seemed to pick up a item.  I was using normal leather and had it cut up a 2 physical resist piece.  Am I reading this wrong?


Oh my, I never added this combination or any other ones.....so my first part of this thread should be a indicator for anyone....sigh.
Well, i'm not sure how you are using this, but it will look for that specific combination, all resists must match a given combination... If you set it like you did, it will only save pieces that have
physical <= 3 AND fire <= 5 AND cold <= 4 AND poison <=4 AND energy <= 4

If any of those is false, it will cut up the piece...

You can add as many combinations of resists you want to look for, but it goes in groups... That's the point of this crafter...
Never refuse an invitation.
Never resist the unfamiliar.
Never fail to be polite.
And never outstay your welcome.

Offline Canuker

  • Sr. Member
  • *
  • Posts: 479
  • Activity:
    0%
  • Reputation Power: 7
  • Canuker has no influence.
  • Respect: +70
  • Referrals: 2
    • View Profile
Re: frneo's Armor Crafter v0.2 08/30/11
« Reply #9 on: August 30, 2011, 07:04:54 PM »
+1
I see what the issue was.  I reset it to look for (physical <= 3 AND fire <= 0 AND cold <= 0 AND poison <=0 AND energy <= 0) and the same for all other resists and it works perfectly. 

Thanks for the reply, it set me straight and I am now adding lower and higher variables.  I'll report what this does but it seems to be running hella smooth now that I've worked out the Canadian issues.
Nope!  I'm doing what all the real PvPers do:  Scripting everything except the running away part!  I'm real good at that already...

Offline NeoTopic starter

  • Prime Program
  • Elite
  • *
  • *
  • Posts: 823
  • Activity:
    0%
  • Reputation Power: 13
  • Neo barely matters.Neo barely matters.
  • Respect: +351
  • Referrals: 4
    • View Profile
Re: frneo's Armor Crafter v0.2 08/30/11
« Reply #10 on: August 30, 2011, 07:11:12 PM »
+1
I see what the issue was.  I reset it to look for (physical <= 3 AND fire <= 0 AND cold <= 0 AND poison <=0 AND energy <= 0) and the same for all other resists and it works perfectly. 

Thanks for the reply, it set me straight and I am now adding lower and higher variables.  I'll report what this does but it seems to be running hella smooth now that I've worked out the Canadian issues.
Is it even possible to look for resists lower or equal to 0? heh

Glad it's working for you now!

Cheers

neo
Never refuse an invitation.
Never resist the unfamiliar.
Never fail to be polite.
And never outstay your welcome.

Offline MeWonUo

  • Hero Member
  • *
  • Posts: 913
  • Activity:
    0%
  • Reputation Power: 11
  • MeWonUo barely matters.MeWonUo barely matters.
  • Gender: Male
  • Respect: +189
  • Referrals: 1
    • View Profile
Re: frneo's Armor Crafter v0.2 08/30/11
« Reply #11 on: August 30, 2011, 07:16:19 PM »
+1
Is it even possible to look for resists lower or equal to 0? heh

Glad it's working for you now!

Cheers

neo

You can in Canada. :)

Offline Canuker

  • Sr. Member
  • *
  • Posts: 479
  • Activity:
    0%
  • Reputation Power: 7
  • Canuker has no influence.
  • Respect: +70
  • Referrals: 2
    • View Profile
Re: frneo's Armor Crafter v0.2 08/30/11
« Reply #12 on: August 30, 2011, 07:18:30 PM »
+1
It's picked up 12 out of 167 so far.  All are hitting for minimum resist but I've not seen a 17 19 18 18 18 (place 0's on 4 of the 5...)
Nope!  I'm doing what all the real PvPers do:  Scripting everything except the running away part!  I'm real good at that already...

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: frneo's Armor Crafter v0.2 08/30/11
« Reply #13 on: August 31, 2011, 04:12:56 AM »
+1
Frneo, have you considered integrating TM's looter with this script?  The looter is callable and you can define exactly what you want to keep with it, changing your rules to suit what you are making. 

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 NeoTopic starter

  • Prime Program
  • Elite
  • *
  • *
  • Posts: 823
  • Activity:
    0%
  • Reputation Power: 13
  • Neo barely matters.Neo barely matters.
  • Respect: +351
  • Referrals: 4
    • View Profile
Re: frneo's Armor Crafter v0.2 08/30/11
« Reply #14 on: August 31, 2011, 08:50:16 AM »
+1
Frneo, have you considered integrating TM's looter with this script?  The looter is callable and you can define exactly what you want to keep with it, changing your rules to suit what you are making.  


I was thinking of writing the code myself, to allow the user to input whatever combination of criteria he wanted to look for in the weapon, for future versions...

But I guess it would be easier to use TM's claw to do this, there would be no need to reinvent the wheel hehe...

Thanks for this, I'll try and see if I'm able to use it for future versions!

neo

PS: I found a bug in v 0.2. You can get stuck in a loop while making tools, if somehow you have more than 0 ingots and still not enough to make the tool. I'll write a fix for this and upload v0.3 in a few...
Never refuse an invitation.
Never resist the unfamiliar.
Never fail to be polite.
And never outstay your welcome.

Tags: