Forum in READ ONLY mode! All questions and discussions on Discord official server, invite link: https://discord.gg/VxsGzJ7

Hello! Some question about Stealth from an injection's user

Ask for help
Post Reply
riin4
Posts: 7
Joined: 26.04.2012 20:23
Location: rome italy
Contact:

Hello! Some question about Stealth from an injection's user

Post by riin4 »

Hello guys, thank you very much for this wonderfull program!
(i'm from italy, i play on uodreams shard. runuo, osi style.)

I'm an injection user (and scripter) from 2004.
i finally see the hotkeys funcion like injection in stealth!! and the possibility to convert my injection's script for stealth!

but how i must do that?

i have problemes about keybinding and some questions for you:

for example, for inj i have an .SC file with the following lines:

SAMPLE:

Code: Select all

sub Resendinj()
uo.say("")
uo.say(",resend")
uo.print("RESENDING")
endsub
#
sub meditation() 
uo.useskill('Meditation')
end sub
#
sub nox2()
uo.cancelTarget()
    if not uo.waiting() then
    Uo.Waittargetobject("lasttarget")
    uo.cast("Poison")
    end if
end sub
#
sub petalred()
if uo.count("0x1021","0x002B") == 0 then
	uo.print("NO MORE RED PETALS!!")
	return
end if
uo.usetype("0x1021","0x002B")
end sub
in the hotkeys section, in inj. i call the sub with Exec (ex: Exec petalred)
the questions are the follow:

-how i must change this scripts for working well by stealth? you can fix them for example? (plz english ..or i will use google translator)
-how i can link the single function on the stealth hotkeys?


thank you! and good work for new fixs!

(other thing.. for map, it must be usefull have the possibility to star a server with friends. as UOAUTOMAP)
8 years of injection's pvp scripts goes to £="(%$=)"/&%U)?..
CFA
Developer
Developer
Posts: 492
Joined: 20.04.2006 6:03
Contact:

Re: Hello! Some question about Stealth from an injection's u

Post by CFA »

injection scripts is incompatible with stealth, but many functions are similar. Scripting language using in stealth - pascal (almost a standard)

for example:

Code: Select all

procedure meditation;
begin
  UseSkill('Meditation');
end;

begin
end.
in hotkey command write "exec meditation"
riin4
Posts: 7
Joined: 26.04.2012 20:23
Location: rome italy
Contact:

Re: Hello! Some question about Stealth from an injection's u

Post by riin4 »

then for bind two keys i must have:

Code: Select all

procedure meditation;
begin
UseSkill('Meditation');
end.

procedure resending;
begin
uo.say("")
uo.say(",resend")
end.
in my .PY file, and bind for example in hotkeys: exec meditation (f1) - exec resending (f2)

..why stealth doesn't work with this code?


about pascal-pyton, i read stealth support pyton lenguage. http://stealth.od.ua/Doc:Manual/Scripting/Python
but i don't undestand very well how to adapte to it.

i need an example for help! i use inj for pvp, and i want to use stealth for the same funcion!
inj is old and the compatibility with new clients is bad. this program must be the best support uo program of ever!
Last edited by riin4 on 27.04.2012 21:44, edited 1 time in total.
8 years of injection's pvp scripts goes to £="(%$=)"/&%U)?..
Bubonic Pestilence
Neophyte
Neophyte
Posts: 28
Joined: 14.12.2011 4:54
Contact:

Re: Hello! Some question about Stealth from an injection's u

Post by Bubonic Pestilence »

For Pascal files use extension ".sc", for Python ".py".
The code that you show, written in Pascal, but with ".py" extension.

P.S. in 4.0.2, i was having troubles with loading Python scripts in Client DLL, didn't checked same behaviour in 403, but i think, writing python code for client.dll would be a fail for currest "stableness" )
Эх, вот был бы "RubyScript" =) так я такой бы харвестер написал...
riin4
Posts: 7
Joined: 26.04.2012 20:23
Location: rome italy
Contact:

Re: Hello! Some question about Stealth from an injection's u

Post by riin4 »

if i try to start this code (.py OR .sc the problem is the same)

Code: Select all

procedure meditation;
begin
UseSkill('Meditation');
end.

procedure resending;
begin
uo.say("")
uo.say(",resend")
end.
if the file is .py stealth write to me:

Code: Select all

20:52:32:886 [uodinj]:   File "C:\Program Files\EA Games\Ultima Online Mondain's Legacy\stealth.py", line 1
    procedure meditation;
                       ^
SyntaxError: invalid syntax
if the file is .sc

Code: Select all

21:00:57:656 [uodinj]: Compiling
21:00:57:676 [uodinj]: Compiler: [Error] (stealth.sc at 2:1):  Semicolon (';') expected
21:00:57:679 [uodinj]: Compiling failed
21:00:57:682 [uodinj]: Script stealth.sc stopped successfuly
the binding in both situation, doesn't work (exec meditation exec resending).

what's wrong?
8 years of injection's pvp scripts goes to £="(%$=)"/&%U)?..
Bubonic Pestilence
Neophyte
Neophyte
Posts: 28
Joined: 14.12.2011 4:54
Contact:

Re: Hello! Some question about Stealth from an injection's u

Post by Bubonic Pestilence »

Okey, after testing. Do as i say:

1. create file "what-ever-you-want.sc"
2. put this into:

Code: Select all

procedure meditation;
begin
  UseSkill('Meditation');
end;

procedure resending;
begin
  UOSay('');
  UOSay(',resend');
end;

begin
end.
3. Load file in client, You should see 2 functions in drop-down list
4. Bind "exec function_name", like "exec meditation" to a hotkey
5. Profit :D

Tested in 4.0.3 :)
Эх, вот был бы "RubyScript" =) так я такой бы харвестер написал...
riin4
Posts: 7
Joined: 26.04.2012 20:23
Location: rome italy
Contact:

Re: Hello! Some question about Stealth from an injection's u

Post by riin4 »

Bubonic Pestilence wrote:Okey, after testing. Do as i say:

1. create file "what-ever-you-want.sc"
2. put this into:

Code: Select all

procedure meditation;
begin
  UseSkill('Meditation');
end;

procedure resending;
begin
  UOSay('');
  UOSay(',resend');
end;

begin
end.
3. Load file in client, You should see 2 functions in drop-down list
4. Bind "exec function_name", like "exec meditation" to a hotkey
5. Profit :D

Tested in 4.0.3 :)
IT WORKS!

thank you very much! :D

now i have some questions.
how i can import all my professional injection's script in stealth without rescript all from the begin?
the pyton support of stealth doesn't work very well for now, i good undestand?
for future there is a possibility it will works fine?
8 years of injection's pvp scripts goes to £="(%$=)"/&%U)?..
Bubonic Pestilence
Neophyte
Neophyte
Posts: 28
Joined: 14.12.2011 4:54
Contact:

Re: Hello! Some question about Stealth from an injection's u

Post by Bubonic Pestilence »

All this information, just IMHO :)

At first, python support awesome, but only for non-client-dll. I got perfect 24/7 mining with resurrection, written in python, and it works for WEEK! without any bugs.
But, when i tried to load some "py" files into client.dll, i seen an error, client.dll tries parse all files as Pascal -.-

Conclusion: use python for main automative scripts, that doesn't requires client interaction. And Pascal for Client.dll (the small window, that loaded after client started). And >>I<< will never use client.dll for gaming purpose.

About injection mapping: No you can't simple rewrite, because Injection using his own scripting language, while Stealth using only Pascal or Python. And yes, you need to rewrite 99% of your Injection's scripts for Stealth.

P.S. There is a forum with "already-to-go" scripts for Stealth. Use it.
Эх, вот был бы "RubyScript" =) так я такой бы харвестер написал...
riin4
Posts: 7
Joined: 26.04.2012 20:23
Location: rome italy
Contact:

Re: Hello! Some question about Stealth from an injection's u

Post by riin4 »

all clear!

:cry: 8 years of scripting goes in the trash..
i will ask much helps for learning pascal
i hope to find the hand i will need in this forum!

special thanks to you for the help!!
8)

goodbye from rome!
8 years of injection's pvp scripts goes to £="(%$=)"/&%U)?..
Post Reply