Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Neo

Pages: [1] 2
1
Stealth Client / Stealth Client packets and other stuff
« on: June 18, 2020, 02:16:14 PM »
Hey guys,

How have you guys been? I missed you!

So I've been flirting with coming back to UO for a while now. And since the pandemic started I could use the distraction, and UO might just be what I need.

One of the things that have been keeping me from reactivating my old accounts is that I wanted to avoid EUO if possible. It's a great scripting platform, but comes with some problems that I would like to avoid.

I also remember having a few problems with Stealth back in the day which prevented me from getting 100% away from EUO. There were some things (which I don't remember now) that just couldn't be done with Stealth at the time.

So a couple of months ago I started writing some stuff for UO. I wanted to be independent from it all.

At first I started writing my own UO client, with plans of adding a scripting interface so that it would be similar to Stealth. Turns out it was a lot tougher and a bigger project than I thought, and would possibly take me years to complete with the way I was making progress.

So then I decided to write something similar to a bot for UO, using lua as scripting language. I worked on it for a while, but then I felt like it would be kind of redundant with EUO around, and it would probably take me a long time to make it more stable than EUO currently is.

Anyway, just wrote all that to share where my mind's at concerning UO and coming back.

With that said, I wanted to ask you guys about Stealth.

It's been several years since I last used Stealth, and I see there have been quite a few updates since then.

So my question: Can anyone tell me if there are still limitations or things you simply still can't do with Stealth that you would be able to do with EUO or just by manually playing, or is it capable of reproducing anything in-game with proper coding?

One cool feature I was thinking about (which I think hasn't been implemented yet) would be the usage of packets through it's scripting interface.

I was thinking of something like a callback for received and sent packets, where you could "read" the packets being received and sent and also an option to compile your own packet and manually send it.

I haven't messed with UO packets for a while so I don't remember how they are structured, but I remember it used to have some encryption.

So I thought of callbacks similar to these, from the top of my head. Here's some pseudo-code to illustrate what I mean.

Code: [Select]
function OnReceivePacket(p)
  -- code here
end
function OnSendPacket(p)
  -- code here
end

p would be the packet sent which would contain p.header and possibly an internal function to decode the packet so we could read it's information.

A function to compile our own packet and send it would be cool as well.

Like I said, I have been gone for a long time and just assumed something like this hasn't been added to Stealth yet.

And if the answer to my question above is that there are still limitations or things you can't do with Stealth, maybe the addition of the packets thingy could "complete"  it.

Sorry for the long wall of text, just wanted to put all of this into context.  ;D



2


Code: [Select]
UPDATE v2.0: MAY 03, 2014
- Huge optimization of the code. Converting is a lot faster now
- Got rid of .dll
- Fixed converting of newer .uop files into .mul files
- Added feature to repack the .mul files into .uop files... Now you can edit your .mul files and reconvert them back into .uop

Please let me know your results if you try this.

So, basically I have spent the last few days working on this project. With the help of wyatt's Ultima.dll I was able to complete it.

So, this little .net program will convert your .uop files into .mul files. It works with current version of UO as of May 2014.

So now you can get up-to-date .mul files to use with EasyUO, for proper tile scanning, UOFiddler, or for whatever purpose you might find for them. With version 2.0 you can repack them back into .uop files.

Just point the program to the folder where your .uop files are, and choose an output folder.

Let me know if you find any issues!

Special thanks:
Crome who has been there throughout most of the project trying to help out!
Crome and TM for sharing their programming knowledge with me! :)


Gimlet, Masscre, Crome, TM and Maddog for trying the beta version out for me!

Cheers!

3
Stealth scripts / neo's Magery Trainer v1.1, March 28, 2013
« on: March 27, 2013, 09:42:56 PM »
Code: [Select]
================================================================
Script name: neo's Magery Trainer
Author: neo
Version: 1.1
Client tested with: Stealth Interface 7.0.29.2
Stealth version tested with: 4.3.6
Shard: OSI
Revision Date: March 28, 2013
Public Release: March 28, 2013
Purpose: Trains Magery from 30 to Skill Cap.
Special thanks: C2, as I used the same skills he uses in his
        magery trainer for EasyUO. Cheers!
================================================================
Version 1.1    - Added a procedure to add your ping time to the
                 wait when casting Earthquake, should fix any
                 "you must wait" issues, while casting as fast
                 as possible
               - Added 'Mana' to the menu  
               - Fixed a small issue with menu not updating
                 correctly for Cycle 8 spells
----------------------------------------------------------------
Version 1.0    - Public release
================================================================
Instructions:  - You must have at least 30 skill points in magery
               - This script won't use reagents, so use LRC suit
               - Press 'Start' :)
------------------------------------------------------------------
               The script will automatically calculate how much
               Faster Casting and Faster Cast Recovery you have
               and run accordingly.
------------------------------------------------------------------------
========================================================================
Only use this script if downloaded from one of the following places:
http://www.scriptuo.com/index.php?topic=11042.0
http://stealth.od.ua/forum/viewtopic.php?f=15&t=2499
========================================================================
So, I had to train magery up to 120 to test my inscription script again... And the servers were down... So one thing lead to the other......

Anyhow, here it is, a Magery trainer for Stealth. It will dynamically calculate how much FC and FCR you have, and adjust the waiting times accordingly, to cast as fast as possible.
If you use this, let me know how it goes for ya :)

Oh, I also used this to play around with the Menus a little bit :D

4
Code: [Select]
================================================================
Script name: neo's Inscription trainer
Author: neo
Version: 1.1
Client tested with: Stealth Interface 7.0.29.2
Stealth version tested with: 4.3.6
Shard: OSI
Revision Date: March 23, 2013
Public Release: March 23, 2013
Purpose: Trains Inscription from 32.5 to GM
Special thanks: Crome who has helped me A LOT, teaching me the
                ropes on Stealth and giving inumerous pointers.
                Cheers! :)
================================================================
Version 1.1       - Modified the setup part
                  - Will put books inside secure when skillcap
                    is reached
                  - Removed the need for a full spellbook. Now
                    you just need a book with recall and mark.
                  - A few minor improvements
----------------------------------------------------------------
Version 1.0       - Public release
================================================================
Instructions: - Have 2 secures close to you: one with reagents,
                blank scrolls and ingots. The other
                is where your crafted scrolls and super slayer
                books will be stored (you can add more properties
                to check for. Check 'GoodPropertiesArray' and add
                more if needed.
              - Have a trash barrel nearby. You will need to trash
                crappy books.
              - Have at least 1 tinker tools inside your backpack
                before you start.
              - When you hit play, the script will ask you to
                open the containers one by one(material, books and trash)
              - You NEED A FULL SPELLBOOK in your bag for this!!
------------------------------------------------------------------------
32.5 to 60.0 -> Crafts Recall scrolls
60 to 65 -> Crafts Mark scrolls
65+ -> Crafts Spellbook, keeps Super Slayers and trashes the rest
========================================================================
Only use this script if downloaded from the following places:
http://www.scriptuo.com/index.php?topic=11033.0
http://stealth.od.ua/forum/viewtopic.php?f=15&t=2495
========================================================================
So, I've finally finished putting together this guy. I needed to train up Inscription so I decided to give Stealth a go.

Stealth is really powerful, I'll be working a lot more towards Stealth scripts from now on. Hopefully this is the first of many to come!

As always, any suggestions are more than welcome. Also, please leave some feedback if you use this! :)

(Make sure to read the instructions, this is pretty much plug and play, no hard coding needed)

Cheers! :)



EDIT: You would best use an Inscription Talisman for this! Suggestion by C2! Thank you :)

5
Resource Farming / neo's psycho kung-fu miner, release: March 16, 2013
« on: March 16, 2013, 02:00:52 PM »
Code: [Select]
;===================================================================================
; Script Name: neo's psycho kung-fu miner
; Author: neo
; Version: 1.0
; Client Tested With: 7.0.29.2
; EUO version tested with: 1.50 233
; Shard OSI / FS: OSI
; Revision Date: February 1st, 2013
; Public Release: March 16, 2013
; Purpose: Mining and fighting.
; Special Thanks: TM and 12x for their subs! MeWonUo for the concept and help throughout
;                 the development of this script.
;-----------------------------------------------------------------------------------
; Who should use this script and why?
;
; This script is meant to be used with a combat miner character template.
; It will grab Gargoyle Pickaxes and Prospector's Tools from a container
; and go mine. When it digs up an Elemental, it will kill it, return home
; to unload, then return to the spot where the Elemental's body is and loot it.
; After going home again to unload, it will continue mining.
;
;
; What's the advantage of mining this way?
;
; Potentially gets over 6k ingots per hour, more than half of which should be Shadow Iron Ingots! :)
; Will also loot Crystalline Blackrock.
;-------------------------------------------------------------------------------------
; Instructions:
; Containers you should have in front of your house:
;   - Container with your regular shovels or pickaxes, or ingots and tinker tools to
;     craft them. If you use the Archer template, you should also have your arrows in this
;     container
;   - Container with your Prospector's Tools, if you mean to use them
;   - Container with your Gargoyle Pickaxes, if you mean to use them
;   - Container for your Ore
;   - Container for your regular blackrock (trash can?)
;-----------------------------------------------------------------------------------
; Suggested template to use with this script:
; Template I currently use for this script (template idea by MeWonUo):
;
; Female Elf with:
;
; Anatomy 95
; Archery 95
; Tactics 88
; Blacksmithy 0.1
; Mining 100 + 5 from gloves
; Tinkering 62
; Chivalry 82
; Meditaion 33
; Necromancy 99
; Spirit Speak 40
;
; Equipment:
; Spirit of the Totem
; Mana Phasing Orb
; Quiver of Infinity
; Magical Shortbow with: HLA 50 HLD 50 Elemental Slayer, SSI 40 DI 10
; Armor of the Valkyrie (Char must be FEMALE for this)
; The rest: Imbued jewels and Woodland Pieces
; Important: Have some HCI, DCI, DI and 100% LRC. Also, have 150 Str for Max Weight increase.
;            And good resists too of course! :)
;---------------------------------------------------------------------------------------
; Feel free to tell me any suggestions you might have so I can keep improving this.
; Don't forget to edit your settings below!
; Be in front of your containers before you start the script!
;-----------------------------------------------------------------------------------
Hey guys, I've had some friends asking me for this script, and instead of just keeping it for Elite/private, I decided to just make it public so that everyone who's interested might get a chance to use it. So, here it is, hope you may find some use in it, and make sure to tell me how it works for you!

Any suggestions are always welcome of course.

Make sure to read the instructions on how to properly use the script! :)

[]s

EDIT: the only difference from the private version is I removed the bod gathering part from it. Since the new changes to bod gathering, I thought it wouldn't be very useful to have.

EDIT 2: The combat uses mainly necro stuff to deal with elementals. You will be expected to be in Vamp move, and then once an Elemental pops, Curse Weapon will be used... I've done some tweaking with the damage ratio you take each second, to decide if your char's gonna run away or not. Should work fine for most cases! I could add some more options for future versions depending on the feedback I get!


6
Questing / neo's cleanup residue quester 10/06/2011
« on: October 05, 2011, 07:52:49 PM »
Code: [Select]
;======================================================================================
; Script Name: neo's cleanup residue quester
; Author: neo
; Based on a concept by: MeWonUo
; Version: 0.1
; Client Tested With: 7.0.18.0
; EUO version tested with: 1.50 202
; Shard OSI / FS: OSI
; Revision Date: 10/06/2011
; Public Release: 10/06/2011
; Purpose: Will grab Magical Residue from container, recall/sj to Ter Mur,
;          do the residue quests, and travel back home to get some more. Will trash
;          imbuing power scrolls and save chisels in a container. Good if you have
;          those endless stocks of Magical Residue and don't know what to do with them! :)
;          Could also be worth buying them, depending on the price you find.
;--------------------------------------------------------------------------------------
; URL:     http://www.scriptuo.com/index.php?topic=8675.0
;--------------------------------------------------------------------------------------
;          INSTRUCTIONS: - Mark 1 or 2 runes at the Residue quester in Ter Mur
;                        - Mark 1 or 2 runes at home near your container and trash
;                        - Start the script at home and follow setup instructions
;          REMEMBER: You must start this script at home, and you must have the container
;                    and trash barrel within 2 tiles of your home recall spot.
;
; If you use this, I'd appreciate the
;--------------------------------------------------------------------------------------
; This script was MeWonUo's idea, I just wrote it with his help. So credit goes to him
; for this! :)
; Special thanks to TM for his journal scan sub.
;======================================================================================

Don't have any bags of the same type as those quest bags inside your backpack, they can and will be trashed! :)

7
Crafting / neo's bodbook filler v2.0 *new* tailor support, February 17, 2013
« on: September 29, 2011, 08:23:32 AM »
Code: [Select]
;===================================================================================
; Script Name: neo's bodbook filler
; Authors: neo
; Version: 2.0
; Client Tested With: 7.0.29.2
; EUO version tested with: 1.50 236
; Shard OSI / FS: OSI
; Revision Date: February 17, 2013
; Public Release: September 29, 2011
; Closed Beta testers: MeWonUo and Goliath
; Special thanks: MeWonUo and The Ghost for testing v2.0 Open Beta and providing me
;                 with detailed feedback of their runs. Thanks guys! :)
;
; Purpose: Fills multiple BOD books from within multiple containers. Puts them back
;          in place after filling them. Works with both SMITH and TAILOR BODs as of
;          version 2.0
;-----------------------------------------------------------------------------------
; Url:     http://www.scriptuo.com/index.php?topic=8636.0
;===================================================================================
; Version 2.0   - Added tailor bod support
;               - Polished up some of the code
;
;------------------------------------------------------------------------------------
; Version 1.2   - Public release. Thank you very much MeWonUo and Goliath for
;                 testing this out and sending feedback, I'm sure I wouldn't have
;                 gotten so far with this script without your help. Thank you! :)
;------------------------------------------------------------------------------------
; Version 1.1   - Some more improvements.
;               - Some clean ups on the code to prepare for public release
;------------------------------------------------------------------------------------
; Version 1.0   - Some improvements
;----------------------------------------------------------------------------------
; Version 0.9   - Some minor changes
;------------------------------------------------------------------------------------
; Version 0.8   - Some more fixes :D
;               - Bod filling speed improved greatly
;------------------------------------------------------------------------------------
; Version 0.6   - Minor fixes
;-------------------------------------------------------------------------------------
; Version 0.5   - Some more fixes.
;               - Added important note in "Instructions". Please read them before using
;                 this script
;------------------------------------------------------------------------------------
; Version 0.4   - More minor fixes.
;------------------------------------------------------------------------------------
; Version 0.3   - Some more fixes
;------------------------------------------------------------------------------------
; Version 0.2   - A few minor fixes
;-----------------------------------------------------------------------------------
; Version 0.1   - Closed beta
;-----------------------------------------------------------------------------------
; Instructions:
;               - Have a salvage bag in your backpack
;               - Use only ONE color of cloth,having more colors in your secure/backpack
;                 will break the script
;               - You need a trash barrel within two tiles for trashing bone items
;                 since they can't be recycled
;               - You must add the CONTAINERS which contain bod books to be filled
;                 to the menu list. When you add the container, all books inside
;                 that container will be added automatically to the list
;               - You must have at least 1 tinker tools inside backpack or resource
;                 secure to craft the tongs (and enough tinker skill of course)
;               - You must have a secure with all the crafting material in
;
;               You have 2 trashing options for non-exceptional items:
;               - Salvaging. This will require you to have a Salvage Bag inside
;                 your backpack.
;               - Throw away in trash. This will require you to have a trash can
;                 within 2 tiles from your character
;               YOU MUSTN'T HAVE ANY LOOSE BODS INSIDE YOUR BACKPACK WHEN YOU
;               HIT PLAY, OTHERWISE YOU WILL BREAK THE SCRIPT.
; IMPORTANT NOTE: DON'T USE ANY FILTERS ON YOUR BOD BOOKS
;-----------------------------------------------------------------------------------
Thank you MeWonUo and The Ghost for valuable feedback on the Open Beta for version 2.0
I'd also like to thank MeWonUo and Goliath for testing the earlier Closed Beta for me... Couldn't have done it like this, without your help! So thank you! :)


Well, here it is (again). The idea was to write a new bod filler from scratch, to make it fill every small bod you have inside bod books within containers on the ground around you.
I tried to make it as fast as I could, while keeping it bug-free (hopefully). I would appreciate the feedback if you use this, to keep improving it for everyone's use.

 Supports BOTH SMITH and TAILOR BODs as of version 2.0 (including Bone BODs)

8
Script Snippets / fast & safe drag and drop sub
« on: September 19, 2011, 07:34:13 AM »
Lagging out while drag and dropping was always a big crash cause for me...

So I wrote this sub, which I'm now using in my private miner and my lumber 1.0, to move stuff...

Code: [Select]
;Usage: gosub neo_dragdrop %itemtomove %bagtomoveto %amount (ex: gosub neo_dragdrop #findid #backpackid #findstack -> will move the whole stack of #findid to your backpack)

;======= drag and drop sub =======
sub neo_dragdrop
  namespace push
  namespace local neodragdrop
  set !item %1
  set !bag %2
  set !amount %3
  set !timeout1 #scnt2 + 10
  set !timeout2 #scnt + 6
  repeat
    event property !bag
  until Stones in #property
  set !initcnt #property
  exevent drag !item !amount
  exevent dropc !bag
  repeat
    repeat
      event property !bag
    until Stones in #property
    set !newcnt #property
  until !initcnt <> !newcnt || #scnt >= !timeout2
  if !initcnt = !newcnt
  {
    event macro 9 7
    wait 1
    nextCPos 776 577 ; change this to where you want the backpack to open
    event macro 8 7
    gosub gumpwait container_gump N/A #backpackid ; -> change this to your gumpwait sub
    wait 15
  }
  repeat
  until #scnt2 >= !timeout1
  namespace pop
return
;======= end sub =======

The idea here is using event property on the destination container, so that you can actually check for when the item is in fact moved to that container. If this happens before 1 second, it will wait until that second is up before moving on... If it takes more than 1 second, it will wait until the property changes on the destination container to move on... If this takes more than 6 seconds, it's probably some ghosting/lag issue, and it will reopen your backpack before moving on... This can also be changed to reopen some other container you're getting stuff from, if that's the case for you...

I found this pretty useful to avoid crashes while moving stuff due to lag issues...

Hope people can find this useful too...

cheers

neo

9
Crafting / neo's Bod Swapper Public Edition v1.0 out 09/22/2011
« on: September 07, 2011, 05:56:02 PM »
Code: [Select]
;===================================================================================
; Script Name: neo's Bod Swapper Public Edition
; Author: neo
; Version: 1.0
; Client Tested With: 7.0.18.0
; EUO version tested with: 1.50 202
; Shard OSI / FS: OSI
; Revision Date: 09/22/2011
; Public Release: 09/06/2011
; Purpose: Swaps filled bods at NPC. Will recall home to drop off stuff.
;          Only for Smith BODS!
;-----------------------------------------------------------------------------------
; Special Thanks: - TM for his NGFS and Recall subs.
;                 - 12timesover for his XIIxMaxWeight sub
;                 - MeWonUo who's the co-author of our private edition :)
;                 - Newsman for debugging v0.2 with me for people with low ping!
;-----------------------------------------------------------------------------------
; Url:     http://www.scriptuo.com/index.php?topic=8460.0
;------------------------------------------------------------------------------------
; Version   1.0 Lots of changes:
;               - Changed recall subs. You can now choose whatever runes for all 4
;                 runes you wish to use
;               - Redid menu, and the way setup works
;               - Saving will now work properly
;               - If an NPC can't be found within 2 tiles, it will search for an NPC up
;                 to 7 tiles away, and then walk over to them to do the swapping.
;                 Won't open doors though, so make sure there aren't any doors
;                 between you and the NPC. And it won't pathfind either, so have a
;                 clear path to the NPC! Thank you TM for this suggestion! :)
;               - Will now finish putting away your stuff after the last bod is swapped.
;               - Removed gloves from 'return item' list. Turns out you can't return
;                 gloves, and I had forgotten about it! :)
;               - Added gargoyle pickaxes to 'return item' list
;-------------------------------------------------------------------------------------
; Version   0.4 - Changed #findrep back to 7, which is fixed in EUO 1.50 202
;-------------------------------------------------------------------------------------
; Version   0.3 - Made the script a little slower to prevent issues to people with
;                 low ping.
;               - A few minor fixes
;-------------------------------------------------------------------------------------
; Version   0.2 - Fixed not finding NPC issue with new EUO/Client version
;               - Added option to chose your travel method
;-------------------------------------------------------------------------------------
; Instructions: - You must setup your containers at home for each kind of reward. You
;                 can chose some rewards that you don't want to keep to be returned to
;                 the NPC. If a container for your mining stuff (ie pickaxes, prospect, etc.)
;                 gets full, those items will be added to the return list, and start being
;                 returned to the NPC.
;               - You must write the rune numbers of both runes for each location in the edit box
;                 in the menu.
;                 2 runes for smith, 2 runes for home. They MUST be consecutive runes
;                 in your book, i.e. 7 & 8 for your home runes, or 3 & 4 for you smithy runes
;                 Remember to mark runes close enough to the NPCs
;               - You can save/load your setup, so that you don't have to set your containers and rune books
;                 every time you run the script
;               - After everything is set, you must recall to the smithy and hit the start button ONLY WHEN
;                 YOU'RE AT THE SMITHY! If you hit start being somewhere else, the script won't work
;---------------------------------------------------------------------------------------------------------
; This is a variation of a personal script I wrote for personal use, so I decided to modify it a bit
; and post this public version. Hope to get some feedback so I can keep fixing
; and improving this until it's stable enough for everyone to run it flawlessly.
;-----------------------------------------------------------------------------------------------------

Hey guys... I wanted to share with you the script I use to swap bods at the NPC. This is for smith bods ONLY.
I had to modify it from my private version a bit for a public release, but it should still be pretty useful, if you don't like that whole packy swap thing...

Remember to read the instructions before using. Please tell me any issues you find too, so that I can keep improving this for everyone's use!

cheers

neo

10
Crafting / frneo's Crafter v2.1 09/02/11 with TM's Advanced CLAw support
« on: August 30, 2011, 12:38:12 PM »
Well, I guess I finally found a way to make this more complete, so here it is:
Code: [Select]
;===================================================================================
; Script Name: frneo's crafter with TM's Advanced CLAw Support
; Author: frneo
; Version: 2.1
; Client Tested With: 7.0.16.3
; EUO version tested with: 1.50 199
; Shard OSI / FS: OSI
; Revision Date: 09/02/2011
; Public Release: 08/30/2011
; Purpose: You can make anything from pieces of armors, weapons, jewelry, and set
;          the rules of items you want to keep in TM's Advanced CLAw. You can also
;          choose a trashing method like recycling in the salvage
;          bag, unraveling or simply moving to trash barrel.
;          If the item you're crafting requires special ingredients, other than
;          the boards, ingots or leather, you can also add them to a list.
;          If you want to craft items using colored material, so that we choose
;          the correct unraveling option for them, there's also an
;          option for that in the menu. If you have any suggestions on what I could
;          still add/change here, please let me know.
;
;          If you're crazy and don't want to use the CLAw to evaluate stuff, you still
;          have the option to use my old evaluation method. However, it will only work
;          for armor pieces AND is no longer supported.
;--------------------------------------------------------------------------------------
; Thank you TM for letting me use the CLAw with this.
; I hope you can find this worthy of it! :)
; Thank you Paulonius for the suggestion on using the CLAw. This wouldn't be viable
; without it.
;-----------------------------------------------------------------------------------
; Url:     http://www.scriptuo.com/index.php?topic=8378.0
;===================================================================================
; Version   2.1   - Fixed issue with tools not being properly selected before using
;                 - Fixed remove extra ingredient button
;--------------------------------------------------------------------------------------
; Version   2.0   Major changes:
;                 - Menu totally rebuilt
;                 - Option to add all necessary ingredients to craft virtually any item
;                   from weapons, armors or magic jewelry. You must manually add these
;                   before you start crafting
;                 Please read the instructions, and if you have any questions, please
;                 ask them in the script topic @ scriptuo.com
;-------------------------------------------------------------------------------------
; Version   1.1   Magic jewel crafting fixed.
;                 Script currently works with:
;                 - Armor crafting
;                 - Weapon crafting
;                 - Jewelry crafting
;-------------------------------------------------------------------------------------
; Version   1.0   Changed the name of the script to 'frneo's All-in-one crafter'
;                 Why? Because from now on, I will try and make this able to craft
;                 anything. Weapons, armor, jewelry, and let you use the CLAw to choose
;                 what to keep and what to trash. :)
;
;                 - Removed wait time from gumpwait to make crafting faster
;                 - Added runic tools support
;                 - Will unravel if you're using runic tools
;                 - Added colored material option
;-------------------------------------------------------------------------------------
; Version   0.3.1 - Fixed issue with pause/resume
;-----------------------------------------------------------------------------------
; Version   0.3 - Now supports TM's Advanced CLAw! Thank you TM for letting me use it!
;                 You can download the claw here:
;                 http://www.scriptuo.com/index.php/index.php?topic=17.0
;                 If you choose to use the CLAw with this, you must thank TM for it in
;                 the above topic! :)
;
;               - Fixed issue that could cause you to run out of ingots while crafting
;                 tools and looping forever
;-------------------------------------------------------------------------------------
; Version   0.2 - Fixed menu background color issue
;               - Script will now pause instead of halting when you run out of items
;-----------------------------------------------------------------------------------
; Instructions: You must have the following items inside your backpack:
;               - A Salvage Bag
;               - At least one Tinker Tool
;                 (you must have enough tinker skill to craft tools)
;               - Tong for blacksmithy, saw for carpentry, sewing kit for tailoring.
;               Also:
;               - If blacksmithing, you must be near forge and anvil.
;               - If tailoring, you must have scissors inside your backpack
;               - If using carpentry, you must have an axe inside your backpack
;               - If crafting Woodland Armor, or anything that requires extra ingredients
;                 mark the checkbox "Use extra crafting ingredients"
;               - You must have enough material to craft the first piece
;                 inside your backpack
;               - You must have IRON INGOTS inside your resource secure, to be
;                 able to craft tools as needed.
;               - If you don't want to craft tools, you can mark the option 'Use runic tools'
;                 This will make sure you grab the selected tool from a secure, even if
;                 they're not really runic tools.
;
;               If you wish to use TM's Advanced CLAw to evaluate the items, you need
;               to download it at http://www.scriptuo.com/index.php/index.php?topic=17.0
;               The CLAw must be running and set up BEFORE running the crafting script.
;               You need to set up the properties to look for in the CLAw's menu.
;               Instructions on how to do this can be found in the CLAw's topic.
;               Once this is done, you can start crafting! :)
;
;
;------------------------------------------------------------------------------------
;
; Special Thanks:
; TM for letting me use his Advanced CLAw, this script got A LOT better with it.
; MeWonUo for all the tips and suggestions in writing this.
; TM for his NGFS sub which I use in almost everything I write
;-------------------------------------------------------------------------------------
Thank you TM for letting me use the Claw for this!
I'm sure everyone is gonna love the hability to use the claw to evaluate stuff...

You can download TM's Advanced CLAw and find instructions on how to set it up here:
http://www.scriptuo.com/index.php?topic=17.0

Also, thank you Paulonius for suggesting the Claw integration...

New Crafter 2.0



Make sure you read the instructions here as well, on how to get this script working with the claw...
If you use this, please tell me how it worked for you, so I can keep improving it.

The script will auto-detect if you have TM's CLAw running or not... If it isn't running, you will get the choice to use the old armor crafter instead... Although it is not recommended, and also no longer supported! :)

Also, any kind of feedback and/or suggestions are well appreciated.

Neo

Currently works with armors, weapons and magic jewelry.


11
UO-Related Tutorials / Thousands of plants on 1 tile
« on: August 21, 2011, 10:10:25 PM »
Hey guys, I don't know if this is widespread, but I wanted to share with you how I grow my plants.

You all know that you can put 125 plants inside a breakable crate, put the crate on the ground, and brake it, to get 125 plants on 1 tile right?

Coragin made a great plant tutorial telling how to do this, amongst other things. You can check it out here:
http://www.scriptuo.com/index.php?topic=4103.0

Well, what I want to show you is the way I do this, just bringing this idea a little further.

So, if you put 125 plants inside a crate and brake it on the ground, you get them all in 1 tile. What you could do is put say 5 breakable crates inside that one breakable crate.


Now you put the crate that has all the others inside on the ground, and break it with an axe, getting you those 5 crates on 1 tile. The idea now is putting 125 plants inside each crate, then breaking them all, and voila, you get 625 plants on 1 house tile.

You can of course expand this idea to how many plants you'd like to grow on this same tile. I usually grow around 1500 plants at a time. Adjust this to your liking. :)

The problem is, since all crates are on the same tile, it can be a little frustrating and time consuming selecting each one, then move your bowls with seeds inside them, etc.

To make this job easier I've added a sub-section to the tools menu of my plant tending script, especially designed to help out doing this. You can find this from script v0.5 on. This is the url where the script can be found.
http://www.scriptuo.com/index.php?topic=8268.0


So, you can prepare your bowls, water them and plant seeds in them, all using the tools menu from the script or however else you'd prefer. Once you get a bag full of bowls with seeds in, you can navigate to the 'Mass Plantgrowing Preparation' section of the script, and use it to move the bowls to each separate crate, and then brake them all. As you can see from the picture, there are several other options here as well, like securing your crates, so that they don't decay if it takes you a long time to gather all the plants. You can also view each crate individually, open them up to manually put/remove stuff. There's also a lockdown plant sub in this script, courtesy of C2, so that you can lock down all your plants quickly, once you have them all on the ground. :)

Have in mind that I set the script to only adds crates that are within ONE tile to the list. If you're not standing close enough, the boxes won't be added. This is done to avoid you accidently adding other crates of the same type to the list, other than the ones you intend to use for this.

Anyway, I hope this has been clear enough, and I hope you guys can find this information useful and improve the way you grow plants, like I have! :)

If you have any questions or comments, feel free to add them here, I'll get back to you as soon as I can.

Cheers!

Neo





12
Ok, so I decided to start plantgrowing again. However, the scripts I used weren't working so great for me, and this has been in my plans for some time now... So, here it is:

Code: [Select]
;=======================================================================
; Script Name: neo's Horticulturist
; Author: neo
; Version: 1.2
; Client Tested With: 7.0.16.3
; EUO version tested with: 1.50 199
; Shard OSI / FS: OSI
; Revision Date: 09/22/2011
; Public Release: 08/18/2011
; Purpose: Will tend to plants and gather resources from them. Also has a tools menu
;          to help out with other functions related to plant growing.
;--------------------------------------------------------------------------------
; Url:     http://www.scriptuo.com/index.php?topic=8268.0
;================================================================================
; Thank you goes to:
; TM for his Journal Handle subs which I used here
; Cedryk for writing the tutorial on easyuo on how to test pixels.
;----------------------------------------------------------------------------------
; Version     1.2   - Added wait time. Thank you dxrom for this info. Tell me if it
;                     works properly for you now! :)
;                   - The check boxes for gathering seeds and resources were switched.
;                     Fixed that now.
;                   - A few minor changes (I think)
;----------------------------------------------------------------------------------
; Version     1.1   - Changed wait time after each dirt fill (thx Cerveza)
;----------------------------------------------------------------------------------
; Version     1.0   - Script has gone turbo. :) Everything is (A LOT) faster now
;                   - Fixed 'fill bowl with dirt' sub
;                   - In the mass growing section, if the box you're transfering
;                     plants to gets full, it will automatically select the next box
;                   - Added tool to just gather resources/seeds without tending
;                   - Added tool to unlock and trash all plants. For now it will
;                     trash EVERY plant you have, USE WITH CAUTION
;                   - Added pause button
;                   - Fixed resources issue
;                   - Fixed 'Plant Security' counter issue
;                   - Several minor fixes
;------------------------------------------------------------------------------------
; Version     0.5.1 - Fixed issue that would cause plant that's not really a plant
;                     to break the script.
;-------------------------------------------------------------------------------------
; Version     0.5.0 - Added mass production section to the tools menu. A tutorial
;                     on how to do this and explanation on what this means can be found
;                     here: http://www.scriptuo.com/index.php?topic=8300.0
;------------------------------------------------------------------------------------
; Version     0.4.2 - Fixed set plant security sub. Also changed the click position
;                     slightly to avoid clicking your menu bar, if you use yours at the
;                     top of the screen.
;-----------------------------------------------------------------------------------
; Version     0.4.1 - Fixed water bowls and plant seeds sub. Thanks again MeWonUo. :)
;------------------------------------------------------------------------------------
; Version     0.4.0 - Fixed the tools menu. Thank you MeWonUo for telling me about this.
;                   - Tending sub should be FULLY functional right now. I rewrote how
;                     the gump checks work, there should be no more skipping plants of
;                     any kind now.
;
;                     I'm looking for tips on how to update this any further... If you
;                     have any ideas, please tell me about them, and I'll try and update
;                     the script with it and you will receive credit for it. Thank you! :)
;----------------------------------------------------------------------------------------
; Version     0.3.0 - Fixed issue that was only tending to 1 condition per plant.
;                   - I rewrote the check water sub, and most of the tending code too.
;                     It should be stable enough to give your plants a go.
;                   - Fixed gumpwait sub (I know)
;                   - Added "C2's bowl filler sub" to the tools section
;                   - Added "C2's lockdown all plants" sub to the tools section
;                   Thank you C2 for letting me use your stuff. I appreciate it! :)
;------------------------------------------------------------------------------------
; Version     0.2.1 Added "focus to gump" security to Water Bowl tool.
;                   This may be needed for the tend part as well, I'll test it out
;                   as soon as I get my first grow check.
;----------------------------------------------------------------------------------
; Version     0.2 Features:
;             Added the following "Tools":
;                 - Water bowls and plant seeds in them. Will use OCR for this,
;                 and grab seeds from chosen secure.
;                 - Move bowls to breakable box. It will only move bowls that have
;                   seeds planted in them, so if any bowl was missed during the
;                   'plant seeds' session, they will keep in your backpack.
;                 - Set plant security. I used my old Plant Security script and modified
;                   it a little and added it here. Will set security to plants locked
;                   down around you to your given choice.
;              Also some few minor changes. I'll get to test this with 1500 plants after
;              growth check, and will make adjustments I see fit for v0.3
;-------------------------------------------------------------------------------------------
;             Remember: For OCR things, it's recommended you don't wave your mouse around,
;                       because it will mess up the gump checks, and things can go bad.
;-------------------------------------------------------------------------------------------
; Version     0.1 Features:
;                 - Will water and potion plants, according to the need. Uses
;                   OCR to check the needs of the plant.
;                 - Will gather seeds and resources from plants. I use no OCR for this,
;                   just journal scanning, so I recommend you leaving this for the last
;                   day. It will save you plenty of time. It will recognize and put
;                   away seeds, seeds of renewal, orange petals, green thorns and red
;                   leaves. So any other resources won't be moved to the secure and
;                   just stay in your bag. (I currently don't have the types of those
;                   "peculiar" resources.
;                 - Won't move mouse! :)
;-------------------------------------------------------------------------------------
;                 Things that will be added soon!
;                 - Tools menu. This will have several tool scripts related to plantgrowing.
;                 - Pause option.
;                 - Save settings (secure containers and such)
;                 - Cooler menu! I'll ask Guadah for some pointers! :)
;                 - Suggestions? Any nice suggestions users may have.
;--------------------------------------------------------------------------------------
; Instructions:   - You must have a secure container for you potions, resources and seeds.
;                 Potions must be inside your potion container, and the container must be
;                 within your reach.
;                 - You must have a pitcher of water INSIDE your backpack, preferably an
;                 endless decanter of water.
;                 - You must have a Water Trough near you!
;                 - Plants must be locked down and within 2 tiles of you.
;                 Use the setup menu to set your stuff, and hit Start. The script will
;                 (should) do the rest.
;-----------------------------------------------------------------------------------------
Special thanks to 12timesOver. Version 1.0 uses 12x's Weight Check sub!
Thank you for sharing that man! :)

I wrote the OCR stuff, using Cedryk's tutorial over at easyuo. The code I wrote is pretty simple, but efficient as far as I'm concerned... However, OCR is used for tending only, as of now. Resource gathering is done with journal scanning!

If this works for you, or not, please let me know! I'll definitely keep upgrading this constantly, until it's nice and pretty! :)

Neo

3.1.0 stats pic


WARNING: YOU SHOULDN'T HAVE ANY POTIONS IN YOUR BACKPACK, ONLY IN YOUR POTION SECURE. The water pitcher, on the other hand, should always be inside your backpack!

You can find a tutorial on how to use the mass plantgrowing feature of version 0.5 here:
http://www.scriptuo.com/index.php?topic=8300.0


Hope you find this useful!
:)

I found an issue that sometimes there are plants that aren't plants ( I know ) and this would cause the script to break... This should be fixed in version 0.5.1!

13
Script Debug / #time var
« on: August 16, 2011, 09:52:07 PM »
I'm having a problem... I was trying to get a "clock" to use in a script, and I came up with something like this:

Code: [Select]
set %string #time
str left %string 2
set %h #strRes
str Mid %string 3 2
set %m #strRes
set Right %string 2
set %s #strRes
set %hour %h , h
set %min %m , m
set %sec %s , s
set %ctime %hour , %min , %sec
Display %ctime

The thing is, if you keep looping this, you'll notice that the time displayed won't change for 1 whole minute...
It islike it doesn't read the #time var for 1 minute until it reads again...

Or maybe I'm doing sth wrong?

Anyway, I'd appreciate some insight!

Cheers!

neo

14
EDIT 28 september 2014:
I had this private "Elite" version of this lumber script stashed away for some time now, and I decided to share with everyone. I haven't used it myself for over a year so I don't know how it's working.

The main differences between these versions are:
- Added Siege Perilous support
- Added separate secure for Hatchets
- Added gate travel obviously
- Some fail safe code

So my only request is: please, give me some feedback on how the script is working for you, so I can at least make it stable and pretty for everyone.

Thank you guys, hope you enjoy!
===========================================================================================

Hey guys, I wanted to get myself some Crystal Shards. But the current Ter Mur Lumberjacks weren't working so well for me...

So yesterday, it was a local holiday here, and I decided to give this a tackle.

And today, I decided to share the first version (of many I hope) with you guys, so I can have some feedback to improve this and add new features as they are suggested.
So far, I've tested this for a few hours, and it worked flawlessly. I hope to get some feedback for this from you guys...

I also thought about the main idea behind the lumberjacking scripts I've seen, and they are all recall recall recall... So this one will swipe an area of trees in that location before moving on
to the next location. It will seem less 'scriptlike', and more human I guess. It would help to avoid being reported, especially in Ter Mur, imho. It's also pretty fast as far as I can tell....

Well, so here it is:

Code: [Select]
;=======================================================================
; Script Name: neo's Ter Mur Area Lumberjack ELITE VERSION
; Author: neo
; Version: 2.0.6
; Client Tested With: 7.0.34.15
; EUO version tested with: 1.50 248
; Shard OSI / FS: OSI
; Revision Date: 21/02/2013
; Public Release: N/A
; Purpose: Will recall to an area, chop all the trees the user sets in that
;          area, and then recall to the next area and so on.
;--------------------------------------------------------------------------------
; Url public version:     http://www.scriptuo.com/index.php?topic=8255.0
; Url Elite Version:      Unreleased/Private Script
;================================================================================
; Version 2.0.6   - Fixed some buggy code
;--------------------------------------------------------------------------------
; Version 2.0.5   - Added some fail safe code
;--------------------------------------------------------------------------------
; Version 2.0.4   - Some more tweaks
;--------------------------------------------------------------------------------
; Version 2.0.3   - Added alternate secure for Hatchets
;                 - Tweaked Gate Travel sub a little, should improve stability
;--------------------------------------------------------------------------------
; Version 2.0.2   - Removed Telekinesis which was causing issues
;--------------------------------------------------------------------------------
; Version 2.0.1   - Fixed issue with Gate Travel
;                 - Added Telekinesis to use gate
;--------------------------------------------------------------------------------
; Elite Version   - Added Gate Travel support
;                 - Added grabbing of hatchets in secure
;                 - Added Siege Perilous support
;----------------------------------------------------------------------------------
; Version 2.0     - Added multi-runebook support. You can add as many runebooks
;                   you want for your trees. Remember to have the proper runebook
;                   selected from the list, and also written the rune number in
;                   the proper edit box BEFORE you click to add a tree.
;                 - Added option to choose your own max weight offset from the menu
;                 New save is required for this to work, so you'll have to setup
;                 everything from scratch, sorry about that!
;----------------------------------------------------------------------------------
; Version 1.0     Okay, so it's been a while since last update, so I'm hoping to
;                 get some feedback on people who use this to see how it's working
;                 and possibily fix any issues that may appear.
;                 - Using my own recall sub now. It was about time I wrote one
;                   myself... :) Please tell me if you find any issues
;                 - Wrote a new drag and drop sub. I did some testing and found
;                   this cool way of moving stuff, again, tell me if
;                   something does not work for you
;                 - Redid the menus
;                 - Added pause button
;                 - Script will now halt if you close the menu
;                 - Script will now save travel method you choose
;                 - Added separate menu for statistics
;                 - Changed max weight offset
;
; Thank you EN and everyone else for the suggestions and feedback, which were
; all essential to the evolution of this script. I hope to continue getting
; feedback from everyone so I can continue updating this until it's nice for
; everyone's use.
;----------------------------------------------------------------------------------
; Version   0.6 - Fixed some codes that could cause issues.
;               - Script will now attempt to recall once per tree per rune.
;                 i.e. if you get blocked location at rune number one, and you
;                 have 4 trees there, it will attempt to recall 4 times to that rune
;                 before trying the next location.
;               - Added new axe types for gargoyles. Thank you Bodfather!
;-----------------------------------------------------------------------------------
; Version   0.5 - Fixed possible overweight issue.
;               - Fixed counter issues(I think)
;---------------------------------------------------------------------------------
; Version   0.4 - If you're axe is not equipped when you're adding trees, it will
;                 be equipped automatically
;               - Fixed core sub. Believe it or not, I left an old version of the
;                 sub in there with the same name, I don't even know how EUO was
;                 handling this.
;               - Removed some useless lines of code I found
;               - Changed how recall subs and dropoff sub work again. Will fine tune
;                 this as I find the need to do so.
;               - Added menu option to choose rune number of secure
;               - Save button will now save your bank option, and also the rune number
;                 of your secure
;               - Fixed Travel Method Choice. Recall and Sacred Journey should
;                 be working just fine now.
; Thanks:
; Thank you Guadah for the feedback, 0.4 is based mostly on your input. Cheers!
;----------------------------------------------------------------------------------
; Version   0.3 - Fixed issue that was causing the script to slow down after 1 hour
;                 or so.
;               - Added Logs/Hour counter
;               - Changed how recall works to improve performance in case of
;                 'something is blocking that location'
;----------------------------------------------------------------------------------
; Version   0.2 Fixed counter bug.
;--------------------------------------------------------------------------------
; Version   0.1 Currently only tested with Melisande's Corroded Hatchet, should work
;               with any axe type. Won't grab anything from secure or craft though.
;               Features:
;               - You can set up as many trees you want it to chop in a specific area.
;                 It will recall to that area and chop all the trees there, until
;                 they're clean, and then it will recall to the next area
;               - Will recall back home or to the bank to drop off your stuff, and
;                 then resume chopping where you left off.
;               - Works in Ter Mur, so will get you Crystal Shards, which is nice
;               - Won't give that horrible recall scripting impression, that will likely
;                 get you reported, especially in Ter Mur.
;               - Will save your setup using TM's NGFS, so you only need to set it up
;                 once.
;
;               Things you'll see in the next versions:
;               - Run away from enemies you set
;               - Multi-runebook support. Although if you do the math, let's say you
;                 set up a full runebook, with 5 trees to chop in each location,
;                 you will easily get to a total of 80 different trees to chop in
;                 each loop.
;               - A check during setup that will warn you if you won't be able to chop
;                 the tree you're trying to set up.
;               - Pause button
;               - User suggestions. I always want to improve things so that they can be
;                 helpful to anyone who tries them. So, if you have ANY suggestions, please
;                 feel free to share them with me! Also, any kind of feedback is appreciated
;                 so that I can try to keep improving this for the ScriptUO community. :)
;----------------------------------------------------------------------------------------------
; Special Thanks:
; Stuff I used from other people's libraries:
; - Tm's Next Generation File System
; - Tm's Runebook/Spellcast Subs
; - Tm's Advanced Journal Handler
; - 12TimesOver's XIIxMaxWeight sub
; So, I would like to thank both TM and 12times for sharing their subs
; with us. I greatly appreciate being able to use their codes in my stuff.
; Thank you.

; I'd also like to thank everyone here at ScriptUO who made me feel right at home.

; Neo
;-----------------------------------------------------------------------------------------------
; Instructions: Have a runebook with all your tree locations and another runebook with you're home/bank
; rune. Then, you have to add every tree using the menu. There's a box next to the Add button where
; you have to input the number of the rune of the current tree your chopping.
; Example: If the tree you're setting is in the first rune of the runebook, you write
; the number '1' into that box, and click add. Then you'll target the tree you want to chop
; and the tree will be added to the list. You can do this for as many tress as you'd like per rune.
; I haven't tested this with trees that are more than one screen away from the recall position though.
; Once this is all done, you can save your setup, so that you don't have to add the trees every time you run this.
; Also, you can easily remove any tree you want from the menu with the Remove Selected button. Also remember to set up
; your secure from the menu.
; Now you're set. Just click the Start Chopping button and the script will do the rest.
; Enjoy.
V0.5 pic


Special Thanks:
Stuff I used from other people's libraries:
- Tm's Next Generation File System
- Tm's Runebook/Spellcast Subs
- Tm's Advanced Journal Handler
- 12TimesOver's XIIxMaxWeight sub
So, I would like to thank both TM and 12times for sharing their subs
with us. I greatly appreciate being able to use their codes in my stuff.
Thank you.

I've only tested this with Melisande's Hatchet so far. This won't grab axes from secure, or craft them, or anything like that, as of this first version.
I will add these options in future versions, if there's a demand for it! It's pretty easy to add...

Remember that you can walk up to several trees close to your recall spot, and set them. While the script is running, it will pathfind to each tree location.



Neo

15
Script Debug / lumber issue
« on: August 15, 2011, 12:20:46 PM »
I just started playing with some lumber scripts...

The thing is, I used this stuff I wrote this morning, and it was working, and now it doesn't work anymore.

I'm setting #ltargetx #ltargety #ltargetz #ltargetkind #ltargettile to the tree, and using the axe, and then event macro 22...

A message appears: You can't do that.

Anyone know what's causing this?

Cheers!

neo

Pages: [1] 2