ScriptUO
Official ScriptUO EasyUO Scripts => Scripting Chat => Topic started by: Cuemif on October 03, 2010, 06:21:42 PM
-
I am looking to make a bag that keeps a couple bags in my PACK open at all times any ideas?
-
set %bag_to_keep_open_1 XXXXXX
set %bag_to_keep_open_2 YYYYYYYY
set #lobjectID %bag_to_keep_open_1
event macro 17
wait 10
set #lobjectID %bag_to_keep_open_2
event macro 17
wait 10
-
Thanks for the fast response. Just one small problem. it keeps opening them over and over and over and over queing me and make it so I can no cast. is there a way to make it open them only if they close ? Sorry I am still learning this stuff thank you again
-
It's difficult to ensure they are opened. The problem is that there isn't a "check gump" or "find gump" command in euo. All information returned regarding gumps (containers) are about the last one opened or the one currently in view.
If you want to ensure that your gump is opened you'll just have to open it occasionally. If your doing this in a script of some type just put that code to open your packs in every code cycle. If your doing it attended then you can put that code on a hotkey and open them when you see them closed.
-
Sweet got ya . Yeah I am trying to add it to CEOmedic lol . It does not find my bands or pots and halts the script if I change facets. Thanks again for the speed reply
Just one more question is there a way to make it so it pulls it to a certain area on the screen ?
If you could help me put it in that would be cool if not thats cool to will give me a chance to see what I can do . Thanks again for the help you are awesome and take care my friend
-
I do know a way to do a quick check for them.... you could make a check that would open the packs if the bandage isn't found....
The command to find something is finditem (http://wiki.easyuo.com/index.php/FindItem). It looks complicated but it's not.
To find something ANYWHERE on screen
finditem %something
To find something on the ground within 3 tiles of your char:
finditem %something G_2
To find something in your backpack:
finditem %something C_ , #backpackID
To find something in another container
finditem %something C_ , %bag_to_keep_open_1
There are a couple ways you could check your bags... or you could just keep them in your backpack and use "event macro 8 7" right before using a bandages in CEO medic to ensure your backpack is opened.
-
Now in OpenEUO that would be a peice of .. umm as easy as pie.
But considering your adding it to an existing script, then right before it checks for pots etc open the bags...
To move the bag to a certain spot use the command
contpos 100 100 ; or what ever x y you want
-
Ok I kinda follow what you are saying just not sure where to put it all and where and what the x y Re
-
contpos x y
REad the command docs over at easyuo.com http://wiki.easyuo.com/index.php/ContPos
And run the example code so you understand how it works.
-
I see from the other site that you have blessed bandage bags on your shard, and that's why you're trying to keep this opened.
You really don't need to keep it opened. You can use an item from a bag/chest/box without it being opened on screen, you just have to know where to use it from.
As a test of that... if you have UOAssist make your disrobe bag and put all your armor/clothes into it. Put that bag inside a secure, or in your bankbox or wherever. DO NOT open that bag with your armor. Now use UOA hotkey to dress. You'll put on all those items without ever opening the bag.
finditem ZJF C_ , %blessed_bag
You'll have to define your blessed bag at the top of CEO medic. Then just put that line wherever CEO Medic looks for bandages.
-
Ok I will gi ve that a shot if it does not worl I will post here damn work need to hurry so I can go back to uo lol
-
With EasyUO open, the right window pane has a bunch of collapsing tree structures. Expand the "Container Info" tree, then go to UO and open the container with your bandaids. Back in Euo, the #contid now represents the id of that bag. Copy that value and apply it to the set %bag_to_keep_open_1 that Cerveza laid out earlier. It should look like this:
set %bag_to_keep_open_1 ABCDEFG <- change this to the value in #contid
set %bag_to_keep_open_2 YYYYYYYY
Repeat this procedure for each different bag you want open.
To set the bandaids, follow the same steps as above except look inside the "Last Action" collapsed tree, and note the "#LLiftedtype" variable. For this, just pickup the entire stack of bandaids. The ID value will be this.
-
I see from the other site that you have blessed bandage bags on your shard, and that's why you're trying to keep this opened.
You really don't need to keep it opened. You can use an item from a bag/chest/box without it being opened on screen, you just have to know where to use it from.
As a test of that... if you have UOAssist make your disrobe bag and put all your armor/clothes into it. Put that bag inside a secure, or in your bankbox or wherever. DO NOT open that bag with your armor. Now use UOA hotkey to dress. You'll put on all those items without ever opening the bag.
finditem ZJF C_ , %blessed_bag
You'll have to define your blessed bag at the top of CEO medic. Then just put that line wherever CEO Medic looks for bandages.
Ok I would rather do it this way . thank you for the help but let me show you what I am trying I am just unable to get it to work right I am sure I am doing something wrong
first I set my bag at the top like this
set %blessed_bag_Bands CKF (or do I use the VACTRMD code?)
Then when it looks for aids I did this
sub aids
finditem ZLF C_, %bless_bag_Bands
if #findkind <> -1
what am I doing wrong ?
-
Use the other one... CKF is the item TYPE which refers to all bags. The other is the item ID which is unique to your one bag.
-
Ok I changed it just now the script thinks the bag is the bands and when it goes to heal me it does not use a bandage hmmmm
-
Ok I am pulling my hair out here I can't get it to use the bands for the bag I am so confused why this is not working