Official ScriptUO EasyUO Scripts > Scripting Chat

Is there a script to simply just stay active?

<< < (2/3) > >>

dirtmcgirt:
I hate to admit this, but i don't know how to write a script.  I tried to cut and paste a section of a script, from a random script, but it didn't work.  Something as easy as just opening a rune book, while im hidden, so i can stay in the room as my pet just eats daemons. 

Gaderian:
Here is something that will open your backpack and wait 5 minutes ... forever... nothing more fancy than that.

Gaderian

dirtmcgirt:
Dude, thank you!! This is exactly what i was looking for!! Life saver.

Crisis:
That is how you learn. Look at scripts and see what functions do. My first script was basically looking at other scripts and trying to figure out what I wanted and how to do it. Here is my first script attempt: http://www.scriptuo.com/index.php?topic=9767.msg83353#msg83353 and then this is what it turned into: http://www.scriptuo.com/index.php?topic=9770.0 My own personal version has expanded even more and my skills have gotten better. I live up to my saying under my avatar, "I script well enough to break things". It is a learning experience that is ongoing. I still learn things all the time.


The EUO wiki has a lot of what you need.

This is an awesome page: http://wiki.easyuo.com/index.php?title=Event_Macro and looking at the event macros you will see there is a event macro to open backpack. The top of that page tells you how to call the event macro.

Then looking up how to use a wait, I used the search box from the event macro page. http://wiki.easyuo.com/index.php?title=Wait That shows you how to work with wait times.


--- Code: ---sub NoIdle
event Macro 8 7
wait 300s
return

--- End code ---

You can also cast a spell on yourself. I looked up "target" on the wiki http://wiki.easyuo.com/index.php?title=Target to see how to target something. Then I used event macros.


--- Code: ---Sub Bless
event Macro 15 16
wait 10
target
event Macro 23 0
wait 5s
return

--- End code ---

Looking into other scripts you can see that calling a sub is "gosub" so to initiate the little sub would look like this:


--- Code: ---gosub Bless

Sub Bless
event Macro 15 16
wait 10
target
event Macro 23 0
wait 5s
return

--- End code ---

This is how you learn. It will allow you to figure out how to edit scripts to do what you need and how to make things on your own that you need. Most won't write things for you but will help you figure out things as long as you are posting what you are trying. Trying things on your own and asking for help will go a long ways here.

dirtmcgirt:
Thank you very much for this.  I am interested and I'm willing to learn. I actually tweeked the taming script and ran it while i macroed resist on my pet. It worked like a charm, I was also pretty proud of myself.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version