Recent content by Presto Ragu

  1. P

    Memory leaks?

    I'd like to ask the same thing. Based on this thread (and figuring out it must refer to the bar in the upper right of Mafia's main window), I've been watching the usage. It seems to constantly increase when you aren't doing anything, and increases faster if you press the garbage collection...
  2. P

    Any script requests?

    Huh. I'd never heard of it. KoL Forum thread for those interested.
  3. P

    Any script requests?

    (Don't take the following too seriously... :-P) If you've got nothing else on your plate... I'd love a chat interface script. What I mean is something that parses chat, and responds to System Announcements, New Mail Notifications, PMs, and such. I started to ponder it, and realised with the...
  4. P

    Missing Familiars: A Script for Hearts

    The one that comes to my mind is Squi(#145873). There were others, but at this time I can't remember them. EDIT:: And that seems to be what is happening. I put a simple print line displaying the player number, and for Squi, the number returned is AerialSquid(#121664).
  5. P

    Why does the following code creat an endless loop?

    That assumption would be incorrect. It was supposed to be consecutive integers. I say supposed to be, because after reading that accessing a non-existent key in a map, creates said key, that got me to re-evaluate the output. The listed value of ItemList[ "Closet", 0] is $item[none]. That...
  6. P

    Why does the following code creat an endless loop?

    So, if I'm understanding you correctly, a map (item[ string, int] ItemList, in this case ItemList[ "Closet", <variable>]) that has a static count of 682, has the count increased every time the script "looks" at one of it's assigned values from ItemList[ "Closet", 0] to ItemList[ "Closet", 681]...
  7. P

    Why does the following code creat an endless loop?

    Don't worry about the new programmer part, sometimes fresh eyes will see something different. (Sometimes we get caught up in our experience. ;-)) That is not the full code. The script is long, and every other part functioned fine. For reference, it is an update to my MuseumStockUp script...
  8. P

    Why does the following code creat an endless loop?

    Yes, ItemList and ItemQuant are both maps. And for some reason, changing that to a foreach loop stopped the infinite loop. Now to track down the other problems... (But why did LoopCounter never equal or exceed count( ItemList[ "Closet"]) in the original code?
  9. P

    Why does the following code creat an endless loop?

    I'm more than a little sleepy (but the construction outside prevents sleep), so I fully expect to get a "duh" feeling after someone else looks it over. That is why I'm not reporting it as a bug yet. print( count( ItemList[ "Closet"]) + " Closet", "red"); if( count( ItemList[ "Closet"]) > 0)...
  10. P

    Discoveries.ash

    I tried that change, and it works like a charm. Thanks for the effort, on a rather minor bug.
  11. P

    Missing Familiars: A Script for Hearts

    This script seems to "randomly" not work right. And I can't figure out why. I thought it would "fail" on characters in ronin, or hardcore, but it would report wrong familiar needs even on characters that are out. Before I go further, let me explain what happens. It will report that the...
  12. P

    Discoveries.ash

    I like this script a lot, since discoveries were implemented during my long break of KoL. Just for informational purposes, it incorrectly counts the number of existing discoveries if your account is set to not display images. (0 for all current discoveries.) The listing functions just fine...
  13. P

    Marble Collector

    I cleaned up the logic a bit... No need to use cysts if you have a complete collection. It also reduces the unlikely event of the big marble getting used. And finally I fixed a coding error. I left the original in the first post as a example to be used and abused.
  14. P

    Stat Item User

    Quick update: I noticed a little code error and fixed it. Since my last foray with Mafia a few years ago, some useful functions have been added. Most notably stat_bonus_today(). My previous attempt at a script that remembers to use your stat items is here. What it Does: If it is a stat...
  15. P

    Marble Collector

    Marble Collector (Updated) A simple script to handle "upgrading" marbles to work for a complete collection. What it Does: It checks for, and uses any tiny or small slimy cysts in your inventory (and optionally your closet, display case, and/or Hanghk's). It will then check and attempt to...
Top