Author Topic: Last item craft script  (Read 3999 times)

0 Members and 1 Guest are viewing this topic.

Offline NadoedaloTopic starter

  • Jr. Member
  • **
  • Posts: 10
  • Activity:
    0%
  • Reputation Power: 0
  • Nadoedalo has no influence.
  • Respect: 0
  • Referrals: 0
    • View Profile
Last item craft script
« on: September 14, 2009, 07:02:21 AM »
0
Quote
; Set this up
Set %tool TBG ; With what do you want to craft
Set %rawMaterial ENK ; Resourse type wich you will use to craft
Set %stack 150 ; how much materials do you need to craft
Set %trash NSH ; crafted item
Set %secure HQLUWMD ; From where do you want to gain materials and tools
Set %secureForItems APGMKMD ; A place where you want to put crafted item . It can be also a trash barrel.
Set %skill Blac ; What skill do you want to train. See http://wiki.easyuo.com/index.php/ChooseSkill for a full list.
Set %skillValue 1064 ; What is the last gain to change item-craft-type. If you want to disable that - put more than 1200.
Set %DragOrSmelt Smelt ; Drag = drag, Smelt = smelt or cut.
Set %SmeltOrCut Smelt ; Cut = cut, Smelt = smelt.
Set %scissiors TGB ; scissiors type
; Do not touch this
chooseSkill %skill
if #skill >= %skillValue
{
      msg Last gain. Choose new item to craft and adjust the script again.
   halt
   }
finditem %rawMaterial C_ , #backpackid
If #findstack < %stack
{
      finditem %rawMaterial C_ , %secure
      Exevent Drag #findid %stack
      Exevent Dropc #backpackid
      wait 15
   }
finditem %tool C_ , #backpackid
   if #findcnt < 1
  {
      finditem %tool C_ , %secure
      if #findcnt > 0
    {
         Exevent Drag #findid
         Exevent Dropc #backpackid
      }
      else
    {
         display ok No more tools =(
      halt
      }
   }
set #lobjectid #findid
event macro 17 0
wait 15
click 330 465 ; Make last button position
finditem %trash C_ , #backpackid
if #findcnt > 0
{
   If %DragOrSmelt = Drag
  {
      Exevent Drag #findid #findstack
      Exevent Dropc %secureForItems
      wait 15
   }
   If %DragOrSmelt = Smelt
  {
      If %SmeltOrCut = Cut
    {
         finditem %scissiors
         set #lobjectid #findid
         event macro 17 0
         wait 5
         finditem %trash C_ , #backpackid
         set #ltargetid #findid
         set #ltargetkind 1
         event macro 22
      }
      If %SmeltOrCut = Smelt
    {
      finditem %tool C_ , #backpackid
         set #lobjectid #findid
         event macro 17 0
         wait 5
         click 80 400 ; Smelt item button position
         finditem %trash C_ , #backpackid
         set #ltargetid #findid
         set #ltargetkind 1
         event macro 22
      }
   }
}
Purpose : crafting items or for gains.
HowTO use: read comments.
Works for : any craft-related prof.
« Last Edit: October 07, 2011, 09:45:41 AM by Nadoedalo »

Scrripty

  • Guest
Re: Last item craft script
« Reply #1 on: September 14, 2009, 09:35:53 AM »
0
I believe there's crafting subs released that you could use, where you just pick the number your crafted item is on the menu, and page they are on in the menu itself and it will click them where ever the menu is on your screen.

Offline NadoedaloTopic starter

  • Jr. Member
  • **
  • Posts: 10
  • Activity:
    0%
  • Reputation Power: 0
  • Nadoedalo has no influence.
  • Respect: 0
  • Referrals: 0
    • View Profile
Re: Last item craft script
« Reply #2 on: September 15, 2009, 01:11:15 AM »
0
I believe there's crafting subs released that you could use, where you just pick the number your crafted item is on the menu, and page they are on in the menu itself and it will click them where ever the menu is on your screen.
Yes, it can be fully-automated. I'm working on it now. But i won't change the way how it is working - because craft gump can be changed somehow(really 20 px and you will need to change the whole script). It is easier to change only 1 button and choose few items to craft.
In features - add skill-stopping check, and some more make-last skills(like smelting iron items with salvage bag or in old way and moving items into a container(trash barrel)).

Tags: