Page 1 of 3 1 2 3 LastLast
Results 1 to 10 of 23

Thread: sorority house ghosts

  1. #1
    Junior Member
    Join Date
    Jan 2009
    Posts
    8

    Default sorority house ghosts

    How do I configure a CCS to use ghost traps on sorority ghosts? The name keeps changing, and [sexy ghost] did not work for me. Thank you

  2. #2

    Default

    I am currently drunk in game, so I cannot test this


    boolean [element] weak_elements;

    switch (monster_element())
    {
    case $element[cold]: weak_elements = $elements[spooky, hot]; break;
    case $element[spooky]: weak_elements = $elements[hot, stench]; break;
    case $element[hot]: weak_elements = $elements[stench, sleaze]; break;
    case $element[stench]: weak_elements = $elements[sleaze, cold]; break;
    case $element[sleaze]: weak_elements = $elements[cold, spooky]; break;



    Ghosts are Weak to all forms of elemental, so you should be able to make something of that.
    Last edited by mottsy; 10-17-2011 at 02:35 AM.

  3. #3
    Developer Veracity's Avatar
    Join Date
    Mar 2006
    Location
    The Unseelie Court
    Posts
    11,317

    Default

    The name of the monster in KoL's dungeon log is "sexy sorority ghost", so, that is the name of the monster in KoLmafia.
    Ph'nglui mglw'nafh Cthulhu
    R'lyeh wgah-nagl fhtagn.

  4. #4

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

    Default

    just plain "ghost" also works.
    Originally Posted by mredge73 View Post
    That catches the basement ghosts as well though doesn't it?
    My scripts:
    Best sushi for Profit
    Winterbay's Helpful Automatic Monsterbasher (WHAM)

    Scripts maintained by me:
    Autobasement
    Smashlib

    A small programmer joke:
    Wife: Honey, please go to the market and buy 1 bottle of milk. If they have eggs, bring 6.
    The man came back with 6 bottles of milk.
    Wife: Why did you buy 6 bottles of milk.
    Man: Because they had eggs...

    The 6 Stages of Debugging: 1 )That can't happen. 2) That shouldn't happen. 3) Hmmm, weird. 4) Why does that happen? 5) Oh, I see. 6 )How did that ever work?

    All programs can be optimized, and all programs have bugs; therefore all programs can be optimized to one line that doesn’t work. /Bob Fitch, Blizzard

  6. #6
    Senior Member
    Join Date
    Feb 2009
    Posts
    377

    Default

    That catches the basement ghosts as well though doesn't it?
    Originally Posted by Winterbay View Post
    also the "a ghost" from the 8bit power magazine zone.

  7. #7
    Senior Member mredge73's Avatar
    Join Date
    Dec 2008
    Location
    Houston TX
    Posts
    519

    Default

    sure does, so don't use it generically I guess.

    related question because I forgot how to do this:

    [ sexy sorority ghost ]
    item ghost trap
    skill stuffed mortar shell

    Once apon a time I remember structuring a ccs like this would work just fine. If I ran out of x items it would skip to the next line.
    Doesn't work anymore, aborts combat. How do I get this to work without over complicating things?

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

    Default

    Mine looks like this:
    Code:
    [ sexy sorority ghost ]
    if hascombatitem 5308
        "use 5308"
    endif
    skill entangling noodles
    attack with weapon
    My scripts:
    Best sushi for Profit
    Winterbay's Helpful Automatic Monsterbasher (WHAM)

    Scripts maintained by me:
    Autobasement
    Smashlib

    A small programmer joke:
    Wife: Honey, please go to the market and buy 1 bottle of milk. If they have eggs, bring 6.
    The man came back with 6 bottles of milk.
    Wife: Why did you buy 6 bottles of milk.
    Man: Because they had eggs...

    The 6 Stages of Debugging: 1 )That can't happen. 2) That shouldn't happen. 3) Hmmm, weird. 4) Why does that happen? 5) Oh, I see. 6 )How did that ever work?

    All programs can be optimized, and all programs have bugs; therefore all programs can be optimized to one line that doesn’t work. /Bob Fitch, Blizzard

  9. #9
    Developer
    Join Date
    Nov 2008
    Location
    Paris, France
    Posts
    4,510

    Default

    Doesn't work anymore, aborts combat.
    Originally Posted by mredge73 View Post
    That's probably a Mafia bug that should be fixed. I've gotten that error too (the macro aborted), I'll try to investigate some more.

    EDIT: I think the behavior was changed on purpose. Maybe it is better for Mafia to abort if you specified an item in a CCS and the item isn't present in your inventory, so that you can decide what to do yourself.

    The workaround, as Winterbay posted, is to add a KoL Macro "hascombatitem" predicate yourself.
    Last edited by slyz; 10-19-2011 at 11:40 PM.
    Try the Nemesis Quest Script or the FamiliarFeeder interface.
    *shakes KoLMafia tech support magic 8-ball* Update mafia to the latest daily .JAR!
    NEW Dad ASCENSION STARTED 20120730
    ------------------------------
    Welcome to Parenthood, Noob

  10. #10
    Senior Member mredge73's Avatar
    Join Date
    Dec 2008
    Location
    Houston TX
    Posts
    519

    Default

    thanks, works now.
    Other than the short example on the wiki, is there a syntax guide for CCS scripts? This is not ash, is it Java or C?

Similar Threads

  1. Sorority House
    By slyz in forum Community Support
    Replies: 1
    Last Post: 03-12-2012, 10:04 PM
  2. New Content - Implemented The Haunted Sorority House
    By slyz in forum Bug Reports
    Replies: 71
    Last Post: 10-30-2011, 09:38 PM
  3. 9917: Add Haunted Sorority House booze.
    By RSS Bot in forum Latest SVN Changes
    Replies: 0
    Last Post: 10-21-2011, 05:00 PM
  4. Replies: 0
    Last Post: 10-16-2011, 10:15 PM
  5. Replies: 0
    Last Post: 10-16-2011, 05:31 PM

Posting Permissions

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