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

Run scripts from client

Ask for help
Post Reply
caiosc
Neophyte
Neophyte
Posts: 14
Joined: 27.03.2013 14:10

Run scripts from client

Post by caiosc »

Hello to all!

I'm having trouble to run scripts in game, with the client open.

Is there a way to do that? I really liked stealth and I'd like to quit injection or any other auxiliar.

I'd like to know if we can ran Programs or procedures inside game, using something like ',exec ...', including even a hotkey for that.

Thanks!
shinma
Expert
Expert
Posts: 505
Joined: 28.04.2011 12:05

Re: Run scripts from client

Post by shinma »

--->>>ПОИСК ПО ФОРУМУ, НАЧНИ С НЕГО!!!<<<---
--->>>Search the forum, start with him!!!<<<---
95% Ваших вопросов уже кем-то написаны и решены.
caiosc
Neophyte
Neophyte
Posts: 14
Joined: 27.03.2013 14:10

Re: Run scripts from client

Post by caiosc »

Sorry about that, I'm having trouble searching the forum, as I don't speak Russian (but I could translate it with google when you sent me the link).

But I'm still having problems.

I load a Script containing this:

Code: Select all

Program Test;
Begin
    UOSay('Hi');
end.
I add it to one hotkey (such as F10), but when I stroke It nothing happens.

The function doesn't appear in my script area:

Image
Image

If it helps, I can't save my settings as well (lights, undead). Everty time I restart my client It resets.

Thanks for the help!
shinma
Expert
Expert
Posts: 505
Joined: 28.04.2011 12:05

Re: Run scripts from client

Post by shinma »

brrrrr copy my script in link
--->>>ПОИСК ПО ФОРУМУ, НАЧНИ С НЕГО!!!<<<---
--->>>Search the forum, start with him!!!<<<---
95% Ваших вопросов уже кем-то написаны и решены.
Fenix
Developer
Developer
Posts: 275
Joined: 24.08.2010 7:20
Location: Ставрополь
Contact:

Re: Run scripts from client

Post by Fenix »

Try:

Code: Select all

Program Test

procedure SayHi()
begin
  UOSay('Hi');
end;

begin
end.
Помните – ничто так не защищает ваши зубы 12 часов днем и 12 часов ночью как уважительное отношение к окружающим.
"Многие из вас знакомы с достоинствами программиста. Их всего три, и разумеется это: лень, нетерпеливость и гордыня"© Larry Wall
caiosc
Neophyte
Neophyte
Posts: 14
Joined: 27.03.2013 14:10

Re: Run scripts from client

Post by caiosc »

Fenix,

That worked, thank you very much.

So the DLL execute the procedures, not the whole program.

Just one more question: everty time I close my client and open it again, I lose every saved data. In other words, every time I have to record the HotKeys again, as well as the "Main" tab is blank again.

Does anybody knows how to solve that?
Post Reply