DICE PACKS BUNDLE
  1. #1

    How to I get the source from draginfo in manager_item.lua?

    this is the function


    function handleAnyDrop(vTarget, draginfo)
    local sDragType = draginfo.getType();
    local sClass2, sRecord2 = draginfo.getShortcutData();

    I am doing auto purchasing of items when they are dragged into the inventory, however, I only want to deduct the coins when the source from the items table, not from when they are dragging items around in their inventory. How can I find this info? Thanks!

  2. #2
    damned's Avatar
    Join Date
    Mar 2011
    Location
    Australia
    Posts
    27,122
    Blog Entries
    1
    As always do a
    Code:
    Debug.chat("draginfo: ", draginfo);
    and see what it outputs.
    Then you can work out what and how to pull the data you need.

Thread Information

Users Browsing this Thread

There are currently 2 users browsing this thread. (0 members and 2 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
5E Character Create Playlist

Log in

Log in