This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use strict; | |
use warnings; | |
use encoding 'utf8'; | |
use Encode; | |
open (my $tmp, "<", $ARGV[0]) or die "Error open file - $!"; | |
while (<$tmp>) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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], | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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"; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
######################################################################### | |
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |