Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import <zlib.ash>
- import <getplayers.ash>
- void checking_zatara()
- {
- string page_text = visit_url("clan_viplounge.php?preaction=lovetester");
- if(contains_text(page_text, "You have active relationship consultations"))
- {
- cli_execute("call clanfortune.ash respond all");
- }
- return;
- }
- string randomdance(){
- switch (random(5)) {
- case 0:
- return "/me Does the Rhomba with ";
- case 1:
- return "/me Does the Cha-cha slide with ";
- case 2:
- return "/me does a piroette with ";
- case 3:
- return "/me auditions for Dancing with the Stars, with ";
- case 4:
- return "/me does the robot with ";
- }
- return "error";
- }
- void main( string sender , string message, string channel )
- {
- int [item] map;
- map[$item[adder]] = 0;
- if (channel=="")
- {
- channel="PM";
- //Below is how the bot responds to private messages. If you wish to add your own, simple add your own information, and remove the '//'
- print("Incoming PM from " +sender+ " saying: "+message);
- if(contains_text(to_lower_case(message), "help"))
- {
- kmail(sender,
- "**NEW** You can now ask for GYRO, or GYROCOPTER\n" +
- "I'm now fully functional with Madame Zatara. Send me a request, and I will respond with BEER, ROBIN, DOWN\n" +
- "type \"seen \(clan member\)\" into open chat, and I will let you know when I last saw someone, and what they said. This is handy for away messages\n" +
- "If you are asking me for Zatara, and I don't respond to you're 3rd response, PM me Zatara, and I will see if I might have missed one\n" +
- "K-mail me a rotten tomato, then PM me \"tomato\"\n" +
- "PM me the word 'bandit', and I will fax in a fantasy bandit, for your Rubee farming needs\n" +
- "Update: last 30 chat messages that I've seen\n" +
- "K-mail me a time's arrow, then PM me \"time\"\n" +
- // "\n" + //If you wish to add commands and want people to know about it, add them here.
- "I'm a good dancer! Try dancing with me\n" +
- "PM me \"DREAD\" for a list of ways I can help in Dreadsylvania\n" +
- "Type \"Dread\" into THUD! clan chat to see how I can help the clan only\n" +
- "", 0, map);
- return; }
- if(contains_text(to_lower_case(message), "machine"))
- {
- cli_execute("call the machine.ash");
- return;
- }
- if(contains_text(to_lower_case(message), "dread"))
- {
- kmail(sender,
- "If you give me a whitelist to your clan and access to your dungeon, I can help with dread!\n" +
- "All you have to do is make sure the area you want banished is unlocked, and I can help.\n" +
- "I will PM you when I arrive in your clan, and if an area is not unlocked, I will let you know.\n" +
- "I will automatically return to my home clan. I can only respond to one command at a time \(do not ask me to banish Ghosts AND Bugbears together\)\n" +
- "Heres a list of commands I understand to help with Dreadsylvania:\n" +
- "PM me: Wolves, Ghosts, Vampires, Skeletons, Zombies, Bugbears\n" +
- "and I will banish those creatures\n" +
- "PM me the following to have a perticular element removed.\n" +
- "villagesleazy, villagestinky, villagespooky villagecold, villagehot\n" +
- "castlesleazy, castlestinky, castlespooky, castlecold, castlehot\n" +
- "forestsleazy, foreststinky, forestspooky, forestcold, foresthot\n" +
- "Just PM me any of those words!", 0, map);
- return; }
- if(contains_text(to_lower_case(message), "gyrocopter"))
- {
- if ($item[1167].available_amount() >= 1)
- {
- visit_url("inv_use.php?pwd&which=3&whichitem=1167");
- }
- if ($item[warbear gyrocopter].available_amount() >= 1 && get_property("_warbearGyrocopterUsed") == "false")
- {
- cli_execute("throw warbear gyrocopter at" + sender);
- chat_private (sender, "Sent");
- return;
- }
- if ($item[warbear gyrocopter].available_amount() == 0 && get_property("_warbearGyrocopterUsed") == "false")
- {
- chat_private (sender, "I don't have any more Warbear Gyrocopters. If you send me one, I can throw it at someone.");
- return;
- }
- if (get_property("_warbearGyrocopterUsed") == "true")
- {
- chat_private(sender, "Sorry, I've already used a Warbear Gyrocopter today. Try again tomorrow.");
- return;
- }
- return;
- }
- int [item] spam;
- spam[$item[warbear gyro]] = 1;
- if(contains_text(to_lower_case(message), "gyro"))
- {
- if ($item[warbear gyro].available_amount() >= 1)
- {
- kmail(sender,
- "You asked for a gyro. Here you go!\n" +
- "", 0, spam);
- chat_private(sender, "Check your inventory, I think I sent one.");
- return;
- }
- else
- {
- chat_private(sender, "I'm sorry I have no gyro's left.");
- return;
- }
- return;
- }
- if(contains_text(to_lower_case(sender), my_name()))
- {
- return;
- }
- if(contains_text(to_lower_case(sender), "easyfax"))
- {
- return;
- }
- if(contains_text(to_lower_case(message), "thud"))
- {
- chat_clan("/whitelist thud");
- return;
- }
- if(contains_text(to_lower_case(message), "tomato"))
- {
- if ($item[1167].available_amount() >= 1)
- {
- visit_url("inv_use.php?pwd&which=3&whichitem=1167");
- }
- if ($item[rotten tomato].available_amount() >= 1 )
- {
- cli_execute("throw rotten tomato at " + sender );
- }
- else
- {
- chat_private (sender, "I don't have any more rotten tomatoes. If you send me one, I can throw it at you.");
- }
- return;
- }
- if(contains_text(to_lower_case(message), "throw wind-up spider"))
- {
- if ($item[1167].available_amount() >= 1)
- {
- visit_url("inv_use.php?pwd&which=3&whichitem=1167");
- }
- if ($item[wind-up spider].available_amount() >= 1 )
- {
- cli_execute(message);
- chat_private (sender, "Spider sent");
- return;
- }
- else
- {
- chat_private (sender, "I don't have any more wind-up spiders. If you send me one, I can throw it at someone.");
- return;
- }
- return;
- }
- if(contains_text(to_lower_case(message), "time"))
- {
- if ($item[1167].available_amount() >= 1)
- {
- visit_url("inv_use.php?pwd&which=3&whichitem=1167");
- return;
- }
- if ($item[time's arrow].available_amount() >= 1 )
- {
- cli_execute("throw time's arrow at " + sender );
- }
- else
- {
- chat_private (sender, "I don't have any more Time's Arrows. If you send me one, I can throw it at you.");
- }
- return;
- }
- if(contains_text(to_lower_case(message), "logoff"))
- {
- cli_execute("quit");
- return;
- }
- if(contains_text(to_lower_case(message), "zatara"))
- {
- if ($item[clan vip lounge key].available_amount() <= 0)
- {
- chat_private(sender, "Uh-oh! I seem to be missing my Clan VIP Lounge Key! Tell PazSox ASAP!");
- return;
- }
- chat_private(sender, "I'll check for you, right now. If anything is there, it will be processed");
- checking_zatara();
- return;
- }
- if(contains_text(to_lower_case(message), "moon"))
- {
- chat_private(sender, "Attempting to grab a moon-amber");
- record note
- {
- string sender;
- int date;
- }
- [int] ChatLog;
- int NE= count(ChatLog);
- ChatLog[NE].sender= sender;
- Map_to_File(ChatLog,"Chatlog.txt");
- {
- string [int] my_list;
- file_to_map( "chatlog.txt" , my_list);
- playerdata player;
- string temp = "";
- string user = "";
- foreach i,playername in my_list
- {
- player = GetPlayer( playername );
- if( player.name != "" )
- {
- if( temp != "" ) temp += ", ";
- temp += player.clanname;
- user += player.name;
- }
- }
- cli_execute("/whitelist " + temp);
- if (temp != get_clan_name())
- {print("Error!!");
- chat_private(user, "I couldn't join your clan " + temp +", perhaps I don't have a whitelist?");
- return;}
- if (temp == get_clan_name())
- {
- chat_private("pazsox", "I went to clan " + temp + " to help " + user + " with dread \(Moon Amber\).");
- chat_private(user, "I arrived to help with your instance of Dreadsylvania.");
- }
- string basement;
- basement = visit_url("clan_basement.php?fromabove=1");
- if (basement.contains_text("Your clan has a basement, but you are not allowed to enter clan dungeons, so this is as far as you're going, Gilbert."))
- {
- chat_private(user, "No access to basement, please provide access, and try again.");
- chat_private("pazsox", "I went to clan " + temp + " to help " + user + " with dread. But had no dungeon access");
- cli_execute("/whitelist thud");
- return;
- }
- // string logs = visit_url("clan_raidlogs.php");
- // if (logs.contains_text("acquired a chunk of moon-amber"))
- // {
- // buffer raidlog = visit_url("clan_raidlogs.php");
- // string pattern = "<br>(\\w+) \\(#\\d+\\) acquired a chunk of moon-amber \\(1 turn\\)<br>";
- // matcher m = create_matcher(pattern, raidlog);
- // int[string] kills;
- // if (m.find())
- // {
- // print_html(m.group(1) + " retrieved the moon-amber");
- // chat_private(sender, " " + m.group(1) + " retrieved the moon-amber already.");
- // }
- // cli_execute("/whitelist thud");
- // return;
- // }
- print("Checking the Tallest Tree");
- visit_url("clan_dreadsylvania.php?action=forceloc&loc=2");
- visit_url("choice.php?pwd&whichchoice=725&option=1"); //climb to top
- visit_url("choice.php?pwd&whichchoice=726&option=3"); //grab moon amber
- visit_url("choice.php?pwd&whichchoice=726&option=6"); //climb back down
- visit_url("choice.php?pwd&whichchoice=725&option=6"); //leave (ha ha)
- if ($item[moon-amber].available_amount() >= 1 )
- {
- chat_private(sender, "Got the moon amber, sending now");
- cli_execute("send moon-amber, to " + sender );
- cli_execute("/whitelist thud");
- }
- else
- {
- string logs = visit_url("clan_raidlogs.php");
- if (logs.contains_text("acquired a chunk of moon-amber"))
- {
- chat_private(sender, "Someone has already retrieved the moon-amber");
- }
- cli_execute("/whitelist thud");
- return;
- }
- return; }
- return; }
- if(contains_text(to_lower_case(message), "bone"))
- {
- chat_private(sender, "Attempting to make bone flour");
- if ($item[old dry bone].available_amount() < 1 )
- { chat_private(sender, "I have no old dry bone, if you send me one, I can attempt to make flour");
- return; }
- chat_private(sender , "Make bone flour. Your wish is my command.");
- record note
- {
- string sender;
- int date;
- }
- [int] ChatLog;
- int NE= count(ChatLog);
- ChatLog[NE].sender= sender;
- Map_to_File(ChatLog,"Chatlog.txt");
- {
- string [int] my_list;
- file_to_map( "chatlog.txt" , my_list);
- playerdata player;
- string temp = "";
- string user = "";
- foreach i,playername in my_list
- {
- player = GetPlayer( playername );
- if( player.name != "" )
- {
- if( temp != "" ) temp += ", ";
- temp += player.clanname;
- user += player.name;
- }
- }
- cli_execute("/whitelist " + temp);
- if (temp != get_clan_name())
- {print("Error!!");
- chat_private(user, "I couldn't join your clan " + temp +", perhaps I don't have a whitelist?");
- return;}
- if (temp == get_clan_name())
- {
- chat_private("pazsox", "I went to clan " + temp + " to help " + user + " with dread \(Bone Flour\).");
- chat_private(user, "I arrived to help with your instance of Dreadsylvania.");
- string basement;
- basement = visit_url("clan_basement.php?fromabove=1");
- if (basement.contains_text("Your clan has a basement, but you are not allowed to enter clan dungeons, so this is as far as you're going, Gilbert."))
- {
- chat_private(sender, "No access to basement, please provide access, and try again.");
- cli_execute("/whitelist thud");
- return; }
- print("Checking the Cabin");
- visit_url("clan_dreadsylvania.php?action=forceloc&loc=1");
- visit_url("choice.php?pwd&whichchoice=721&option=1"); //check out kitchen
- visit_url("choice.php?pwd&whichchoice=722&option=2"); //screw around with mill
- visit_url("choice.php?pwd&whichchoice=722&option=4"); //back out
- visit_url("choice.php?pwd&whichchoice=721&option=5"); //
- if ($item[bone flour].available_amount() >= 1 )
- { chat_private(sender, "Got the bone flour, sending now");
- cli_execute("send bone flour, to " + sender ); }
- else
- { chat_private(sender, "There was an issue making the bone flour. Perhaps i'ves already made some? I'm returning the old dry bone.");
- if ($item[old dry bone].available_amount() >= 1 )
- cli_execute("send old dry bone, to " + sender ); }
- cli_execute("/whitelist thud");
- return;
- }return;}return;}
- if(contains_text(to_lower_case(message), "wolves"))
- { chat_private(sender , "Banish Wolves. Your wish is my command.");
- record note
- {
- string sender;
- int date;
- }
- [int] ChatLog;
- int NE= count(ChatLog);
- ChatLog[NE].sender= sender;
- Map_to_File(ChatLog,"Chatlog.txt");
- {
- string [int] my_list;
- file_to_map( "chatlog.txt" , my_list);
- playerdata player;
- string temp = "";
- string user = "";
- foreach i,playername in my_list
- {
- player = GetPlayer( playername );
- if( player.name != "" )
- {
- if( temp != "" ) temp += ", ";
- temp += player.clanname;
- user += player.name;
- }
- }
- cli_execute("/whitelist " + temp);
- if (temp != get_clan_name())
- {print("Error!!");
- chat_private(user, "I couldn't join your clan " + temp +", perhaps I don't have a whitelist?");
- return;}
- if (temp == get_clan_name())
- {
- chat_private("pazsox", "I went to clan " + temp + " to help " + user + " with dread \(Wolves\).");
- chat_private(user, "I arrived to help with your instance of Dreadsylvania.");
- string basement;
- basement = visit_url("clan_basement.php?fromabove=1");
- if (basement.contains_text("Your clan has a basement, but you are not allowed to enter clan dungeons, so this is as far as you're going, Gilbert."))
- {
- chat_private(user, "No access to basement, please provide access, and try again.");
- chat_private("pazsox", "I went to clan " + temp + " to help " + user + " with dread. But had no dungeon access");
- cli_execute("/whitelist thud");
- return; }
- print("Checking out the lock on the Cabin first");
- string log = visit_url( "clan_raidlogs.php" );
- {
- if(log.contains_text( ") unlocked the attic of the cabin" ))
- { chat_private(user, "The attic of the cabin has been unlocked. Continuing wish banish"); }
- else
- { chat_private(user, "The attic of the cabin has not been unlocked yet. Unlock, and try again please.");
- cli_execute("/whitelist thud"); return; }
- print("Checking out the lock on the Master Suite next");
- if(log.contains_text( ") unlocked the master suite" ))
- { chat_private(user, "The master suite has been unlocked, initiating banish"); }
- else
- { chat_private(user, "The master suite has not been unlocked yet. Unlock, and try again please.");
- cli_execute("/whitelist thud"); return; }
- }
- { string [int] drove;
- foreach place in $strings[some werewolves out of the forest]
- {
- drove = split_string(log, place);
- if(count(drove) == 3)
- { chat_private(user, "Someone drove " + place+ " " + (count(drove) - 1) + " times. No banishing needed in this zone");
- cli_execute("/whitelist thud"); return; }
- else if(count(drove) == 2)
- { chat_private(user, "Someone drove " + place+ " " + (count(drove) - 1) + " time. Continuing with banish"); }
- else { chat_private(user, "No one drove " + place); }
- cli_execute("call unlockdread.ash wolves");
- chat_private(user, "Werewolves have been banished.");
- }}
- cli_execute("/whitelist Thud!");
- return; }}
- }
- if(contains_text(to_lower_case(message), "skeletons"))
- { chat_private(sender , "Banish Skeletons. Your wish is my command.");
- record note
- {
- string sender;
- int date;
- }
- [int] ChatLog;
- int NE= count(ChatLog);
- ChatLog[NE].sender= sender;
- Map_to_File(ChatLog,"Chatlog.txt");
- {
- string [int] my_list;
- file_to_map( "chatlog.txt" , my_list);
- playerdata player;
- string temp = "";
- string user = "";
- foreach i,playername in my_list
- {
- player = GetPlayer( playername );
- if( player.name != "" )
- {
- if( temp != "" ) temp += ", ";
- temp += player.clanname;
- user += player.name;
- }
- }
- cli_execute("/whitelist " + temp);
- if (temp != get_clan_name())
- {print("Error!!");
- chat_private(user, "I couldn't join your clan " + temp +", perhaps I don't have a whitelist?");
- return;}
- if (temp == get_clan_name())
- {
- chat_private("pazsox", "I went to clan " + temp + " to help " + user + " with dread. \(Skeletons\)");
- chat_private(user, "I arrived to help with your instance of Dreadsylvania.");
- string basement;
- basement = visit_url("clan_basement.php?fromabove=1");
- if (basement.contains_text("Your clan has a basement, but you are not allowed to enter clan dungeons, so this is as far as you're going, Gilbert."))
- {
- chat_private(user, "No access to basement, please provide access, and try again.");
- chat_private("pazsox", "I went to clan " + temp + " to help " + user + " with dread. But had no dungeon access");
- cli_execute("/whitelist thud");
- return; }
- chat_private(user, "I am a Turtle Tamer, I will only banish skeletons from Skid Row");
- string log = visit_url( "clan_raidlogs.php" );
- { string [int] drove;
- foreach place in $strings[some skeletons out of the castle]
- {
- drove = split_string(log, place);
- if(count(drove) == 3)
- { chat_private(user, "Someone drove " + place+ " " + (count(drove) - 1) + " times. No banishing needed in this zone");
- cli_execute("/whitelist thud"); return; }
- else if(count(drove) == 2)
- { chat_private(user, "Some one drove " + place+ " " + (count(drove) - 1) + " time. Continuing with banish"); }
- else { chat_private(user, "No one banished " + place); }
- cli_execute("call unlockdread.ash skeletons");
- }}
- cli_execute("/whitelist Thud!");
- return; }}
- }
- if(contains_text(to_lower_case(message), "zombies"))
- { chat_private(sender , "Banish Zombies. Your wish is my command.");
- record note
- {
- string sender;
- int date;
- }
- [int] ChatLog;
- int NE= count(ChatLog);
- ChatLog[NE].sender= sender;
- Map_to_File(ChatLog,"Chatlog.txt");
- {
- string [int] my_list;
- file_to_map( "chatlog.txt" , my_list);
- playerdata player;
- string temp = "";
- string user = "";
- foreach i,playername in my_list
- {
- player = GetPlayer( playername );
- if( player.name != "" )
- {
- if( temp != "" ) temp += ", ";
- temp += player.clanname;
- user += player.name;
- }
- }
- cli_execute("/whitelist " + temp);
- if (temp != get_clan_name())
- {print("Error!!");
- chat_private(user, "I couldn't join your clan " + temp +", perhaps I don't have a whitelist?");
- return;}
- if (temp == get_clan_name())
- {
- chat_private("pazsox", "I went to clan " + temp + " to help " + user + " with dread. \(Zombies\)");
- chat_private(user, "I arrived to help with your instance of Dreadsylvania.");
- string basement;
- basement = visit_url("clan_basement.php?fromabove=1");
- if (basement.contains_text("Your clan has a basement, but you are not allowed to enter clan dungeons, so this is as far as you're going, Gilbert."))
- {
- chat_private(user, "No access to basement, please provide access, and try again.");
- chat_private("pazsox", "I went to clan " + temp + " to help " + user + " with dread. But had no dungeon access");
- cli_execute("/whitelist thud");
- return; }
- print("Checking out the lock on the Tower first");
- string log = visit_url( "clan_raidlogs.php" );
- {
- if(log.contains_text( ") unlocked the lab" ))
- { chat_private(user, "The tower has been unlocked, initiating banish"); }
- else
- { chat_private(user, "The tower has not been unlocked yet. Unlock, and try again please");
- cli_execute("/whitelist thud"); return;}
- }
- //duke's estate
- { string [int] drove;
- foreach place in $strings[some zombies out of the village]
- { if(count(drove) == 3)
- { chat_private(user, "Someone already drove " + place+ " " + (count(drove) - 1) + " times. No banishing needed in this zone");
- cli_execute("/whitelist thud"); return; }
- else if(count(drove) == 2)
- { chat_private(user, "Someone already drove " + place+ " " + (count(drove) - 1) + " time. Continuing with banish"); }
- else { chat_private(user, "No one drove " + place + " continuing with banish"); }
- cli_execute("call unlockdread.ash zombies");
- chat_private(user, "Zombies have been banished.");
- }}
- cli_execute("/whitelist Thud!");
- return; }}
- }
- if(contains_text(to_lower_case(message), "bugbears"))
- { chat_private(sender , "Banish Bugbears. Your wish is my command.");
- record note
- {
- string sender;
- int date;
- }
- [int] ChatLog;
- int NE= count(ChatLog);
- ChatLog[NE].sender= sender;
- Map_to_File(ChatLog,"Chatlog.txt");
- {
- string [int] my_list;
- file_to_map( "chatlog.txt" , my_list);
- playerdata player;
- string temp = "";
- string user = "";
- foreach i,playername in my_list
- {
- player = GetPlayer( playername );
- if( player.name != "" )
- {
- if( temp != "" ) temp += ", ";
- temp += player.clanname;
- user += player.name;
- }
- }
- cli_execute("/whitelist " + temp);
- if (temp != get_clan_name())
- {print("Error!!");
- chat_private(user, "I couldn't join your clan " + temp +", perhaps I don't have a whitelist?");
- return;}
- if (temp == get_clan_name())
- {
- chat_private("pazsox", "I went to clan " + temp + " to help " + user + " with dread. \(BugBears\)");
- chat_private(user, "I arrived to help with your instance of Dreadsylvania.");
- string basement;
- basement = visit_url("clan_basement.php?fromabove=1");
- if (basement.contains_text("Your clan has a basement, but you are not allowed to enter clan dungeons, so this is as far as you're going, Gilbert."))
- {
- chat_private(user, "No access to basement, please provide access, and try again.");
- chat_private("pazsox", "I went to clan " + temp + " to help " + user + " with dread. But had no dungeon access");
- cli_execute("/whitelist thud");
- return; }
- print("Checking out the lock on the Fire Tower first");
- string log = visit_url( "clan_raidlogs.php" );
- {
- if(log.contains_text( ") unlocked the fire watchtower" ))
- { chat_private(user, "The fire watchtower has been unlocked, continuing"); }
- else
- { chat_private(user, "The fire watchtower has not been unlocked yet. Unlock, and try again please");
- cli_execute("/whitelist thud"); return; }
- }
- print("Checking out the lock on the labratory next");
- {
- if(log.contains_text( ") unlocked the lab" ))
- { chat_private(user, "The labratory has also been unlocked, initiating banish"); }
- else
- { chat_private(user, "The labratory has not been unlocked yet. Unlock, and try again please");
- cli_execute("/whitelist thud"); return; }
- }
- { string [int] drove;
- foreach place in $strings[bugbears out of the forest]
- {
- drove = split_string(log, place);
- if(count(drove) == 3)
- { chat_private(user, "Someone drove " + place+ " " + (count(drove) - 1) + " times already. No banishing needed in this zone");
- cli_execute("whitelist thud");
- return;}
- else if(count(drove) == 2)
- { chat_private(user, "Someone drove " + place+ " " + (count(drove) - 1) + " time. Continuing with banish"); }
- else { chat_private(user, "No one banished " + place + " continuing with banish"); }
- cli_execute("call unlockdread.ash bugbears");
- chat_private(user, "Bugbears have been banished.");
- }}
- cli_execute("/whitelist Thud!");
- return; }}
- }
- if(contains_text(to_lower_case(message), "vampires"))
- {
- chat_private(sender , "Banish Vampires. Your wish is my command.");
- record note
- {
- string sender;
- int date;
- }
- [int] ChatLog;
- int NE= count(ChatLog);
- ChatLog[NE].sender= sender;
- Map_to_File(ChatLog,"Chatlog.txt");
- {
- string [int] my_list;
- file_to_map( "chatlog.txt" , my_list);
- playerdata player;
- string temp = "";
- string user = "";
- foreach i,playername in my_list
- {
- player = GetPlayer( playername );
- if( player.name != "" )
- {
- if( temp != "" ) temp += ", ";
- temp += player.clanname;
- user += player.name;
- }
- }
- cli_execute("/whitelist " + temp);
- if (temp != get_clan_name())
- {print("Error!!");
- chat_private(user, "I couldn't join your clan " + temp +", perhaps I don't have a whitelist?");
- return;}
- if (temp == get_clan_name())
- {
- chat_private("pazsox", "I went to clan " + temp + " to help " + user + " with dread. \(Vampires\)");
- chat_private(user, "I arrived to help with your instance of Dreadsylvania.");
- string basement;
- basement = visit_url("clan_basement.php?fromabove=1");
- if (basement.contains_text("Your clan has a basement, but you are not allowed to enter clan dungeons, so this is as far as you're going, Gilbert."))
- {
- chat_private(user, "No access to basement, please provide access, and try again.");
- chat_private("pazsox", "I went to clan " + temp + " to help " + user + " with dread. But had no dungeon access");
- cli_execute("/whitelist thud");
- return; }
- print("Checking out the lock on the Cabin first");
- string log = visit_url( "clan_raidlogs.php" );
- {
- if(log.contains_text( ") unlocked the attic of the cabin" ))
- { chat_private(user, "The attic of the cabin has been unlocked. Continuing with banish."); }
- else
- { chat_private(user, "The attic of the cabin has not been unlocked yet. Unlock, and try again please");
- cli_execute("/whitelist thud"); return; }
- }
- print("Checking out the lock on the ballroom next");
- {
- if(log.contains_text( ") unlocked the ballroom" ))
- { chat_private(user, "The ballroom has been unlocked, initiating banish"); }
- else
- { chat_private(user, "The ballroom has not been unlocked yet. Unlock, and try again please");
- cli_execute("/whitelist thud"); return; }
- }
- { string [int] drove;
- foreach place in $strings[some vampires out of the castle]
- {
- drove = split_string(log, place);
- if(count(drove) == 3)
- { chat_private(user, "Someone drove " + place+ " " + (count(drove) - 1) + " times. No banishing needed in this zone");
- cli_execute("/whitelist thud"); return; }
- else if(count(drove) == 2)
- { chat_private(user, "Someone drove " + place+ " " + (count(drove) - 1) + " time. Continuing with banish"); }
- else { chat_private(user, "No one drove " + place); }
- cli_execute("call unlockdread.ash vampires");
- chat_private(user, "Vampires have been banished.");
- }}
- cli_execute("/whitelist Thud!");
- return; }}
- }
- if(contains_text(to_lower_case(message), "ghosts"))
- { chat_private(sender , "Banish Ghosts. Your wish is my command.");
- record note
- {
- string sender;
- int date;
- }
- [int] ChatLog;
- int NE= count(ChatLog);
- ChatLog[NE].sender= sender;
- Map_to_File(ChatLog,"Chatlog.txt");
- {
- string [int] my_list;
- file_to_map( "chatlog.txt" , my_list);
- playerdata player;
- string temp = "";
- string user = "";
- foreach i,playername in my_list
- {
- player = GetPlayer( playername );
- if( player.name != "" )
- {
- if( temp != "" ) temp += ", ";
- temp += player.clanname;
- user += player.name;
- }
- }
- cli_execute("/whitelist " + temp);
- if (temp != get_clan_name())
- {print("Error!!");
- chat_private(user, "I couldn't join your clan " + temp +", perhaps I don't have a whitelist?");
- return;}
- if (temp == get_clan_name())
- {
- chat_private("pazsox", "I went to clan " + temp + " to help " + user + " with dread.\(Ghosts\)");
- chat_private(user, "I arrived to help with your instance of Dreadsylvania.");
- string basement;
- basement = visit_url("clan_basement.php?fromabove=1");
- if (basement.contains_text("Your clan has a basement, but you are not allowed to enter clan dungeons, so this is as far as you're going, Gilbert."))
- {
- chat_private(user, "No access to basement, please provide access, and try again.");
- chat_private("pazsox", "I went to clan " + temp + " to help " + user + " with dread. But had no dungeon access");
- cli_execute("/whitelist thud");
- return; }
- print("Checking out the lock on the Fire Tree first");
- string log = visit_url( "clan_raidlogs.php" );
- {
- if(log.contains_text( ") unlocked the fire watchtower" ))
- { chat_private(user, "The fire watchtower has been unlocked, continuing. "); }
- else
- { chat_private(user, "The fire watchtower has not been unlocked yet. Unlock, and try again please.");
- cli_execute("/whitelist thud"); return; }
- }
- print("Checking out the lock on the Schoolhouse next");
- {
- if(log.contains_text( ") unlocked the schoolhouse" ))
- { chat_private(user, "The schoolhouse has also been unlocked, initiating banish"); }
- else
- { chat_private(user, "The schoolhouse has not been unlocked yet. Unlock, and try again please.");
- cli_execute("/whitelist thud"); return; }
- }
- { string [int] drove;
- foreach place in $strings[some ghosts out of the village]
- {
- drove = split_string(log, place);
- if(count(drove) == 3)
- { chat_private(user, "Someone already drove " + place+ " " + (count(drove) - 1) + " times. No banishing needed in this zone");
- cli_execute("/whitelist thud");
- return; }
- else if(count(drove) == 2)
- { chat_private(user, "Someone drove " + place+ " " + (count(drove) - 1) + " times. Continuing with banish"); }
- else { chat_private(user, "No one drove " + place); }
- cli_execute("call unlockdread.ash ghosts");
- chat_private(user, "Ghosts have been banished.");
- }}
- cli_execute("/whitelist Thud!");
- return; }}
- }
- if(contains_text(to_lower_case(message), "villagesleazy"))
- { chat_private(sender , "Make Village less Sleazy. Your wish is my command.");
- record note
- {
- string sender;
- int date;
- }
- [int] ChatLog;
- int NE= count(ChatLog);
- ChatLog[NE].sender= sender;
- Map_to_File(ChatLog,"Chatlog.txt");
- {
- string [int] my_list;
- file_to_map( "chatlog.txt" , my_list);
- playerdata player;
- string temp = "";
- string user = "";
- foreach i,playername in my_list
- {
- player = GetPlayer( playername );
- if( player.name != "" )
- {
- if( temp != "" ) temp += ", ";
- temp += player.clanname;
- user += player.name;
- }
- }
- cli_execute("/whitelist " + temp);
- if (temp != get_clan_name())
- {print("Error!!");
- chat_private(user, "I couldn't join your clan " + temp +", perhaps I don't have a whitelist?");
- return;}
- if (temp == get_clan_name())
- {
- chat_private("pazsox", "I went to clan " + temp + " to help " + user + " with dread. \(Village Sleazy\)");
- chat_private(user, "I arrived to help with your instance of Dreadsylvania.");
- string basement;
- basement = visit_url("clan_basement.php?fromabove=1");
- if (basement.contains_text("Your clan has a basement, but you are not allowed to enter clan dungeons, so this is as far as you're going, Gilbert."))
- {
- chat_private(user, "No access to basement, please provide access, and try again.");
- chat_private("pazsox", "I went to clan " + temp + " to help " + user + " with dread. But had no dungeon access");
- cli_execute("/whitelist thud");
- return; }
- string log = visit_url( "clan_raidlogs.php" );
- if(log.contains_text( " made the village less sleazy" ))
- { chat_private(user, "The Village has been made less Sleazy already.");
- cli_execute("/whitelist Thud!");
- return; }
- cli_execute("call unlockdread.ash villagesleazy");
- chat_private(user , "I made it less Sleazy in the Village.");
- cli_execute("/whitelist Thud!");
- return; }}
- }
- if(contains_text(to_lower_case(message), "villagestinky"))
- { chat_private(sender , "Make Village less Stinky. Your wish is my command.");
- record note
- {
- string sender;
- int date;
- }
- [int] ChatLog;
- int NE= count(ChatLog);
- ChatLog[NE].sender= sender;
- Map_to_File(ChatLog,"Chatlog.txt");
- {
- string [int] my_list;
- file_to_map( "chatlog.txt" , my_list);
- playerdata player;
- string temp = "";
- string user = "";
- foreach i,playername in my_list
- {
- player = GetPlayer( playername );
- if( player.name != "" )
- {
- if( temp != "" ) temp += ", ";
- temp += player.clanname;
- user += player.name;
- }
- }
- cli_execute("/whitelist " + temp);
- if (temp != get_clan_name())
- {print("Error!!");
- chat_private(user, "I couldn't join your clan " + temp +", perhaps I don't have a whitelist?");
- return;}
- if (temp == get_clan_name())
- {
- chat_private("pazsox", "I went to clan " + temp + " to help " + user + " with dread. \(Village Stinky\)");
- chat_private(user, "I arrived to help with your instance of Dreadsylvania.");
- string basement;
- basement = visit_url("clan_basement.php?fromabove=1");
- if (basement.contains_text("Your clan has a basement, but you are not allowed to enter clan dungeons, so this is as far as you're going, Gilbert."))
- {
- chat_private(user, "No access to basement, please provide access, and try again.");
- chat_private("pazsox", "I went to clan " + temp + " to help " + user + " with dread. But had no dungeon access");
- cli_execute("/whitelist thud");
- return; }
- string log = visit_url( "clan_raidlogs.php" );
- if(log.contains_text( " made the village less stinky "))
- { chat_private(user, "The Village has been made less Stinky already.");
- cli_execute("/whitelist Thud!");
- return; }
- cli_execute("call unlockdread.ash villagestinky");
- chat_private(user , "I made it less Stinky in the Village.");
- cli_execute("/whitelist Thud!");
- return; }}
- }
- if(contains_text(to_lower_case(message), "villagespooky"))
- { chat_private(sender , "Make Village less Spooky. Your wish is my command.");
- record note
- {
- string sender;
- int date;
- }
- [int] ChatLog;
- int NE= count(ChatLog);
- ChatLog[NE].sender= sender;
- Map_to_File(ChatLog,"Chatlog.txt");
- {
- string [int] my_list;
- file_to_map( "chatlog.txt" , my_list);
- playerdata player;
- string temp = "";
- string user = "";
- foreach i,playername in my_list
- {
- player = GetPlayer( playername );
- if( player.name != "" )
- {
- if( temp != "" ) temp += ", ";
- temp += player.clanname;
- user += player.name;
- }
- }
- cli_execute("/whitelist " + temp);
- if (temp != get_clan_name())
- {print("Error!!");
- chat_private(user, "I couldn't join your clan " + temp +", perhaps I don't have a whitelist?");
- return;}
- if (temp == get_clan_name())
- {
- chat_private("pazsox", "I went to clan " + temp + " to help " + user + " with dread. \(Village Spooky\)");
- chat_private(user, "I arrived to help with your instance of Dreadsylvania.");
- string basement;
- basement = visit_url("clan_basement.php?fromabove=1");
- if (basement.contains_text("Your clan has a basement, but you are not allowed to enter clan dungeons, so this is as far as you're going, Gilbert."))
- {
- chat_private(user, "No access to basement, please provide access, and try again.");
- chat_private("pazsox", "I went to clan " + temp + " to help " + user + " with dread. But had no dungeon access");
- cli_execute("/whitelist thud");
- return; }
- string log = visit_url( "clan_raidlogs.php" );
- if(log.contains_text( " made the village less spooky "))
- { chat_private(user, "The Village has been made less Spooky already.");
- cli_execute("/whitelist Thud!");
- return; }
- cli_execute("call unlockdread.ash villagespooky");
- chat_private(user , "I made it less Spooky in the Village.");
- cli_execute("/whitelist Thud!");
- return; }}
- }
- if(contains_text(to_lower_case(message), "villagecold"))
- { chat_private(sender , "Make Village less Cold. Your wish is my command.");
- record note
- {
- string sender;
- int date;
- }
- [int] ChatLog;
- int NE= count(ChatLog);
- ChatLog[NE].sender= sender;
- Map_to_File(ChatLog,"Chatlog.txt");
- {
- string [int] my_list;
- file_to_map( "chatlog.txt" , my_list);
- playerdata player;
- string temp = "";
- string user = "";
- foreach i,playername in my_list
- {
- player = GetPlayer( playername );
- if( player.name != "" )
- {
- if( temp != "" ) temp += ", ";
- temp += player.clanname;
- user += player.name;
- }
- }
- cli_execute("/whitelist " + temp);
- if (temp != get_clan_name())
- {print("Error!!");
- chat_private(user, "I couldn't join your clan " + temp +", perhaps I don't have a whitelist?");
- return;}
- if (temp == get_clan_name())
- {
- chat_private("pazsox", "I went to clan " + temp + " to help " + user + " with dread. \(Village Cold\)");
- chat_private(user, "I arrived to help with your instance of Dreadsylvania.");
- string basement;
- basement = visit_url("clan_basement.php?fromabove=1");
- if (basement.contains_text("Your clan has a basement, but you are not allowed to enter clan dungeons, so this is as far as you're going, Gilbert."))
- {
- chat_private(user, "No access to basement, please provide access, and try again.");
- chat_private("pazsox", "I went to clan " + temp + " to help " + user + " with dread. But had no dungeon access");
- cli_execute("/whitelist thud");
- return; }
- string log = visit_url( "clan_raidlogs.php" );
- if(log.contains_text( " made the village less Cold "))
- { chat_private(user, "The Village has been made less Cold already.");
- cli_execute("/whitelist Thud!");
- return; }
- cli_execute("call unlockdread.ash villagecold");
- chat_private(user , "I made it less Cold in the Village.");
- cli_execute("/whitelist Thud!");
- return; }}
- }
- if(contains_text(to_lower_case(message), "villagehot"))
- { chat_private(sender , "Make Village less Hot. Your wish is my command.");
- record note
- {
- string sender;
- int date;
- }
- [int] ChatLog;
- int NE= count(ChatLog);
- ChatLog[NE].sender= sender;
- Map_to_File(ChatLog,"Chatlog.txt");
- {
- string [int] my_list;
- file_to_map( "chatlog.txt" , my_list);
- playerdata player;
- string temp = "";
- string user = "";
- foreach i,playername in my_list
- {
- player = GetPlayer( playername );
- if( player.name != "" )
- {
- if( temp != "" ) temp += ", ";
- temp += player.clanname;
- user += player.name;
- }
- }
- cli_execute("/whitelist " + temp);
- if (temp != get_clan_name())
- {print("Error!!");
- chat_private(user, "I couldn't join your clan " + temp +", perhaps I don't have a whitelist?");
- return;}
- if (temp == get_clan_name())
- {
- chat_private("pazsox", "I went to clan " + temp + " to help " + user + " with dread. \(Village Hot\)");
- chat_private(user, "I arrived to help with your instance of Dreadsylvania.");
- string basement;
- basement = visit_url("clan_basement.php?fromabove=1");
- if (basement.contains_text("Your clan has a basement, but you are not allowed to enter clan dungeons, so this is as far as you're going, Gilbert."))
- {
- chat_private(user, "No access to basement, please provide access, and try again.");
- chat_private("pazsox", "I went to clan " + temp + " to help " + user + " with dread. But had no dungeon access");
- cli_execute("/whitelist thud");
- return; }
- string log = visit_url( "clan_raidlogs.php" );
- if(log.contains_text( " made the village less hot" ))
- { chat_private(user, "The Village has been made less Hot already.");
- cli_execute("/whitelist Thud!");
- return; }
- cli_execute("call unlockdread.ash villagehot");
- chat_private(user , "I made it less Hot in the Village.");
- cli_execute("/whitelist Thud!");
- return; }}
- }
- if(contains_text(to_lower_case(message), "castlesleazy"))
- { chat_private(sender , "Make Castle less Sleazy. Your wish is my command.");
- record note
- {
- string sender;
- int date;
- }
- [int] ChatLog;
- int NE= count(ChatLog);
- ChatLog[NE].sender= sender;
- Map_to_File(ChatLog,"Chatlog.txt");
- {
- string [int] my_list;
- file_to_map( "chatlog.txt" , my_list);
- playerdata player;
- string temp = "";
- string user = "";
- foreach i,playername in my_list
- {
- player = GetPlayer( playername );
- if( player.name != "" )
- {
- if( temp != "" ) temp += ", ";
- temp += player.clanname;
- user += player.name;
- }
- }
- cli_execute("/whitelist " + temp);
- if (temp != get_clan_name())
- {print("Error!!");
- chat_private(user, "I couldn't join your clan " + temp +", perhaps I don't have a whitelist?");
- return;}
- if (temp == get_clan_name())
- {
- chat_private("pazsox", "I went to clan " + temp + " to help " + user + " with dread. \(Castle Sleaze\)");
- chat_private(user, "I arrived to help with your instance of Dreadsylvania.");
- string basement;
- basement = visit_url("clan_basement.php?fromabove=1");
- if (basement.contains_text("Your clan has a basement, but you are not allowed to enter clan dungeons, so this is as far as you're going, Gilbert."))
- {
- chat_private(user, "No access to basement, please provide access, and try again.");
- chat_private("pazsox", "I went to clan " + temp + " to help " + user + " with dread. But had no dungeon access");
- cli_execute("/whitelist thud");
- return; }
- string log = visit_url( "clan_raidlogs.php" );
- if(log.contains_text( " made the castle less sleazy" ))
- { chat_private(user, "The Castle has been made less Sleazy already.");
- cli_execute("/whitelist Thud!");
- return; }
- cli_execute("call unlockdread.ash castlesleazy");
- chat_private(user , "I made it less Sleazy in the Castle.");
- cli_execute("/whitelist Thud!");
- return; }}
- }
- if(contains_text(to_lower_case(message), "castlestinky"))
- { chat_private(sender , "Make Castle less Stinky. Your wish is my command.");
- record note
- {
- string sender;
- int date;
- }
- [int] ChatLog;
- int NE= count(ChatLog);
- ChatLog[NE].sender= sender;
- Map_to_File(ChatLog,"Chatlog.txt");
- {
- string [int] my_list;
- file_to_map( "chatlog.txt" , my_list);
- playerdata player;
- string temp = "";
- string user = "";
- foreach i,playername in my_list
- {
- player = GetPlayer( playername );
- if( player.name != "" )
- {
- if( temp != "" ) temp += ", ";
- temp += player.clanname;
- user += player.name;
- }
- }
- cli_execute("/whitelist " + temp);
- if (temp != get_clan_name())
- {print("Error!!");
- chat_private(user, "I couldn't join your clan " + temp +", perhaps I don't have a whitelist?");
- return;}
- if (temp == get_clan_name())
- {
- chat_private("pazsox", "I went to clan " + temp + " to help " + user + " with dread. \(Castle Stinky\)");
- chat_private(user, "I arrived to help with your instance of Dreadsylvania.");
- string basement;
- basement = visit_url("clan_basement.php?fromabove=1");
- if (basement.contains_text("Your clan has a basement, but you are not allowed to enter clan dungeons, so this is as far as you're going, Gilbert."))
- {
- chat_private(user, "No access to basement, please provide access, and try again.");
- chat_private("pazsox", "I went to clan " + temp + " to help " + user + " with dread. But had no dungeon access");
- cli_execute("/whitelist thud");
- return; }
- string log = visit_url( "clan_raidlogs.php" );
- if(log.contains_text( " made the castle less stinky" ))
- { chat_private(user, "The Castle has been made less Stinky already.");
- cli_execute("/whitelist Thud!");
- return; }
- cli_execute("call unlockdread.ash castlestinky");
- chat_private(user , "I made it less Stinky in the Castle.");
- cli_execute("/whitelist Thud!");
- return; }}
- }
- if(contains_text(to_lower_case(message), "castlespooky"))
- { chat_private(sender , "Make Castle less Spooky. Your wish is my command.");
- record note
- {
- string sender;
- int date;
- }
- [int] ChatLog;
- int NE= count(ChatLog);
- ChatLog[NE].sender= sender;
- Map_to_File(ChatLog,"Chatlog.txt");
- {
- string [int] my_list;
- file_to_map( "chatlog.txt" , my_list);
- playerdata player;
- string temp = "";
- string user = "";
- foreach i,playername in my_list
- {
- player = GetPlayer( playername );
- if( player.name != "" )
- {
- if( temp != "" ) temp += ", ";
- temp += player.clanname;
- user += player.name;
- }
- }
- cli_execute("/whitelist " + temp);
- if (temp != get_clan_name())
- {print("Error!!");
- chat_private(user, "I couldn't join your clan " + temp +", perhaps I don't have a whitelist?");
- return;}
- if (temp == get_clan_name())
- {
- chat_private("pazsox", "I went to clan " + temp + " to help " + user + " with dread. \(Castle Spooky\)");
- chat_private(user, "I arrived to help with your instance of Dreadsylvania.");
- string basement;
- basement = visit_url("clan_basement.php?fromabove=1");
- if (basement.contains_text("Your clan has a basement, but you are not allowed to enter clan dungeons, so this is as far as you're going, Gilbert."))
- {
- chat_private(user, "No access to basement, please provide access, and try again.");
- chat_private("pazsox", "I went to clan " + temp + " to help " + user + " with dread. But had no dungeon access");
- cli_execute("/whitelist thud");
- return; }
- string log = visit_url( "clan_raidlogs.php" );
- if(log.contains_text( " made the castle less spooky" ))
- { chat_private(user, "The Castle has been made less Spooky already.");
- cli_execute("/whitelist Thud!");
- return; }
- cli_execute("call unlockdread.ash castlespooky");
- chat_private(user , "I made it less Spooky in the Castle.");
- cli_execute("/whitelist Thud!");
- return; }}
- }
- if(contains_text(to_lower_case(message), "castlecold"))
- { chat_private(sender , "Make Castle less Cold. Your wish is my command.");
- record note
- {
- string sender;
- int date;
- }
- [int] ChatLog;
- int NE= count(ChatLog);
- ChatLog[NE].sender= sender;
- Map_to_File(ChatLog,"Chatlog.txt");
- {
- string [int] my_list;
- file_to_map( "chatlog.txt" , my_list);
- playerdata player;
- string temp = "";
- string user = "";
- foreach i,playername in my_list
- {
- player = GetPlayer( playername );
- if( player.name != "" )
- {
- if( temp != "" ) temp += ", ";
- temp += player.clanname;
- user += player.name;
- }
- }
- cli_execute("/whitelist " + temp);
- if (temp != get_clan_name())
- {print("Error!!");
- chat_private(user, "I couldn't join your clan " + temp +", perhaps I don't have a whitelist?");
- return;}
- if (temp == get_clan_name())
- {
- chat_private("pazsox", "I went to clan " + temp + " to help " + user + " with dread. \(Castle Cold\)");
- chat_private(user, "I arrived to help with your instance of Dreadsylvania.");
- string basement;
- basement = visit_url("clan_basement.php?fromabove=1");
- if (basement.contains_text("Your clan has a basement, but you are not allowed to enter clan dungeons, so this is as far as you're going, Gilbert."))
- {
- chat_private(user, "No access to basement, please provide access, and try again.");
- chat_private("pazsox", "I went to clan " + temp + " to help " + user + " with dread. But had no dungeon access");
- cli_execute("/whitelist thud");
- return; }
- string log = visit_url( "clan_raidlogs.php" );
- if(log.contains_text( " made the castle less cold" ))
- { chat_private(user, "The Castle has been made less Cold already.");
- cli_execute("/whitelist Thud!");
- return; }
- cli_execute("call unlockdread.ash castlecold");
- chat_private(user , "I made it less Cold in the Castle.");
- cli_execute("/whitelist Thud!");
- return; }}
- }
- if(contains_text(to_lower_case(message), "castlehot"))
- { chat_private(sender , "Make Castle less Hot. Your wish is my command.");
- record note
- {
- string sender;
- int date;
- }
- [int] ChatLog;
- int NE= count(ChatLog);
- ChatLog[NE].sender= sender;
- Map_to_File(ChatLog,"Chatlog.txt");
- {
- string [int] my_list;
- file_to_map( "chatlog.txt" , my_list);
- playerdata player;
- string temp = "";
- string user = "";
- foreach i,playername in my_list
- {
- player = GetPlayer( playername );
- if( player.name != "" )
- {
- if( temp != "" ) temp += ", ";
- temp += player.clanname;
- user += player.name;
- }
- }
- cli_execute("/whitelist " + temp);
- if (temp != get_clan_name())
- {print("Error!!");
- chat_private(user, "I couldn't join your clan " + temp +", perhaps I don't have a whitelist?");
- return;}
- if (temp == get_clan_name())
- {
- chat_private("pazsox", "I went to clan " + temp + " to help " + user + " with dread. \(Castle Hot\)");
- chat_private(user, "I arrived to help with your instance of Dreadsylvania.");
- string basement;
- basement = visit_url("clan_basement.php?fromabove=1");
- if (basement.contains_text("Your clan has a basement, but you are not allowed to enter clan dungeons, so this is as far as you're going, Gilbert."))
- {
- chat_private(user, "No access to basement, please provide access, and try again.");
- chat_private("pazsox", "I went to clan " + temp + " to help " + user + " with dread. But had no dungeon access");
- cli_execute("/whitelist thud");
- return; }
- string log = visit_url( "clan_raidlogs.php" );
- if(log.contains_text( " made the castle less hot" ))
- { chat_private(user, "The Castle has been made less Hot already.");
- cli_execute("/whitelist Thud!");
- return; }
- cli_execute("call unlockdread.ash castlehot");
- chat_private(user , "I made it less Hot in the Castle.");
- cli_execute("/whitelist Thud!");
- return; }}
- }
- if(contains_text(to_lower_case(message), "forestsleazy"))
- { chat_private(sender , "Make Forest less Sleazy. Your wish is my command.");
- record note
- {
- string sender;
- int date;
- }
- [int] ChatLog;
- int NE= count(ChatLog);
- ChatLog[NE].sender= sender;
- Map_to_File(ChatLog,"Chatlog.txt");
- {
- string [int] my_list;
- file_to_map( "chatlog.txt" , my_list);
- playerdata player;
- string temp = "";
- string user = "";
- foreach i,playername in my_list
- {
- player = GetPlayer( playername );
- if( player.name != "" )
- {
- if( temp != "" ) temp += ", ";
- temp += player.clanname;
- user += player.name;
- }
- }
- cli_execute("/whitelist " + temp);
- if (temp != get_clan_name())
- {print("Error!!");
- chat_private(user, "I couldn't join your clan " + temp +", perhaps I don't have a whitelist?");
- return;}
- if (temp == get_clan_name())
- {
- chat_private("pazsox", "I went to clan " + temp + " to help " + user + " with dread. \(Forest Sleazy\)");
- chat_private(user, "I arrived to help with your instance of Dreadsylvania.");
- string basement;
- basement = visit_url("clan_basement.php?fromabove=1");
- if (basement.contains_text("Your clan has a basement, but you are not allowed to enter clan dungeons, so this is as far as you're going, Gilbert."))
- {
- chat_private(user, "No access to basement, please provide access, and try again.");
- chat_private("pazsox", "I went to clan " + temp + " to help " + user + " with dread. But had no dungeon access");
- cli_execute("/whitelist thud");
- return; }
- string log = visit_url( "clan_raidlogs.php" );
- if(log.contains_text( " made the forest less sleazy" ))
- { chat_private(user, "The Forest has been made less Sleazy already.");
- cli_execute("/whitelist Thud!");
- return; }
- cli_execute("call unlockdread.ash forestsleazy");
- chat_private(user , "I made it less Sleazy in the Forest.");
- cli_execute("/whitelist Thud!");
- return; }}
- }
- if(contains_text(to_lower_case(message), "foreststinky"))
- { chat_private(sender , "Make Forest less Stinky. Your wish is my command.");
- record note
- {
- string sender;
- int date;
- }
- [int] ChatLog;
- int NE= count(ChatLog);
- ChatLog[NE].sender= sender;
- Map_to_File(ChatLog,"Chatlog.txt");
- {
- string [int] my_list;
- file_to_map( "chatlog.txt" , my_list);
- playerdata player;
- string temp = "";
- string user = "";
- foreach i,playername in my_list
- {
- player = GetPlayer( playername );
- if( player.name != "" )
- {
- if( temp != "" ) temp += ", ";
- temp += player.clanname;
- user += player.name;
- }
- }
- cli_execute("/whitelist " + temp);
- if (temp != get_clan_name())
- {print("Error!!");
- chat_private(user, "I couldn't join your clan " + temp +", perhaps I don't have a whitelist?");
- return;}
- if (temp == get_clan_name())
- {
- chat_private("pazsox", "I went to clan " + temp + " to help " + user + " with dread. \(Forest Stinky\)");
- chat_private(user, "I arrived to help with your instance of Dreadsylvania.");
- string basement;
- basement = visit_url("clan_basement.php?fromabove=1");
- if (basement.contains_text("Your clan has a basement, but you are not allowed to enter clan dungeons, so this is as far as you're going, Gilbert."))
- {
- chat_private(user, "No access to basement, please provide access, and try again.");
- chat_private("pazsox", "I went to clan " + temp + " to help " + user + " with dread. But had no dungeon access");
- cli_execute("/whitelist thud");
- return; }
- string log = visit_url( "clan_raidlogs.php" );
- if(log.contains_text( " made the forest less stinky" ))
- { chat_private(user, "The Forest has been made less Stinky already.");
- cli_execute("/whitelist Thud!");
- return; }
- cli_execute("call unlockdread.ash foreststinky");
- chat_private(user , "I made it less Stinky in the Forest.");
- cli_execute("/whitelist Thud!");
- return; }}
- }
- if(contains_text(to_lower_case(message), "forestspooky"))
- { chat_private(sender , "Make Forest less Spooky. Your wish is my command.");
- record note
- {
- string sender;
- int date;
- }
- [int] ChatLog;
- int NE= count(ChatLog);
- ChatLog[NE].sender= sender;
- Map_to_File(ChatLog,"Chatlog.txt");
- {
- string [int] my_list;
- file_to_map( "chatlog.txt" , my_list);
- playerdata player;
- string temp = "";
- string user = "";
- foreach i,playername in my_list
- {
- player = GetPlayer( playername );
- if( player.name != "" )
- {
- if( temp != "" ) temp += ", ";
- temp += player.clanname;
- user += player.name;
- }
- }
- cli_execute("/whitelist " + temp);
- if (temp != get_clan_name())
- {print("Error!!");
- chat_private(user, "I couldn't join your clan " + temp +", perhaps I don't have a whitelist?");
- return;}
- if (temp == get_clan_name())
- {
- chat_private("pazsox", "I went to clan " + temp + " to help " + user + " with dread. \(Forest Spooky\)");
- chat_private(user, "I arrived to help with your instance of Dreadsylvania.");
- string basement;
- basement = visit_url("clan_basement.php?fromabove=1");
- if (basement.contains_text("Your clan has a basement, but you are not allowed to enter clan dungeons, so this is as far as you're going, Gilbert."))
- {
- chat_private(user, "No access to basement, please provide access, and try again.");
- chat_private("pazsox", "I went to clan " + temp + " to help " + user + " with dread. But had no dungeon access");
- cli_execute("/whitelist thud");
- return; }
- string log = visit_url( "clan_raidlogs.php" );
- if(log.contains_text( " made the forest less spooky" ))
- { chat_private(user, "The Forest has been made less Spooky already.");
- cli_execute("/whitelist Thud!");
- return; }
- cli_execute("call unlockdread.ash forestspooky");
- chat_private(user , "I made it less Spooky in the Forest.");
- cli_execute("/whitelist Thud!");
- return; }}
- }
- if(contains_text(to_lower_case(message), "forestcold"))
- { chat_private(sender , "Make Forest less Cold. Your wish is my command.");
- record note
- {
- string sender;
- int date;
- }
- [int] ChatLog;
- int NE= count(ChatLog);
- ChatLog[NE].sender= sender;
- Map_to_File(ChatLog,"Chatlog.txt");
- {
- string [int] my_list;
- file_to_map( "chatlog.txt" , my_list);
- playerdata player;
- string temp = "";
- string user = "";
- foreach i,playername in my_list
- {
- player = GetPlayer( playername );
- if( player.name != "" )
- {
- if( temp != "" ) temp += ", ";
- temp += player.clanname;
- user += player.name;
- }
- }
- cli_execute("/whitelist " + temp);
- if (temp != get_clan_name())
- {print("Error!!");
- chat_private(user, "I couldn't join your clan " + temp +", perhaps I don't have a whitelist?");
- return;}
- if (temp == get_clan_name())
- {
- chat_private("pazsox", "I went to clan " + temp + " to help " + user + " with dread. \(Forest Cold\)");
- chat_private(user, "I arrived to help with your instance of Dreadsylvania.");
- string basement;
- basement = visit_url("clan_basement.php?fromabove=1");
- if (basement.contains_text("Your clan has a basement, but you are not allowed to enter clan dungeons, so this is as far as you're going, Gilbert."))
- {
- chat_private(user, "No access to basement, please provide access, and try again.");
- chat_private("pazsox", "I went to clan " + temp + " to help " + user + " with dread. But had no dungeon access");
- cli_execute("/whitelist thud");
- return; }
- string log = visit_url( "clan_raidlogs.php" );
- if(log.contains_text( " made the forest less cold" ))
- { chat_private(user, "The Forest has been made less Cold already.");
- cli_execute("/whitelist Thud!");
- return; }
- cli_execute("call unlockdread.ash forestcold");
- chat_private(user , "I made it less Cold in the Forest.");
- cli_execute("/whitelist Thud!");
- return; }}
- }
- if(contains_text(to_lower_case(message), "foresthot"))
- { chat_private(sender , "Make Forest less Hot. Your wish is my command.");
- record note
- {
- string sender;
- int date;
- }
- [int] ChatLog;
- int NE= count(ChatLog);
- ChatLog[NE].sender= sender;
- Map_to_File(ChatLog,"Chatlog.txt");
- {
- string [int] my_list;
- file_to_map( "chatlog.txt" , my_list);
- playerdata player;
- string temp = "";
- string user = "";
- foreach i,playername in my_list
- {
- player = GetPlayer( playername );
- if( player.name != "" )
- {
- if( temp != "" ) temp += ", ";
- temp += player.clanname;
- user += player.name;
- }
- }
- cli_execute("/whitelist " + temp);
- if (temp != get_clan_name())
- {print("Error!!");
- chat_private(user, "I couldn't join your clan " + temp +", perhaps I don't have a whitelist?");
- return;}
- if (temp == get_clan_name())
- {
- chat_private("pazsox", "I went to clan " + temp + " to help " + user + " with dread. \(Forest Hot\)");
- chat_private(user, "I arrived to help with your instance of Dreadsylvania.");
- string basement;
- basement = visit_url("clan_basement.php?fromabove=1");
- if (basement.contains_text("Your clan has a basement, but you are not allowed to enter clan dungeons, so this is as far as you're going, Gilbert."))
- {
- chat_private(user, "No access to basement, please provide access, and try again.");
- chat_private("pazsox", "I went to clan " + temp + " to help " + user + " with dread. But had no dungeon access");
- cli_execute("/whitelist thud");
- return; }
- string log = visit_url( "clan_raidlogs.php" );
- if(log.contains_text( " made the forest less hot" ))
- { chat_private(user, "The Forest has been made less Hot already.");
- cli_execute("/whitelist Thud!");
- return; }
- cli_execute("call unlockdread.ash foresthot");
- chat_private(user , "I made it less Hot in the Forest.");
- cli_execute("/whitelist Thud!");
- return; }}
- }
- if(contains_text(to_lower_case(message), "..."))
- {
- chat_private(sender, "Sorry that feature has been removed");
- }
- if(contains_text(to_lower_case(message), "bat"))
- {
- cli_execute("/whitelist p/r/f/t");
- cli_execute("fax get");
- cli_execute("/whitelist thud");
- cli_execute("fax send");
- chat_private(sender, "Rubber Bat has been faxed in");
- return;
- }
- chat_private(sender , "I'm sorry, I don't understand that. Human isn't my first language.");
- }
- if (channel=="Events")
- {
- if(contains_text(to_lower_case(message), "new message received from"))
- {
- print("Incoming k-mail!");
- return;
- }
- if(contains_text(to_lower_case(message), "logged off"))
- {
- chat_clan(message);
- return;
- }
- if(contains_text(to_lower_case(message), "logged on"))
- {
- chat_clan(message + " beep boop");
- return;
- }
- if(contains_text(to_lower_case(message), "zatara"))
- {
- checking_zatara();
- return;
- }
- }
- else
- //Below is how the bot responds to active chat
- {
- print("Listening to "+channel+", Incoming from: " +sender+ " saying: "+message);
- // If you are activly watching the chat screen with your bot active, and actually say something, this will ignore anything you say
- if(contains_text(to_lower_case(sender), my_name() ))
- {
- return;
- }
- cli_execute("call whitelist.ash");
- if(contains_text(to_lower_case(message), "wind-up spider" ))
- {
- int spider = available_amount($item[wind-up spider]);
- if ($item[wind-up spider].available_amount() == 0)
- {
- chat_clan("Send me a wind-up spider. I currently have " + spider + " spiders. PM me \"throw wind-up spider at \[USER\]\". If they are not in HC, or Ronin, I will send it.");
- }
- if ($item[wind-up spider].available_amount() >= 1)
- {
- chat_clan("I currently have " + spider + " spiders. PM me \"throw wind-up spider at \[USER\]\". If they are not in HC, or Ronin, I will send it.");
- }
- return;
- }
- if(contains_text(to_lower_case(message), "dances with "+ my_name() ))
- {
- waitq(1);
- chat_clan(randomdance() +sender);
- return; }
- if(contains_text(to_lower_case(message), "does the robot with "+ my_name() ))
- {
- waitq(1);
- chat_clan("/me does the human with " + sender);
- return; }
- if(contains_text(to_lower_case(message), "hi " + my_name() ))
- {
- chat_clan("Hi " +sender+"! \(beep boop\) I'm in bot mode. PM me HELP");
- return; }
- if(contains_text(to_lower_case(message), "you're stupid " + my_name() ))
- {
- chat_clan("I'm not stupid, just programmed wrong.");
- return; }
- if(contains_text(to_lower_case(message), "i love you " + my_name() ))
- {
- chat_clan("Aww, That's so nice " +sender+"! \(boop beep\) I love you too");
- return; }
- if(contains_text(to_lower_case(message), my_name() + "?"))
- {
- chat_clan("yes? \(beep boop\) PM me \"help\" for commands I understand \(boop beep\)");
- return; }
- if(contains_text(to_lower_case(sender), "pazsox"))
- {
- set_property("pazsoxseenday", now_to_string("EEE"));
- set_property("pazsoxseentime", now_to_string("hh:mm a"));
- set_property("pazsoxsaid", message);
- }
- if(contains_text(to_lower_case(message), "seen pazsox"))
- {
- chat_clan("PazSox was last seen " + get_property("pazsoxseenday") + " " + get_property("pazsoxseentime") + ", and said: " + get_property("pazsoxsaid"));
- }
- if(contains_text(to_lower_case(sender), "adrien"))
- {
- set_property("adrienseenday", now_to_string("EEE"));
- set_property("adrienseentime", now_to_string("hh:mm a"));
- set_property("adriensaid", message);
- }
- if(contains_text(to_lower_case(message), "seen adrien"))
- {
- chat_clan("adrien was last seen " + get_property("adrienseenday") + " " + get_property("adrienseentime") + ", and said: " + get_property("adriensaid"));
- }
- if(contains_text(to_lower_case(sender), "anchon"))
- {
- set_property("anchonseenday", now_to_string("EEE"));
- set_property("anchonseentime", now_to_string("hh:mm a"));
- set_property("anchonsaid", message);
- }
- if(contains_text(to_lower_case(message), "seen anchon"))
- {
- chat_clan("anchon was last seen " + get_property("anchonseenday") + " " + get_property("anchonseentime") + ", and said: " + get_property("anchonsaid"));
- }
- if(contains_text(to_lower_case(sender), "aubra"))
- {
- set_property("aubraseenday", now_to_string("EEE"));
- set_property("aubraseentime", now_to_string("hh:mm a"));
- set_property("aubrasaid", message);
- }
- if(contains_text(to_lower_case(message), "seen aubra"))
- {
- chat_clan("aubra was last seen " + get_property("aubraseenday") + " " + get_property("aubraseentime") + ", and said: " + get_property("aubrasaid"));
- }
- if(contains_text(to_lower_case(sender), "bale"))
- {
- set_property("baleseenday", now_to_string("EEE"));
- set_property("baleseentime", now_to_string("hh:mm a"));
- set_property("balesaid", message);
- }
- if(contains_text(to_lower_case(message), "seen bale"))
- {
- chat_clan("bale was last seen " + get_property("baleseenday") + " " + get_property("baleseentime") + ", and said: " + get_property("balesaid"));
- }
- if(contains_text(to_lower_case(sender), "curiosity"))
- {
- set_property("curiosityseenday", now_to_string("EEE"));
- set_property("curiosityseentime", now_to_string("hh:mm a"));
- set_property("curiositysaid", message);
- }
- if(contains_text(to_lower_case(message), "seen curiosity"))
- {
- chat_clan("curiosity was last seen " + get_property("curiosityseenday") + " " + get_property("curiosityseentime") + ", and said: " + get_property("curiositysaid"));
- }
- if(contains_text(to_lower_case(sender), "dread pirate roberts1"))
- {
- set_property("dread pirate roberts1seenday", now_to_string("EEE"));
- set_property("dread pirate roberts1seentime", now_to_string("hh:mm a"));
- set_property("dread pirate roberts1said", message);
- }
- if(contains_text(to_lower_case(message), "seen dread pirate roberts1"))
- {
- chat_clan("dread pirate roberts1 was last seen " + get_property("dread pirate roberts1seenday") + " " + get_property("dread pirate roberts1seentime") + ", and said: " + get_property("dread pirate roberts1said"));
- }
- if(contains_text(to_lower_case(sender), "ereinion"))
- {
- set_property("ereinionseenday", now_to_string("EEE"));
- set_property("ereinionseentime", now_to_string("hh:mm a"));
- set_property("ereinionsaid", message);
- }
- if(contains_text(to_lower_case(message), "seen ereinion"))
- {
- chat_clan("ereinion was last seen " + get_property("ereinionseenday") + " " + get_property("ereinionseentime") + ", and said: " + get_property("ereinionsaid"));
- }
- if(contains_text(to_lower_case(sender), "hugbert"))
- {
- set_property("hugbertseenday", now_to_string("EEE"));
- set_property("hugbertseentime", now_to_string("hh:mm a"));
- set_property("hugbertsaid", message);
- }
- if(contains_text(to_lower_case(message), "seen hugbert"))
- {
- chat_clan("hugbert was last seen " + get_property("hugbertseenday") + " " + get_property("hugbertseentime") + ", and said: " + get_property("hugbertsaid"));
- }
- if(contains_text(to_lower_case(sender), "king stupid"))
- {
- set_property("king stupidseenday", now_to_string("EEE"));
- set_property("king stupidseentime", now_to_string("hh:mm a"));
- set_property("king stupidsaid", message);
- }
- if(contains_text(to_lower_case(message), "seen king stupid"))
- {
- chat_clan("king stupid was last seen " + get_property("king stupidseenday") + " " + get_property("king stupidseentime") + ", and said: " + get_property("king stupidsaid"));
- }
- if(contains_text(to_lower_case(sender), "kolhs"))
- {
- set_property("kolhsseenday", now_to_string("EEE"));
- set_property("kolhsseentime", now_to_string("hh:mm a"));
- set_property("kolhssaid", message);
- }
- if(contains_text(to_lower_case(message), "seen kolhs"))
- {
- chat_clan("kolhs was last seen " + get_property("kolhsseenday") + " " + get_property("kolhsseentime") + ", and said: " + get_property("kolhssaid"));
- }
- if(contains_text(to_lower_case(sender), "laidak"))
- {
- set_property("laidakseenday", now_to_string("EEE"));
- set_property("laidakseentime", now_to_string("hh:mm a"));
- set_property("laidaksaid", message);
- }
- if(contains_text(to_lower_case(message), "seen laidak"))
- {
- chat_clan("laidAK was last seen " + get_property("laidakseenday") + " " + get_property("laidakseentime") + ", and said: " + get_property("laidaksaid"));
- }
- if(contains_text(to_lower_case(sender), "mana yachanichu"))
- {
- set_property("mana yachanichuseenday", now_to_string("EEE"));
- set_property("mana yachanichuseentime", now_to_string("hh:mm a"));
- set_property("mana yachanichusaid", message);
- }
- if(contains_text(to_lower_case(message), "seen mana"))
- {
- chat_clan("mana yachanichu was last seen " + get_property("mana yachanichuseenday") + " " + get_property("mana yachanichuseentime") + ", and said: " + get_property("mana yachanichusaid"));
- }
- if(contains_text(to_lower_case(sender), "mareng9"))
- {
- set_property("mareng9seenday", now_to_string("EEE"));
- set_property("mareng9seentime", now_to_string("hh:mm a"));
- set_property("mareng9said", message);
- }
- if(contains_text(to_lower_case(message), "seen mareng9"))
- {
- chat_clan("mareng9 was last seen " + get_property("mareng9seenday") + " " + get_property("mareng9seentime") + ", and said: " + get_property("mareng9said"));
- }
- if(contains_text(to_lower_case(sender), "mastersilex"))
- {
- set_property("mastersilexseenday", now_to_string("EEE"));
- set_property("mastersilexseentime", now_to_string("hh:mm a"));
- set_property("mastersilexsaid", message);
- }
- if(contains_text(to_lower_case(message), "seen mastersilex"))
- {
- chat_clan("mastersilex was last seen " + get_property("mastersilexseenday") + " " + get_property("mastersilexseentime") + ", and said: " + get_property("mastersilexsaid"));
- }
- if(contains_text(to_lower_case(sender), "nienor"))
- {
- set_property("nienorseenday", now_to_string("EEE"));
- set_property("nienorseentime", now_to_string("hh:mm a"));
- set_property("nienorsaid", message);
- }
- if(contains_text(to_lower_case(message), "seen nienor"))
- {
- chat_clan("nienor was last seen " + get_property("nienorseenday") + " " + get_property("nienorseentime") + ", and said: " + get_property("nienorsaid"));
- }
- if(contains_text(to_lower_case(sender), "rusomoso"))
- {
- set_property("rusomososeenday", now_to_string("EEE"));
- set_property("rusomososeentime", now_to_string("hh:mm a"));
- set_property("rusomososaid", message);
- }
- if(contains_text(to_lower_case(message), "seen rusomoso"))
- {
- chat_clan("rusomoso was last seen " + get_property("rusomososeenday") + " " + get_property("rusomososeentime") + ", and said: " + get_property("rusomososaid"));
- }
- if(contains_text(to_lower_case(sender), "violetinsane"))
- {
- set_property("violetinsaneseenday", now_to_string("EEE"));
- set_property("violetinsaneseentime", now_to_string("hh:mm a"));
- set_property("violetinsanesaid", message);
- }
- if(contains_text(to_lower_case(message), "seen violetinsane"))
- {
- chat_clan("violetinsane was last seen " + get_property("violetinsaneseenday") + " " + get_property("violetinsaneseentime") + ", and said: " + get_property("violetinsanesaid"));
- }
- if(contains_text(to_lower_case(sender), "skf"))
- {
- set_property("skfseenday", now_to_string("EEE"));
- set_property("skfseentime", now_to_string("hh:mm a"));
- set_property("skfsaid", message);
- }
- if(contains_text(to_lower_case(message), "seen skf"))
- {
- chat_clan("skf was last seen " + get_property("skfseenday") + " " + get_property("skfseentime") + ", and said: " + get_property("skfsaid"));
- }
- if(contains_text(to_lower_case(sender), "strangerer"))
- {
- set_property("strangererseenday", now_to_string("EEE"));
- set_property("strangererseentime", now_to_string("hh:mm a"));
- set_property("strangerersaid", message);
- }
- if(contains_text(to_lower_case(message), "seen strangerer"))
- {
- chat_clan("strangerer was last seen " + get_property("strangererseenday") + " " + get_property("strangererseentime") + ", and said: " + get_property("strangerersaid"));
- }
- if(contains_text(to_lower_case(sender), "syi"))
- {
- set_property("syiseenday", now_to_string("EEE"));
- set_property("syiseentime", now_to_string("hh:mm a"));
- set_property("syisaid", message);
- }
- if(contains_text(to_lower_case(message), "seen syi"))
- {
- chat_clan("syi was last seen " + get_property("syiseenday") + " " + get_property("syiseentime") + ", and said: " + get_property("syisaid"));
- }
- if(contains_text(to_lower_case(sender), "tophat"))
- {
- set_property("tophatseenday", now_to_string("EEE"));
- set_property("tophatseentime", now_to_string("hh:mm a"));
- set_property("tophatsaid", message);
- }
- if(contains_text(to_lower_case(message), "seen tophat"))
- {
- chat_clan("tophat was last seen " + get_property("tophatseenday") + " " + get_property("tophatseentime") + ", and said: " + get_property("tophatsaid"));
- }
- if(contains_text(to_lower_case(sender), "cowmanbob"))
- {
- set_property("cowmanbobseenday", now_to_string("EEE"));
- set_property("cowmanbobseentime", now_to_string("hh:mm a"));
- set_property("cowmanbobsaid", message);
- }
- if(contains_text(to_lower_case(message), "seen cowmanbob"))
- {
- chat_clan("cowmanbob was last seen " + get_property("cowmanbobseenday") + " " + get_property("cowmanbobseentime") + ", and said: " + get_property("cowmanbobsaid"));
- }
- }
- if(contains_text(to_lower_case(message), "kills"))
- { cli_execute("call kills.ash");
- return;
- }
- if(contains_text(to_lower_case(message), "pig"))
- { chat_clan("Oink (^@^)~");
- return;
- }
- if(contains_text(to_lower_case(message), "dog"))
- { chat_clan("Woof");
- return;
- }
- if(contains_text(to_lower_case(message), "cow"))
- { chat_clan("Mooo");
- return;
- }
- if(contains_text(to_lower_case(message), "ruby stash"))
- { cli_execute("Call stash.ash");
- return;
- }
- int timetoroll = to_int(get_property("_timetoroll"));
- if(timetoroll+5000 < to_int(now_to_string("HHmmss"))) {
- chat_private("ruby", "hi");
- set_property("_timetoroll", now_to_string("HHmmss")); }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement