string url = "clan_buytraining.php?action=buyround&pwd&members=1&size=3&whichgift=7&gift=Buy+It";
string str = visit_url(url);
void main (string sender, string message)
{
string [boolean] appoved;
approved["username", "username2", "username3"];
string check = substring(message,0,1);
string target=substring(message,1);
if (check = "!" && approved contains target)
{ visit_url("clan_buytraining.php?action=buyround&pwd&members=1&size=3&whichgift=7&gift=Buy+It");
chat_reply("! buffs found: Attempted to perchase clan buffs");
}
else
{
chat_reply("Sorry, you are not authorized to perchase clan buffs. Please report issue to clan administration. Thank you!");
}
}
void main (string sender, string message){
int [string] approved;
approved["NAME 1"] = 1;
approved["NAME 2"] = 2;
approved["NAME 3"] = 3;
string check = substring(message, 0, 1);
string target = substring(message, 1);
if (check = "!" && (approved contains target)){
print("Buffing " + sender + " with a clan buff.");
visit_url("clan_buytraining.php?action=buyround&pwd&members=1&size=3&whichgift=7&gift=Buy+It");
chat_reply("! buffs found: Attempted to perchase clan buffs");
}
else{
print("Rejected " + sender + " for he/she is not pre-approved for buffing");
chat_reply("Sorry, you are not authorized to purchase clan buffs. Please report issue to clan administration. Thank you!");
}
}