Jump to content
  • 0

Need c++ function.


Shang

Question

Hi devs,

 

I need a function like item.get_cell but i want which this function returns the last item added to inventory. The cell which was edited with the new item added to the inventory.

 

It is possible?

 

Thanks.

Link to comment

3 answers to this question

Recommended Posts

  • 0

you can create a query to "item" table and get the biggest item "id" (which will allways be the last item added), that belongs to that player "id" and then get it's "vnum".... just an ideea...

  • Love 1
Link to comment
  • 0

you can create a query to "item" table and get the biggest item "id" (which will allways be the last item added), that belongs to that player "id" and then get it's "vnum".... just an ideea...

 

I thought about this, but a query...

 

If anyone can make me the function I'll must use the query  :unsure:

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.