Banana Lord
Member
I'm trying to write a script to sort out my display case, but the only solution I've found is incredibly tedious and time consuming. I was hoping that it might be possible to do the same thing, but with much less work and much more functionality. Unfortunately such a script is well beyond my ability so I was hoping a few people could point me in the right direction. Below I have outlined what I want the script to do.
I pretty much have no idea where to start, on top of that I don't know how to use/create/update data file. Absolutely any assistance would be much appreciated
- Compare a data file to my DC, if it finds any items in my DC that aren't in the data file then add them to it.
- Move all items in the data file to my DC.
- Ability to specify conditions (ie: my level below 14) for specific items to be moved to display case, but still have said items added to the data file if they are not already there.
Code:
if(item_amount($item[pernicious cudgel])>0) cli_execute("display put * pernicious cudgel");