Jump to content
  • 0

Get item vnum at inventory position


Yiv

Question

Hello,

 

as I'm not very good coding in python I need your help :)

I have a slot position, let's say 11. At position 11 in inventory is e.g. the item 11200.

Now I want to get the vnum of the item lying at the position I have, so I know the 11 and want to get the 11200.

 

How to do that? :o

 

Regards

Link to comment
  • Answers 1
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

1 answer to this question

Recommended Posts

  • 0

#solved

 

Looked at wrong modules.

 

Thanks to Ellie:

player.GetItemIndex(window_type, slotIndex) - returns vnum

 

Regards

  • Love 1
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.