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.


Topics - mmoore5325

Pages: [1]
1
Scripting Tutorials / Ok, total script noob here
« on: October 13, 2014, 07:28:13 PM »
I am trying to make a basic script.  Something simple that will learn me some basics but also do something functional.  I am trying to make a script that will organize gold checks/commodity deeds in that nice little fashion where they overlap each other and line up perfectly in a row.  This is my very first script.  I would appreciate any help someone could give me.
Here is what I have, and please, don't laugh.

gosub selectbag
gosub selectbag2
gosub movedeed

sub selectbag
    display ok Click ok and select bag
    set #targcurs 1
    while #targcurs = 1
          wait 2
    set %bag #ltargetid
    set #ltargetid %bag
    event macro 17
   
Return

sub selectbag2
   
 display ok Click ok and select bag to you want to put deeds in
    set #targcurs 1
    while #targcurs = 1
          wait 2
    set %bag2 #lobjectid
    set #ltargetid %bag2
    event macro 17

Return

sub movedeed
   
    findItem EWH C_, %bag

And thats all I got.  I know event macro 17 is last object.  I do not know how to make it open the bag that is targeted.  If someone could let me know how, after they select the bag, to have the bag open, I would appreciate it.  Then if someone could refer to me an example of a click and drag to x,y after I have opened the targeted bag, I would appreciate it.  I think contpos puts the gump in a spot of my choosing, then I could click and drag the deeds to the first coordinate, then coordinate +1, or something.  Am I on the right tracK?  Anything helps.  I'm totally new at this but really want to start making my own super secret 1337 scripts that I can brag about and release versions that are just a tease of what my full version,  But for now I will be happy organizing checks.

2
New member introductions / Hello good people
« on: September 23, 2014, 11:11:56 PM »
My name is Mike, everyone calls me Mac.  Just back in the game within the last month or so, and havent played since AoS.  My cousin and I had a few drinks one night and started rehashing the good ole days of UO, and it wasn't too long before we came back.  I started reading about all the cool stuff people have done with the game regarding these scripts, and I am finding the fun things you can do with scripts almost as intriguing as the game itself.  I am interested in learning how to program.  I am getting ready to graduate college, and am now wishing I had gone down the software engineer route.  I am wanting to find a way to go back to school because this stuff has always interested me, but would love to know where a good place to start would be when trying to learn the things I need to know to help me get a good start here.  What kind of programming languages would be good to try and learn before I even begin to attempt to make scripts.  I figure it will be a long road but I am eager to learn.

Thanks alot, looking forward to talking to everyone on the forum!

Mac

Post Merge: September 23, 2014, 11:20:23 PM
Oh, and if you want my UO history, I used to play with SoB on Great Lakes back in the Pre-AoS days.  I quit sometime after AoS came around.  We claimed Moonglow as our hometown.  Ill never forget seeing the people name their animals vulgar things and attach our guild initials on to the pets.  "SoBSuxDik."  And when I came back, I went and did a champion spawn with my cousin, a red showed up and killed us.  It felt good to see a red show up and get that, "Oh *bleep*!" feeling again.  Our guild ran all the dungeons, mainly pvp and player killing.  I am playing OSI again, and the game has changed alot.  It seems mostly for the better.  This is one game that will never get old.  I have played other games between now and then, but none have that horizontal gameplay that UO has.  Its not a race from beginning to end with UO.  Once you finish building your character, then you move on to something else, because there is always something that is needing done.  "Ok, get 120 swords, time to check my plants.  Ok, plants are good, time to go get my BODs.  Ok, got BODs..."

But like I said, the scripting aspect of it interests me alot, and all the different things you can do once you learn how to use Object ID's and stuff to your advantage.  And I would like to take what I learn here on to other things.  But right now I need to learn the basics, so help with that would be appreciated, as in a good place to start, and what language that would be.

Thanks again.

Pages: [1]