Page 2 of 2 FirstFirst 1 2
Results 11 to 14 of 14

Thread: Two Crazy Random Summer

  1. #11
    Developer
    Join Date
    Apr 2010
    Posts
    5,090

    Default

    So, thinking about it, I think what we'd need is:

    modifiers file containing:
    class, moonsign, item id, item name, modifier/effect (if present)
    We'd use item name to populate the item -> canonical item, so we recognise everything, and modifier to be parsed and then override modifiers.txt. Ideally we'd handle plurals also, but there is no way for a script to get those for items you don't have.

    consumption files containing:
    class, moonsign, item name, size, potency
    Presumably there is a simple equation in path for size x potency expected adventures and stats. We'd use the files to override the normal consumables data.

    Is that 'it' ?

  2. #12

    Default

    We use statuseffects.txt to identify how to get an effect, particularly important when there are multiple sources. Some handling of that is probably important for the maximizer functioning as expected.

  3. #13
    Developer
    Join Date
    Apr 2010
    Posts
    5,090

    Default

    True, but I THINK we could build it with that data?

  4. #14
    Senior Member Crowther's Avatar
    Join Date
    Nov 2006
    Posts
    1,449

    Default

    I'm not sure if this is helpful, but I scraped then entire item description for one class/sign combo. It is just pure HTML. The directory is 62 for Accordion Thief/Vole. The numbers in the file name are the item number. I was going to do more with this before posting, but I've run out of time before a camping trip. I wanted to make code to use this as a cache.

    https://www.dropbox.com/s/p60pv57l88...TC.tar.gz?dl=0

    Here's the code I used to create this. WARNING: lots of server hits.

    Code:
    int [string] sign;
    sign["Mongoose"] = 0;
    sign["Wallaby"] = 1;
    sign["Vole"] = 2;
    sign["Platypus"] = 3;
    sign["Opossum"] = 4;
    sign["Marmot"] = 5;
    sign["Wombat"] = 6;
    sign["Blender"] = 7;
    sign["Packrat"] = 8;
    void main()
    {
        string p = "TC/" + my_class().to_int()+sign[my_sign()] + "/";
        foreach i in $items[] {
            buffer d = visit_url("desc_item.php?whichitem="+i.descid);
            cli_execute("mirror " + p + i.to_int() + ".html");
            print(d);
            cli_execute("mirror");
            print(i.to_int());
        }
        print("Done.");
    }

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •