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 - JlM

Pages: [1]
1
Stealth Snippets\Library / Re: Python item counter, for backpack
« on: December 20, 2018, 12:38:15 AM »
Thank you for all the help!

2
Stealth Snippets\Library / Re: Python item counter, for backpack
« on: December 19, 2018, 04:11:08 PM »
LIMIT = 100

if Count(-1) > LIMIT:
  pass
  print("Overweight")


It prints a blank with no words when i hit play and have more or less than 100 items in bag.

3
Stealth Snippets\Library / Re: Python item counter, for backpack
« on: December 19, 2018, 09:20:34 AM »
Thank you for the response.

To be more descriptive. I need to know when I'm close to over item count ie 120 items in my backpack. I have the ability to do it based on weight, but with certain items I will not be over weight but reach the item limit.

Post Merge: December 19, 2018, 09:25:56 AM
For instance a bod book. Full of bods

4
Stealth Snippets\Library / Python item counter, for backpack
« on: December 19, 2018, 05:44:59 AM »
I have a def that will work if I reach a certain weight. I'm needing one for item count in my backpack. Can someone shoot me in the direction of a example or some documentation. Any help would be appreciated.

5
Script Snippets / Re: TrailMyx's Emailing routines
« on: October 23, 2018, 06:14:30 AM »
This still work? Couldn't get it. I might not be understanding the complexity of setting it up.

6
UOSteam / Program or Plugin to help with Steam Coding
« on: September 15, 2018, 10:48:11 AM »
Is there a program or a plugin that will help with steam script writing, specifically when making long macros I get lost in the if/end if there are several nested inside each other over and over. Something like if you select the IF it highlights where its closed below with the endif.

7
Stealth Client / Re: Script not sorting properly (python)
« on: September 12, 2018, 08:56:23 AM »
Ok found out 'tailor' and book titled Tailor, don't match up. So it adds tailors now but fails to put Smith bods Into that book. How Do I make it loop back to the top to check again if there is still a bod. Or have it cycle it until no more bods are in bag?

Nice, I suspected that was the case :)

As for the new issue... Although I think it could be restructured a bit ( more below ) I don't really see what would prevent it from putting smith books in.

A few things to check:
- Does FoundBlacksmithBods  actually contain info? Or check FindCount() after the FindTypeEx() call, maybe the color could be wrong?
- Does FoundBooks actually contain 2 ( or more ) books?

I'd suggest an approach like this ( warning psuedo code )

Code: [Select]
def findNamedBook(searchStr )
    res = FindTypeEx(8793, 0, Backpack(), False)
    FoundBooks = GetFindedList()
    for book in FoundBooks:
        tooltip = GetTooltip(book)
        if searchStr in tooltip:
           return book
# some error since no matching book found
return 0

tailorBook = findNamedBook('Tailor')
smithBook = findNamedBook('Smith')

res = FindTypeEx(8792, 1155, Backpack(), False)  # Tailor
FoundTailorBods = GetFindedList()
for tbod in FoundTailorBods:
   MoveItem(tbod, 0, tailorBook , 0, 0, 0)
   Wait(100)

res = FindTypeEx(8792, 1102, Backpack(), False)  # Blacksmith
FoundSmithBods = GetFindedList()
for bod in FoundSmithBods :
   MoveItem(tbod, 0, tailorBook , 0, 0, 0)
   Wait(100)


I think it's a little more clear, and avoids nested / redundant loops

I figured it out. I just told it to sort 4 times in a row in the body of code

8
Stealth Client / Script not sorting properly (python)
« on: September 12, 2018, 04:31:42 AM »
I have the following script to sort bods in my bag. It currently only puts blacksmith bods Into my book that is labeled tailor. Any help would be appreciated.

def SortBods():
    res = FindTypeEx(8793, 0, Backpack(), False)
    FoundBooks = GetFindedList()
    res = FindTypeEx(8792, 1155, Backpack(), False)  # Tailor
    FoundTailorBods = GetFindedList()
    res = FindTypeEx(8792, 1102, Backpack(), False)  # Blacksmith
    FoundBlacksmithBods = GetFindedList()
    for book in FoundBooks:
        tooltip = GetTooltip(book)
        if 'tailor' in tooltip:
            for tbod in FoundTailorBods:
                MoveItem(tbod, 0, book, 0, 0, 0)
                Wait(100)
        else:
            for bbod in FoundBlacksmithBods:
                MoveItem(bbod, 0, book, 0, 0, 0)
                Wait(100)

9
Stealth Client / Re: [C#] send texts
« on: September 09, 2018, 02:09:10 PM »
Is it possible call this script from inside a python script I use? If not, does anyone have one that will work for python?

10
New member introductions / Hi, my name is JlM
« on: August 28, 2018, 10:36:49 AM »
Hi, My name is JlM, I am 35 years old and from Louisiana. I have been playing Ultima Online since release, with several breaks. I have played OSI, and several free servers. Recently I decided to start playing again. I found a lot of my EUO and Steam scripts but now realize both have advanced alot. I would like to learn to use them to their full ability again. I currently enjoy PvP, Tamer and Sampire Play .

I look forward to being a productive member of ScriptUO

JlM

Pages: [1]