ScriptUO

Official ScriptUO EasyUO Scripts => Script Library => Character skill advancement => Topic started by: razeial on July 20, 2012, 12:06:09 AM

Title: First Script! Raz's Full-Auto Bushido Trainer *updated 8/13/2012*
Post by: razeial on July 20, 2012, 12:06:09 AM
Ok guys, this my very first script, and I'm actually quite proud of it, so judge lightly.

What does this script do differently than other bushido trainers? Well, it constantly scans your paperdoll to see if you're holding a weapon. If it breaks, it will automatically pull another weapon of the same type from your backpack and equip it for you. I couldn't find a script out there to do what I wanted it to, and with bushido being such a slow gainer, i decided i'd read a few tutorials and I came up with this(with help from a guild mate)!
Code: [Select]
;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
; Script Name: Raz's Full-Auto Bushido Trainer
; Author: Razeial
; Version: 2.2
; Client Tested with: 7.0.27.7
; EUO version tested with: 1.5 v218
; Shard OSI / FS: EA/OSI
; Revision Date: 9/5/2012
; Public Release: 7/19/2012
; Global Variables Used: none
; Purpose: Will train bushido to 120 using Lightning Strike on a horse
;          (or llama, ostard, etc..}. It will also scan your paperdoll to see if you still have a
;          weapon in your hand (ie your previous weapon breaks) and will automatically pull another
;          weapon from your backpack and rearm it.
; Credits: Dxrom for allowing me to use his Pixel saving SUB and for pointing me in the right
;          direction! Paladin for his ScriptTimer Sub
;          A VERY special thanks to JustAnotherFace (JAF). Without him, this script would not have
;          come together. He took quite a bit of time to review the script, help me edit it, teach
;          me along the way, and made more efficient suggestions!
;Instructions: The script is set up so that you must have a HORSE to train on.
;              If you want to train on a cat, dog, llama, etc, you need to change the %mount
;              with the corresponding itemtype. If you aren't using Mace Fighting, then you
;              need to change the %weapon to the proper itemtype of whatever weapon you'll be
;              using to train with. You will also need a good deal of that particular weapon
;              in your backpack. I suggest 30 or 40 at a time. You can either craft them or
;              buy them from a blacksmith shop. I also recommend wearing a high Mana Ren and
;              Lower Mana Cost suit (wouldn't hurt to have Mana Inc on it also).
;
;              You need to be unguilded, in a Trammel-type Facet, with a tamed horse
;              (or other animal).
;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Changelog:

Version 1.0--7/19/12
Release!

Version 1.1--7/19/12
A few minor tweaks

Version 1.2--7/31/2012
Fixed a bug at low levels caused by failing to deliver lightning strike.
Redesigned the way lightning strike is toggled thanks to dxrom

Version 2.0--8/13/2012
Redesigned the Menu

Version 2.1 --8/30/2012
A few minor tweaks
Version 2.2 --9/5/2012
Fixed some script errors

What you must do for this script to work: You must modify the %weapon and %mount itemtypes to suit your needs. You will also need a bunch of the same weapon in your pack.
Title: Re: First Script! Raz's Full-Auto Bushido Trainer *updated 7/31/2012*
Post by: Endless Night on August 02, 2012, 09:20:11 AM
thank you for the submission razeial,  could someone please give this script a test run and post some feed back  please. thank you
Title: Re: First Script! Raz's Full-Auto Bushido Trainer *updated 7/31/2012*
Post by: razeial on August 05, 2012, 07:30:13 AM
Anyone tried this?
Title: Re: First Script! Raz's Full-Auto Bushido Trainer *updated 8/13/2012*
Post by: Go Go Gadget on August 18, 2012, 01:18:29 PM
If only i had the power to do so i would give it a wirl :) maybe better luck tomorrow
Title: Re: First Script! Raz's Full-Auto Bushido Trainer *updated 8/13/2012*
Post by: Kane12 on January 04, 2013, 07:09:15 PM
I have tried this script. Currently working up one char from 50 to 120 and a 2nd char from 81 to 120. So far no hickups. Works great. I will post later how long it took as well as how well it changes weapons (haven't got that far yet...still on my first weapon). I made the recommended 40 weapons to use.

Thanks
Title: Re: First Script! Raz's Full-Auto Bushido Trainer *updated 8/13/2012*
Post by: Crisis on March 06, 2013, 01:40:11 PM
I am really liking this script. It ran for 6 hours last night and I went from 50-83.2 and now been running a little over 10 hours and I have gone from 83.2 to 96.2 and no issues what ever. Awesome job!  :)
Title: Re: First Script! Raz's Full-Auto Bushido Trainer *updated 8/13/2012*
Post by: Crisis on March 07, 2013, 02:43:57 AM
Okay so went from 50 - 100 in about 27 hours. Script never stopped, grabbed new weapons fine, and I had no issues. Awesome script and I highly recommend it to others. It would be nice if it fed your horse from time to time to make sure it doesn't go wild. I did make sure to feed my horse every couple hours.
Title: Re: First Script! Raz's Full-Auto Bushido Trainer *updated 8/13/2012*
Post by: roadrunner on May 06, 2013, 03:29:30 AM
i REALLY wanted to use this script to train from 107-120.0, simply for th reload (re-arm new weapon) ability but i cannot get it to see a horse. i didn't know exactly where to add 'SF' horse ID into the script or i would have tried altering it.

anyone have suggestions?  (the popup 'you don't have an animal to train with, get one!' was as far as i got w/ it.) and also. i'll be using GM crafted bakuto weapons, will that cause any issues (known) ?
Title: Re: First Script! Raz's Full-Auto Bushido Trainer *updated 8/13/2012*
Post by: roadrunner on May 06, 2013, 03:44:07 AM
Nevermind guys & gals, i got an off-white horse and bakuto id is KDF. it's running like a charm now.  :)
i'll let ya know how it goes, but yeah, i would like to know how to set the horse color if anyone would be so kind. just for future use/ reference. thanks again for the help in advance!! ;D
Title: Re: First Script! Raz's Full-Auto Bushido Trainer *updated 8/13/2012*
Post by: roadrunner on May 08, 2013, 01:56:30 AM
OK, toon is 120.0! only interruptions in about 36 hours of continuous running was the script 'lost' the current weapon in use. (i made 40 bakuto to begin the run, all by same crafter, same wood, etc. it only used 25 of them to go from 107-120) and had me restart it. (msg: you're out of weapons! get more and start the script again) it happened twice but otherwise it worked perfect!

Ease of Use: 8 (requires specific mount & i had to add my weapon type)

Works as Posted: 8 (told me i was out of weapons but actually had more in main pack whole time)

i do recommend this script, just keep an eye on it or you could waste some valuable training time.
thanks for the script also, it made bushido a lot less dreadful. :)
Title: Re: First Script! Raz's Full-Auto Bushido Trainer *updated 8/13/2012*
Post by: Endless Night on October 08, 2013, 02:51:20 PM
Congratulations your Script has been moved to Script library
(If you feel the script is in the wrong section please send me a pm.)

Thank you for your submission.
Title: Re: First Script! Raz's Full-Auto Bushido Trainer *updated 8/13/2012*
Post by: The Ghost on October 08, 2013, 09:44:53 PM
Great work, Raz
  Simple and accomplish the job  in hand. 10/10
Title: Re: First Script! Raz's Full-Auto Bushido Trainer *updated 8/13/2012*
Post by: Xielax on May 02, 2014, 03:08:50 PM
Just used this script today. Works very fast for my toon. At 90 Bushido in less than 10 hours.
Title: Re: First Script! Raz's Full-Auto Bushido Trainer *updated 8/13/2012*
Post by: Tana on April 21, 2016, 04:01:26 AM
hey raz just wanted to say thanks for your scirpt i changed a few things to make this work on a spider while i was training my weapon skills it makes the script wait if the enemy has taken hits as to not kill your spider (since LS sometimes deals damage)

Code: [Select]
SUB TrainBushido
if #enemyhits < 100
{
repeat
wait 1
until #enemyhits = 100
}

simple yet effective

oh i also removed the part about mount needing to mount it since its a spider lol just wanted to save a little bit of time making a new char :)
Title: Re: First Script! Raz's Full-Auto Bushido Trainer *updated 8/13/2012*
Post by: Crisis on April 23, 2016, 08:27:19 AM
nice idea, I never thought about that when I used it.
Title: Re: First Script! Raz's Full-Auto Bushido Trainer *updated 8/13/2012*
Post by: The Ghost on April 23, 2016, 09:20:07 AM
Not sure How you can damage your pet because  in the last 7 years I have train Bushido and since using this build, I never  damage of kill a pet.   You need to be unguilded, in a Trammel-type Facet.

I do like the use of  Just wonder  did you just change the whole sub
Title: Re: First Script! Raz's Full-Auto Bushido Trainer *updated 8/13/2012*
Post by: gimlet on April 23, 2016, 10:23:39 AM
Trammel? What is that?
Title: Re: First Script! Raz's Full-Auto Bushido Trainer *updated 8/13/2012*
Post by: Tana on April 25, 2016, 03:54:08 PM
i was guilded yes and was only using it while i was training my throwing at the same time lol i just re wrote a small part of the script and ignored the mount part changed the mount id type to spiders and and attacked the wolf spider with my 100% poison wep. it rarely takes damage but it did on occation so i just had i t wait till its hit points were back at full.

PS am now using the unmodifiyed version to finish my bushido since my wep skills are now Legendary
Title: Re: First Script! Raz's Full-Auto Bushido Trainer *updated 8/13/2012*
Post by: ghaval on July 01, 2016, 01:02:33 PM
I love this topic. You should write one for Ninja.
Title: Re: First Script! Raz's Full-Auto Bushido Trainer *updated 8/13/2012*
Post by: The Ghost on July 01, 2016, 03:17:32 PM
It the same base,   just modified the spell and pull the icon you required.
Title: Re: First Script! Raz's Full-Auto Bushido Trainer *updated 8/13/2012*
Post by: dirtmcgirt on May 04, 2020, 11:57:00 AM
Has anyone tried this recently?  I'm having the same issue with my horse dying. I am not in a guild, I'm in malas, and i've tried it in Trammel.   I have a horse, and he is tame, although, not bonded.  Any ideas?  i am using a club just like the original script tells me to. 
Title: Re: First Script! Raz's Full-Auto Bushido Trainer *updated 8/13/2012*
Post by: Crisis on May 04, 2020, 01:18:53 PM
You can  always try having a tamer alt/friend tame a wolf spider and use a 100% poison weapon so it won't damage it, You would just have to add the id of the wolfspider but would need a lot of 100% poison weapons or need to repair it a lot and use powder of fort to build it back up when it gets low. Of course, the weapon could not be imbued if planning on using PoF.
Title: Re: First Script! Raz's Full-Auto Bushido Trainer *updated 8/13/2012*
Post by: dirtmcgirt on May 04, 2020, 01:50:57 PM
ok sounds good.  I'll give that a go!
Title: Re: First Script! Raz's Full-Auto Bushido Trainer *updated 8/13/2012*
Post by: The Ghost on May 04, 2020, 03:32:45 PM
To quote Gaderian " You can't do what you used to do on OSI. I think it was non-guilded, in trammel, command your pet to guard you and stop.

A couple years ago the client was changed to get new options (Allow War On Pet is one), that default settings did not allow you to even attack your pet (eliminate the in war mode mount/attack confusion to the client).

Now you will basically kill your pet quick if you attempt to do the same setup where it allows you to hit the pet. In the case where it does not allow war on pet... well, you can't hit the pet. So no gains."


To quote Crisis "If you are training a fighting skill, get one of those wolf spiders (think that is the name) from the Abyss which has 100% poison resist. They are with the grey goblins. Then imbue a 100% poison damage weapon and you can train without killing it."
Title: Re: First Script! Raz's Full-Auto Bushido Trainer *updated 8/13/2012*
Post by: gimlet on May 04, 2020, 04:32:42 PM
I used to go get an ice ogre Lord or whatever spellweaving allows and use that with a 100% poison weapon (a lot easier on Siege)
Title: Re: First Script! Raz's Full-Auto Bushido Trainer *updated 8/13/2012*
Post by: dirtmcgirt on May 04, 2020, 05:15:08 PM
Much appreciated everyone.  I'll grab a spider!
Title: Re: First Script! Raz's Full-Auto Bushido Trainer *updated 8/13/2012*
Post by: dirtmcgirt on May 19, 2020, 05:05:26 AM
Alright, some coding help would be much appreciated.  So grabbed a spider, however, i have tried editing the part about the horse and changed it to "wolfspider" however i get the error message that i need a mount.

my code looks something like this...
return
SUB FindWolfSpider
finditem %mount G_3
set %animal #findid
if #findcnt < 1

something tells me "G_3" is the problem, how do i get the code/ know the code for the wolfspider, i think that is still the horse code. 


Also i tried to swap out the club code with a dagger code.

finditem %weapon D_ , #charid

the Club code just had a C before the underscore, i swapped it to a D, with that work?? Thanks in advance
Title: Re: First Script! Raz's Full-Auto Bushido Trainer *updated 8/13/2012*
Post by: Dirty Bob on May 19, 2020, 06:32:28 AM
Alright, some coding help would be much appreciated.  So grabbed a spider, however, i have tried editing the part about the horse and changed it to "wolfspider" however i get the error message that i need a mount.

my code looks something like this...
return
SUB FindWolfSpider
finditem %mount G_3
set %animal #findid
if #findcnt < 1

something tells me "G_3" is the problem, how do i get the code/ know the code for the wolfspider, i think that is still the horse code.
 

The %mount is most likely the horse ID. But that is a variable being declared somewhere else. It would look like "set %mount XXXXXX", the Xs being letters or numbers. You would need to change the XXXXXX to whatever the ID of the spider is. The G_3 is telling the script to only look for the item within 3 ground tiles of your character. Your easiest way to find the ID of your spider would be to target it using anything then look in the system variables in EUO to find #LTARGETID. That will be the ID of the last thing you targeted. I also added code to the end of the post to help you get the type and ID.


Also i tried to swap out the club code with a dagger code.

finditem %weapon D_ , #charid

the Club code just had a C before the underscore, i swapped it to a D, with that work?? Thanks in advance

The %weapon is what you need to change. But like above, it is being declared or set somewhere else. The C_ , #charid is telling the script what container to look in. D_ isn't an argument for finditem.

Check out the documentation on FindItem (http://wiki.easyuo.com/index.php?title=FindItem) and Variables (http://wiki.easyuo.com/index.php?title=Variables). A lot of scripts just need you to edit variables and if you understand them a bit better you can get a lot of scripts to work for you.

Below is the part of the script you need to change. You should first start with a fresh unedited version of the original script. If you read the comments he left below in his code it says not to edit below the line. Most scripts are only going to have you edit variable values at the very beginning. You'll want to change set %weapon and set %mount. The %mount is going to be your spider ID. Don't change the name, just leave it as %mount to keep things easy. So use something like animal lore to target your spider than look up it's ID under #LTARGETID in the EUO variables. Do the same thing again for your weapon, targeting it with something to get #LTARGETID. The ID will be six digits. The script only has 3 digit items because he's looking for items by type but it's ok to replace it with your 6 digit ID for the sake of being easy. If your weapon breaks or something you will have to change the ID manually. You could also double click your weapon and see what the item type is bye looking under #LOBJECTTYPE and using it instead. Then you wouldn't have to worry about the weapon breaking since it'll just grab the next one.

Code: easyuo
  1. ; SET UP
  2. ;===========================================================================================
  3. chooseskill bush Bushido
  4. set %weapon YSF_QOH_ ; ID's the types of weapons - Mace, Club ---- Modify this to whatever weapon type
  5. ;                                                      you'll be using to train with
  6. set %mount SF_OF_; ID's the types of mounts/animals - White Horse, Brown Horse ---- Modify this to whatever animal
  7. ;                                                    type you'll be using to train with
  8. set %start #skill
  9. set %attempts 0
  10. set %gains 0
  11. set %starttime #scnt
  12. ;============================================================================================
  13. ;DO NOT EDIT BELOW THIS LINE
  14. ;============================================================================================


Here's a couple easy pieces of code to run to get the ID or Type of an target. Just run each as their own script to get what you want and it'll pop up with a display with the information.

Code: easyuo
  1. ;Finds the Type of an object
  2. ;When you press play a target will appear and you have 10 seconds to dlick an object
  3.  
  4. set #TARGCURS 1
  5. wait 10s
  6.  
  7. finditem #LTARGETID
  8. wait 5
  9. display ok #FINDTYPE $
  10. halt

Code: easyuo
  1. ;Finds the ID of an object
  2. ;When you press play a target will appear and you have 10 seconds to dlick an object
  3.  
  4. set #TARGCURS 1
  5. wait 10s
  6.  
  7. display ok #LTARGETID $
  8. halt


Title: Re: First Script! Raz's Full-Auto Bushido Trainer *updated 8/13/2012*
Post by: dirtmcgirt on May 20, 2020, 06:24:14 AM
Thank you very much for taking the time to reply and explain it.  I seriously appreciate it.  I am going to dive into this.  Bushido is a pain in the ass. Thanks again!
Title: Re: First Script! Raz's Full-Auto Bushido Trainer *updated 8/13/2012*
Post by: dirtmcgirt on May 28, 2022, 05:48:23 PM
After 2 years, I gave this a go again, and I'm happy to say i got it working.
Title: Re: First Script! Raz's Full-Auto Bushido Trainer *updated 8/13/2012*
Post by: AKM00 on July 04, 2022, 04:46:20 AM
I just tried the script out of curiousity. My character kills my horse instantly. I am in Trammel and I am not part of a guild.
Can someone explain to me, what my character should do while playing this script?
Title: Re: First Script! Raz's Full-Auto Bushido Trainer *updated 8/13/2012*
Post by: Crisis on July 04, 2022, 04:22:11 PM
I think they changed that a while back so people could not train on pets. You can have another character heal it but not sure how much damage you are doing so not sure how viable it is.
Title: Re: First Script! Raz's Full-Auto Bushido Trainer *updated 8/13/2012*
Post by: Gman70 on November 29, 2023, 07:37:17 PM
I think it would need to be with a wolf spider with 100% poison, will need to change the script to what someone had posted awhile back to change the mount ID to the wolf spider and then ad the sub to make sure you don;t kill the spider since LS sometimes does damage even with the WS.