visit_url

relyk

New member
For getting buffs from the friars, or the arena, or chips from the rumpus room; you have the cli commands. How do you figure out the visit_url for these places though? whenever someone asked a question for one of this, they are just told to use the cli commands available instead. anyone care to provide information about using the visit_url function, because i dont really understand how you find the addresses to execute actions like adventuring or choosing an option.
 

Theraze

Active member
Two main choices. One, use the minibrowser. Two, check the source code on the page containing whichever link you're wanting to verify.
 

Fluxxdog

Active member
Easiest way for me is to right-click and choose "Copy Link Location" and paste that in my script, then delete the "http://127.0.0.1:60080/" part. If there's a "pwd=" part, I delete everything after "pwd" (up to the next & mark if it's not the last part of URL).

Code:
http://127.0.0.1:60080/example.php?test=something&pwd=fh7275fuyh47376fgf&hello=world
...becomes...
visit_url("example.php?test=something&pwd&hello=world");

Mafia will always send these to KoL and will fill in the proper info for "pwd" since it changes with each login.
 

slyz

Developer
As Theraze pointed out, Mafia's mini browser always shows the URL that was used when you clicked to get somewhere. Fluxxdog's advice works for links, but not for buttons for example. In those cases, if, like me, you are not familiar with HTML and forms and such, your best bet is the mini-browser
 

relyk

New member
ok thanks, didn't know the mini browser would bring up the url for buttons since i don't use it.
 
Top