ScriptUO

Official ScriptUO EasyUO Scripts => Script Library => Resource Farming => Topic started by: Tidus on August 13, 2008, 05:30:39 AM

Title: Snow's Spined Leather Farmer
Post by: Tidus on August 13, 2008, 05:30:39 AM
***UPDATED to 4.0 BETA!!!!!***
Code: [Select]
;=======================================================================================================

;=======================================================================================================

; Script Name: Snow's Spined Leather Farmer

;                  Author: Snow

;                  Version: 4.0

;                  Shard OSI / FS: OSI

;                  Revision Date: 09/28/2010

;                  Public Release: 2008/08/12 (debug)

;==================================================================================================

;Special Thanks to:

;Wilk, for help finding ID's

;Cerveza, for use and abuse of his auto honor and attack Script

;XII for his Miner subs used for leather instead

;TM for the recall subs

;

;===========================================

; INSTRUCTIONS:

;

; Rune Book Set Up

; Place a rune to a bank of your choice in the 1st Slot

; and a rune to lizardman despise in slot 2.

;

; Items Needed:

; Butcher's War Cleaver in backpack.

; Bag inside your bank for placement of leather.

;==============================================

Okay. I am planning on resurrecting this script.  I want to add in the ability to attack with mages and clean up my attack subs.  I will need help on this because i ain't as good as i once was (thank you Toby Keith).

Also i will hopefully write a decent heal subscript so that people may heal themselves....

Planned Development:
Heal Script
Mage Attack
Defend against Dragons and higher end creatures
Sampire Attack

V 4.0 Info:
Added Mage Attack.
Heal script has been modified, however not fully tested.
This is only in Beta because it needs to be tested and tested.
I am no longer supporting 4.0  I will continue to support 3.6 as it was the original version.
4.0 Will remain as a download for others to tweak and modify as Mystix has done. Please feel free to beat the hell out of it to make it better and possibly fit to what others are wanting to do.

V 4.0A Info:
See http://www.scriptuo.com/index.php?topic=280.msg84152#msg84152
Mystix has just added CU support and fixed some typing errors on going to 4.0.
Title: Re: Snow's Spined Leather Farmer
Post by: Tidus on August 13, 2008, 11:12:06 AM
Instructions:

 This script will automatically Recall/Sacred Journey to your leather gathering spots and kill any Lizardmen within 5 spaces of you. After Each kill it will automatically carve the creature with the Butcher's War Cleaver and have the leather placed in your pack.  Once everything is killed and carved it will Recall/Sacred Journey to another place where it will then do the process over again. If at anytime you have more leather than the %leather setting it will Recall/Sacred Journey to the bank and place it into a bag in the bank and go back to your last location.

  Items needed in your pack:
   Butcher's War Cleaver
   Rune Book with Bank and Lizardman Runes.
   Bandages

  Items needed in your bank:
   A bag for placement of leather
   A bag for placement of arties
   Bandages
  Setting up your rune book:

   You will need to have 1 rune book of your choice. You can put as many bank runes at the beginning.  just change %bankrunes to the amount of bank runes you have.  The rest of the slots you can choose to fill up with how many runes you put into it.  in the %runeamount at the top you need to put in how many Lizardman runes you put into your book.

   Next you need to change %leather to a bit lower than the max amount of leather than your butcher's war cleaver will allow in your pack.  Mine'd at 149 stones before any leather and will go up to 196 spined leather, so i put my recall point at 175.

Healing:

This script auto grabs  bandages for you when you get low. The heal script will auto heal you at a certain point that you choose.  just change %hits.
Title: Re: Snow's Spined Leather Farmer
Post by: Pearls on August 13, 2008, 01:21:23 PM
Ill run it tomorrow, already set everything up to start ;) Ill let u know
Title: Re: Snow's Spined Leather Farmer
Post by: Tidus on August 13, 2008, 02:08:29 PM
thanks, your input is greatly appreciated.
Title: Re: Snow's Spined Leather Farmer
Post by: xxcaptainxx on August 13, 2008, 05:04:56 PM
i assume if i wanted to use this for other then spined i would just have to add some types of creatures and then bingo bango what ever leather i want.
Title: Re: Snow's Spined Leather Farmer
Post by: Tidus on August 13, 2008, 06:37:39 PM
yeah i can make it that way.  but lizardmen make it easier. when fighting drakes and dragons it can get hectic,so i don't suggest using a script for that.
Title: Re: Snow's Spined Leather Farmer
Post by: xxcaptainxx on August 13, 2008, 07:27:16 PM
true i was think more along the line of normal leather.. 
Title: Re: Snow's Spined Leather Farmer
Post by: Tidus on August 13, 2008, 07:30:19 PM
that is quite easy,  i'll have to add in also a weight checker to my script along with the leather checker, but it can be done.  i'll try to add it after i this script is fully tested and gone through debug.
Title: Re: Snow's Spined Leather Farmer
Post by: Tidus on August 15, 2008, 10:26:56 AM
UPDATED!
Title: Re: Snow's Spined Leather Farmer
Post by: Bullmoose on August 16, 2008, 04:38:19 AM
Nice Tidus Cant wait to try this one out.  Ty Much
Title: Re: Snow's Spined Leather Farmer
Post by: Pearls on August 16, 2008, 06:33:30 AM
I must say im growing really fond of it but it still needs improving ;)

Setup: chivalry, 10 recall runes for despise

Suggestions for the script:

- Add a second bank rune in case of blocked

- Add a minor arti drop bag in bank

- Im wearing a very good suit with high hpr, self repair, and dci. But when he wants to journey to the bank and there are still lizards around him, he would fizzle till he manages to journey out. Maybe make it so it would scan for ennemies in radius, kill them, journey out, drop off loot, go back and check for unlooted remaining corpses.
Also the healing doesnt always perform at times it needs it. In this case i had it happen if i didnt manually heal when he was trying to go to the bank, he would have died. Sometimes u have 8 lizards hitting you, so fizzling happens a lot.

- Main issue i found was that it would want to go to the bank and it supposedly was blocked or maybe possibly i was already standing on rune lizards 1 and it tried going back on it, rune is blocked and it went spamming bank xxx times really fast while being hit by lot of lizards without healing anymore. So if i would not have seen this, i basically would have ended up dead. It happens quite a lot actually.

- when its healing, it stops fighting, basically not a good thing, cos u start ending up in a loop of getting hit and healing and might end up dead depending on your suit and skill. Its hard to explain when healing doesnt happen, but it doesnt happen enough. Might want to run this script yourself for an hour and see all the things im
talking about.

- targetting the ennemies, he will target an enemy sitting 5 tiles away for example when theres already a lizard standing next to him. Better to hit the ennemies close first.

Basically u cant run this script unattended for longer then 5 mins or u end up dead.
I love the script but still needs work to it.
Title: Re: Snow's Spined Leather Farmer
Post by: Pearls on August 17, 2008, 01:58:24 AM
Another thing it does is when there are corpses on floor, it recalls to it, fights monsters, it will check all the corpses that were already there, 'you see nothing usefull to carve from the corpse', and not cut the ones you just killed.
Title: Re: Snow's Spined Leather Farmer
Post by: Tidus on August 18, 2008, 05:24:43 AM
Thanks for the feedback Pearls.  I am currently working on those changes, though it might take me a bit.  I'm leaving for Ohio tomorrow for a rememberance party for my uncle who is dying of cancer. One of those last visits kind of thing.

Anyways, i think i may have fixed them hitting you before you leave.  However i am having the problem of even though it isn't in the coding it will carve a corpse and try to recall to the same spot and then carve another corpse and do it again.  So i'm not sure on that one.  One thing i suggested for the mean time to a friend who i mainly wrote this for is to make a char with magery to recall and just put on protection.   That is just a temp fix though.  On the minor arties.  I need a list of what actually drops and possibly their Kind ID's so i can add that part into the drop.

I think the healing script might have to be a secondary script to run.  Inside the script i don't know how to keep him attacking and healing otherwise.

I have no clue how to make him target something close as apposed to something within the range.

I really could use some help on the possibilites of coding some of the problems that Pearls discovered. Thank you.
Title: Re: Snow's Spined Leather Farmer
Post by: Tidus on August 18, 2008, 06:06:17 PM
Updated with V1.2

Reread Instructions because they have changed.
Title: Re: Snow's Spined Leather Farmer
Post by: Tidus on August 19, 2008, 09:51:41 AM
fixed a small bug in V1.2    The bug was in the recall and so now it works great.  ReDownload V1.2 if you DL'd it.
Title: Re: Snow's Spined Leather Farmer
Post by: Tidus on August 19, 2008, 11:54:37 AM
updated to V1.3
Title: Re: Snow's Spined Leather Farmer
Post by: Pearls on August 19, 2008, 02:12:34 PM
Ill have time on thursday normally to test this ;) Ill let u know.
Title: Re: Snow's Spined Leather Farmer
Post by: Tidus on August 19, 2008, 05:20:33 PM
okay.  this version should be alot better :)
Title: Re: Snow's Spined Leather Farmer
Post by: Pearls on August 20, 2008, 03:25:02 AM
Ill edit later:

1/ I left the script unattended for 20 mins and when i came back, it was sitting on same spot doing nothing. It killed monsters but i think its just because im in warmode and monsters attack me. Not sure why its stuck in this loop.

Code: [Select]
{
   finditem %monster G_2
   set %target #findID
   set #ltargetID #findID
   set #ltargetKind 1
   repeat
         event macro 27 0
   until #enemyid = n/a
    }
    until %fullheal in #sysmsg || %lilheal in #sysmsg || %retry in #sysmsg || %tryagain in #sysmsg || %wait in #sysMsg

2/ Another thing that happened is when you reach your max weight or close to it, and there are still quite a few monsters around, it will kill the monsters, cut them all, leave the excess leather on corpse. After this it journeys out.

Otherwise i havent seen any bugs so far, but im short in time today to test thoroughly. Ill let it run over a larger span of time tomorrow.
Anyways, glad to see so much improvement in the script already ;) Ill look into the ID's from the arties, so u can put it in default.

10th anni sculpture: RSW
breastplate: QKQ
gauntlets: MKQ
jaana's staff: QMH
Title: Re: Snow's Spined Leather Farmer
Post by: Tidus on August 21, 2008, 08:01:24 AM
Okay i think i have fixed the flaggin problem.   On the cutting of leather issue. With the butcher's War Cleaver you can only cut so much leather before it puts it on the corpse.  When i have 105/500 weight on me i can cut 225 leather and so i put the banking at 175 by setting  %leather at the top to set %leather 175.

Updated.  Still V1.3 just has the fix.
Title: Re: Snow's Spined Leather Farmer
Post by: Pearls on August 22, 2008, 02:16:25 AM
Not sure if V1.3 is updated yet, still having same problems i mentioned before. It gets stuck in that code.

Also noticed 2 more things:
- when its getting out of bandages (my case it had 2 left), it went to bank, moves around the 2 bandages in the backpack once, but never drags out of bank, recalls out, monster targets, notices it doesnt have bandies, back to bank, and gets stuck in a loop.
- another thing was ghosted spined leather, basically just went back and forth to the bank to drop off leather it didnt even have in backpack.
Title: Re: Snow's Spined Leather Farmer
Post by: Bullmoose on August 22, 2008, 03:23:24 AM
ok i got it all everything all set up I'll give a good run this weekend
Title: Re: Snow's Spined Leather Farmer
Post by: Tidus on August 22, 2008, 07:59:16 PM
I haven't had a ghosting problem yet.  I've even ran this at a ping of 240 and still had it work.  Let me know if you have a ghosting problem multiple times and i will look into it

Going to post V1.4 soon... still testing it.
Title: Re: Snow's Spined Leather Farmer
Post by: Cstalker on August 23, 2008, 01:55:50 AM
Found a small bug in your target loop, you didnt put the {} around the repeat, until loop.

Code: [Select]
sub target
findItem %monster G_5
if #findKind = -1
      return
set %target #findID
set #ltargetID #findID
set #ltargetKind 1
set %flagwait ( #sCnt + 50 )
repeat
      event macro 27 0
      gosub checkheal
      if #result = #true
         gosub heal
until %flagwait < #sCnt || #enemyid = n/a
wait 10
return

should be

Code: [Select]
sub target
findItem %monster G_5
if #findKind = -1
      return
set %target #findID
set #ltargetID #findID
set #ltargetKind 1
set %flagwait ( #sCnt + 50 )
repeat
      {
      event macro 27 0
      gosub checkheal
      if #result = #true
         gosub heal
      }
until %flagwait < #sCnt || #enemyid = n/a
wait 10
return

also ran it thru the SUO error check and got this
Code: [Select]
Method count: 55
Command count: 55
*** Pass 1 - Label accounting:
*** Warning - Tag _opensecure: - Line 679 already exists.  First occurance: 641
*** Error - Line 700 Close brace has no opening brace.
*** Warning - SUBROUTINE tm_travelfromnamedrunebook - Line 380 unused
*** Warning - SUBROUTINE tm_randomrunebooktravel - Line 426 unused
*** Warning - SUBROUTINE tm_travelfromobject - Line 451 unused
*** Warning - SUBROUTINE adjmaxweight - Line 708 unused
*** Warning - SUBROUTINE healtest - Line 778 unused
*** Warning - GOTO _opensecure: - Line 647 has no matching tag
*** Warning - GOTO _opensecure: - Line 684 has no matching tag
Subroutine labels = 22
Tag labels = 16
66 Code block(s).
8 Warnings(s) encountered.
*** Pass 2 - Execution [SYNTAXCHECK]
1 Error(s) encountered.

Man i love this program, hope it will be able to run them soon, i hate coping back and forth to euo :)
Title: Re: Snow's Spined Leather Farmer
Post by: Tidus on August 23, 2008, 07:14:40 AM
you don't need the { around it as long as it tabbed and between the repeat and until.  i looked through some of TM's and they don't have{} around them. and i'll check out the rest of the codes :) and i'll check the syntax.
Title: Re: Snow's Spined Leather Farmer
Post by: Tidus on August 23, 2008, 07:58:05 AM
Updated to V1.4 (added the arti drops to be moved to bank)     Hopefully this one is better :)
Title: Re: Snow's Spined Leather Farmer
Post by: Pearls on August 23, 2008, 11:25:29 AM
Runebook setup: rune 1 bank rune 2 bank, rune 3-... despise. I start script, set all up, it goes to rune 3, didnt kill anything cos no targets, goes to bank, spams bank bank bank bank...
Title: Re: Snow's Spined Leather Farmer
Post by: Tidus on August 23, 2008, 06:49:52 PM
it is doing it to me when it comes to getting the bandies if you have no bandies in your pack it goes to the bank and spams.  I can not get it to open the bank and look for the bandies and grab them.
Title: Re: Snow's Spined Leather Farmer
Post by: Pearls on August 24, 2008, 01:22:37 PM
Still gets stuck in that code i posted above. Sorry i cant be of more help with it...
Title: Re: Snow's Spined Leather Farmer
Post by: Cstalker on August 24, 2008, 04:44:10 PM
you don't need the { around it as long as it tabbed and between the repeat and until.  i looked through some of TM's and they don't have{} around them. and i'll check out the rest of the codes :) and i'll check the syntax.

Wow I learn something new every day.
Title: Re: Snow's Spined Leather Farmer
Post by: TrailMyx on August 24, 2008, 04:50:43 PM
you don't need the { around it as long as it tabbed and between the repeat and until.  i looked through some of TM's and they don't have{} around them. and i'll check out the rest of the codes :) and i'll check the syntax.

Wow I learn something new every day.

It doesn't even need to be tabbed.  If you think about it, repeat/until is an implied code block, so it does make some sense that Cheffe chose to code it that way.  That's how I implemented it in ScriptUO as well. 
Title: Re: Snow's Spined Leather Farmer
Post by: Tidus on August 24, 2008, 07:59:22 PM
Fixed V1.4  It now grabs the bandies with no problems.  Shouldn't go to the bank and spam anymore.  Still working on healing. Might just have to take it out and have you run someone else's.  Sorry.  But i'm not giving up!

So the 1.4 should be the correct one.
Title: Re: Snow's Spined Leather Farmer
Post by: Bullmoose on August 25, 2008, 03:19:07 AM
OK Ran it all night. with no problems. Hit around 25k in hides and 5 arties. My only suggestios would be to either widen the range a little instead of 5 tiles. Or increase the wait time before recalling away from a spot that would give the other creatures in the area time to target you. Hence more hides per spot. But other then that this script works great nice job Tidus
Title: Re: Snow's Spined Leather Farmer
Post by: TrailMyx on August 25, 2008, 03:29:19 AM
OK Ran it all night. with no problems. Hit around 25k in hides and 5 arties. My only suggestios would be to either widen the range a little instead of 5 tiles. Or increase the wait time before recalling away from a spot that would give the other creatures in the area time to target you. Hence more hides per spot. But other then that this script works great nice job Tidus

Where are you farming?
Title: Re: Snow's Spined Leather Farmer
Post by: Pearls on August 25, 2008, 04:59:10 AM
OK Ran it all night. with no problems. Hit around 25k in hides and 5 arties. My only suggestios would be to either widen the range a little instead of 5 tiles. Or increase the wait time before recalling away from a spot that would give the other creatures in the area time to target you. Hence more hides per spot. But other then that this script works great nice job Tidus

That really surprised me, since i always end up stuck in that small code i posted earlier. Ill try remarking my runes in diff spots and see if that fixed the problem somehow.

*edit* seems to work fine now, from what ive seen. Still need to remark one rune since a lizard gets stuck behind a pillar, then it just waits there, gonna move the rune up a bit. Should work perfect then ;) Great job Tidus. Still not sure why it got stuck in that code...
Title: Re: Snow's Spined Leather Farmer
Post by: Tidus on August 25, 2008, 07:03:16 AM
I found the reason why it got stuck in the code and i fixed it :)  i forgot one little thing in it. Don't remember what but i found it. If anything else goes haywire let me know.  If any suggestion on the healing let me know. 
Title: Re: Snow's Spined Leather Farmer
Post by: Tidus on August 25, 2008, 07:06:07 AM
Okay, next project on this one is to get regular leather and horned.  I'm sure you can find a spot with a wyvrnn that isn't around any other creatures.  and regular leather is easy.  So if you see a 2.0 that is what it will have in it.
Title: Re: Snow's Spined Leather Farmer
Post by: Pearls on August 25, 2008, 07:37:49 AM
Regular leather, maybe gaman's? They probably drop a low amount of leather, but u could farm the horns as well at same time. I heard they dropped the loot from the quest? Is that true?
Title: Re: Snow's Spined Leather Farmer
Post by: Tidus on August 25, 2008, 07:45:36 AM
No idea.  I am not really a quester.  Trying to get back into things like that.  Trying to pull away from PvP as much as possible to bring back the full aspects of the game.  So if anyone has that answer i would love to know. :)
Title: Re: Snow's Spined Leather Farmer
Post by: Bullmoose on August 25, 2008, 04:45:21 PM
I'm running in oh i cant tell you sorry
Title: Re: Snow's Spined Leather Farmer
Post by: Tidus on August 25, 2008, 04:55:25 PM
found a problem.  Spined, horned, barbed, regular...all the same item types.  So i need to figure out how it can differentiate between them.
Title: Re: Snow's Spined Leather Farmer
Post by: rana70 on August 25, 2008, 05:09:53 PM
just do a finditem on it
and check the #findcol to figure out what type you have got !
Title: Re: Snow's Spined Leather Farmer
Post by: Tidus on August 25, 2008, 05:32:04 PM
Ty rana. i'll see what i can do on it.
Title: Re: Snow's Spined Leather Farmer
Post by: rana70 on August 25, 2008, 05:39:52 PM
put a few if #findcol into your checkleather sub,
this would be a good place to count up what you just got in the corpse

#findindex will be your friend to get thru all colors ;-)



Title: Re: Snow's Spined Leather Farmer
Post by: rana70 on August 25, 2008, 06:08:44 PM
jst an example how you could do it :-)

Code: [Select]
; Check my Backpack for leather color

  Finditem JJG C_ , #BACKPACKID
  if #FindCnt > 0
    {
     Set #FindIndex 0
     Repeat
      Set #FindIndex #FindIndex + 1
     if #FindCol = 0 ; Regular Leather
      Set %Regular_Leather #FindStack
     if #FindCol = 2220 ; Spined Leather
      Set %Spind_Leather #FindStack
     if #FindCol = 2129 ; Barbed Leather
      Set %Barbed_Leather #FindStack
     if #FindCol = 2117 ; Horned Leather
      Set %Horned_Leather #FindStack
     Until #FindIndex = #FindCnt
    }
   
    Display You have $ %Regular_Leather Regular $ %Spind_Leather Spinded $ %Barbed_Leather Barbed $ %Horned_Leather Horned
    halt
Title: Re: Snow's Spined Leather Farmer
Post by: Pearls on August 26, 2008, 06:48:28 AM
Sorry Tidus but its not fully debugged yet m8. Still gets stuck in the heal sub, and it cant handle situations like in the picture, it just stays put when this happens.
Title: Re: Snow's Spined Leather Farmer
Post by: Nicar on August 26, 2008, 06:55:13 AM
Code: [Select]
sub heal
finditem ZLF c_ , #backpackid  ; <-----------------------HERE
if #findkind <> -1
{
  set #lobjectId #findId
  event macro 17
  target 5s
  event macro 23
  repeat
    {
      finditem %monster G_2
      set %target #findID
      set #ltargetID #findID
      set #ltargetKind 1
      repeat
        event macro 27 0
      until #enemyid = n/a
    }
  until %fullheal in #sysmsg || %lilheal in #sysmsg || %retry in #sysmsg || %tryagain in #sysmsg || %wait in #sysMsg
}
return

This code seems to have some hang ups. You are finding bandages everywhere, and need to change it to what's pointed at above.  Also, if you're hurt and it's entering the heal sub, it's waiting a long time.. 5s from clicking your aid, till you target yourself. Once it gets past that, it's in a monster loop, first, the monsters within 2 tiles, must be dead, or walking away, and then, you must see one of the healing sys messages to get out. This may not be seen to a player that might be a vamp and not lose health, or, if you happen to get lucky and all these events fall into place.
I downloaded this code today, just right now, and this is the spots that Pearls is having troubles at, where he hangs up.
I just think the heal sub should be checking your health, making sure you are healed, not also checking to see if a monster isn't around you. It's a time sensitive sub, and if something is out of sync, then it gets stuck.
Title: Re: Snow's Spined Leather Farmer
Post by: Tidus on August 26, 2008, 07:31:03 AM
it is a time sensitive sub.  anything i do with bandies if it checks the health will cause it to heal you like a madman so that you don't actually get a heal. the speed in which it could possibly go through the sub would make it put another bandage on you before time is up. That is why i said i might have to throw all the healing subs out.

Also on the part where it gets stuck when there is a thing next to it stuck in that stuff. I tried to add an ignore, but it ignores it too soon and that is not a good thing.  I'll work on it my best,  but just remember.you sholdn't always AFK ;)   That's being naughty :)

Thanks for the feedback guys. i'll fix that heal part that i forgot to send to the backpack... i changed it before but then lost my changes and had to do itall over again and forgot to redo that.
Title: Re: Snow's Spined Leather Farmer
Post by: Tidus on August 26, 2008, 08:48:51 AM
jst an example how you could do it :-)

Code: [Select]
; Check my Backpack for leather color

  Finditem JJG C_ , #BACKPACKID
  if #FindCnt > 0
    {
     Set #FindIndex 0
     Repeat
      Set #FindIndex #FindIndex + 1
     if #FindCol = 0 ; Regular Leather
      Set %Regular_Leather #FindStack
     if #FindCol = 2220 ; Spined Leather
      Set %Spind_Leather #FindStack
     if #FindCol = 2129 ; Barbed Leather
      Set %Barbed_Leather #FindStack
     if #FindCol = 2117 ; Horned Leather
      Set %Horned_Leather #FindStack
     Until #FindIndex = #FindCnt
    }
   
    Display You have $ %Regular_Leather Regular $ %Spind_Leather Spinded $ %Barbed_Leather Barbed $ %Horned_Leather Horned
    halt


For my sub checkleather   this is how i have it now.  Will this work?

Code: [Select]
sub checkleather

  Finditem JJG C_ , #BACKPACKID
  if #FindCnt > 0
    {
     Set #FindIndex 0
     Repeat
      Set #FindIndex #FindIndex + 1
     if #FindCol = 0 ; Regular Leather
      Set %Regular_Leather #FindStack
     if #FindCol = 2220 ; Spined Leather
      Set %Spined_Leather #FindStack
     if #FindCol = 2129 ; Barbed Leather
      Set %Barbed_Leather #FindStack
     if #FindCol = 2117 ; Horned Leather
      Set %Horned_Leather #FindStack
     Until #FindIndex = #FindCnt
    }
set %stacks ( %Horned_Leather + %Barbed_Leather + %Spined_Leather + %Regular_Leather )
if %stacks > %leather
   set %stacks 0
   return #false
return #true
Title: Re: Snow's Spined Leather Farmer
Post by: Tidus on August 26, 2008, 02:44:40 PM
Okay... 2.0 is out and i took out the heal subs and made a secondary script to run with it.  I ran for an hour with no hiccups, but please let me know if anyone else has any and i'll dive into it.
Title: Re: Snow's Spined Leather Farmer
Post by: Nicar on August 27, 2008, 05:23:27 AM
Missing an arti type..   OSW    Map of known world.
Title: Re: Snow's Spined Leather Farmer
Post by: Tidus on August 27, 2008, 06:21:53 AM
TY. i dont know all the arti drops that happen there.  So if anyone has any extra types i missed please let me know.
Title: Re: Snow's Spined Leather Farmer
Post by: xxcaptainxx on August 27, 2008, 07:19:49 AM
why a butchers war cleaver this may be a silly question but not sure?
Title: Re: Snow's Spined Leather Farmer
Post by: Pearls on August 27, 2008, 07:35:01 AM
Butcher war cleaver has the advantage that you do not need to open the corpse, you just cut the corpse and the leather jumps into your backpack. The disadvantage is that this only works up to around 330 stones in your backpack, all the corpses you cut after that will leave the leather on the corpse.
Title: Re: Snow's Spined Leather Farmer
Post by: xxcaptainxx on August 27, 2008, 07:38:20 AM
cool.  in and older post you said 2.0 would have cow and other support for other leather.  on my silly server you can't recall in dungeons so i don't have a place to find lizardmen.
Title: Re: Snow's Spined Leather Farmer
Post by: xxcaptainxx on August 27, 2008, 07:54:55 AM
i am on a free server so you may just ignore what i say ...   but i have a problem were it will attack something and then by the time it gets to you your recalling out.
Title: Re: Snow's Spined Leather Farmer
Post by: Tidus on August 27, 2008, 08:12:45 AM
that would mean the script is not attacking it, instead it is aggroing you (it is choosing to flag on you).  It is only set to get a lizardman within 5 tiles of you.  Plus with a FS. It is hard to tell how they have things handled.  This is only set up for OSI.
Title: Re: Snow's Spined Leather Farmer
Post by: Tidus on August 27, 2008, 08:14:36 AM
Pearls, let me know if you have the problem of a stuck monster anymore. I set it to auto retarget after 30 seconds of being flagged and ignore that creature.  Hope it works out.
Title: Re: Snow's Spined Leather Farmer
Post by: xxcaptainxx on August 27, 2008, 08:33:25 AM
i actually added cows and such to the script and it will attack them and then while they are coming to me it recalls out
Title: Re: Snow's Spined Leather Farmer
Post by: Tidus on August 27, 2008, 08:39:14 AM
how far away are they.  Everything is set up to be 5 tiles.  Plus it might be also that since it is freeshard some of the coding isn't working right.
Title: Re: Snow's Spined Leather Farmer
Post by: Tidus on August 27, 2008, 09:13:01 AM
I fixed a typo in my coding.  Please redownload. Sorry everyone.
Title: Re: Snow's Spined Leather Farmer
Post by: TrailMyx on August 27, 2008, 09:44:02 AM
I fixed a typo in my coding.  Please redownload. Sorry everyone.

Hey, that's why there's a debug section!  ;)
Title: Re: Snow's Spined Leather Farmer
Post by: Tidus on August 27, 2008, 10:52:41 AM
and i used your debug on Scriptuo to find it...LOL...never noticed it in EUO only in SUO
Title: Re: Snow's Spined Leather Farmer
Post by: TrailMyx on August 27, 2008, 11:04:42 AM
and i used your debug on Scriptuo to find it...LOL...never noticed it in EUO only in SUO

Yeh, I've managed to find some silly typos by running the syntax checker in ScriptUO.  There was a bunch in my older scripts and I just got used to them being there and the odd results they produced.
Title: Re: Snow's Spined Leather Farmer
Post by: Nicar on August 28, 2008, 08:27:06 AM
Ok, so, issues with locations being blocked. I thought, well, must by lizardman.  Sometimes I am sure this is true, other times, it's because the script isn't sellecting the appropriate "next" rune, it is selecting the one that I am still at. I noticed this when it was being blocked, my mana was too low, so, i moved manually, and bam, recall to same spot I was at... so, moved around, it selected another location, new default set... recall, same freakin spot i was at.  :) 
Title: Re: Snow's Spined Leather Farmer
Post by: TrailMyx on August 28, 2008, 08:39:20 AM
Ok, so, issues with locations being blocked. I thought, well, must by lizardman.  Sometimes I am sure this is true, other times, it's because the script isn't sellecting the appropriate "next" rune, it is selecting the one that I am still at. I noticed this when it was being blocked, my mana was too low, so, i moved manually, and bam, recall to same spot I was at... so, moved around, it selected another location, new default set... recall, same freakin spot i was at.  :) 

Tidus, if you look at the #RESULT value that comes back from the TM_TravelFromRunebook sub, a #TRUE will tell you that there was an error and you should do something about it.  Right now it looks like you don't make a decision on a transport failure, but you can.
Title: Re: Snow's Spined Leather Farmer
Post by: Tidus on August 28, 2008, 10:19:37 AM
So the true will come about if something causes you to lose concentration or something is blocking?  I haven't even begun to try to understand your runebook subs...lol.. i look at them and start to go cross-eyed.  i did my best on what i could.  Any help on that would be great of how to make sure it understands the something is blocking and lose concentration
Title: Re: Snow's Spined Leather Farmer
Post by: Tidus on August 28, 2008, 10:45:25 AM
Ok, so, issues with locations being blocked. I thought, well, must by lizardman.  Sometimes I am sure this is true, other times, it's because the script isn't sellecting the appropriate "next" rune, it is selecting the one that I am still at. I noticed this when it was being blocked, my mana was too low, so, i moved manually, and bam, recall to same spot I was at... so, moved around, it selected another location, new default set... recall, same freakin spot i was at.  :) 

Tidus, if you look at the #RESULT value that comes back from the TM_TravelFromRunebook sub, a #TRUE will tell you that there was an error and you should do something about it.  Right now it looks like you don't make a decision on a transport failure, but you can.

I just made sure all my rune book subs had the #result = #true and had them send them to either sub recall or sub bank.  Was this what you were talking about?
Title: Re: Snow's Spined Leather Farmer
Post by: Tidus on August 28, 2008, 10:59:03 AM
I added V2.1  Compare it to V2.0 and let me know.  Both are still available for download.
Title: Re: Snow's Spined Leather Farmer
Post by: TrailMyx on August 28, 2008, 12:10:56 PM
One little issue you have is in your sub bank.  You have a recursive call there.  Instead of calling "gosub bank" from your bank sub, you should loop it there and not rely on the gosub for your loop.  Then you can put in a check to see if you are totally stuck:

Code: [Select]
sub bank
  set %retry 0
  repeat
    if %retry > 5 ; or make this whatever you want...
    {
      display ok Your bank rune positions are blocked
      stop
    }
    set %bankposition %bankposition + 1
    set %retry %retry + 1
    if %bankposition = 3
      set %bankposition 1
    gosub TM_TravelFromRuneBook %travel %bankposition %bankposition %yourRunebook
  until #RESULT = #FALSE
return

Also, this:

Code: [Select]
set !TM_HEAL = #FALSE
set !TM_loot_in_progress = #FALSE

should be this:

Code: [Select]
set !TM_HEAL #FALSE
set !TM_loot_in_progress #FALSE

Although you shouldn't even need those lines.
Title: Re: Snow's Spined Leather Farmer
Post by: Tidus on August 28, 2008, 01:26:27 PM
Quote
Also, this:


Code: Select All | Copy To Clipboard
set !TM_HEAL = #FALSE
set !TM_loot_in_progress = #FALSE

should be this:


Code: Select All | Copy To Clipboard
set !TM_HEAL #FALSE
set !TM_loot_in_progress #FALSE

Although you shouldn't even need those lines.


hehe.  that was from Cerveza's Auto Honor and Attack. Which is where i started this script from.  Just totally revised it.

Thanks for help on the bank sub. I'll fix it.
Title: Re: Snow's Spined Leather Farmer
Post by: Tidus on August 28, 2008, 01:31:06 PM
Okay, I fixed 2.1 with the changes that TM Suggested :)
Title: Re: Snow's Spined Leather Farmer
Post by: Tidus on August 28, 2008, 01:41:08 PM
Just had an ingenious Idea...me being a mathematics type of guy.  I am making 2.2 where you can put in as many bank runes as you want and as many monster runes as you want.  All you have to make sure is that all bank runes are at the front and all monsters after bank runes.  all you have to change is %bankrunes to how many bank runes you have and %runeamounts to how ever many monster runes you have.  Let me know what you think.  :)

** 2.2 is uploaded and ready for test.**
Title: Re: Snow's Spined Leather Farmer
Post by: Tidus on August 28, 2008, 08:02:41 PM
You all are going to hate me... But 2.3 is now out... the rest are now unavailable.  2.3 is the most stable..  it allows you to choose how many bank runes you have and monster... so overall more choices. The stuff i added for regular leather is in the Jhelom pen.  I also expanded how far it searches for monsters.
Title: Re: Snow's Spined Leather Farmer
Post by: Tidus on September 02, 2008, 07:16:43 AM
as far as i know the kinks have been worked out. Haven't heard anything from anyone in a few days.. so now is time for a break.  That way i can get my mind back so i can add menu's to the script :)  I sucketh at menus but soon.. after this little project...i'll be as good as XII ;)
Title: Re: Snow's Spined Leather Farmer
Post by: Tidus on September 11, 2008, 11:40:08 AM
UPDATED

I added 3.0 that gives Commodity Deed box support and a mana check.

The commodity deed box can be in your house (preferrably on your steps in front of your recall spot) so that it can find it and place your leather in there (it will also place all arties in there too).   the addition is %houserunes needed to be changed to however many house runes you put in your book and they must come after the bank runes.  So if you don't have bank runes just set %bankrunes to 0 and house runes to 1 or 2 and go from there. 

I think this will serve people's purpose a bit better.  Still working on getting the ability to go to a body and open it and loot all on the corpse.  I'm a sucker for easy and it is just easier to ignore the corpses and just have it auto placed in pack with the butcher's war cleaver.

let me know if you find any errors or would like to address something i need to change.
Title: Re: Snow's Spined Leather Farmer
Post by: Cstalker on September 12, 2008, 07:21:03 AM
Could you give me a rundown on how these new boxes are used? They are adding them to our shard and any info on it would be great.
thanks
Title: Re: Snow's Spined Leather Farmer
Post by: TrailMyx on September 12, 2008, 07:27:02 AM
It looks like Warlocke is going to be adding these to Lexia, CS. 
Title: Re: Snow's Spined Leather Farmer
Post by: Tidus on September 12, 2008, 07:47:39 AM
they work like your bank did for Commodity deeds.  You can make them and also turn them in for the leather in your box. So overall, better.  :)
Title: Re: Snow's Spined Leather Farmer
Post by: Cstalker on September 12, 2008, 07:48:30 AM
Yeah, just want to be sure he had all the facts. Talk with him a lot in chat and not really sure if he has access to ea still. Guess i should just ask him :)
NA, that would be too easy

Title: Re: Snow's Spined Leather Farmer
Post by: talkmill on September 29, 2008, 01:52:04 AM
I downloaded this and tested it a few days ago. Great work, works like a charm :)
Title: Re: Snow's Spined Leather Farmer
Post by: Blaze on October 19, 2008, 05:25:27 PM
I tried this yesterday & let it run for an hour! Worked great....
I ended up getting the 'Legs of Honor' Arti drop. When it was unloading at the bank I waited for them to get dragged out..
It didn't.... Then realised it's type wasn't in the 'set %arti' list.
I added GKQ to it! I Play on an OSI shard FYI.

Thanks for a great time saver!
Title: Re: Snow's Spined Leather Farmer
Post by: Beertje on October 25, 2008, 04:03:22 AM
From what I read this looks like a real gem. Can't wait to try it out on the freeshard I'm playing. Perhaps I'll try making it work with an Item Reduction Box  ;D
Title: Re: Snow's Spined Leather Farmer
Post by: bendel on November 09, 2008, 07:27:32 PM
Thank you so much
Title: Re: Snow's Spined Leather Farmer
Post by: Tidus on November 13, 2008, 01:21:08 PM
If you play a freeshard let me know.  If it works on your freeshard i'll post it on the first part of the page so that anyone who might play that same freeshard knows that it works for them.  I do not support Freeshards so it is good to know which ones it does work with.
Title: Re: Snow's Spined Leather Farmer
Post by: Tidus on November 13, 2008, 01:25:27 PM
This has finally been updated to 3.5  Fully Menu Driven.  Let me know what you all think.  I have had this on winuo for a bit but forgot to update SUO.  So here we go :)
Title: Re: Snow's Spined Leather Farmer
Post by: Nuwine on November 18, 2008, 10:56:12 PM
This looks very interesting to try, Hope to get around to to it soon!
Title: Re: Snow's Spined Leather Farmer
Post by: Peppar on November 19, 2008, 09:23:20 AM
Great script. Thanks :) Gonne get me back on my feet in no time ...moved from Siege ;)

Update :

I got some problems with it. It keeps recalling away before all mobs are dead and sometimes it just recalls in and out again . Also had a problem where it would
go in a loop recalling to the same place again and again.
Title: Re: Snow's Spined Leather Farmer
Post by: livenholy on November 19, 2008, 11:02:12 AM
I saw this on WINUO as well, looks to be a nice $$ maker I am pretty stoked to get it setup!
Title: Re: Snow's Spined Leather Farmer
Post by: Tidus on November 19, 2008, 12:31:59 PM
Great script. Thanks :) Gonne get me back on my feet in no time ...moved from Siege ;)

Update :

I got some problems with it. It keeps recalling away before all mobs are dead and sometimes it just recalls in and out again . Also had a problem where it would
go in a loop recalling to the same place again and again.

I haven't been able to figure out the reason it recalls in the same place.  the checks are specifically designed not to do that and yet it still does.  It was the same code, but when they sent in a publish i had this problem...  and if the mob might have gotten in the area right after the check it can also recall away.  I'll look into it when i get my computer repaired.
Title: Re: Snow's Spined Leather Farmer
Post by: livenholy on November 19, 2008, 02:13:48 PM
I have had the same problem with the miner script I've been using since the publish. Maybe if I figure it out I can help. I'm rather new to scripting though.
Title: Re: Snow's Spined Leather Farmer
Post by: iain on November 20, 2008, 08:25:18 AM
ill give this a try and let you know i get on in a few days, many thanks indeed
Title: Re: Snow's Spined Leather Farmer
Post by: Tidus on November 23, 2008, 08:14:31 AM
Updated to 3.6   :)
Title: Re: Snow's Spined Leather Farmer
Post by: Peppar on November 23, 2008, 08:55:26 AM
Sweet :) Many thanks. Btw you forgot to update to 3.6 inside the script ;)

Title: Re: Snow's Spined Leather Farmer
Post by: Beertje on November 27, 2008, 11:11:50 AM
Works well for me on RWUO Freeshard! Made a few adjustments (wither instead of melee, Item Reduction Box, magehealing before recalling) to suit my needs.
Title: Re: Snow's Spined Leather Farmer
Post by: Tidus on November 28, 2008, 08:02:45 AM
Sweet :) Many thanks. Btw you forgot to update to 3.6 inside the script ;)



Sounds like something i would do.  :)
Title: Re: Snow's Spined Leather Farmer
Post by: Tidus on December 02, 2008, 06:42:27 AM
If anyone could give me a list of all animals that they want in this script to skin.  I will do everything in my power to add them to the monster list.  I have everything that skins in Jhelom pen, along with Dragons Drakes Wyvrnns and Lizardmen.
Title: Re: Snow's Spined Leather Farmer
Post by: ODISSEO on December 11, 2008, 01:00:49 PM
Thanks!!! Great Work!!!
Title: Re: Snow's Spined Leather Farmer
Post by: Khameleon on February 21, 2009, 12:29:25 PM
I started to test this out... seems to need an extra delay in the recall sub..
my character uses SJ to recall, but when he recalls, he tries to Recall again and again, and again.
Title: Re: Snow's Spined Leather Farmer
Post by: Daeus on March 28, 2009, 08:42:36 PM
I'm having some troubles with this script and I can't figure out what I'm doing wrong. 

My toon SJs around to the spots, kills lizardmen, skins them, and then SJs to the next spot without looting the leather.



Also noticed if I'm surrounded by lizardmen, and target one outside of the circle around me, it just gets stuck.


I appreciate any help fixing these problems.

Daeus
Title: Re: Snow's Spined Leather Farmer
Post by: Daeus on March 28, 2009, 09:26:26 PM
Got the leather portion working.  Was using a butcher's knife, rather than a butcher's war cleaver.  Works great now!
Title: Re: Snow's Spined Leather Farmer
Post by: Petkiller on March 30, 2009, 07:21:57 AM
I used this to find the ID of stuff I wanted to skin:
DISPLAY OK Target the creature you wish to obtain a TYPE ID for.
SET #TARGCURS 1
WHILE #TARGCURS = 1
   WAIT 0
FINDITEM #LTARGETID
DISPLAY OK Last Type ID: #FINDTYPE
HALT
I then just added those IDs to the script.  I marked my runes in Fel for extra resourses. 


Title: Re: Snow's Spined Leather Farmer
Post by: Paulonius on April 10, 2009, 08:38:53 AM
I have a modified version of Jebbit's recall leather harvester that I run in Fel hunting giant serpents (30 spined hides each plus bones).  I use a sammy fencer to survive the multi giant sepent attack.  The character needs to be better equiped to deal with them, but the reward is worth the effort. I get unreasonable piles of spined and bone.

I will play with this one and give you some feedback.
Title: Re: Snow's Spined Leather Farmer
Post by: TrailMyx on April 10, 2009, 08:58:27 AM
How are you doing your looting?  I've noticed others are going crazy about the bag of sending, but with the CLAw you can BOS just about anything.
Title: Re: Snow's Spined Leather Farmer
Post by: Adenocard on June 27, 2010, 01:17:29 PM
Very Nice !! Does the job well
Title: Re: Snow's Spined Leather Farmer
Post by: laxarus on August 17, 2010, 06:35:09 AM
Very good and useful one. thx
Title: Re: Snow's Spined Leather Farmer
Post by: Cerveza on August 17, 2010, 06:44:51 AM
Laxarus - please read over the rules. You'll get that "restricted" access removed and be able to enjoy the site much more.
Title: Re: Snow's Spined Leather Farmer
Post by: _C2_ on August 17, 2010, 06:46:42 AM
Very good and useful one. thx

I guess it would be but you cannot even download it or try it yet.  Unless you acquired it through a policy violation.
Title: Re: Snow's Spined Leather Farmer
Post by: Tidus on August 17, 2010, 07:28:57 PM
hmmm...  they must be a good scripter and bypassed all of SMS and was able to get it :)
Title: Re: Snow's Spined Leather Farmer
Post by: Enuflogic on September 15, 2010, 12:48:45 PM
Tagging this so I can find it later and try this out.  I'm on a free shard so if it works for me I'll post my feedback once I have time to run through it.
Title: Re: Snow's Spined Leather Farmer
Post by: Tidus on September 28, 2010, 10:27:25 AM
Okay. I am planning on resurrecting this script.  I want to add in the ability to attack with mages and clean up my attack subs.  I will need help on this because i ain't as good as i once was (thank you Toby Keith).

Also i will hopefully write a decent heal subscript so that people may heal themselves....

Planned Development:
Heal Script
Mage Attack
Defend against Dragons and higher end creatures
Sampire Attack
Title: Re: Snow's Spined Leather Farmer
Post by: Tidus on September 28, 2010, 03:30:23 PM
Updated: Version 4.0Beta
Title: Re: Snow's Spined Leather Farmer
Post by: teruteru17 on October 01, 2010, 08:59:20 AM
nice script.
but i want to use 'Harvester's Blade'.
Title: Re: Snow's Spined Leather Farmer
Post by: Tidus on October 01, 2010, 11:36:20 AM
Butcher's war cleaver is used because it auto gathers all leather into your pack.
Title: Re: Snow's Spined Leather Farmer
Post by: Khameleon on October 01, 2010, 01:53:31 PM
right, harvester blade only good for feathers, not leather.
Title: Re: Snow's Spined Leather Farmer
Post by: teruteru17 on October 03, 2010, 12:59:46 PM
i see. i mean i want to gather Meats together.
how to change script to drop meats into secure box?
Title: Re: Snow's Spined Leather Farmer
Post by: asdman on October 14, 2010, 10:54:44 PM
What about freeshards that doesnt have that item, and i have a sampire so dont need bandages :(
Title: Re: Snow's Spined Leather Farmer
Post by: gruntman on April 17, 2011, 10:19:54 AM
is there a way to adjust the script so that it waits till the lizardmen are actually close to you then casts wither?
Title: Re: Snow's Spined Leather Farmer
Post by: kardelya on September 07, 2011, 03:40:15 AM
i didnt't find the script ? is it a problem only just me ?
Title: Re: Snow's Spined Leather Farmer
Post by: Cerveza on September 07, 2011, 03:48:22 AM
i didnt't find the script ? is it a problem only just me ?

It's just you. Please read the rules and you'll figure out why it's just you.

Just click HERE (http://www.scriptuo.com/index.php?topic=1750.0)
Title: Re: Snow's Spined Leather Farmer
Post by: kardelya on September 07, 2011, 04:10:11 AM
i didnt't find the script ? is it a problem only just me ?

It's just you. Please read the rules and you'll figure out why it's just you.

Just click HERE (http://www.scriptuo.com/index.php?topic=1750.0)

ok understand,i will give some introduction,but where ? where will i write my introduction ?

thanks  ;D
Title: Re: Snow's Spined Leather Farmer
Post by: formerlyrara on March 01, 2012, 06:02:15 PM
Had a couple problems with this script that wasnt able to figure out, I set up as a dexxer to work on some normal and spined leather gathering, followed the instructions not a problem, was using secure at house within 2 tiles. Set the rune location number appropriately. When i hit play it would first go to the next house rune (which wasnt the one marked) so i made new runebook with one rune only in it set it in the menu again. It attempted to go to a blank spot in the book ( spot 1 was set but was going to spot 2). After i let it continue it would go to the spot for leather gathering ( wouldnt start with the first marked rune but the next in line ). For some reason it attempted to fight using spells rather then with weapon. Kept saying you do not have this spell * correct i dont i am a dexxer no magery *. I understand this scripts last reponse was more then 120 days but curious if this has been used by anyone and something i am obviously missing was fixed and not posted? I downloaded a previous version of the script that was purely dexer and it continued to do the same thing. Didnt try the spell portion - it did attack the animals and loot them etc but the recalling part was very inaccurate. Any help or advise to help me troubleshoot would be appreciated!
Title: Re: Snow's Spined Leather Farmer
Post by: Tidus on March 01, 2012, 06:36:05 PM
Are you using it on OSI or on a freeshard?
Title: Re: Snow's Spined Leather Farmer
Post by: formerlyrara on March 01, 2012, 06:49:51 PM
OSI Shard, up to date on everything, tried it with and without UOA. Made new runebook and marked fresh runes just in case something was amiss. Was not using artifact weapons, just a basic katana GM crafted.
Title: Re: Snow's Spined Leather Farmer
Post by: Tidus on March 06, 2012, 06:34:13 PM
I will test when i am back from Korea. I have not updated in a long while, so might be something with the new patches and everything.
Title: Re: Snow's Spined Leather Farmer
Post by: formerlyrara on March 07, 2012, 03:53:33 AM
I really do appreciate it and i am willing to help out anyway i can, its a great looking script and want to use it to the max.
Title: Re: Snow's Spined Leather Farmer
Post by: Mythix on June 17, 2012, 09:19:07 PM
I found a couple of things that might need to be updated.
Line 145 has a misspelling that might mess things up for dexxers:
Code: [Select]
until !tagetdead = #true ;<----should be !targetdead


Also, in line 73-74, it reads:
Code: [Select]
if #findtype <> %easytarget
    set %easykill #true
Shouldn't it be :
Code: [Select]
if #findtype notin %easytarget
          set %easykill #false
Also, the menu is a little offcenter for reporting the leather gathered.
Starting at line 1330, the y-coords should be:
Code: [Select]
menu Text BarbedNumber 212 356 %barbedfinal
  menu Text HornedNumber 212 332 %hornedfinal
  menu Text SpinedNumber 212 308 %spinedfinal
  menu Text RegularNumber 212 284 %regularfinal

I really enjoy this script!  I've modified it to bring my Cu along and it seems to be working smoothly.
I also added a little walk after landing at a spot to check around for %monsters before recalling off to the next spot. 
Thanks for your hard work!   
FYI, I'm on a freeshard, so I can't speak about the problems the above poster was having.  Works great for me!
Title: Re: Snow's Spined Leather Farmer
Post by: Tidus on June 17, 2012, 11:11:18 PM
Please post your changes in file and put on here. I don't fully support this script anymore so that way people can atleast get your changes and additions. Just name it accordingly.
Title: Re: Snow's Spined Leather Farmer
Post by: Mythix on June 18, 2012, 05:35:47 AM
Please post your changes in file and put on here. I don't fully support this script anymore so that way people can atleast get your changes and additions. Just name it accordingly.
Allright.  Here is my modified script.
This has some defaults already programmed into the menu.  It also will identify your pet at the setup and bring it along on the hunt.  I've also increased the search radius at each recall spot.  Make sure you have at least 8 tiles free to the Northwest (directly in front of character) to walk to look for mobs.  I've also included the itemtypes for Gamans, Tsukiwolves and Direwolves. 

Title: Re: Snow's Spined Leather Farmer
Post by: madatu on August 05, 2012, 05:41:54 PM
i was playing with this again. I dont want to use a pet or magery how to i remove the default. Removing the check in the magery button didnt work nor having it checked either. I also dont want to use a pet. can a box be added to do this rather than making it default.
Title: Re: Snow's Spined Leather Farmer
Post by: mceyhans on November 17, 2018, 06:38:31 AM
thnks for script
Title: Re: Snow\\\'s Spined Leather Farmer
Post by: 244kal45 on October 23, 2021, 10:20:40 AM
thanks for scripttt

Post Merge: October 23, 2021, 10:30:56 AM
Please post your changes in file and put on here. I don't fully support this script anymore so that way people can atleast get your changes and additions. Just name it accordingly.
Allright.  Here is my modified script.
This has some defaults already programmed into the menu.  It also will identify your pet at the setup and bring it along on the hunt.  I've also increased the search radius at each recall spot.  Make sure you have at least 8 tiles free to the Northwest (directly in front of character) to walk to look for mobs.  I've also included the itemtypes for Gamans, Tsukiwolves and Direwolves.

i cant download

Post Merge: October 23, 2021, 10:36:53 AM
***UPDATED to 4.0 BETA!!!!!***
Code: [Select]
;=======================================================================================================

;=======================================================================================================

; Script Name: Snow's Spined Leather Farmer

;                  Author: Snow

;                  Version: 4.0

;                  Shard OSI / FS: OSI

;                  Revision Date: 09/28/2010

;                  Public Release: 2008/08/12 (debug)

;==================================================================================================

;Special Thanks to:

;Wilk, for help finding ID's

;Cerveza, for use and abuse of his auto honor and attack Script

;XII for his Miner subs used for leather instead

;TM for the recall subs

;

;===========================================

; INSTRUCTIONS:

;

; Rune Book Set Up

; Place a rune to a bank of your choice in the 1st Slot

; and a rune to lizardman despise in slot 2.

;

; Items Needed:

; Butcher's War Cleaver in backpack.

; Bag inside your bank for placement of leather.

;==============================================

Okay. I am planning on resurrecting this script.  I want to add in the ability to attack with mages and clean up my attack subs.  I will need help on this because i ain't as good as i once was (thank you Toby Keith).

Also i will hopefully write a decent heal subscript so that people may heal themselves....

Planned Development:
Heal Script
Mage Attack
Defend against Dragons and higher end creatures
Sampire Attack

V 4.0 Info:
Added Mage Attack.
Heal script has been modified, however not fully tested.
This is only in Beta because it needs to be tested and tested.
I am no longer supporting 4.0  I will continue to support 3.6 as it was the original version.
4.0 Will remain as a download for others to tweak and modify as Mystix has done. Please feel free to beat the hell out of it to make it better and possibly fit to what others are wanting to do.

V 4.0A Info:
See http://www.scriptuo.com/index.php?topic=280.msg84152#msg84152
Mystix has just added CU support and fixed some typing errors on going to 4.0.

thanks
Title: Re: Snow's Spined Leather Farmer
Post by: Crisis on October 23, 2021, 09:47:50 PM
You may want to try making a "good introduction" in the introduction section to get that pesky "restricted" tag removed so you can download scripts.
Title: Re: Snow's Spined Leather Farmer
Post by: Thargorff on November 22, 2022, 04:54:53 PM
Greeting, could someone better educated into scripting than me take a look in this script? It runs great for most of the time but keep getting stuck on the char casting over and over without picking up the target. I am not sure if its due to lag or something else. when I step into the script, it is always in the same area in the picture attached. I am using 4.0 version with mage, all setting are default in the uo, thank you in advance
Title: Re: Snow's Spined Leather Farmer
Post by: Gaderian on November 23, 2022, 01:23:41 PM
The zip file with version 4.0 tests for the target to still be within 8 tiles.
It will continue to cast fireball (That is my guess for event macro 15 17, though I didn't look it up) until the target either dies or wanders outside the 8 tile range.

The version 4.0A actually looks for the target to be up to 22 tiles away. I think most cast ranges are about 10 tiles. It is possible that the creature wanders away outside the target range and you would get stuck in that loop.

This is just reading the code, not actually testing it. You mentioned it works for a while and then fails only occasionally, right? Or do you mean it always fails when trying to cast spells at the target?
Title: Re: Snow's Spined Leather Farmer
Post by: Thargorff on December 03, 2022, 06:54:10 AM
hey @Gaderian, sorry was sick, didnt have much power to play anything. Anyhow, I checked, looks I am using the latest xx.xxA version. Possibly you are right , when the target wanders far away, script looses a target. One thing i noticed, it gets stuck in that casting loop over and over even if i try to go around and approach all target around. So, not sure if it means the target was killed but script didnt catch it because it was killed too far away.. The only was I can get this loop stopped is to restart the script or go into war mode and attack something. I love this little script, obviously needs some safeguards, and have to stay on top of it. I let it run usually if i do something else on separate client, otherwise cant leave afk for long. No many scripts out there with mage attack and recall for leather, thank you for checking it
Title: Re: Snow's Spined Leather Farmer
Post by: Gaderian on December 04, 2022, 10:58:28 AM
So in the version you are using, it either needs to keep close enough as the target wanders off or give up on it and move on to a new target.
Easiest solution is to pretend the target died when it wanders off. In the testtarget routine... there is a 'finditem ... G_22' or similar statement. It is looking for the last thing you were attacking and checking if it is more than 10 tiles from you. The 22 is 22 tiles. It will find it and assume it is alive, but doesn't move any closer to it when it is more than 10 tiles away.

Either change the "g_22" to "g_10" or add some kind of movement to get closer to the target. That should help.