Search results

  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...
  16. P

    ASH Maps question.

    Well... That is just... Wow... I think I need to rewrite my Restorer script now. Because if that is true, then I am getting maps of 1 item each... Can you verify that this is the way you wanted it to work Veracity? If so, then I for one vote for plain old arrays. Even the ones that aren't...
  17. P

    ASH Maps question.

    Well, once I got over the problem of things not working like I thought they should, I have figured out that it should be possible to get it to work. It is very convoluted, and frankly there are problems with it... First, I can't seem to get my sample script to work. That is likely due to the...
  18. P

    ASH Maps question.

    Well, when I was doing Pascal programming back in High School... Some 15 or so years ago, what we used that were called arrays allowed us to define what the dimensions were, what those dimensional values were, and reference them as necessary. Maybe they were structs, and we never learned to...
  19. P

    ASH Maps question.

    Well... First, since most of you hadn't noticed, I have already grasped the basic uses of maps. If you check my new version of MuseumStockUp here, and RestorerSelector here, you will see that simple uses I can handle already. So, script examples weren't even needed either. I was simply...
  20. P

    ASH Maps question.

    Just so I do not have to start a new thread, I have a map question: Is it possible to "pull" a key value from a map for a specific result? I have tried to read Veracity's notes on maps... But for some reason I can't wrap my brain around them fully... Maybe I am getting just too old to...
Top