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

Pages: [1]
1
OpenEUO Scripting Chat / Re: Unresponsible TForm with "while" cycle
« on: November 12, 2019, 03:53:18 AM »
....  I'm not 100% sure the menu system ever even completed. ...

Found it. Menu system was never completed. Multithreading is impossible except getatom and setatom commands - between two running scripts simultaneously.

The more I read about openEUO, the less I am sure I should stay with it. Good functionality easyuo outweighs the advantages of openeuo.

Can you think of a better alternative to the openEUO ?

EDIT: I'm looking at ScriptUO and it looks interesting, this alpha version is latest ? Is that usable as in description?

2
OpenEUO Scripting Chat / Re: Unresponsible TForm with "while" cycle
« on: November 11, 2019, 06:19:52 AM »
It's OK. I was just trying to ask. :) I read somewhere that an atom is perhaps the only option...

3
OpenEUO Scripting Chat / Re: Unresponsible TForm with "while" cycle
« on: November 11, 2019, 03:52:20 AM »
OK, I give up, using an atom and two running scripts at the same time... It's not comfortable, but what can be done...

4
OpenEUO Scripting Chat / Unresponsible TForm with "while" cycle
« on: November 08, 2019, 05:29:10 AM »
Hello, sorry for maybe stupid question, but I'm stuck while creating menu.
I'm trying (about 14 days of trying and searching) to start and stop "while" cycle by buttons, but when I start cycle then menu stops responding.

I tried all sorts of crazy constructions, but I just couldn't. Certainly it will be related to the fact that I play it in the same thread ...I just don't know how the threads work in LUA, so if anyone would want to advise me, I'll be glad.

Please is there any way I can start and stop a "while" cycle using the form with button ?

Here is my last example of start/stop menu - that stops responding after start of course...
Spoiler: show

local val = false
function Main()
        frmMain = Obj.Create("TForm")
        frmMain.Left =          0
        frmMain.Top =           0
        frmMain.Width =         100
        frmMain.Height =        100
        frmMain.Font.Name =     "Arial"
        frmMain.Font.Size =     8
        frmMain.Caption =       "Some testing text"
        frmMain.OnClose =       function(pSender) Obj.Exit() end
        frmMain.FormStyle =     3
 
        btnStartStop = Obj.Create("TButton")
        btnStartStop.Caption =      "Start/stop"
        btnStartStop.OnClick =      function(pSender) btnOnClick(not val, pSender) end
        btnStartStop.Parent =       frmMain
        btnStartStop.Top =          10
        btnStartStop.Left =         20
        btnStartStop.Width =        100
 
        frmMain.Show()
        Obj.Loop()
end

function btnOnClick(value)
  while value == true do
    print("...")
    wait(500)
  end
end
 
function Clean()
        Obj.Free(btnStartStop)
        Obj.Free(frmMain)
end
 
Main()
Clean()


Thank you very much for your suggestions.

5
New member introductions / Re: New Member Mong
« on: November 07, 2019, 10:58:18 PM »

This script actually modifies the OpenEUO program itself, it doesnt interact with UO.  It adds features to openeuo to help you write your own scripts.   The menu in openeuo, is written in LUA, so I just modded the default menu and added a bunch of options.

So I didn't understand. I expected you to offer me the opportunity to study :D But I understand now, hehe.

6
New member introductions / Re: New Member Mong
« on: November 06, 2019, 11:37:40 AM »
Welcome to scriptuo Mong,  and if you like openEUO you should check out my modded GUI that helps openeuo just work better.

http://www.scriptuo.com/index.php?topic=7338.0
http://www.easyuo.com/forum/viewtopic.php?p=387286#387286

Hi, thanks for for the suggestion, I was watching your modded GUI but that's a very big level for me so far. :D Recently I made small menu for my scripts but I can't instance sub tasks so maybe later. Saving this for later study :)


7
New member introductions / Re: New Member Mong
« on: November 06, 2019, 05:13:30 AM »
Hello and thank you for your reply.

I know what you mean. So again and better...

In real life I'm programing in C#, LotusScript/formula from IBM, delphi and c++ because I do that at work. LUA has simple syntax and is good relax for my long life programming - I'm 38 years old and I have been programming for over 15 years.

I cannot judge yet whether I will be of any benefit to the community because, as I wrote, I script in openeuo for fun. My knowledge of scripting for UO is still at low level against others, but it can change, and maybe I will end up like you... or not who knows :)

I have already been helped a lot by comments from this forum like "You would do it this way or this way", because the logic of the matter is what I am primarily looking for and what I can primarily offer.

Due to the little community in openeuo I learn mainly from documentation. Usable scripts are fine, of course, but I'm more pleased to figure out something myself, it's more fun. Last but not least Endor shard is much different so most scripts still can't be used, I can only get inspired.

I hope I have correctly stated that I am not primarily here for one or two scripts, but I hope to find here some enthusiasts who are equally inflamed and I can consult them and their creations ...

Regards Mong

8
New member introductions / New Member Mong
« on: November 05, 2019, 10:21:14 PM »
Hello, at first I'm from Czech Republic and my english is wery bad, so I apologize for the wrong composition of sentences.

At second... I've never seen a more complicated registration(especially for non-English speaking peoples), congratulations, you come first :-D

So... about me... for fun I'm scripting in OpenEUO and I have seen here a lot of examples that I could get inspired from. I'm playing UO on shard, where are a lot of anti-afk controls so inspiration is needed. One example for all - changing positions of gumps that don't have an ID - the sollution was to search gump position by colors and crafting in cellar where everything is black except part of the house...and showed gump :)

Although I have written enough scripts there is still something to learn and I hope to find something here.

Thanks and regards Mong.

Pages: [1]