Pazleysox
Member
In trying to update the rollover script that I found, this snippet of code is preexisting. I want to update the script as much as I can. I think I understand what this is doing, but I don't know how to figure out which dwelling = which #... There's a ton of new "houses" since this script was written.
Can anyone shine some light on how to find house #'s?
PHP:
string body;
body = visit_url("/campground.php");
int rollMP;
int ind = index_of(body,"campground/rest")+15;
int house = to_int(substring(body,ind,ind+1));
if (house == 0)
{ print_html("You will get no <font color=FF0000>Rollover MP</font> without a Campground dwelling - you can buy a tent"); }
else {
rollMP = house * 10;
if (house == 7)
{ rollMP = 85; }
else if (house == 8)
{ rollMP = 70; }
else if (house == 9)
{ rollMP = 35; }
}
Can anyone shine some light on how to find house #'s?