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.
sub NoIdle
event Macro 8 7
wait 300s
return
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.
Sub Bless
event Macro 15 16
wait 10
target
event Macro 23 0
wait 5s
return
Looking into other scripts you can see that calling a sub is "gosub" so to initiate the little sub would look like this:
gosub Bless
Sub Bless
event Macro 15 16
wait 10
target
event Macro 23 0
wait 5s
return
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.