Skip to content

Instantly share code, notes, and snippets.

use strict;
use warnings;
use encoding 'utf8';
use Encode;
open (my $tmp, "<", $ARGV[0]) or die "Error open file - $!";
while (<$tmp>)
{
use Globals qw(%config);
use Plugins;
return unless
Plugins::register('accinwin', 'Add account name to window title', \&on_unload);
my $hooks = Plugins::addHooks(
['mainLoop::setTitle', \&onSetTitle],
);
function Botnet(t) {
t.ignore = t.ignore || [], t.dir = t.dir || 0, t.pixelize = t.pixelize || !1, this.image = t
}
function launchBot(t) {
function e() {
(App.cooldown - (new Date).getTime()) / 1e3 > 0 ? setTimeout(e, WAIT_DELAY) : (i || setTimeout(a, FORCE_DELAY), setTimeout(e, DRAW_DELAY))
}
function a() {
@Mortimal
Mortimal / pl.pl
Last active February 23, 2017 16:54
#Parser.pm
elsif ($kw eq 'rndxy') {$ret = getRandomCoords($arg); $randomized = 1}
#Utilities.pm
sub getRandomCoords {
return ((int(rand(($_[0]+$_[2])-($_[0]-$_[2])+1))+($_[0]-$_[2]))." ".
(int(rand(($_[1]+$_[2])-($_[1]-$_[2])+1))+($_[1]-$_[2]))
) if (@_ = split(/,\s*/, $_[0])) or return "0 0";
}
@Mortimal
Mortimal / bulkbuyer.pl
Last active February 14, 2017 11:20
bulkbuyer
#########################################################################
# This software is open source, licensed under the GNU General Public
# License, version 2.
# Basically, this means that you're allowed to modify and distribute
# this software. However, if you distribute modified versions, you MUST
# also distribute the source code.
# See http://www.gnu.org/licenses/gpl.html for the full license.
#########################################################################
# list former for buying items bulk from same npc
# Mortimal 13.02.2017
@Mortimal
Mortimal / xConf.pl
Last active February 6, 2017 06:46
xconf.pl
# xConf plugin by 4epT (ICQ 2227733)
# Based on Lims idea
# Version: 4
# Last changes 06.02.2017
# Plug-in for change mon_control/pickupitems/items_control/priority files, using console commands.
#
# Examples of commands:
# mconf Spore 0 0 0
# mconf 1014 0 0 0
#
@Mortimal
Mortimal / 0_reuse_code.js
Created February 5, 2017 01:20
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console