ScriptUO

Official ScriptUO EasyUO Scripts => Site Scripter Libraries => Endless Nights' Script Library => Topic started by: Endless Night on March 18, 2010, 04:59:33 PM

Title: ENs - Subs - Mini Rail System
Post by: Endless Night on March 18, 2010, 04:59:33 PM
ENs - Subs - MiniRail System
Version 2.5  Release Date: April 2011

============================================

ABOUT
Not my superslick condensed rail system.. just a quick and dirty minirail system originally created to run ANT nests but since used for Magencia Lottery Tickets and scanning luna amongst other things.

Features:
This is part of ENs new sub series. These subs are callable and self contained. If you call the EN_SubRegisterAndInitialize function it will register all the subs and such into memory.  Most people wont need this

Pathing:
All Ens subs and scripts will defaulty be using this directory c:\Easyuo\ENs-Scripts\
Therefor to save on editing if you use a bunch of my scripts i recommend you create the appropriate directory and save the file their so save you from editing the header block of each of my scripts.

How To Use:
See top of script for callable sub definitions and posts below

Example of usage:
See top op script for Examples of usage and posts below  (Note default saves rail to C:\MyRail.txt)

Future Features: (some might never make it)

Feedback:
Feedback both negative and positive are defiantly more than welcomed and encouraged.  Same with feature requests .. no guarantee will make it into the code .. but it might.


Disclaimer/Usage License: -- See Script for full Details.

(C) 2007 All Rights Reserved JosephAJ
Commercial usage requires written permission from the author


NOTE: My scripts or any derivative of them are *not* for use in other players script/s! (Unless they specificially say they are)
Title: Re: ENs - Subs - Mini Rail System
Post by: Endless Night on March 18, 2010, 05:23:02 PM
Example Script.   (Attach subs to end or call them)

Code: [Select]
gosub ENs_LunaBankRail_Setup

Display OK Start At Luna MoonGate
gosub ENs_MiniRail_Run LunaBank FORWARD

display ok Going to Run the Rail in reverse now
gosub ENs_MiniRail_Run LunaBank REVERSE
halt

sub ENs_LunaBankRail_Setup
  gosub ENs_MiniRail_AddPoint LunaBank  1016 524 -70
  gosub ENs_MiniRail_AddPoint LunaBank  1016 520 -70
  gosub ENs_MiniRail_AddPoint LunaBank  1011 520 -58
  gosub ENs_MiniRail_AddPoint LunaBank  1005 520 -50
  gosub ENs_MiniRail_AddPoint LunaBank  1002 520 -50
  gosub ENs_MiniRail_AddPoint LunaBank   997 520 -50
  gosub ENs_MiniRail_AddPoint LunaBank   997 512 -50
  gosub ENs_MiniRail_AddPoint LunaBank   990 512 -50
  gosub ENs_MiniRail_AddPoint LunaBank   982 512 -50
  gosub ENs_MiniRail_AddPoint LunaBank   982 519 -50
  gosub ENs_MiniRail_AddPoint LunaBank   982 527 -50
  gosub ENs_MiniRail_AddPoint LunaBank   989 527 -50
  gosub ENs_MiniRail_AddPoint LunaBank   997 527 -50
  gosub ENs_MiniRail_AddPoint LunaBank   997 519 -50
  gosub ENs_MiniRail_AddPoint LunaBank  1003 519 -50
  gosub ENs_MiniRail_AddPoint LunaBank  1009 519 -50
  gosub ENs_MiniRail_AddPoint LunaBank  1015 519 -70
  gosub ENs_MiniRail_AddPoint LunaBank  1016 524 -70
Return


Attached Example script with the subs included
Title: Re: ENs - Subs - Mini Rail System
Post by: Endless Night on March 18, 2010, 05:23:59 PM
Well finally!!!  ehhe

Sorry TM had to remove your post :)   Got in middle of my 2 ..   and this isnt my super compressed rail system .. its my mini rail for short distances .. or multiple short distances.  Like running into your house up the stairs to a box and back down again.

Ideal for scripts that dont want the overhead of running a full blown rail system for such little distances.
Title: Re: ENs - Subs - Mini Rail System
Post by: NObama on March 19, 2010, 05:11:20 AM
Huzzah!  Since I do so much running across uneven ground, your method seems to work the best.

 :)

Edit:  Hmm...now I'm almost obligated to rework Ant Farm, aren't I?
Title: Re: ENs - Subs - Mini Rail System
Post by: Endless Night on March 19, 2010, 05:22:44 AM
Actually was working on that right now myself as i hadnt done anything on it in ages.  Look for a new version soon.
Title: Re: ENs - Subs - Mini Rail System
Post by: Endless Night on March 20, 2010, 04:29:59 PM
VERSION 2

Includes a miniRail Recorder sub

Code: [Select]
GoSUB ENs_MiniRail_Recorder  MyRailName  C:\MyRail.txt  SPACE ESC
;GoSUB ENs_MiniRail_Recorder  ; Railname Filename (RecordHotKey ExitHotkey - Optional)


I generally record a way point every 4 spaces.  But its up to you. 
Title: Re: ENs - Subs - Mini Rail System
Post by: Endless Night on April 22, 2011, 05:18:43 AM
VERSION 2.5

UPdated what and why .. beats me .. misc fixes etc.
Title: Re: ENs - Subs - Mini Rail System
Post by: Alpha on December 21, 2013, 11:17:30 AM
Question for you EN.   I was just playing around with your mini Rail system & had a small problem with it.   I setup a short 6 point rail near my house and it runs FORWARD to the end fine but when I run in REVERSE it halts at point 3.   I peeked inside & it looks like !Railpointon increments down to 1 WHILE the character is still on point 3 and thus exits the Repeat loop in sub ENs_MiniRail_Run.   I'll have to play with more, but that will probably take me 10x as long as it would take you.   If you find a sec to play with a 2 year old post gracious!
Title: Re: ENs - Subs - Mini Rail System
Post by: Endless Night on December 22, 2013, 05:58:46 AM
Umm this is probably an older version... try the version thats in my library zip, that should be newer http://www.scriptuo.com/index.php?topic=10609.0

If that still doesnt cure the issue... post here again and i will look at it...
Title: Re: ENs - Subs - Mini Rail System
Post by: Alpha on December 22, 2013, 10:47:06 AM
Yea the Version I'd played with was the most recent one 2.5.   It's functioning the same way I described in my initial post.  I've tinkered with it and got it working with FORWARD / REVERSE but not sure I preserved the added loop functionality etc.    Anyway if you get a minute & honestly feel like peeking at it go please do but I know it's that time of the year & at least for myself I find it hard to get the motivation to work on anything that isn't my "current" project etc.

Thx!
Title: Re: ENs - Subs - Mini Rail System
Post by: Crisis on March 08, 2015, 07:48:03 AM
I am using Windows 8.1 and I tried recording a rail and it seemed to work but for the life of me I cannot find where it saved it. I have 2 hard drives and I have searched both for \Easyuo\ENs-Scripts\ and could not locate it at all. :(

Edit: ok I read in the script and looked a little closer and saw that it saves it as C:\MyRail.txt

User Error! DOH!  :o
Title: Re: ENs - Subs - Mini Rail System
Post by: Endless Night on April 05, 2015, 01:40:35 PM
I am using Windows 8.1 and I tried recording a rail and it seemed to work but for the life of me I cannot find where it saved it. I have 2 hard drives and I have searched both for \Easyuo\ENs-Scripts\ and could not locate it at all. :(

Edit: ok I read in the script and looked a little closer and saw that it saves it as C:\MyRail.txt

User Error! DOH!  :o

LOL  glad you found it - Added a note about that to the first post for next person.  :)
Title: Re: ENs - Subs - Mini Rail System
Post by: Gemviper on October 05, 2015, 07:12:09 PM
I get excited when I see script examples like this, but then being new to stealth I am instantly shut down since I have no clue where or how to put such examples so I can try them. Can't load the example because it's a text file not an .sc file, that much I know, but can't convert it to an .sc file because it triggers an "expected begin" error... so frustrating for a new guy, where does this go to try it?

after a lot more searching I found the answer here = http://www.scriptuo.com/index.php?topic=12441.msg104157#msg104157

I need more documentation to get up to speed I think, many of the examples require a minimum amount of knowledge which, I suspect, will slow down the amount of contributions greatly. There probably just aren't that many UO players with solid scripting skills to begin with, my first impression of stealth is that it looks fantastic with the most potential but if only a handful of players can unlock it it's not going to get finished so to speak and that would be a shame. As five would say - need more inputs!
Title: Re: ENs - Subs - Mini Rail System
Post by: Endless Night on October 07, 2015, 06:14:45 AM
I get excited when I see script examples like this, but then being new to stealth I am instantly shut down since I have no clue where or how to put such examples so I can try them. Can't load the example because it's a text file not an .sc file, that much I know, but can't convert it to an .sc file because it triggers an "expected begin" error... so frustrating for a new guy, where does this go to try it?

after a lot more searching I found the answer here = http://www.scriptuo.com/index.php?topic=12441.msg104157#msg104157

I need more documentation to get up to speed I think, many of the examples require a minimum amount of knowledge which, I suspect, will slow down the amount of contributions greatly. There probably just aren't that many UO players with solid scripting skills to begin with, my first impression of stealth is that it looks fantastic with the most potential but if only a handful of players can unlock it it's not going to get finished so to speak and that would be a shame. As five would say - need more inputs!


I think you posted this in the wrong thread,  but in case you didnt.... this thread is about an EUO script ... not a stealth script.  That would be why you cannot use it in stealth.

Thier are a bunch of scripting languages/programs for UO ... none of them are compatible with each other... if you want stealth scripts only look in the stealth section.


Title: Re: ENs - Subs - Mini Rail System
Post by: Gemviper on October 07, 2015, 11:38:58 AM
Yup, wrong thread, sorry  ???

I was looking for ideas/hints/tips to finish what I was working on using the search feature so there were no sections, I'll watch that more closely next time. Thanks.
Title: Re: ENs - Subs - Mini Rail System
Post by: Endless Night on October 07, 2015, 02:35:55 PM
Yup, wrong thread, sorry  ???

I was looking for ideas/hints/tips to finish what I was working on using the search feature so there were no sections, I'll watch that more closely next time. Thanks.

No worries thats what i figured.... if your familiar with stealth should be too hard to translate this script...
Title: Re: ENs - Subs - Mini Rail System
Post by: Gemviper on October 07, 2015, 09:54:15 PM
I know but each time I set aside a couple of hours to try I end up fully blocked right now, when looking at existing scripts I see things that make no sense to me yet, such as number strings. I'll figure it out.

To be honest I'm about 2 weeks in to being back after a year out of game, and even then I was only back shortly while being out for a decade. This time I'm back until the game bites the dust and so I'm still trying to figure out where I'll spend most of my energies.

Fishing is a given, I love roleplaying a pirate in UO and that there are quests, dungeon fish, trophies, davie's tables... the whole system is advanced enough not to bore me. I'm not sure that would be the case without a fisher and SOS script. Those don't exist on stealth so they would be at the top of my list for scripts I want to figure out there.

Next is IDOCs, every idoc is a Christmas present to me. The whole hunting them down, stalking them and then beating others for choice items also appeals to me from a game. I've got my own version of a finder script and my own version of a looting script already, but not on Stealth yet.

Since I hooked up EUO and Stealth together I'm running them both at all times, the map in Stealth is the best out there and almost a must if you search for IDOCs to be honest. Steam has a map too but it doesn't show houses, doesn't have a "go here" function built in etc. Changing accounts/characters is a breeze in stealth too, I now get impatient at the long loading process whenever I don't use it :)