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.


Messages - slyone

Pages: [1] 2 3 ... 9
1
Crafting / Re: Runebook Copier
« on: February 01, 2016, 06:52:00 PM »
say anyway to put a wait time in for mana to build back up ? thx.

Good question.  It is possible to add a mana check prior to every spell call.  I found an example in The Reaper's post for a Resisting Spells Trainer (I pasted the specific sub below).  I hesitate to add this specifically since the mana required to cast varies based on lower mana cost.  I'll consider adding this feature in the future.

Code: [Select]
sub checkmana
    if #mana < %manatocast
    {
    event macro 13 46
     loop2:
       if #mana < #maxmana
       {
        goto loop2
       }
    }

return

2
Crafting / Re: Runebook Copier
« on: December 26, 2015, 07:51:46 PM »
can you made this to work on the new Atlas ?

Good question, this script uses TM's Travel sub's.  I don't have travel subs that support the new Runic Atlas.  So until that time this script won't be able to support it.

3
Misc. Scripts / Re: SOT sorter
« on: December 26, 2015, 07:31:40 PM »
Just a bug report - It doesn't seem to detect eval intel pinks, otherwise still works great.

A quick look at the code shows that it's searching for "evaluat" but pinks are named "eval intelligence", simple fix.

It's also missing Fletching

Thanks for the feedback.  I made the updates you mentioned and posted version 1.2.  I don't have the SOT's to test this version so I apologize in advance if I introduced a bug into version 1.2 .  I'm leaving version 1.1 up until I have time to more fully test the update.

4
Code: [Select]
;#CONTKIND/Gump Values for Client version 7.0.47.0 (Patch unknown)
set %GumpMainMenu    IORC     ; This is the login screen
Set %GumpWait        QMU      ; This is the wait gump before next screen
Set %gumpShardSelect ACPC     ; this is the shard select screen
set %GumpLogin       SVZ      ; this is the Character Selection Screen with NEW/DELETE Buttons
set %GumpNewChar     KDGC     ; this is the New Character Name and Clothing screen
set %GumpNewChar2    WZKC     ; this is the New Character Trade Selection screen
set %GumpNewCharMap  WZKC     ; this is the New Character Map starting location screen
set %GumpGeneric     YAOD     ; this is the Vet Reward/6 month stat increase gump
set %GumpYesNo       GLDC     ; this is the Logout - Okay Cancel gump

5
I know this topic is a bit old but I think it is worth mentioning that running client.exe using the "Run as administrator" option solved this issue for me.

-S

6
_C2_ Script Library / Re: C2's Auto Reloger
« on: February 21, 2015, 05:27:49 PM »
This script still works.  I ran into an issue with the x-y values due to multiple monitors.  The script worked once I moved the client to the monitor that EUO recognized as 0,0.  Thanks for a great script!

7
Misc. Scripts / Re: Scroll Binder
« on: January 30, 2015, 04:11:05 PM »
Nice script man Congrats, works great! Any plans for an SOT binder? I've got like 4k lmao and never doin that manually :P

Implementing the SOT binder part is definitely on the TODO list.  I will definitely upload an update when I have it working but it probably won't be for a while.

-S

8
Misc. Scripts / Re: Scroll Binder
« on: January 26, 2015, 05:33:09 PM »
could we possibly get this to work with the new powerscroll books?

Good question, what kinds of features do you have in mind? 

9
Stealth archive / Re: Why is profiles.dat a binary file?
« on: October 22, 2014, 05:30:25 PM »
Thanks for the info!  Now, unless you can reveal this record, time to get to work on reverse engineering what the record looks like...

10
Stealth archive / Why is profiles.dat a binary file?
« on: October 20, 2014, 06:40:05 PM »
I did a hexdump of profiles.dat and see a bunch of nulls in addition to the name of each of my profiles as well as a couple of the settings I chose for the profile.

Why is profiles.dat a binary file?

11
Stealth archive / Re: Stealth Documentation
« on: October 04, 2014, 11:16:32 AM »
The Stealth embedded Python is documented with Python doc strings.  Below is a code snippet that will generate a listing of each of the functions and the other types and write it to a file.  It builds off of Boydon's recommendation in Vlek's post about Stealth Python Documentation.  This code works in Python 2.  I have not tested it in Python 3 but see no reason why it wouldn't run in Python 3.

Code: [Select]
# Stealth UO Client Import
import stealth

# Python Library Imports
import inspect
import subprocess

# Test Code
# print help(CreateComponent)
# print CreateComponent.__doc__

func_lines = []
other_lines = []

# Get a listing of the member attributes of the Stealth library
functiondict = inspect.getmembers(stealth)

# Loop over each member and get its type and description
for k, v in functiondict:
    cur_line = "%s:\t%s\n" % (k, v)
    cur_doc = inspect.getdoc(getattr(stealth, k))
    if cur_doc:
        cur_line += "\t" + cur_doc + "\n"
    else:
        cur_line += "\tNo description\n"

    if inspect.isbuiltin(getattr(stealth, k)):
        # If the current member is a function add it to func_lines
        func_lines.append(cur_line)
    else:
        # else add the member and description to other_lines
        other_lines.append(cur_line)

with open("stealth_member_listing.txt", "w") as fh:
    # Write the functions to the file first
    for line in func_lines:
        fh.write(line)
    # Then write the other members to the file
    for line in other_lines:
        fh.write(line)

# Show the file in notepad
subprocess.call(["notepad", "stealth_member_listing.txt"])


I find it helpful to generate this listing each time Stealth is updated to a new version.


12
Stealth archive / Stealth Documentation
« on: October 04, 2014, 11:07:20 AM »
Over the years, the EasyUO wiki has been a valuable resource.

Stealth has similar wiki with a function list, usage descriptions, and tutorials.

Here are a few of the links:
Stealth Documentation by Category
Stealth Alphabetical Function Listing

The wiki is editable by any user when logged into the site.

There is also a Russian version of the references which I think is mostly synchronized with the English version:
Stealth Documentation by Category [Russian]
Stealth Alphabetical Function Listing [Russian]

As discussed in Vlek's post about the Stealth Python Reference, much of the documentation refers to the Pascal usage.  In some cases in the wiki, both the Pascal and Python versions of functions are shown.


13
Stealth archive / Re: Stealth Python Reference
« on: August 24, 2014, 10:19:36 AM »
I really don't get why they'd choose to use pascal. The basic "stuffs" that are in a UO game, like items, mobiles, gumps, etc, are all objects that inherit from the basic "thing" or item class. It makes tons more damn sense to make classes and methods for them, and python is a very decent choice for doing so. Also, why would you have two of each function for player's/other mobile's status checks? Instead, why not have an IsPoisoned that defaults to the player when a serial isn't specified?

I'm currently working on converting the stealth semi-russian functions into intelligible classes with methods (going off of runuo internals to get as close to a server-side representation as possible) that more closely resemble the functionality and wordage of the built-in steam functions since they better fit with a western understanding of the words used for function names.

Thanks Boydon, I'll give that list a try and see if I can't finish this up.

Orich was working on a ScriptAPI in C# a while back.  He used it in his tutorial as a wrapper for the Stealth functions.  I haven't been keeping up with the .NET dll but here is the link to his bitbucket.org page for the source. 

Being able to use Python in Stealth is awesome.  A while ago, I was working on a Python version of the Orich's ScriptAPI.cs.  I might be wrong but it sounds like you are working on something similar.

You mentioned using the Stealth Documentation Manual.  Hopefully you are also referencing the API function list.  Some of the functions have some good examples and others just have the function prototype with a short description.

Anyways, hopefully some of these references help.

14
Site News / Re: Time for a change to the site slogan
« on: June 28, 2014, 06:26:22 PM »

15
Stealth archive / Re: Python not returning the right object?
« on: March 16, 2014, 07:24:16 PM »
I'm using a simple function to try to see if there are any players close by. It should return true at the closest player and it works for the most part. If I run the code below it will find the closest player to me than if I move closer to a different player, but the last found player is still visible. It will return the last found player every time and not the closest player, until the last found player leaves or is to far away. Does anyone have any idea why this might be happening?


I tested out your code a bit and added the following after your "Found object" print statement:

Code: [Select]
print( GetX(player), GetY(player), GetZ(player) )
Adding that line just prints the location of each of the objects found.  For me it looks like the function
Code: [Select]
FindTypeEx doesn't return a list sorted closest to farthest.

Let me know if I'm mis-reading something.

-S

Pages: [1] 2 3 ... 9