GhettoTrucker
Member
So I am working on a script, I would like to be able to dynamically decide which items in my inventory to autosell, which to place in mall, which to put in the clan stash, etc... I know a lot of people around here can do stuff like this by creating a text document with all the information in it and then use the file_to_map() function to map out the data. But how exactly do you do this? I want to make one with a data-structure like so,
Sale = autosell
mall = place in mall and undercut
stash = place in clan stash
The "keep" refers to how many to keep available in your inventory (item_amount() - "keep value")
so the 1 means keep 1 available, 0 means keep 0, etc. Item is simly the item name.
This structure would make it easily customizable by the user. And would then be able yo be used in many other scripts as well.
And the way i vision it, you would be able to call a function that is something like,
manage_items("sale"); #autosell all items marked as "sale"
manage_items("stash"); #place all "stash" items in the clan stash
manage_items("mall"); #place all items marked as "mall" in the mall and undercut.
So could someone tell me how to do this? (examples would be extremely helpful!)
Thanks!
Code:
[TYPE] [KEEP] [ITEM]
sale 0 Knob Goblin Sausage
mall 1 beer basted brat
stash 1 7-ball
mall = place in mall and undercut
stash = place in clan stash
The "keep" refers to how many to keep available in your inventory (item_amount() - "keep value")
so the 1 means keep 1 available, 0 means keep 0, etc. Item is simly the item name.
This structure would make it easily customizable by the user. And would then be able yo be used in many other scripts as well.
And the way i vision it, you would be able to call a function that is something like,
manage_items("sale"); #autosell all items marked as "sale"
manage_items("stash"); #place all "stash" items in the clan stash
manage_items("mall"); #place all items marked as "mall" in the mall and undercut.
So could someone tell me how to do this? (examples would be extremely helpful!)
Thanks!