Author Topic: Pearls' Crafting Assistant  (Read 5384 times)

0 Members and 1 Guest are viewing this topic.

Offline PearlsTopic starter

  • Hero Member
  • *
  • Posts: 557
  • Activity:
    0%
  • Reputation Power: 13
  • Pearls barely matters.Pearls barely matters.
  • Respect: +65
  • Referrals: 1
    • View Profile
Pearls' Crafting Assistant
« on: July 20, 2014, 12:30:31 AM »
0
Code: [Select]
;===========================================================================
; Script Name: Pearls' Crafting Assistant
; Author: Pearls
; Version: 1.1
; Shard OSI/FS: OSI
; Revision Date: July 26, 2014
; Purpose: Craft woodland armor pieces with specific resists
;===========================================================================
; Thanks to MWinc. for the sub Cont_Timer, which really helps speed things up,
; and his method for evaluating resists.
;
; Also, thanks to everyone who took the time to write scripts and/or tutorials
; because without them i wouldn't have gotten this far!
;===========================================================================
; Instructions
;
; 1. You MUST have the following skills:
;    - 100 Carpentry
;    - 100 Arms Lore
;    - 100 Tinkering
; 2. Resource container containing the following items:
;    - Boards (regular)
;    - Bark Fragments
;    - Ingots
;    - At least 1 tinkering tool
; 3. Secure container to drop the crafted armor pieces into.
; 4. Both containers cannot be in backpack!
; 5. An axe in your backpack.
;
; Tips
;
; 1. I highly recommended using a good carpentry talisman!
;    Any non-exceptional crafted piece will be destroyed!
;    - Woodland Chest has a 70 bonus / 25 exceptional chance
;    - Other woodland armor have a 80 bonus / 35 exceptional chance
;
; How to setup the resists?
;
; 1. Some information on crafting to get you started:
;    - Base resist for woodland armor: 15 resist points
;      Exceptionally crafted: + 15 resist points
;      GM Arms Lore: + 5 resist points
;      -----------------------------------
;      = Total of 35 resists of which 20 are distributed randomly among
;      the different resists
;    - Note that the odds of getting 20 points on a single resist is
;      highly unlikely :)
; 2. For every resist you must setup a minimum and a maximum. You must
;    respect the base resists 5/3/2/3/2 for woodland armor though. So don't
;    set physical to 4 but a minimum of 5 :)
; 3. - Setting a resist's PRIMARY to TRUE means that it is required.
;    - Setting a resist's PRIMARY to FALSE means that it is optional.
;    - With the variable %secondary_required you can define how many
;      of the optional resists are required
; 4. Example
;
;    ; Physical resist
;    set %resist_1_min 5 ; 5
;    set %resist_1_max 9 ; 9
;    set %resist_1_primary TRUE
;    ; Fire resist
;    set %resist_2_min 3 ; 3
;    set %resist_2_max 3 ; 3
;    set %resist_2_primary TRUE
;    ; Cold resist
;    set %resist_3_min 10 ; 2
;    set %resist_3_max 20 ; 2
;    set %resist_3_primary FALSE
;    ; Poison resist
;    set %resist_4_min 10 ; 3
;    set %resist_4_max 20 ; 7
;    set %resist_4_primary FALSE
;    ; Energy resist
;    set %resist_5_min 10 ; 2
;    set %resist_5_max 20 ; 2
;    set %resist_5_primary FALSE
;    set %secondary_required 1
;
;    Here we have set physical and fire to TRUE so these are required.
;    5-9/3/x/x/x
;
;    Cold, Poison and Energy are set to FALSE so these are optional.
;    We have set secondary_required to 1 so we only need 1 to be valid.
;
;    9/3/11/6/6  VALID
;    6/3/7/15/4  VALID
;    8/4/11/6/6  INVALID
;    5/3/9/9/9   INVALID
;
;    All above examples have a total of 35 resists and respect their
;    minimum base resists!!!
;
;=========================================================================

I have written this script to craft woodland armor but i intend to expand this script in the future.
Have fun with it and give me some feedback here whenever you decide to use it.

If you want to use this at a bank, disable the following code and make sure you open your bankbox before starting this script.

Code: [Select]
finditem %container_ . %1 G_2
if #FINDKIND <> 1
{
  display ok We are not shooting 3-pointers in the NBA here...
  + $Please move closer to your container!
  halt
}

Some things i would like to add in the future:
- bank support
- integration with TM's claw looter
- user menu
- statistics
- all craftable armor/weapons/jewelry

There are 1 attachment(s) in this post. You must register and post an acceptable introduction to download
Pearls' Crafting Assistant v1.1.txt
« Last Edit: July 26, 2014, 10:03:43 AM by Pearls »
XII : "My happiness as a married man is directly related to the amount of sex I have which, in turn, requires that I pretend I like these movies every now and then and that it really doesn't bother me when she tells me about her problems but doesn't want me to give her a solution ;) "

Offline PearlsTopic starter

  • Hero Member
  • *
  • Posts: 557
  • Activity:
    0%
  • Reputation Power: 13
  • Pearls barely matters.Pearls barely matters.
  • Respect: +65
  • Referrals: 1
    • View Profile
Re: Pearls' Crafting Assistant
« Reply #1 on: July 26, 2014, 10:06:14 AM »
0
Released version 1.1:
- fixed bug where it would craft woodland legs instead of woodland gorgets
- fixed bug where it would run the script even though you didn't have axe in backpack
- added display message that triggers whenever the armor container is full

Looking for BETA-testers! :)
XII : "My happiness as a married man is directly related to the amount of sex I have which, in turn, requires that I pretend I like these movies every now and then and that it really doesn't bother me when she tells me about her problems but doesn't want me to give her a solution ;) "

Offline Crisis

  • Global Moderator
  • *
  • *
  • Posts: 3014
  • Activity:
    4%
  • Reputation Power: 41
  • Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.
  • Gender: Male
  • Scripting well enough to break things!
  • Respect: +206
  • Referrals: 2
    • View Profile
Re: Pearls' Crafting Assistant
« Reply #2 on: July 27, 2014, 09:25:34 AM »
0
I am working on crafting some leather armor at the moment, but will try this out sometime this week and let ya know how it works for me. Thanks for posting!

Offline PearlsTopic starter

  • Hero Member
  • *
  • Posts: 557
  • Activity:
    0%
  • Reputation Power: 13
  • Pearls barely matters.Pearls barely matters.
  • Respect: +65
  • Referrals: 1
    • View Profile
Re: Pearls' Crafting Assistant
« Reply #3 on: July 31, 2014, 03:03:30 AM »
0
I am working on crafting some leather armor at the moment, but will try this out sometime this week and let ya know how it works for me. Thanks for posting!

Cool!
XII : "My happiness as a married man is directly related to the amount of sex I have which, in turn, requires that I pretend I like these movies every now and then and that it really doesn't bother me when she tells me about her problems but doesn't want me to give her a solution ;) "

Offline PearlsTopic starter

  • Hero Member
  • *
  • Posts: 557
  • Activity:
    0%
  • Reputation Power: 13
  • Pearls barely matters.Pearls barely matters.
  • Respect: +65
  • Referrals: 1
    • View Profile
Re: Pearls' Crafting Assistant
« Reply #4 on: July 31, 2014, 03:27:20 AM »
0
Think i should mention that this script is currently not designed to stop once you crafted the item you are looking for.
I based it on the idea of crafting woodland armor that will be enhanced with heartwood, which gives out a random property.

Basically my workflow is:
- put few thousand of bark in secure (personally i put 2.5-5k)
- run this script till resource runs dry or armor container is full
- reforge with oak runic dovetail saw to get 5 hci (vicious/slaughter) or 5 dci (towering/aegis) on the armor piece => it's possible you end up with 4 hci, or even end up with 2 mods instead of 1 => trash :D
- POF armor piece to 255
- Imbue properties
- enhance with heartwood to get either +5 hci or +10 di

Hopefully i then end up with a uber 6 mod woodland armor piece :D

So it's possible to:
- end up with the wrong mod during reforging => trash
- forget to POF and started imbuing (which i am king at :P)
- break during enhancing
- enhance successfully but end up with wrong random mod


I'm bit busy atm but i'll try to add a better write-up to the script.
XII : "My happiness as a married man is directly related to the amount of sex I have which, in turn, requires that I pretend I like these movies every now and then and that it really doesn't bother me when she tells me about her problems but doesn't want me to give her a solution ;) "

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: Pearls' Crafting Assistant
« Reply #5 on: April 07, 2015, 10:01:28 AM »
0
Can anyone who has used/tested this script please post some feedback thank you.
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: