ScriptUO

Official ScriptUO EasyUO Scripts => Script Library => Questing => Topic started by: addicted on October 26, 2015, 08:25:30 PM

Title: Shadowguard Helper
Post by: addicted on October 26, 2015, 08:25:30 PM
I worked a bit on this script and I think is ready to be tested. I know it is not bullet-proof and that my skill at coding sucks.
I used probably more instinct than logic. So some parts can surely improve.

Any advice is welcome and if you're so kind to correct my grammatical errors even better! (pm me pls)

How to: Hit play at one of the floors of minax's tower, the script will know what you are looking for.

Code: [Select]
;======================================================================
; Script Name: Shadowguard Helper
; Author: Addicted
; Version: 0.6.1
; Client Tested: 7.0.46.2
; EUO version tested with: 1.5 292
; Shard: OSI
; Revision Date: 2015-10-27
; Public Release: 2015-10-27
; Purpose: a little help solving the floors of the minax's tower
; How the script work:
; The script will assist you in 4 floors: The Bar, The Orchard, The Armory and The Fountain
;
; The Bar:      Walk close to a bottle and then to a pirate.
; The Orchard:  Walk close to a tree (G_1), take an apple, use the apple on the same tree
;               do the same for all the 16 trees. When you know all the trees
;               get an apple and walk/run close to the other trees the script
;               will throw the apple at the right tree.
; The Armoury:  Kill the ensorcelled armors, loot the corrupted pylactery,
;               purify them using the purifying flames (bracers) and use the purified pylactery,
;               to destroy the cursed suit of armour.
;               You must kill the mobs and move close to the objects
; The Fountain: Kill the vile water ellies, the script will loot the fountain parts and place them
;               inside your backpack the script ignore the looted (by you) pieces
;               so you can place them with ease
; The Belfry:   ATM nothing use a looter and look for a magical drake wing (BRL)
;========================================================================

Version: 0.6.1
-sub adctd_locktarget: rework (no event #property)
-Sub thebar: rework (flow execution)
-minor wait adjustment
Version: 0.6
public release
Title: Re: Shadowguard Helper
Post by: Khameleon on November 24, 2015, 11:49:57 AM
I used the script for 2 great runs...
perhaps for the roof add a gold pickeruper and bos useage
another feature I thought of is some sort of notification when the mage turns into an elemental
but so far so good thank you for sharing...

I grabbed some id's
Anon the mage is IS
Anon the Mage as Earth Elemental is ED

Fractured Time Gate is NSCB
Minax the Enchantress is HS

Title: Re: Shadowguard Helper
Post by: Insideout on December 10, 2015, 07:19:39 AM
Worked Like a Champ on the BAr and Orchard. Thanks for Taking the time to write and share  :)
Title: Re: Shadowguard Helper
Post by: Insideout on December 20, 2015, 04:30:11 PM
Got to the fountain today worked great yet again
Title: Re: Shadowguard Helper
Post by: Ketchup on December 21, 2015, 05:08:05 AM
theres only one flaw I have found with this otherwise super script, if you enemy of one anything in the bar it will stop throwing bottles at it
Title: Re: Shadowguard Helper
Post by: tehmt on January 06, 2016, 03:40:51 PM
Worked Like a Champ on the BAr and Orchard. Thanks for Taking the time to write and share  :)

exactly this, first try, excellent, tyvm!
Title: Re: Shadowguard Helper
Post by: Btownbrian on January 07, 2016, 08:28:52 AM
I tested it out in armory and it was wonderful! I can't seem to get it to work well on orchard? Do you have any advice? Thank you for the script tho!!!
Title: Re: Shadowguard Helper
Post by: tandj99 on January 09, 2016, 05:07:34 AM
I tested this in the Orchard last night. It worked pretty good. Had some issues once I got to just 6 trees left but that could have been my fault with running in between trees or something. Will try again today.
Title: Re: Shadowguard Helper
Post by: tandj99 on March 01, 2016, 03:43:48 PM
Ok so I've gotten to use this several times.

For the bar room had to change the range of scan for the pirates to throw the bottles. (wish there was a way to speed the whole process of picking up bottle and throwing bottle)
The orchard room works pretty flawless.
The armory room the range of scan also needs changed
The Fountain does well for pulling the pieces off the floor.
The belfry not sure what could be changed unless you could have it automate the casting of EV's lol

Title: Re: Shadowguard Helper
Post by: The Ghost on March 01, 2016, 05:32:42 PM
I try the bar with no problem,  
 did the Orchard but get get left with 8 trees, guest I need to learn how to run this one.   :)
Did also the armour, did not get the whole concept so will have to try this again.  

I redid the orchard, and it work.   great
Title: Re: Shadowguard Helper
Post by: cybercasper on April 17, 2016, 06:40:40 AM
Looking for a little help with this one. Yesterday was working fine then this morning I logged in and nothing is working with the targeting anything
Title: Re: Shadowguard Helper
Post by: gimlet on April 17, 2016, 06:50:53 AM
What templates do people use for this?
Would a tamer work well.
or what?
Title: Re: Shadowguard Helper
Post by: cybercasper on April 17, 2016, 07:30:43 AM
tamers aren't too bad with it armory and fountain are a little hard but the others is pretty quick. but I cant seem to get it to work today for some reason did what I could and nothing works. all the ids are right so something weird is happening.
Title: Re: Shadowguard Helper
Post by: cybercasper on April 17, 2016, 07:49:02 AM
wow crazy and now it works now that easyuo can see my character name. does anyone know why that happens that sometimes it is blank
Title: Re: Shadowguard Helper
Post by: manwinc on April 17, 2016, 01:47:56 PM
Make sure your healthbar is pulled
Title: Re: Shadowguard Helper
Post by: The Ghost on April 17, 2016, 04:44:37 PM
when u leave party, your character status get turn off,  make sure it on.
Title: Re: Shadowguard Helper
Post by: Hitech on May 22, 2016, 06:53:38 PM
looking forward to testing out your script when i get access to downloads.


Thanks for sharing
Title: Re: Shadowguard Helper
Post by: Endless Night on August 25, 2016, 05:28:53 AM
Congratulations your Script has been added to the Script library
(If you feel the script is in the wrong section please send me a pm.)

Thank you for your submission.
Title: Re: Shadowguard Helper
Post by: valen2.0 on August 25, 2016, 01:36:34 PM
What time of charecter works best while using this? has anyone got something specific made?
Title: Re: Shadowguard Helper
Post by: The Ghost on August 25, 2016, 05:02:00 PM
depend on which room and who you want to bring in.     Magery is one skill u need, after u add what u want.   taming, disco, weaver.  Th emore ppl go in the more monster u have.  Sometime I use my sammy to kill monster and other toon to get quest done. 
Title: Re: Shadowguard Helper
Post by: valen2.0 on August 25, 2016, 06:30:55 PM
the only room i don't like is the orchad... other ones are easy
Title: Re: Shadowguard Helper
Post by: addicted on September 19, 2016, 08:53:16 AM
Hello, I'm glad someone found it usefull.
I'm sorry but for many reasons (mostly work) I have no time to maintain this script nor the time to play UO anytime soon.
I hope to find the time to read more often the forum and if I can answer the questions.

thanks :)
Title: Re: Shadowguard Helper
Post by: The Ghost on September 19, 2016, 10:55:36 AM
I have a small fix for the orchard, I can post the mod if someone want it.    In the menu I add the 16 trees and a edit box so I can label the tree in their location.
Title: Re: Shadowguard Helper
Post by: valen2.0 on September 19, 2016, 11:42:30 AM
yes please ghost
Title: Re: Shadowguard Helper
Post by: The Ghost on September 19, 2016, 01:57:29 PM
Just replace the Orchardmenu with this one.   

For each quadrant just make your self a quick map.  I use  1a,b,c,d   2a,b,c,d  etc  I know where to run. 

Code: [Select]
;======= orchardsmenu sub =======
sub orchardmenu
  menu Clear
menu Window Title Shadowguard Helper
menu Window Color BtnFace
menu Window Size 350 400
menu Font Transparent #true
menu Font Align Right
menu Font Name Arial
menu Font Size 10
menu Font Style
menu Font Transparent #false
menu Font Align Left
menu Font Color WindowText
menu Text EUOLabel18 24 10 Floor:
menu Font Color red
menu Text floor 75 10 %floor
menu Font Color WindowText
menu Text EUOLabel17 24 30 Status:
menu Font Color Red
menu Text status 75 30 Looking for a tree
menu Font Color WindowText
menu Font Color Teal
menu Text EUOLabel1 24 50 Honesty:
menu Font Color Blue
menu Text honesty 150 50 %IDhonesty
menu Edit EUOEdit1 225 45 20
menu Font Color WindowText
menu Font Color Teal
menu Text EUOLabel2 24 70 Deceit:
menu Font Color Blue
menu Text deceit 150 70 %IDdeceit
menu Edit EUOEdit2 225 65 20
menu Font Color WindowText
menu Text EUOLabel3 24 90 Compassion:
menu Font Color Blue
menu Text compassion 150 90 %IDcompassion
menu Edit EUOEdit3 125 85 20
menu Font Color WindowText
menu Text EUOLabel4 24 110 Despise:
menu Font Color Blue
menu Text despise 150 110 %IDdespise
menu Edit EUOEdit4 125 105 20
menu Font Color WindowText
menu Font Color $FF00FF
menu Text EUOLabel5 24 130 Valor:
menu Font Color Blue
menu Text valor 150 130 %IDvalor
menu Edit EUOEdit5 225 125 20
menu Font Color WindowText
menu Font Color $FF00FF
menu Text EUOLabel6 24 150 Destard:
menu Font Color Blue
menu Text destard 150 150 %IDdestard
menu Edit EUOEdit6 225 145 20
menu Font Color WindowText
menu Text EUOLabel7 24 170 Justice:
menu Font Color Blue
menu Text justice 150 170 %IDjustice
menu Edit EUOEdit7 125 165 20
menu Font Color WindowText
menu Text EUOLabel8 24 190 Wrong:
menu Font Color Blue
menu Text wrong 150 190 %IDwrong
menu Edit EUOEdit8 125 185 20
menu Font Color WindowText
menu Font Color $00A5FF
menu Text EUOLabel9 24 210 Sacrifice:
menu Font Color Blue
menu Text sacrifice 150 210 %IDsacrifice
menu Edit EUOEdit9 225 205 20
menu Font Color WindowText
menu Font Color $00A5FF
menu Text EUOLabel10 24 230 Covetous:
menu Font Color Blue
menu Text covetous 150 230 %IDcovetous
menu Edit EUOEdit10 225 225 20
menu Font Color WindowText
menu Text EUOLabel11 24 250 Honor:
menu Font Color Blue
menu Text honor 150 250 %IDhonor
menu Edit EUOEdit11 125 245 20
menu Font Color WindowText
menu Text EUOLabel12 24 270 Shame:
menu Font Color Blue
menu Text shame 150 270 %IDshame
menu Edit EUOEdit12 125 265 20
menu Font Color WindowText
menu Font Color $FF00FF
menu Text EUOLabel13 24 290 Spirituality:
menu Font Color Blue
menu Text spirituality 150 290 %IDspirituality
menu Edit EUOEdit13 225 285 20
menu Font Color WindowText
menu Font Color $FF00FF
menu Text EUOLabel14 24 310 Hythloth:
menu Font Color Blue
menu Text hythloth 150 310 %IDhythloth
menu Edit EUOEdit14 225 305 20
menu Font Color WindowText
menu Text EUOLabel15 24 330 Humility:
menu Font Color Blue
menu Text humility 150 330 %IDhumility
menu Edit EUOEdit15 125 325 20
menu Font Color WindowText
menu Text EUOLabel16 24 350 Pride:
menu Font Color Blue
menu Text pride 150 350 %IDpride
menu Edit EUOEdit16 125 345 20
menu Show
return
Title: Re: Shadowguard Helper
Post by: moslet on September 20, 2016, 10:43:11 AM
I've done the shadowguard some 100+ rounds, so I guess I prefer my method (semi-manual).
But I gave this script a few tries and am impressed by its functions, especially it automatically detects which room you are in!

My recommendation:

- Bar: Perfect!

- Orchard (mobless version)
  - manually click a tree
  - script displays the Name over the apple.
  - manually use UOA macro to throw the apple (or manually feed it to a horse)
  - yes, I use pen/paper to take down the mapping lol

- Armory:
  - AWESOME. Can a slight Delay be added somewhere? (I get "...you must wait.." especially when I picked up multiple bottles at the same time)
 
- Fountain:
  - I already use a simple pickup script but your counter helps.
Would help much though, if each block type can be put into 6 different bags directly.


Well done!  :D
Title: Re: Shadowguard Helper
Post by: The Ghost on September 20, 2016, 03:01:33 PM
Moslet
Quote
- Fountain:
  - I already use a simple pickup script but your counter helps.
Would help much though, if each block type can be put into 6 different bags directly.
no need to be put in a bag because the script already put in a logic order in your main pack.  This work perfectly.

Quote
- Orchard (mobless version)
  - manually click a tree
  - script displays the Name over the apple.
  - manually use UOA macro to throw the apple (or manually feed it to a horse)
  - yes, I use pen/paper to take down the mapping lol

You can try the menu mod that I have added.   I run to the tree 1A, pick the apple, throw it back,  run to the middle and write done in the menu . repeat all this for all 16 three.   

Yes most of paper version are faster.
Title: Re: Shadowguard Helper
Post by: VASSLER on September 25, 2016, 12:17:15 PM
why cant I see the  scripts link for download or copy paste?
Title: Re: Shadowguard Helper
Post by: The Ghost on September 25, 2016, 12:26:51 PM
May be because you forget to read part one, where you required to introduce your self.
Title: Re: Shadowguard Helper
Post by: VASSLER on September 25, 2016, 12:35:22 PM
  dangem  I thought I did. thx. will re-do
Title: Re: Shadowguard Helper
Post by: tandj99 on August 14, 2017, 03:54:28 PM
So I had a wild thought about the orchard. I see people do it without any spawn and was wondering if we changed the following section and have it feed the apple to our pet it will still learn the tree and should be able to do the whole thing without any spawn.

Code: [Select]
menu set status Now I know the tree and i can trow away the apple!
          wait 10
          gosub adctd_throw %currentApple %currentTree 10 1
          wait 10
          ignoreitem %currentTree

I think if you change the gosub and have it feed the pet it would possibly work
Title: Re: Shadowguard Helper
Post by: The Ghost on August 14, 2017, 04:17:00 PM
yes it work, I have a mod version that  have menu where you can write down the tree and feed the pet

Title: Re: Shadowguard Helper
Post by: tandj99 on August 14, 2017, 04:20:01 PM
I just thought if you had it feed the pet once it learned everything it would automatically throw at the correct tree.

Will try and put your edit in and try it out
Title: Re: Shadowguard Helper
Post by: The Ghost on August 14, 2017, 05:22:36 PM
The script is build to discard the apple you just check, i just change  the action to feed the pet. 

Code: [Select]
{
          set %currentTree #FINDID
          gosub adctd_throw #FINDID #FINDID 2 3
          menu set status I got an apple!
          wait 10
          _checkapple:
          finditem %_appleKind C_ , #BACKPACKID
          if #FINDKIND <> 0
             goto _checkapple
          gosub adctd_defineTree %_appleKind %currentTree
          menu set status Now I know the tree and i can trow away the apple!
          wait 10
           ; gosub adctd_throw %currentApple %currentTree 10 1    ; <  turn this off
           gosub TG_ClearPack %currentApple %pet
          wait 10
          ignoreitem %currentTree
       }

Title: Re: Shadowguard Helper
Post by: tandj99 on August 15, 2017, 02:01:23 AM
I see the part you turned off and the next line you have a gosub with no sub? (was that meant or did you forget to add that part?)
Title: Re: Shadowguard Helper
Post by: BobOzarius on August 15, 2017, 04:06:14 AM
I just kill all the spawn on 2 tamers and use another disco tamer to grab apples and throw at the trees. The 2 scripts I use just auto do that. I don't have to feed a pet and come back in or write down trees. It knows what apples I've found, and when I find it's opposite tree it says TREE FOUND, and I just run around until it throws at the right tree. While the tamers kill the trees that spawned.
Title: Re: Shadowguard Helper
Post by: tandj99 on August 15, 2017, 04:24:51 AM
That's kinda the way,we do it as well as a group but i think what Ghost wrote (in my head at least) will make it so you could do it like you are just with no spawn
Title: Re: Shadowguard Helper
Post by: The Ghost on August 15, 2017, 01:23:16 PM
I see the part you turned off and the next line you have a gosub with no sub? (was that meant or did you forget to add that part?)

No I didn't forget to add the sub.  It was just to show you where to make the modification.    Any drag and drop sub work.    I use the sub form my Factory making
Title: Re: Shadowguard Helper
Post by: Solarwind on September 14, 2019, 10:07:33 AM
Great thanks for ur good job guys ;)
Title: Re: Shadowguard Helper
Post by: JFSF on December 11, 2019, 08:20:13 PM
I see the part you turned off and the next line you have a gosub with no sub? (was that meant or did you forget to add that part?)

No I didn't forget to add the sub.  It was just to show you where to make the modification.    Any drag and drop sub work.    I use the sub form my Factory making


Could you by chance show me an example of a sub to drag and drop the apple from your backpack onto your pet? Im working on doing some mods to this and getting stumped on how to drag and drop on a pet in place of throwing apple at the current tree. Thanks
Title: Re: Shadowguard Helper
Post by: The Ghost on December 11, 2019, 08:50:25 PM
first you need to add your pet id on top

Set %pet  xxxx


Code: [Select]
;======================= TG_ClearPack =============================

; gosub TG_ClearPack (Item) (Container)
sub TG_ClearPack
; %1 Item to move
; %2 Container to move too
Namespace Push
   Namespace Local TGCP
  finditem %1 C_ , #backpackid
  if #findcnt < 1 2
    NameSpace Pop
    return
  for #findindex 1 #findcnt
  {
    exevent drag #findid #findstack
    exevent dropc %2
    wait 20
  }
  Namespace Pop
return
; ---------------------------------------------------------------------

now you have the mod.   hehe
Title: Re: Shadowguard Helper
Post by: JFSF on December 12, 2019, 05:53:24 PM
Thanks alot Ghost
Title: Re: Shadowguard Helper
Post by: Uberish on July 09, 2020, 02:41:49 PM
My first time trying this script, and im trying to use it for orchard with no success. I tried doing like the instructions said... grab an apple and throw it at the same tree - which spawns a monster - it never learns the tree tho. I also tried grabbing an apple and feeding it to my dog - which doesnt spawn a monster - but it doesnt learn the tree that way either.
Title: Re: Shadowguard Helper
Post by: The Ghost on July 09, 2020, 05:04:06 PM
you are not doing right

walk to a tree,  the script will grab the apple and remember is location,  now you have choice,  write down the name on the apple and feed ur Pup or feed ur Pup.

do this for all 16 trees,      once you are done.  pick an apple from the tree and run near  they other 3 group,  the script will throw the apple at the right tree.   repeat 7more times. 

Voila you are done.

If you go back a few post I posted the mod to help track the location.   
Title: Re: Shadowguard Helper
Post by: Uberish on July 10, 2020, 12:41:03 AM
Thanks a lot, i did read quite a bit of the posts ( i thought id read them all) but i definitely missed that. I'll try again later the way you suggested. I'm sure it was just operator error, lol.
Title: Re: Shadowguard Helper
Post by: The Ghost on July 11, 2020, 01:19:17 PM
To help you with the association, I have attach  a Pic.   

Title: Re: Shadowguard Helper
Post by: creedgaming on September 29, 2020, 05:42:10 PM
I just edited the script to drop it the apple on my horse so that I don't have to fight any mobs. This also tells your horse to follow you and waits a few seconds to see if the horse is nearby. You might have to add more horse types for finditem SG_OF_MG because mine finally bonded and I hadn't had to add anymore npc bought horses.

line 309
Code: [Select]
          ;;gosub adctd_throw %currentApple %currentTree 10 10
          tryagain:
          finditem QQD C_ , #BACKPACKID
          exevent drag #findid
          wait 5
          finditem SG_OF_MG
          wait 2
          if #finddist > 2
          {
          msg $
          msg all follow me $
          wait 3s
          goto tryagain
          }
          exevent dropc #findid
          wait 40
         

and left the rest the way it was

Code: [Select]
       ignoreitem %currentTree
       }
      }
Title: Re: Shadowguard Helper
Post by: The Ghost on September 29, 2020, 07:50:58 PM
only if you you have read a few post back  like post 33 and 40. 
http://www.scriptuo.com/index.php?topic=13449.msg118094#msg118094

Glad you figure out how to add new function. Thx for sharing
Title: Re: Shadowguard Helper
Post by: zchosen on November 28, 2020, 03:49:06 PM
looks awsome, id like to download this script for my tamer if possible, cant find the download link, big thanks for ur efforts
Title: Re: Shadowguard Helper
Post by: Gaderian on November 28, 2020, 05:08:47 PM
Hi zchosen,
You will need to make a proper introduction to be unrestricted. Then you will have access to the download links.

Take a few minutes to read about making an introduction here: http://www.scriptuo.com/index.php?board=55.0 (http://www.scriptuo.com/index.php?board=55.0)

Then make your own post about yourself here:http://www.scriptuo.com/index.php?board=20.0 (http://www.scriptuo.com/index.php?board=20.0)

A sense of community is cherished here. Come join us!

Gaderian