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. Greetings Guest, Having Login Issues? Check this thread!
    Dismiss Notice
  4. Hail Guest!,
    Please take a moment to read this post reminding you all of the importance of Account Security.
    Dismiss Notice
  5. Author Wes Locher has teamed up with Stratics for a giveaway of his new book Braving Britannia. This book explores the history and impact of Ultima Online and includes interviews from current and past dev team members as well as many UO and Stratics community members. Click here for more details!
    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

    Joined:
    Jul 19, 2009
    Messages:
    93
    Likes Received:
    1
    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)
    j-TargetWindow.OnItemDblClicked()

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