Page 3 of 7 FirstFirst 1 2 3 4 5 ... LastLast
Results 21 to 30 of 67

Thread: VIP Hopping! Quick clanhop to BAfH for all VIP room goodies!

  1. #21
    Minion Bale's Avatar
    Join Date
    Jun 2008
    Posts
    13,287

    Default

    Actually, you can each define the other as leader_replacement. It will switch to leader_replacement at any time that the person running the script is leader of the clan.

    The only time you'd need to define alternate_replacement is if you're running both characters on the same mafia installation. (The feature is designed for a 1 person clan of multis.) Since your clannie is on a different computer than yourself, you don't need to worry about that.
    Last edited by Bale; 03-31-2010 at 08:35 AM.
    If people like my scripts, please send me stuffed Hodgmen.
    Universal Recovery, OCD Inventory Control, CounterChecker, newLife, ChIT.


  2. #22
    Senior Member Winterbay's Avatar
    Join Date
    Feb 2010
    Posts
    5,033

    Default

    So, I tried to use your script example up there. I actually copied it verbatim into a script. However when i just ran it I got the following output:
    Code:
    Hopping over to Bonus Adventures from Hell.
    Unable to invoke 90485
    Returning to home clan.
    Visiting Crimbo Tree in clan VIP lounge
    Visiting Looking Glass in clan VIP lounge
    Approaching pool table with a stylish stance.
    Huh? Unknown response.
    Approaching pool table with a stylish stance.
    Huh? Unknown response.
    Approaching pool table with a stylish stance.
    Huh? Unknown response.
    Executing request...
    Jumping into Awesome Ball Pit in clan rumpus room
    You acquire an effect: Having a Ball! (duration: 20 Adventures)
    End index 5 out of bounds (bafh.ash, line 83)
    I think the problem is that it failed to actually switch clan and thus tried to do everything in my original clan, also indicated by the fact that I got a 10% bonus from the ball pit since my clan have 1000 balls.

  3. #23
    Minion Bale's Avatar
    Join Date
    Jun 2008
    Posts
    13,287

    Default

    The actual problem is that my brain "timed out" when I was making that example script. Try this:

    Code:
    import <bafh.ash>
    
    int origin = origin_clan();
    goto_clan(90485);
    visit_vip("crimbotree get");
    visit_vip("glass");
    visit_vip("pool 3");
    visit_vip("pool 3");
    visit_vip("pool 3");
    visit_vip("ballpit");
    goto_clan(origin);
    At least now I know how many people wanted to do use the script that way.
    Last edited by Bale; 06-23-2010 at 06:03 AM.
    If people like my scripts, please send me stuffed Hodgmen.
    Universal Recovery, OCD Inventory Control, CounterChecker, newLife, ChIT.


  4. #24
    Senior Member Winterbay's Avatar
    Join Date
    Feb 2010
    Posts
    5,033

    Default

    Thank you

    And yes... I don't need to be in bafh during rollover since my clan has all +adv furniture already and so a script I can run when I need it is probably the best version

  5. #25
    Minion Bale's Avatar
    Join Date
    Jun 2008
    Posts
    13,287

    Default

    I figured that there would be people in your situation. Yet you're the first to notice my code was screwed up.
    If people like my scripts, please send me stuffed Hodgmen.
    Universal Recovery, OCD Inventory Control, CounterChecker, newLife, ChIT.


  6. #26
    Senior Member Winterbay's Avatar
    Join Date
    Feb 2010
    Posts
    5,033

    Default

    Hmm... Script today exited with a "End index 5 out of bounds (bafh.ash, line 83)" shortly before hopping back to original clan (i.e. did everything else but the hopping back which I then did manually). Any idea of why?

  7. #27

    Default

    Hmm... Script today exited with a "End index 5 out of bounds (bafh.ash, line 83)" shortly before hopping back to original clan (i.e. did everything else but the hopping back which I then did manually). Any idea of why?
    Originally Posted by Winterbay View Post
    I haven't looked at this script, but one place that tends to generate such an error is when trying to parse a string without regex, when said string ends up empty. Tends to happen in laggy times, ie close to rollover. If this script uses any non-regex string searching, this would probably be something to look into.

    If not, I'm just being crazy (again). (I must like being crazy in threads where Bale has recently posted :P )

  8. #28
    Developer fronobulax's Avatar
    Join Date
    Feb 2009
    Location
    Central Virginia, USA
    Posts
    4,186

    Default

    I haven't looked at this script, but one place that tends to generate such an error is when trying to parse a string without regex, when said string ends up empty. Tends to happen in laggy times, ie close to rollover. If this script uses any non-regex string searching, this would probably be something to look into.
    Originally Posted by StDoodle View Post
    This is probably worthy of a new thread but... Could you elaborate? I have a script that gets a page from JickenWings.org and then parses it. It consistently fails to find something on the first run of a session but when I re-run it immediately it succeeds. It calls visit_url and then calls index_of on the result. Have I come across a known feature or should I, perhaps, put some effort into gathering more data?

  9. #29
    Minion Bale's Avatar
    Join Date
    Jun 2008
    Posts
    13,287

    Default

    Hmm... Script today exited with a "End index 5 out of bounds (bafh.ash, line 83)" shortly before hopping back to original clan (i.e. did everything else but the hopping back which I then did manually). Any idea of why?
    Originally Posted by Winterbay View Post
    Could you tell me exactly what you were doing? I can think of several ways that might have happened if you were attempting to call bafh() directly, instead of using the entire script, but you didn't say enough that I can figure out exactly what you did. Did you vary at all from the suggestion in post#23? (Actually, you must have varied from that or else you wouldn't have called bafh() at all.)
    If people like my scripts, please send me stuffed Hodgmen.
    Universal Recovery, OCD Inventory Control, CounterChecker, newLife, ChIT.


  10. #30

    Default

    This is probably worthy of a new thread but... Could you elaborate? I have a script that gets a page from JickenWings.org and then parses it. It consistently fails to find something on the first run of a session but when I re-run it immediately it succeeds. It calls visit_url and then calls index_of on the result. Have I come across a known feature or should I, perhaps, put some effort into gathering more data?
    Originally Posted by fronobulax View Post
    Trying a few things out currently, but I can't seem to reproduce my original problem (I honestly can't remember what it was...). To be safe, you should always test a string before looking for something at a specific index. I personally find regex matches safer, as they have built-in ability to handle matching without needing to specify a position, and it's the position that usually causes problems.

    For example, if you hard-code into a script that it should look up the index of something in a visit_url() result, and take the text X characters afterwards, you'll run into problems when the result has timed-out.

Similar Threads

  1. Clan Hopping
    By Bors in forum Community Support
    Replies: 20
    Last Post: 06-04-2014, 10:04 PM
  2. Quick ? need a little help.
    By Cereal Killer 024 in forum Community Support
    Replies: 13
    Last Post: 11-06-2013, 07:12 PM
  3. Replies: 0
    Last Post: 06-26-2010, 09:30 PM
  4. Quick Q:
    By icon315 in forum Community Support
    Replies: 2
    Last Post: 02-05-2010, 02:39 AM
  5. Mailing crimbo goodies for clan
    By Darkness in forum Scripting Discussion
    Replies: 2
    Last Post: 12-25-2006, 12:47 AM

Posting Permissions

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