ScriptUO

Scripting Resources & Utilities => Stealth Client => Topic started by: uofreak on November 14, 2018, 04:29:10 PM

Title: Hi all newbie on non-OSI custom RunUO shard.
Post by: uofreak on November 14, 2018, 04:29:10 PM
Hey guys,
I love what stealth may be able to do but I need a way to put it together.

I have the latest version, would prefer to write in python, is it fully supported yet?

The shard has a lot of custom skills that look a bit like OSI but some not. Use custom gumps,
but should be fine if I can detect gumps.

I am used to UOsteam for macroing, is there any way to record and learn what uostealth sees?

Any advice to get me started appreciated!!
Title: Re: Hi all newbie on non-OSI custom RunUO shard.
Post by: ZeroDX on November 14, 2018, 07:54:49 PM
Stealth supports pythons 2.6-3+, supports custom skills, can detect gumps. There is a wiki (http://stealth.od.ua/Doc:Manual/Reference) at the stealth webpage.
Title: Re: Hi all newbie on non-OSI custom RunUO shard.
Post by: uofreak on November 15, 2018, 05:32:20 AM
Thanks zero, will go through the wiki for now and see if anything is too blurry for my newbness!

Post Merge: November 16, 2018, 05:13:04 AM
"Commands available in the client
To execute a command - you need to write it with a semicolon at the beginning, then a list of available commands, but here's an example:"

I can't seem to use any commands..

tried:

;info
,info
 with or without spaces, how to enter commands inside the launched client? I did launch from inside stealth.

Post Merge: November 16, 2018, 06:26:36 AM
Good news is I started with Pascal, a language I haven't touched since I was 12... and don't get any ideas I'm a great coder or anything. I spent most of my time playing games, making websites, graphics, boring *bleep* to get by haha

Hello world works, getting the hang of char variables, good so far. But still don't know how client commands work.

Post Merge: November 16, 2018, 09:02:00 AM
First healing script shared in the other board, having some issues with an arrow/item counter basic script:

How do I count items in stacks, like how many items are in a stack?

Quote
Program BackpackArrows;
Var arrowCount: integer;
begin
 //Body of Script   
 // FindTypeEx($0F3F; $0000; backpack; true)
 IF (FindTypeEx($0F3F, $0000, backpack, true)> 1) THEN   // If arrows present in pack then
 BEGIN
 //arrowCount=FindCount($0F3F);   how to add result to var in pascal?   
FindType($0F3F, backpack);
  addtosystemjournal('Arrows found: ' + IntToStr(FindCount($0F3F)));
 
 //addtosystemjournal ('Arrow count is: '+IntToStr(FindCount($0F3F,backpack)));
END
 
// if Count(runes) < 10 then

end.

Post Merge: November 16, 2018, 09:09:03 AM
Answered my own question, look at me and thanks API reference:
http://stealth.od.ua/Doc:Api/FindFullQuantity

Quote
FindType($0F3F, backpack);
  addtosystemjournal('Arrows found: ' + IntToStr(FindFullQuantity));