PDA

View Full Version : MysticBuff



peacy
01-26-2011, 09:19 PM
relay_MysticBuff.ash

This is a simple relay interface for MysticBuff - the web based buffbot (http://mysticbuff.peacemaster.eu/). It simplifies the regular interface and removes the necessity to enter your playername when requesting buffs! Buffing just got faster!

For more information about the buffbot, visit MysticBuff (http://mysticbuff.peacemaster.eu/)

icon315
01-26-2011, 09:29 PM
Hopefully it stays alive longer this time :D

peacy
01-26-2011, 09:33 PM
heh, might crash at RO and not come on till I wake up. Planning to make some changes to the code and hope it will just work *eeeek*

icon315
01-26-2011, 10:30 PM
oh right.... peacy = peacemaster

Theraze
01-26-2011, 10:32 PM
Thought... adding in a version number? :)

icon315
01-26-2011, 10:39 PM
Thought... adding in a version number? :)

Is there really a need? It's not like he is going to update

Theraze
01-26-2011, 10:42 PM
Dunno... if a bug happens to be noticed or the relay needs to be changed for some other reason, I'd imagine that most would figure it out, but... :)

Edit: Ah... already has a version check, it's just offsite and not using zlib.

peacy
01-26-2011, 10:44 PM
yea, it is there for a reason. there will be some more buffs added etc at a later stage. As in within a week or so. I'll take it out once I am mostly done. Just a temporary thing till all is done. Will try to work on these over the weekend. Hopefully roll out chat commands at RO.

Theraze
01-26-2011, 10:48 PM
Nah... I consider that a good thing. :) Few things worse than using an out of date script for 6 months because it doesn't let you know, despite the fact that something really useful-was-added/broken-was-fixed. Even if more isn't planned, it's still good to have it verify that nothing's changed. :D

peacy
01-26-2011, 10:53 PM
Oh, I thought you didn't like it. Yes, added it specifically because it will change soonish. Sure, it increases the load time a little but I can live with that for now. Might leave it there, might not, who knows :-)

Theraze
01-26-2011, 11:26 PM
I was requesting that, or something like it... The standard mafia thing has come to be scripts checking their thread for new versions, but checking the actual buff/host server makes just as much sense. Hadn't pored through the script yet when I made the request though. :p

Chef_Rannos
01-27-2011, 12:08 AM
Worked great, and makes it easier to use. Thanks peacemaster!

Long live MysticBuff!

slyz
01-27-2011, 04:47 AM
Sure, it increases the load time a little but I can live with that for now.
Just so you know, most scripts here use Zlib's check_version() or tweaked versions of it, and it only checks for updates once a day. If you want to do that, you can replace


string remoteversion = to_string(visit_url("http://mysticbuff.peacemaster.eu/version.html"));
remoteversion = trim(remoteversion);
if(remoteversion!=version){
b.append("There is a newer version available, visit <a href=\"http://kolmafia.us/showthread.php?5784-MysticBuff\">http://kolmafia.us/showthread.php?5784-MysticBuff</a> to update!");
}

by


if (get_property("_version_relay_MysticBuff") == ""){
string remoteversion = to_string(visit_url("http://mysticbuff.peacemaster.eu/version.html"));
remoteversion = trim(remoteversion);
if(remoteversion!=version){
b.append("There is a newer version available, visit <a href=\"http://kolmafia.us/showthread.php?5784-MysticBuff\">http://kolmafia.us/showthread.php?5784-MysticBuff</a> to update!");
}
else set_property("_version_relay_MysticBuff",version);
}

peacy
01-27-2011, 05:17 AM
Thanks for that slyz, didn't think of it. I'll push it with the next update :-)

HippoKing
02-08-2011, 02:49 PM
A couple of modifications to make it autocheck the TT/S buffs, and it's a handy addition. Thanks!