Results 1 to 5 of 5

Thread: Is there built-in functionality for responding to clan fortune teller requests?

  1. #1

    Default Is there built-in functionality for responding to clan fortune teller requests?

    As far as I can tell, the cli "fortune" keyword only handles sending requests, not responding. Mafia has preferences for the response words, but so far I've only seen them be used to auto-populate forms in the relay browser.

    I know there's a script someone made to handle the fortune teller, but it doesn't actually use mafia's preferences (and seems way too complex for my purposes), so if not I'll be scripting my own. Figured I'd ask first in case I'm missing something.

  2. #2

    Default

    Not that I am aware of.
    You can get a whitelist to Bonus Adventures from Hell ("Send a kmail (not a PM) to bmaher with 'whitelist bafh' to be whitelisted when he logs in next, and send pizza/batman/thick to CheeseFax (using the CLI fortune commands)

  3. #3
    Senior Member Pazleysox's Avatar
    Join Date
    Feb 2009
    Posts
    358

    Default

    As far as I can tell, the cli "fortune" keyword only handles sending requests, not responding. Mafia has preferences for the response words, but so far I've only seen them be used to auto-populate forms in the relay browser.

    I know there's a script someone made to handle the fortune teller, but it doesn't actually use mafia's preferences (and seems way too complex for my purposes), so if not I'll be scripting my own. Figured I'd ask first in case I'm missing something.
    Originally Posted by Malurth View Post
    The Clan Fortune Script is a little hard to figure out for some people. I did not author it, but I use it for my clan bot. I programmed the bot to use that script each time a request is made.

    If you have the script, here's what you need to put into the CLI to set it for the responses you want.

    run script, when box pops up, type or copy/paste next line:
    defaults,1st response,beer
    defaults,2nd response,robin
    defaults,3rd response,thick

    Do not put any spaces where there aren't any, and use the comma's where they are placed. The script will not accept the answers otherwise. I personally changed response 3 to UP, because THICK was getting too confusing for people.

    I've thought about modifying the script, but there's just too much going on, it's hard for me to understand.
    Last edited by Pazleysox; 05-13-2018 at 07:30 PM.
    Scripts I have written:
    Unlock Dread A Script to save you a bunch of clicks.
    Standard Rollover Bonus A Script that shows best items to pull/equip for bonus turns.
    Standard PVP Bonus A Script that shows the best items to pull/equip for bonus PVP Fights.
    Rollover Management A Script that does all the daily deeds you might have forgotten, or might have missed.
    Chatbot A Chatbot script. Simple start for those who want/need one for their clan.
    Zap Wand A Dungeon of Doom ZAP WAND getting script.

  4. #4

    Default

    Yeah, I'd rather just bake my own than use that, since it's needlessly complex for my use case. Thanks, though.

  5. #5

    Default

    Code:
    buffer page = visit_url("clan_viplounge.php?preaction=lovetester");
    
    string [int][int] request_array = page.group_string("(clan_viplounge.php\\?preaction=testlove&testlove=\\d*)\">(.*?)</a>");
    
    foreach i in request_array {
    	string response_url = request_array[i][1].replace_string("preaction\=testlove","preaction\=dotestlove") + "&pwd&option=1&q1=" + get_property("clanFortuneReply1") + "&q2=" + get_property("clanFortuneReply2") + "&q3=" + get_property("clanFortuneReply3");
    	visit_url(response_url);
    	print("Response sent to " + request_array[i][2] + ".", "green");
    }
    There we go. This auto-responds to all outstanding clan fortune requests using mafia's built-in preferences.

    See how much nicer that is?

Posting Permissions

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