Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Ask salt/romeo/null to match up with these responses:
- string __setting_food = "pepper";
- string __setting_character = "juliet";
- string __setting_word = "void";
- void consultbotAnswerQuestions()
- {
- buffer page_text = visit_url("clan_viplounge.php?preaction=lovetester");
- string [int][int] matches = page_text.group_string("clan_viplounge.php.preaction=testlove&testlove=([0-9]+)");
- foreach key in matches
- {
- int player_id = matches[key][1].to_int();
- if (player_id <= 0) continue;
- print("My love for you, " + player_id + ".");
- visit_url("clan_viplounge.php?q1=" + __setting_food + "&q2=" + __setting_character + "&q3=" + __setting_word + "&preaction=dotestlove&testlove=" + player_id);
- }
- }
- void consultbotReceivedMessage(string sender, string message, string channel)
- {
- if (channel == "Events" && message.contains_text("You have been invited to consult Madame Zatara about your relationship with"))
- {
- consultbotAnswerQuestions();
- return;
- }
- }
- void main(string sender, string message, string channel)
- {
- consultbotReceivedMessage(sender, message, channel);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement