ScriptUO
Ultima Online Fan Board => General UO Chat => Topic started by: warrenotto on February 19, 2013, 09:34:46 PM
-
Hey everyone,
I've been interested in learning basic scripting for a while. Got busy with life for a bit so never really got started nor do I even know where to really start. I'm not expecting to become a master scripter as i know zero about it right now. But I think i can learn how to write simple scripts.
Anyways I have a question and maybe a good spot to start my learning adventure. I'm using a mining script on the server I play. I'm having trouble where my character gets stuck dragging ore on a forever loop, I'm assuming that lag spikes are causing it. I can manually fix this by closing my main pack and reopen it and the script will continue. Although this requires me to sit there and keep an eye on it.
How can i write a super simple background script to:
Close main pack
reopen main pack
pause 10 minutes
loop.
Or if you don't wanna give it up so easy, where can I learn how to write that as a script.
Thanks!
-
Hi there,
I would take a little time to look around, and use the search feature on the euo wiki. I've learned loads there just by wandering around.
But for what you are wanting to do there, I would take a look at this page.
http://wiki.easyuo.com/index.php?title=Event_Macro
Good luck with your project.
-
This should help you some. If you need some help of need some explanations just leave it here.
:Main
Event Macro 9 7 Close main pack
Event Macro 8 7 ;reopen main pack
Wait 600s ;pause 10 minutes
Goto Main ;loop.
-
welcome and might i suggest a slight improvement...
while #clilogged = 1 ; Repeat the code block while im logged in
{
Event Macro 9 7 ;Close main pack
wait 10 ; pause so you dont get you must wait message
Event Macro 8 7 ;reopen main pack
Wait 600s ;pause 10 minutes
}
halt
-
Yes that one would work a little better. Thank you EN :-\
-
Yes that one would work a little better. Thank you EN :-\
its easier to improve others work than create from scratch i always find.