ScriptUO

Scripting Resources & Utilities => Stealth Client => Stealth archive => Topic started by: camotbik on November 22, 2011, 06:28:11 AM

Title: Stealth script corner.
Post by: camotbik on November 22, 2011, 06:28:11 AM
Hello there. As there is no section for stealth scripts, i made this little thread. People that are not familiar with stealth client - it is a non-graphical script client for uo, but if you want you can attach the graphical client as well. It has a mass of possibilities, and the script language(pascal) is pretty easy to learn.

The first script I want to demonstrate is support script in pvp - a healer runs behind the host char with a precasted greater heal and heals every one from the friendlist when theyre health comes down to 94% (23). Cures as well when needed. + the best bonus is line of sight check, so for example if your friend is behind a wall but < 10 tiles from you, you wont try to cast on him.
Code: [Select]
onst Host =  $000F7F27;
      
var p : TPathArray;
    c : Integer;
    i : Integer;
    MeditTime : Cardinal;
    Friend: array of Cardinal;
    res : Boolean;
    
procedure Medit;
begin
if WarMode = true then SetWarMode(false);
if Mana < MaxMana then
begin
  if ((Timer > (MeditTime + (11 * 1000))) or (MeditTime = 0)) then
   begin
    UseSkill('Meditation');
    MeditTime :=Timer;
   end;
end;
end;    

procedure PrecastGH;
begin
if not TargetPresent then
 begin
 if (Count($0F85) > 0) and (Count($0F84) > 0) and (Count($0F86) > 0) and (Count($0F8D) > 0) and (Mana > 10) then
  begin
   Cast('Greater heal');
   WaitForTarget(2000);
  end;
 end;
end;

procedure Cure;
begin
if TargetPresent then CancelTarget;
 if (Count($0F84) > 0) and (Count($0F85) > 0) and (Mana > 5) then
  begin
   Cast('Cure');
   WaitForTarget(2000);
   res := CheckLoS(getX(self), getY(self), getZ(self) + 15, getX(Friend[i]), getY(Friend[i]), getZ(Friend[i]) + 15, WorldNum);
   if TargetPresent and (getDistance(Friend[i]) < 11) and (Mana > 5) and res then TargetToObject(Friend[i]);
  end;
end;


procedure Checktarget;
begin
Friend := [$000DC8C1, $000DCFE0, $000F7F27];
for i := 0 to Length(Friend) -1 do
 begin
  res := CheckLoS(getX(self), getY(self), getZ(self) + 15, getX(Friend[i]), getY(Friend[i]), getZ(Friend[i]) + 15, WorldNum);
  if IsPoisoned(Friend[i]) and res then cure;
  if (GetHP(Friend[i]) < (GetMaxHP(Friend[i]) - 3)) and (GetHP(Friend[i]) > 0) and TargetPresent and (getDistance(Friend[i]) < 11) and (Mana > 10) and res then TargetToObject(Friend[i]);
 end;  
end;
  
begin
losOptions := losTypeRunUO;
while not dead do
  begin
   wait(50);
   if getDistance(Host) > 4 then
    begin
     c := GetPathArrayFrom(PredictedX, PredictedY, PredictedZ, GetX(Host), GetY(Host), 1, True, p);
     if c > 0 then StepQ(CalcDir(PredictedX, PredictedY, p[0].X, p[0].Y), True);
    end;
    PrecastGH;
    Checktarget;
    Medit;
  end;
end.

The other script is a idoc finder, that stores results in a file, [ xy, state, date ], when an greatly or idoc found yells M! so if you want you could mark a rune near the house.
Code: [Select]
procedure WriteToFile(filepath: string; data: string);
var mode: Word;
begin
if FileExists(filepath) then mode := fmOpenReadWrite
else mode := fmCreate;

with TFileStream.Create(filepath,mode) do
  try
    Seek(0,soFromEnd);
    WriteBuffer(data,Length(data));
  finally
    Free;
  end;
end;

function status(str : String) : String;
begin
result := '???';
// if BMSearch(1, str, 'This house is fairly worn.') > 0 then result := 'fairly';  // just had too amny fairlys on the tests
if BMSearch(1, str, 'This house is greatly worn.') > 0 then result := 'greatly';
if BMSearch(1, str, 'This house is in danger of collapsing.') > 0 then result := 'idoc';
end;


procedure checkStatus;
var s : String;
begin
s := status(journal(lineIndex));
if s <> '???' then
begin
         writeToFile('C:\Idocs3.txt', intToStr(getX(finditem)) + ' ' + intToStr(getY(finditem)) +' ' + s + ' ' + DateTimeToStr(Now) +#13#10);
UOsay('M!!!!');
end;
end;


function findTypes(types : array of word; container : cardinal) : cardinal;
var
f : integer;
begin
result := 0;

for f := 0 to getArrayLength(types) - 1 do
if (findType(types[f], container) <> 0) then
begin
result := finditem;
break;
end;
end;

var lastTime : TDateTime;
begin
findDistance := 25 // maximum distance
        findVertical := 128 // maximum vertical distance

while not Dead do
begin
FindTypes([$0BD2,$0BA4,$0BA6,$0BA8,$0BAA,$0BAC,$0BAE,$0BB0,$0BB2,$0BB4,$0BB6,$0BB8,$0BBA,$0BBC,$0BBE,$0BC0,$0BC2,$0BC4,$0BC6,$0BC8,$0BCA,$0BCC,$0BCE,$0BD0,$0BD2,$0BD4,$0BD6,$0BD8,$0BDA,$0BDC,$0BDE,$0BE0,$0BE2,$0BE6,$0BE8,$0BEA,$0BEC,$0BEE,$0BF0,$0BF2,$0BF4,$0BF6,$0BF8,$0BFA,$0BFC,$0BFE,$0C00,$0C02,$0C04,$0C06,$0C08,$0C0A,$0C0C,$0C0E], ground)
  if finditem <> 0 then
   begin
  lastTime := now;
wait(100);
clickOnObject(finditem);
     if waitJournalLine(lastTime, 'This house is', 3000) then checkStatus;
     ignore(finditem);
   end;
   wait(500);
  end;

End.

I'm still a newbie at pascal, so don't judge hard.

ps; you can check house signs that are 25 tiles away from your character, so you have a big advantage..
Title: Re: Stealth script corner.
Post by: Crome969 on November 23, 2011, 04:29:37 AM
In addition to your Code you should say that stealth is a Russian Project and most Documentation is in Russian, but you can translate it on english easy via Google.
On the Other Side you can use Python as well (Experiemental right now) and using Sharpdevelope as IDE for Python.
Stealth can emulate Clientversions, unless Origin changing their packets, but right now supporting all kind of Clientversions.
Stealth will be accepted by Easyuo as well(Only with the graphical Interface), the Client showing your "original Patch" but you could run alternate Clientversions.
Stealth in Python allows Multithreading(looking to TMx) so you could run a Menu while your Script runs.

Crome
Title: Re: Stealth script corner.
Post by: TrailMyx on November 23, 2011, 09:31:00 AM
Ah that's cool!  Might have to dust off the python thing.  Not looking forward to python tho.  That language ended up creeping me out.
Title: Re: Stealth script corner.
Post by: Crome969 on November 23, 2011, 12:38:53 PM
Ah that's cool!  Might have to dust off the python thing.  Not looking forward to python tho.  That language ended up creeping me out.
Pascal could work as well, but when i remind right, CFA, one of the Developers told me that the Threading in Pascal doesnt work perfect, its more Safe in Python, on the other side Python is right now experimental so not all functions working in Python yet.
But in the end the Client itself is very stable and fast, even with 5 Non Graphical Clients i dont need more than 20-25MB Ram to run 1 Script per Profil.
The Stealth Forum is 99% pure Russian, CFA itself told me, that they had right now nearly only Russian followers and cuz of that they dont contribute enough for real shards, the population international is pretty low. I told him about that me and Camotbik want to show the Tool here on this Board and maybe some people could get interested and he said, he would appreciate it, when international People would start to use it as well.Atleast the most innovation in stealth are the friendly Developer. You play on a shard who using anticodes against scripting and blocking Loggin with Stealth? When you friendly ask he add the decryption Key and you can use on your shard as well.You have a Idea for an innovative base function? Tell them , when they like they implement. In my oppinion thats a thing what makes it very useful, because the Staff is open for new Ideas.


Crome

PS: When TMx find some time to test Stealth by himself, i hope we may getting a Corner for Stealth, then we can share some Tutorials\Basics\Scripts\Snippets....
Title: Re: Stealth script corner.
Post by: TrailMyx on November 23, 2011, 12:42:46 PM
Ya, that's kinda why OEUO is having issues.

I"m on vacation again and traveling, so perhaps when I get back between Thanksgiving and Xmas I can look into a section.
Title: Re: Stealth script corner.
Post by: Masscre on November 24, 2011, 05:44:27 PM
ok not much of an excuse but I have not put in the time to learn russian yet. So what are the advantages of using stealth scripts other than they are written in pascal or python?
Title: Re: Stealth script corner.
Post by: Crome969 on November 24, 2011, 11:10:36 PM
ok not much of an excuse but I have not put in the time to learn russian yet. So what are the advantages of using stealth scripts other than they are written in pascal or python?
First of you dont need to learn russian, you can let google translate all for you and it works good enough to use.
Now about the Advantages and disadvantages:

+Stealth runs on network Communication -> You can run your chars clientless with scripts, without needing the Client -> Lower Workspace using ( 5 Chars clientless need about 20MB Ram)
+Stealth can emulate Client Versions-> It understand the Packages and you could emulate every Clientversion who exist to connect to a shard -> When using graphical Client with it you need the Clientfiles else of course you dont see all graphics.
+Stealth support interactive Events. You can develop your Own events, where stealth will execute automaticly if it reach the case -> Autojoin Party without needing to check the invition all the time in your script loop .
+Pascal Script has his own limits based on the Languange itself, the developer dont limiting the using of it, except Read and write packets and working with Pointer.
+Stealth supports Code compiling, when you dont want share the Code itself, but the functions and methods, you can share the compiled Pascal Code.
+Pascal Script is easy to learn, but some things are little bit unhandy, Python is more simpler but only experimental right now. Offering 2 different Languanges gives you a huge opportunity how you want to construct your script.
+The Developer are friendly, helping for Support Questions and when you suggest some new Features they may implement(happend to me 3 times in row that i got my wish fullfilled of total 3 Wishes)
+You never will need OCR anymore.Think about Reading a full Gump with 2 Lines Code and Compare with 2 more Lines Code. I tested it in Heartwood quest and antimacro gumps(since yesterday supports reading xml\html sheets in gumps)
+Because stealth working on an other Layer like Easyuo and Openuo there are more powerfull functions and development possibilitys

-You cant create new Chars with Stealth -> If you wanna use all the UO-functions you will need a client Stealth can Connect and Disconnect via packet sending there is right now no way to create an Char or new Account with stealth.
-The usage of "Begin end;" in Pascal can be a bit confusing, but its only a question of time until you can full use all the Features
-Not all functions are documentated right now.Sometimes you need to test it by your own way.With not Documentated i mean examples of the Code, the Syntax of arguments and output paramaters
Title: Re: Stealth script corner.
Post by: camotbik on November 25, 2011, 02:21:17 AM
I see the begin and end as brackets in easyuo, just you have to know that on else we don't put ; in the end of the line.

Few features that I like in stealth.
*Journal loging in to a file from the menu.
*Move function in map from the menu - *look bellow.
*Server setup - you can login on your characters from any computer and look how are they doing
*The best built in reconnect I have seen.
And of course the flexibility and speed of pascal.
Code: [Select]
While (not Dead) and (GetQuantity(FindTypeEx(BollaBalls, BollaBallsColor, Storage, false)) >= MinimumBollaBalls) and (GetQuantity(FindTypeEx(LeatherType, LeatherColor, Storage, false)) >= MinimumLeather) and (GetQuantity(FindTypeEx(Ingottype, IngotColor, Storage, false)) >= MinimumIngots) do
(https://lh6.googleusercontent.com/-VTv_MHqHwgI/Ts92Q3fbAoI/AAAAAAAAE2g/6hgixPwIYxU/s640/move.jpg)


Title: Re: Stealth script corner.
Post by: Crome969 on November 25, 2011, 02:32:47 AM
About the Enviroment:
+ Commands are listed on side, can be inserted via drag and drop
+ All layers of the Game have Type and ID, some things are event listed, easyuo dont find.
+ Mining you can collect array of mineable tiles in a range of xy and run that array (Collecting spots)
+It exist a experimental webservice where you can login to your stealth client via broswer and check how it runs and can take some basic control
+Gumpbuilding is more simple. Example Runebook is a gump with many buttons and not seperated in book\side\spell you can recall any rune in runebook with 2 lines code.
Title: Re: Stealth script corner.
Post by: dxrom on November 25, 2011, 02:37:49 AM
Wow. What is this stealth client? I've never heard of it, however it  looks very appealing! Might just inspire me to continue learning python :D

Where can one get this fancy client of awesome? :>
Title: Re: Stealth script corner.
Post by: camotbik on November 25, 2011, 03:21:34 AM
the main updates you can find in this topic - http://stealth.od.ua/forum/viewtopic.php?f=1&t=1706 so this is the latest update http://sd.reborn.ru/download.php?fid=dfc1f611c299fbff6cf84bc1ac9d565e
Title: Re: Stealth script corner.
Post by: Crome969 on November 25, 2011, 03:26:40 AM
Wow. What is this stealth client? I've never heard of it, however it  looks very appealing! Might just inspire me to continue learning python :D

Where can one get this fancy client of awesome? :>
I wroted a tutorial for how you can connect to OSI shards. When TMx give me the allowance to share the informations i will attach it as well.
The reason noone heard about it is really simple:
Stealth were developed in the late part of the Game development itself and missed the hype, easyuo created.
Most user right now are Russian preaos player and the usage for newer Clients itself werent be used much. But they implented it. The Forum, the Mainpage and the Wikipedia itself is in russian.Lately they started to translate some informations into english but its still in a development stage.I bymyself heard some time ago about that client, but didnt understand how it really worked. Lately Camotbik(He is lativa who understand russian?!?) showed me how to use and i fast got involved by it.
Title: Re: Stealth script corner.
Post by: dxrom on November 25, 2011, 04:51:24 AM
the main updates you can find in this topic - http://stealth.od.ua/forum/viewtopic.php?f=1&t=1706 so this is the latest update http://sd.reborn.ru/download.php?fid=dfc1f611c299fbff6cf84bc1ac9d565e
Got it, very nice, thank you for the link. I will def start doing alot of research into this, I am very intrigued. :>

Wow. What is this stealth client? I've never heard of it, however it  looks very appealing! Might just inspire me to continue learning python :D

Where can one get this fancy client of awesome? :>
I wroted a tutorial for how you can connect to OSI shards. When TMx give me the allowance to share the informations i will attach it as well.
The reason noone heard about it is really simple:
Stealth were developed in the late part of the Game development itself and missed the hype, easyuo created.
Most user right now are Russian preaos player and the usage for newer Clients itself werent be used much. But they implented it. The Forum, the Mainpage and the Wikipedia itself is in russian.Lately they started to translate some informations into english but its still in a development stage.I bymyself heard some time ago about that client, but didnt understand how it really worked. Lately Camotbik(He is lativa who understand russian?!?) showed me how to use and i fast got involved by it.


Awesome, yeah atm I am messing around on my OSI chr. Anyone who has used razor on OSI shouldn't have much difficulties setting this up for OSI.
Title: Re: Stealth script corner.
Post by: Crome969 on November 25, 2011, 05:03:46 AM
Yes this can be true, you need to check "Encryption Client" or something named like that and enter the details.. So you toying with it? Any first feedback?
PS: Right now iam checking with one Developer if you could use Stealth with Enhanced Client as well;)
Title: Re: Stealth script corner.
Post by: Masscre on November 25, 2011, 05:17:49 PM
Thank you for the time and thought put into this post Chrome. It also answered alot of the questions that I had and now i figured out I need to learn stealth scripting :)

ok not much of an excuse but I have not put in the time to learn russian yet. So what are the advantages of using stealth scripts other than they are written in pascal or python?
First of you dont need to learn russian, you can let google translate all for you and it works good enough to use.
Now about the Advantages and disadvantages:

+Stealth runs on network Communication -> You can run your chars clientless with scripts, without needing the Client -> Lower Workspace using ( 5 Chars clientless need about 20MB Ram)
+Stealth can emulate Client Versions-> It understand the Packages and you could emulate every Clientversion who exist to connect to a shard -> When using graphical Client with it you need the Clientfiles else of course you dont see all graphics.
+Stealth support interactive Events. You can develop your Own events, where stealth will execute automaticly if it reach the case -> Autojoin Party without needing to check the invition all the time in your script loop .
+Pascal Script has his own limits based on the Languange itself, the developer dont limiting the using of it, except Read and write packets and working with Pointer.
+Stealth supports Code compiling, when you dont want share the Code itself, but the functions and methods, you can share the compiled Pascal Code.
+Pascal Script is easy to learn, but some things are little bit unhandy, Python is more simpler but only experimental right now. Offering 2 different Languanges gives you a huge opportunity how you want to construct your script.
+The Developer are friendly, helping for Support Questions and when you suggest some new Features they may implement(happend to me 3 times in row that i got my wish fullfilled of total 3 Wishes)
+You never will need OCR anymore.Think about Reading a full Gump with 2 Lines Code and Compare with 2 more Lines Code. I tested it in Heartwood quest and antimacro gumps(since yesterday supports reading xml\html sheets in gumps)
+Because stealth working on an other Layer like Easyuo and Openuo there are more powerfull functions and development possibilitys

-You cant create new Chars with Stealth -> If you wanna use all the UO-functions you will need a client Stealth can Connect and Disconnect via packet sending there is right now no way to create an Char or new Account with stealth.
-The usage of "Begin end;" in Pascal can be a bit confusing, but its only a question of time until you can full use all the Features
-Not all functions are documentated right now.Sometimes you need to test it by your own way.With not Documentated i mean examples of the Code, the Syntax of arguments and output paramaters
Title: Re: Stealth script corner.
Post by: dxrom on November 25, 2011, 05:22:12 PM
First thing I noticed, is that it needs to be run as admin (Win7 64-bit) or else it generates multiple errors and becomes uncloseable through all means except task manager. (Read/Write access issues)
Title: Re: Stealth script corner.
Post by: Crome969 on November 25, 2011, 09:32:03 PM
First thing I noticed, is that it needs to be run as admin (Win7 64-bit) or else it generates multiple errors and becomes uncloseable through all means except task manager. (Read/Write access issues)
Oh yeah i forgot, of course u will need administration rights. Stealth using packet reading\writing and pointers so of course u need to give that tool the right to let it do.

Here are two example procedures to test stealth and how powerfull it ist:
Code: [Select]
procedure Login(CurProfile:String);
begin
while Connected = false do
begin
AddToJournal(inttostr(ChangeProfile(CurProfile)));
wait(2000);
Connect;
Wait(5000);
end;
end;
When u created a profile for your Char in stealth(wich Shard,Account,Charnumber u decide yourself) you can flip your current "used" Profile and Log the needet profile in with that procedure.
Example:
Code: [Select]
Login('RW_Bods_1');will login my Profile "RW_Bods_1".It only will work, when the attached profile isnt connected at that time and you must be careful, the String you send into my procedure is case sensitive!:)

Example 2 is a simple logout:
Code: [Select]
procedure Logout;
begin
while Connected = true do
begin
Disconnect;
wait(5000);
end;
end;
Will logout the current attached profile.
Title: Re: Stealth script corner.
Post by: Boydon on January 11, 2012, 02:28:06 AM
Stealth is a nice tool indeed.

Has anyone tried to work with menus? Cause I'm getting crazy to understand what the logic is. :P
Title: Re: Stealth script corner.
Post by: Crome969 on January 11, 2012, 07:39:29 AM
Stealth is a nice tool indeed.

Has anyone tried to work with menus? Cause I'm getting crazy to understand what the logic is. :P
Well when i remind what the Developer told me 2 days ago, they disabled th vcl module (GUI) because it were very unstable.
Title: Re: Stealth script corner.
Post by: Boydon on January 12, 2012, 06:04:00 AM
Stealth is a nice tool indeed.

Has anyone tried to work with menus? Cause I'm getting crazy to understand what the logic is. :P
Well when i remind what the Developer told me 2 days ago, they disabled th vcl module (GUI) because it were very unstable.

Sorry i told menus, but I ment Gumps (UO Gumps to be specific). The problem is that I can't understand the logic behind the element disposition in the the gump and I have to reverse engineering it trying (clicking) every single button. :)
Title: Re: Stealth script corner.
Post by: camotbik on January 12, 2012, 08:51:05 AM
open up a gump, press a button, then open the gump again, do ,infogump and check reply for the button number in the info window that poped up.
Title: Re: Stealth script corner.
Post by: Crome969 on January 12, 2012, 09:08:07 PM
Stealth is a nice tool indeed.

Has anyone tried to work with menus? Cause I'm getting crazy to understand what the logic is. :P
Well when i remind what the Developer told me 2 days ago, they disabled th vcl module (GUI) because it were very unstable.

Sorry i told menus, but I ment Gumps (UO Gumps to be specific). The problem is that I can't understand the logic behind the element disposition in the the gump and I have to reverse engineering it trying (clicking) every single button. :)
We had the same issue and talked with Developer, when it is not working now wait some days, sometimes they wait for patching when they have more than only 2-5 lines code addet:). They implemented already a new Method(i have that version  + vlc) so you need to do what camotbik said about open the gump info. When it doesnt work, use easyuo uo and following code:
Code: [Select]
event macro 1 1 ,infogump
stop
on freeshards the usage of the infogump command is blocked with a "internal chat" so you can override that with using easyuo code.
Then you have the Gump and there is a line with the Last Button and a number.
This number you pushed when you used the last button and can be used in "WaitGump(string)" to use.

Have fun :) Gumpusing can be pervert;)
Title: Re: Stealth script corner.
Post by: Tidus on January 13, 2012, 06:32:50 AM
It seems like this would run faster than EUO.  Also i am wondering if this is how Searchuo does their searching of vendors.
Title: Re: Stealth script corner.
Post by: Crome969 on January 13, 2012, 10:49:29 AM
It seems like this would run faster than EUO.  Also i am wondering if this is how Searchuo does their searching of vendors.
since you can interact with http and databases this could be possible;)
About Speed: When you know how to write codes in stealth for the same things. I bet it doesnt exist something in stealth what is slower..
And Since you can read all gumps when you know how you dont even would need a client(bye bye OCR Slow motion scanner with Client on top;))
Example : Heartwood Tinker Quest : 1 Turn 30 Seconds with Crafting of 10 Tools, Sort Items , Restock Materials. And this only such long because it tooked some questflips before the right quest camed up. Clientless possible..
Title: Re: Stealth script corner.
Post by: Tidus on January 16, 2012, 06:22:20 PM
I have downloaded Stealth... now to figure out how to use it and its scripts :)
Title: Re: Stealth script corner.
Post by: Crome969 on January 17, 2012, 07:39:25 AM
I have downloaded Stealth... now to figure out how to use it and its scripts :)
i addet you in icq.. When you have any Questions about, feel free..:)
Title: Re: Stealth script corner.
Post by: Boydon on January 18, 2012, 12:04:20 PM
Stealth is a nice tool indeed.

Has anyone tried to work with menus? Cause I'm getting crazy to understand what the logic is. :P
Well when i remind what the Developer told me 2 days ago, they disabled th vcl module (GUI) because it were very unstable.

Sorry i told menus, but I ment Gumps (UO Gumps to be specific). The problem is that I can't understand the logic behind the element disposition in the the gump and I have to reverse engineering it trying (clicking) every single button. :)
We had the same issue and talked with Developer, when it is not working now wait some days, sometimes they wait for patching when they have more than only 2-5 lines code addet:). They implemented already a new Method(i have that version  + vlc) so you need to do what camotbik said about open the gump info. When it doesnt work, use easyuo uo and following code:
Code: [Select]
event macro 1 1 ,infogump
stop
on freeshards the usage of the infogump command is blocked with a "internal chat" so you can override that with using easyuo code.
Then you have the Gump and there is a line with the Last Button and a number.
This number you pushed when you used the last button and can be used in "WaitGump(string)" to use.

Have fun :) Gumpusing can be pervert;)

I'm playing on a RunUo shard and I don't get any Last Button line. Maybe I am doing something wrong?
I act like this:
Am I doing it correctly?
Title: Re: Stealth script corner.
Post by: camotbik on January 19, 2012, 12:20:13 AM
yes you are, but i'm really sorry, i forgot that reply is implemented only starting from 3.9.9. So you will need to wait a bit for the official release, or you can try to use the beta, contact me if you need a link.
Title: Re: Stealth script corner.
Post by: Crome969 on January 19, 2012, 06:02:16 AM
yes you are, but i'm really sorry, i forgot that reply is implemented only starting from 3.9.9. So you will need to wait a bit for the official release, or you can try to use the beta, contact me if you need a link.

Well then i have to apologize... I running all the time the latest versions from developers and sometimes forget that some toys i use and love arent officially yet in the packages.
Title: Re: Stealth script corner.
Post by: Crome969 on January 20, 2012, 05:31:57 AM
Title: Re: Stealth script corner.
Post by: TrailMyx on January 20, 2012, 04:33:27 PM
A question that keeps popping up in my mind about Stealth - how do they handle client changes.  Does it "brick" when a change to the client happens?
Title: Re: Stealth script corner.
Post by: Endless Night on January 20, 2012, 06:56:17 PM
A question that keeps popping up in my mind about Stealth - how do they handle client changes.  Does it "brick" when a change to the client happens?

No.  Because everything is done on a packet basis and the packet layout itself doesnt change, stealth does not need changing.  The only thing you need to do is change your connection profile to report the latest client number.


Title: Re: Stealth script corner.
Post by: l1nk on January 25, 2012, 10:34:50 AM
Hey, I'll take a look into this, it looks pretty good although I'm a bit disappointed that it doesn't have more client support.
Title: Re: Stealth script corner.
Post by: Crome969 on January 26, 2012, 03:05:44 AM
Hey, I'll take a look into this, it looks pretty good although I'm a bit disappointed that it doesn't have more client support.
What you mean with more Clientsupport`? actrual you can emulate every classic client(and connect and play) Enhanced Client worked all version until end of Summer 2011. Noone reported yet that they changed the packets.. So Developer didnt knowed it yet. But they want to keep up, coming soon.
Title: Re: Stealth script corner.
Post by: rwo001 on May 03, 2012, 04:55:45 PM
Hi All,

I have a problem when i using stealth

Code: [Select]
Program Testing;
begin
AddToSystemJournal('Begin');
FindType($22C5,Backpack);
AddToSystemJournal('End')
end.

Code: [Select]
08:52:13:330 [Test]: Character Gold Connected.
08:52:16:627 [Test]: Compiling
08:52:16:642 [Test]: Compiled succesfully
08:52:16:642 [Test]: Begin

As I expected, I can found "Begin" and "End" in my system jounral, but it only show "Begin" and the script stopped. What is problem?
Also, I cannot use some API , e.g. UseObject() . There is no response when i using it but I can use the Use Object button in "World" Tab and there is a response in the client.

Shard: OSI
Patch: 7.0.24.5
Stealth Version: 4.0.3
Title: Re: Stealth script corner.
Post by: Crome969 on May 03, 2012, 11:34:20 PM
Humm this is strange...
Question :
1) What kind of OS you are running? Vista\Seven ? Started as Administrator?
2) Do you have mul files wrapped from uop format or not?
3) Did you tried FindTypeEx as well?
Quote
FindTypeEx($22C5,$FFFF,Backpack(),true);

Contact me in ICQ if you can and when iam home i can try to reproduce this error or help you further out.

Crome
Title: Re: Stealth script corner.
Post by: rwo001 on May 06, 2012, 03:49:47 AM
Thanks fro reply and the problem had been solved by CFA..
it is the problem from OSI shard..and he fixed the main program and sent me the update.
Also, i found that stealth cannot get the information from crafting menu.
i think is the same problem..
anyway..it is a greate tools..and i hope it can be use in OSI shards
Title: Re: Stealth script corner.
Post by: Crome969 on May 06, 2012, 04:04:47 AM
Thanks fro reply and the problem had been solved by CFA..
it is the problem from OSI shard..and he fixed the main program and sent me the update.
Also, i found that stealth cannot get the information from crafting menu.
i think is the same problem..
anyway..it is a greate tools..and i hope it can be use in OSI shards
I toying since 2 or 3 weeks with Gumps in a deeper way and there are aspects and functions how to handle those.CFA was faster than me in parsing gump in objects but thats okay ;)... I were be able yet to do :
The Results are Ultra speed Gump handling, languange indendency(Cliloc).. and Nearly ClientVersion & Shard independency (Osi Content will be always be found).
I tested it on a Freeshard with a ping of 150ms and the handling can be such fast that you will be unable to see any gump popping up. All you need for it is maybe a bit more experience :))

Title: Re: Stealth script corner.
Post by: rwo001 on May 06, 2012, 06:33:43 AM
I tried your gumps and it seems the serial no is different in OSI shard.
Also, i found that the stealth cannot get craft menu information(OSI shard).
But you program is great and let me see how to handle the gump. ;D
Title: Re: Stealth script corner.
Post by: Crome969 on May 06, 2012, 07:40:00 AM
Title: Re: Stealth script corner.
Post by: rwo001 on May 06, 2012, 04:29:36 PM
it is the problem from the stealth.. :'(
but CFA fixed.

http://sd.reborn.ru/download.php?fid=dcc6010fb96f4dd8d1a4988053180faf

it is the new fixed version provided by CFA.

Thanks CFA again in here and Thanks Crome for your reply  :-*