Automating Rain Man

the Tristero

New member
I am trying to get a script to automate casting Rain Man. However the visit_url command keeps looping in mafia at the "Encounter: Rainy Fax Dreams on your Wedding Day" page. The command I am using is below. And I have tried several variations are with the same result. Does anyone have any idea what I might be doing wrong with it or if there is another method to automate rain man?


Code:
		cli_execute("cast rain man");	
                visit_url("choice.php?pwd="+my_hash()+"&whichchoice=970&whichmonster=1942&option=1&choice2='and Fight!'",false);
		run_combat();
 
Last edited:
Code:
			print("Rain Faxing in a "+RainManMonster);
			//boolean dummy = use_skill(1,$skill[Rain Man]);
			visit_url("runskillz.php?action=Skillz&whichskill=16011&targetplayer=2766368&pwd="+my_hash()+"&quantity=1");
			visit_url("choice.php?option=1&pwd="+my_hash()+"&whichchoice=970&whichmonster="+to_monster(RainManMonster).id,true);
			run_combat();

This is what my script uses. I commented out the skill cast for some reason, probably because it caused mafia to go all smart on me and break something. If I had to guess it would have been trying to automate the choice adventure it found me in, not know what to do, and abort the script to ask me. Aside from that, you want to submit a POST request for the second link, and comparing the two, you don't need to submit the 'and Fight!' part, that is what option=1 is all about in the first place.
 
Top