MysticBuff

peacy

Member
relay_MysticBuff.ash

This is a simple relay interface for MysticBuff - the web based buffbot. 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

update: doesn't work anymore. I came back to KOL after a long time (2ish years) and am noticing people are still trying to use it. Link taken down.
 
Last edited:

peacy

Member
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*
 

Theraze

Active member
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

Member
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.
 
Last edited:

Theraze

Active member
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

Member
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

Active member
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
 

slyz

Developer
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
PHP:
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
PHP:
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);
}
 
Top