Recent content by Malthan

  1. M

    KGBriefcase

    I made a pull request with a fix for enchantment parsing issue that I've encountered. Seems I was a bit late and it was fixed it in the meantime, but maybe it will be of some use :)
  2. M

    Item array

    Ah that second code you posted looks nice :) It should work fine for my needs, thanks :)
  3. M

    Item array

    I can't find a tutorial about this and looking through diffrent scripts didn't help se, so I decided to ask: How do you use arrays in mafia? I want to make an array of items, let me demonstrate what I mean in Java code: ArrayList items = new ArrayList(); items.add(digital underground potion)...
  4. M

    Mall data gathering

    mredge73 - just look at the script I posted, it does a bit of what you are looking for. Specifically you need to do : cli_execute("searchmall " + to_string(it) + " with limit 8"); Where 'it' is the item you want to search for. You can change the search limit of course. Naturally you will...
  5. M

    Mall data gathering

    The data has many purposes, the ones I'm interested in most are a) being able to get the best diet for farming based on current and hystorical prices of items and expected gains. Something like houeland / Eleron's KoL diet lists, except that it will update itself everyday automatically. b)...
  6. M

    Mall data gathering

    Yes, that's what I'll be doing. My script gathers data for all items, limited by the with limit setting - I believe data about 8 cheapest stores should be fine, but I may need ot increase it.
  7. M

    Mall data gathering

    forgot my password - either I'm not reading correctly, or the scripts you link don't gather any data, they just used data that's stored in the files? I will be gathering how much of every item is in mall and how it's priced. Also they seem to be based only on 5th cheapest items price, which is...
  8. M

    Mall data gathering

    I use the wait not to hit the server with requests too often, since I believe that can get you banned, and I don't know how long mafia pauses before the requests in loop. I got a lot of help from items of loathing admin, but I need to gather my own data to use diffrent kind of analysis on it -...
  9. M

    Mall data gathering

    But it is saving to a file - that's what mirror command does. I'm just wondering if there's a way for it to not give the "Countdown.." statments - can I somehow modify the code of how the wait command works? I can just parse the file with a diffrent program that will cut all the trash lines...
  10. M

    Mall data gathering

    I'm doing an adaptive buisiness intelligence project based on kol item prices and I need to gather my own data, since mallbot seems to have been broken by the mall update. So far I've worked out something like this: boolean main() { cli_execute("mirror "+today_to_string()+".txt"); for i...
Top