Welcome to Keen Software House Forums! Log in or Sign up to interact with the KSH community.
  1. You are currently browsing our forum as a guest. Create your own forum account to access all forum functionality.

How to retrieve item name?

Discussion in 'Programming (In-game)' started by MXXIV, Mar 19, 2019.

Thread Status:
This last post in this thread was made more than 31 days old.
  1. MXXIV Trainee Engineer

    Messages:
    5
    This was what I found on the internet:

    string myItemName = myItem.Content.SubtypeName.ToString()

    But that doesn't work, it fails with the an error:

    'MyInventoryItem' does not contain a definition for 'Content' and no extension method 'Content' accepting a first argument of type 'MyInventoryItem' could be found

    I assume that something has changed. I tried to get the new property names via reflection, but that didn't work out because it's not allowed to use that package.
     
  2. Malware Master Engineer

    Messages:
    9,866
Thread Status:
This last post in this thread was made more than 31 days old.