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. The Broadsword team is seeking alternative castle designs! Learn more and discuss here!
    Dismiss Notice
  4. Publish 97 is currently on TC1! They are currently focusing on the pet customization aspect of the pet revamp. Head to TC1 and send in your feedback or discuss here!
    Dismiss Notice
  5. Broadsword is hosting a 20th Anniversary Party for UO this September! Learn more here. Will you be there, Guest?
    Dismiss Notice
  6. A new State of Stratics is up. Check it out here!
    Dismiss Notice

[Tech Help] Can I use Action Command in the command script?

Discussion in 'UO Enhanced Client Discussion' started by Decors, Dec 11, 2009.

  1. Decors

    Decors UOEC Modder
    Stratics Veteran

    Jul 19, 2009
    Likes Received:
    Is there any way to use Action Command in the command script?
    I wanna use "Use Targeted Object" in the command script to improve open-corpse macro.
    I found "SystemData.UserAction.TYPE_USE_TARGETED_OBJECT" in the ActionsWindow.lua.
    But sure It dosen't work :)

    I tried a few script ....but all failed lol.
    Below two script works when I target myself but corpse.
    - UserActionUseItem(TargetWindow.TargetId,false)

    Hope if I can use Action command in the script or any other script to use targeted object, it's amazing.