Is it possible to delete those items that were specifically "sold"?
For example, I have three +10 Example_Sword in my inventory, each of them has 3 Random Options,all of them has 'Holy Property' as their first random option, while their other two random options are all different from each other.
If I sold 1 Example_Sword, how can I delete only that specific sword and keep the others intact?
If i use delitem2 it's possible that it will delete the wrong item. But what about delitem3, can it take into factor the last two random options of the items?
EDIT:
I noticed that items in inventory have unique id like GID in the database, is it possible to get this value like a @sold_gid[] array when using OnSellItem: and also delete the item using its "gid"?
Question
aadritch2
Is it possible to delete those items that were specifically "sold"?
For example, I have three +10 Example_Sword in my inventory, each of them has 3 Random Options, all of them has 'Holy Property' as their first random option, while their other two random options are all different from each other.
If I sold 1 Example_Sword, how can I delete only that specific sword and keep the others intact?
If i use delitem2 it's possible that it will delete the wrong item. But what about delitem3, can it take into factor the last two random options of the items?
EDIT:
I noticed that items in inventory have unique id like GID in the database, is it possible to get this value like a @sold_gid[] array when using OnSellItem: and also delete the item using its "gid"?
Edited by aadritch23 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.