1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Greetings Guest!!

    In order to combat SPAM on the forums, all users are required to have a minimum of 2 posts before they can submit links in any post or thread.

    Dismiss Notice
  3. Hello Guest! On January 27th Stratics will be brought down for an extended maintenance period. This period may take upwards of 12 hours to complete. Please check the thread in the Announcements forum for more details.
    Dismiss Notice

Help with command to use item

Discussion in 'UO Enhanced Client Discussion' started by Tardis, Apr 20, 2013.

  1. Tardis

    Tardis Visitor

    Joined:
    Mar 27, 2013
    Messages:
    3
    Likes Received:
    5
    Is there a way to use an item in an open container given its object ID? I know about UserActionUseItem(objId, bool), but this isn't working by itself. Is there some window data that needs to be registered, or is this type of action not possible? Sorry if this has been answered before, I wasn't able to find a solution. Appreciate the help, I'm new to this part of EC and I'm loving it so far.
     
  2. Pinco

    Pinco UOEC Modder
    Stratics Veteran Stratics Legend

    Joined:
    Jul 25, 2005
    Messages:
    5,678
    Likes Received:
    865
    you can't use items by script in any way, just drag it into the hotbar to do that or inside a macro...
     
  3. Tardis

    Tardis Visitor

    Joined:
    Mar 27, 2013
    Messages:
    3
    Likes Received:
    5
    That's what I figured. Saved me a lot of pain trying random things, thanks for the quick reply Pinco!