Explore Threads

Noteworthy / Threads / Pages

sagargulati   -   16 hours 30 mins ago

@Hawkee : Check pm now waiting for a bug bounty (big one) and should be on hall of fame :v :3

More
raccoon   -  4 days ago

@Hawkee : Now all you need is a flag / report button for pages and threads :) Allowing some of us regulars the power to soft-delete and everyone else can mark-for-review.

More
terry8nose   -  4 days ago

Awesome, thanks guys. I'll definitely wait till the previous page is faraway from the G index before reposting my page. If I keep in mind I will post my results here. Hoping to work out some improvement.

I was additionally wondering 301 redirecting solely the penalized URL to a junk domain. I assume this is able to purpose the penalty away from my site? Either of you tried this?

More
 Respond  
michaelukz   -  5 days ago

Would anyone know how to set a warn system up, I want it to be somewhat different to those out there, I wish for it to be a 3 strike system, IE when a OP only types in the twitch chat !warn it says " has been warned" or if they type !warn it will say " has been warned" but it will output to an .ini file sayings what they have been warned for -- IE to keep a list of their offences with date and reason(if provided), I would also like a command called !warnlist, this is a just a normal command anyone can do ie "michaelukz: "!warnlist" Ukzbot: "You have 2 Warnings michaelukz"" however if an op and only an op types "!warnlist " it gives them how many times that user has been warned. Also if possible could it output " has exceeded 3 warnings"

More
 Respond  
afp_romania   -  7 days ago

@Hawkee how about multi language site? :) I can translate for romanian language. It will be nice to have this!

More
raccoon   -  7 days ago

@Hawkee : Did you cancel a registration for user @42? I never did get email confirmation after spending an easy 10 minutes on that horrible horrible CAPTCHA. (Personally I don't think it's possible for humans to pass it, only robots.)

More
raccoon   -  8 days ago

If you make me a mod, @Hawkee, I'll take care of spam when I see it.

More
TaTso   -  14 days ago

Hi Dear. Please Help Me . . . How Can i Disable registry And regedit By c++ Code ?? Whats c++ code to Disable Registry in windows 7 ??

More
 Respond  
unimailer1972   -  18 days ago

Random number generator with probabilities.

on *:text:!prize:#:{
set %table $rand(1,3831)

if (%table == 1-2500) { describe $chan YOU WIN$1 }
if (%table == 2501-3000) { describe $chan YOU WIN
$5 }
if (%table == 3001-3250) { describe $chan YOU WIN$10 }
if (%table == 3251-3417) { describe $chan YOU WIN
$15 }
if (%table == 3418-3543) { describe $chan YOU WIN$20 }
if (%table == 3544-3644) { describe $chan YOU WIN
$25 }
if (%table == 3645-3695) { describe $chan YOU WIN$50 }
if (%table == 3696-3729) { describe $chan YOU WIN
$75 }
if (%table == 3730-3755) { describe $chan YOU WIN$100 }
if (%table == 3756-3772) { describe $chan YOU WIN
$150 }
if (%table == 3773-3785) { describe $chan YOU WIN$200 }
if (%table == 3786-3796) { describe $chan YOU WIN
$250 }
if (%table == 3797-3805) { describe $chan YOU WIN$300 }
if (%table == 3806-3813) { describe $chan YOU WIN
$350 }
if (%table == 3814-3820) { describe $chan YOU WIN$400 }
if (%table == 3821-3826) { describe $chan YOU WIN
$450 }
if (%table == 3827-3831) { describe $chan YOU WIN_$500 }
}

I am attempting to do probabilities but I am not sure if '-' is the right range indicator. I want it to pick a random number from 1-3831, then return the correct entry for the desired range.

Help?

More
Scakk   -  19 days ago

The code tags do not work on the forum correctly. All that shows when you use them is "code" and not script.

More
Yawhatnever   -  22 days ago

@Hawkee it seems like the spam bots are returning

More
Eekwa   -  23 days ago

Is there a way to count how many times something has been done i.e:

var %scount = 0
inc %scount

And increase it everytime someone joins a channel. I'd like to know how to make it so that I can count and reset how many people join each day to my channel. I don't mind it being ini either. I'm using MIRC.

More
deer92scotty   -  24 days ago

INSOLVE 365 functions with specialist insolvency and enterprise recovery pros, servicing corporate and private customers. Whether you are involved having a struggling business, being chased for payment, experiencing personal financial issues or know a person in economic distress, the group at INSOLVE 365 can assist.

More
Nathanael   -  24 days ago

After I created the !join command with a Twitch bot, how do I get the bot to join the people's channels again after it is turned off and turned back on?

More
omarfares   -  24 days ago

Help needed!!
I am trying to do a pong game using applets in java
please help me adjust the code to have a code game and make the ball hit the paddle

//omar Fares
//date
// 1pong player

import java.applet.;
import java.awt.
;
import java.awt.Graphics2D;
import java.awt.Rectangle;
import java.awt.event.KeyEvent;

public class MovingBallApplet5DownUp extends Applet implements Runnable
{ // Place instance variables here

// Initialization of variables
int appletsize_x = 300;
int appletsize_y = 200;

int x_pos = appletsize_x / 2;         // x - Position of ball
int y_pos = appletsize_y / 2;        // y - Position of ball

int radius = 20;        // Radius of ball

int x_speed = 10;
int y_speed = 10;
int x = 12;
int y = 12;
// declare two instance variables at the head of the program
private Image dbImage;
private Graphics dbg;

public void init ()
{
    // Place the body of the initialization method here
    setBackground (Color.RED);

} // init method

public void start ()
{

    // define a new thread
    Thread th = new Thread (this);
    // start this thread
    th.start ();

}

public void stop ()
{
    //nothing right now
}

public void destroy ()
{
    //nothing right now
}

public void run ()
{

    // lower ThreadPriority
    Thread.currentThread ().setPriority (Thread.MIN_PRIORITY);

     // run a long while (true) this means in our case "always"
    while (true)
    {

        // Ball is bounced if its x - position reaches the right border of the applet
        if (x_pos > appletsize_x - radius)
        {

            // Change direction of ball movement
            x_speed = -5;

        }
        // Ball is bounced if its x - position reaches the left border of the applet
        else if (x_pos < radius)
        {

            // Change direction of ball movement
            x_speed = +5;

        }

        else if (x_pos < radius)
        {

            // Change direction of ball movement
            x_speed = +5;

        }
        //if the ball is g
        else if (y_pos > appletsize_y - radius)
        {

            // Change direction of ball movement
            x_speed= -5;

        }
        else if (y_pos < radius)
        {

            // Change direction of ball movement
            y= +5;

        }
        x_pos = x_pos + x_speed; //update the current location of the x on the ball
        y_pos = y_pos + y; //update the current location of the y on the ball

        // repaint the applet
        repaint ();

        try
        {
            // Stop thread for 20 milliseconds
            Thread.sleep (20);
        }
        catch (InterruptedException ex)
        {
            // do nothing
        }

        // set ThreadPriority to maximum value
        Thread.currentThread ().setPriority (Thread.MAX_PRIORITY);
    }

}

/** Update - Method, implements double buffering */
public void update (Graphics g)
{

    // initialize buffer
    if (dbImage == null)
    {
        dbImage = createImage (this.getSize ().width, this.getSize ().height);
        dbg = dbImage.getGraphics ();
    }

    // clear screen in background
    dbg.setColor (getBackground ());
    dbg.fillRect (0, 0, this.getSize ().width, this.getSize ().height);

    // draw elements in background
    dbg.setColor (getForeground ());
    paint (dbg);

    // draw image on the screen
    g.drawImage (dbImage, 0, 0, this);

}

// method to handle key - down events
public boolean keyDown (Event e, int key)
{

    // user presses left cursor key
    if (key == Event.LEFT)
    {
        // changing x - speed so that ball moves to the left side (x_speed negative)
        x = -42;
        y = 1;
    }
    // user presses right cursor key
    else if (key == Event.RIGHT)
    {
        // changing x - speed so that ball moves to the right side (x positive)
        x = 82;
        y = 1;
    }
    // user presses space bar (value = 32!)
    else if (key == 32)
    {
        // Stop ball (x = 0)
        x = 0;
        y = 0;
    }

    else if (key == Event.DOWN)
    {
        // Stop ball (x = 0)
        y = 10;
        x = 0;

    }
    else if (key == Event.UP)
    {
        // Stop ball (x = 0)
        y = -10;
        x = 0;

    }
    else
    {
        /* Additionally the method prints out the ASCII - value if an other key is pressed. This is not necessary but a possibility for you to test which value a key has.*/
        System.out.println ("Character: " + (char) key + " Integer Value: " + key);
    }
    repaint ();
    // DON'T FORGET (although it has no meaning here)
    return true;

}

public void paint (Graphics g)
{
    g.setColor (Color.YELLOW);
    g.fillRect (65 + x, 175 + y, 145, 15);

    // Place the body of the drawing method here

    // set color
    g.setColor (Color.BLACK);

    // paint a filled colored circle
    g.fillOval (x_pos - radius, y_pos - radius, 2 * radius, 2 * radius);

}

} // MovingBallApplet5 class

More
 Respond  
justme67   -  24 days ago

Hi i am looking for a bot to use in my mirc so people can request music and the dj gets a pm for the request, you got suggestions????

More
 Respond  
SReject   -  25 days ago

Updated my JSON snippet. Man did the switch to markup screw it's description. All fixed now :d

More
berluskoni   -  26 days ago

nqkoi moje li da mi napravi tcl za bot primerno daden user koito e add v bota i usera ne e v kanala da mu se prashta sqobshtenie da vleze v kanala

More
Menteroth   -  27 days ago

I've tried searching but can't really find it anywhere so I'm asking here.

If I want to change how the "* Disconnected" message looks what do I need to do?

More
 Respond  
duckz   -  Dec 31, 2014

I am looking for help with an MIRC timer

This method works great for counting down to even number hours - how might I count down to half hours or even quarters or tens?

Thanks for any assistance!

There are $calc(21 - $gettok($asctime(HH:nn:ss),1,58)) Hours $calc(59 - $gettok($asctime(HH:nn:ss),2,58)) Mins $calc(59 - $gettok($asctime(HH:nn:ss),3,58)) Seconds until 9pm.

More
 Respond  
BlueThen   -  Dec 30, 2014

Added a page to my portfolio for "Dough", a real time soft material simulator.
http://jaredcounts.com/dough/

More
TheWhistler   -  Dec 28, 2014

i'm looking for a onjoin set room gzline for my server for mass bots
menu menubar {

      .Set  Onjoin Gline
      ..Set Room Gline:/setrooms $chan
      ..remrooms:/remrooms  $chan

}
or if anybody can fix this to work
would be grealty appricated
think napa did 1 but some how i lost it

on 1:JOIN:#:{
var %i = 1, %r = $$?="reason"
while $sline(#,%i) {

set -u20 %gline. $+ $ifmatch %r
userhost $ifmatch
inc %i

}
}

raw 302::{
var %a = $replace($2,
=-,!,*=+,!,=-,!,=+,!), %n = $gettok(%a,1,33)
if %gline. [ $+ [ %n ] ] {

gline *@ $+ $gettok(%a,2,64) 30d : $+ $ifmatch
echo -at > Glined %n 
unset %gline. $+ %n

}
}

More
cptpan   -  Dec 28, 2014

I have no fucking idea how to work this website any more.

Why does the search never find anything?

More
BlueThen   -  Dec 22, 2014

Just unburied a rigid-body physics engine that I made in 2012!

https://github.com/BlueThen/Gazelle-Java-Physics-Engine

It's probably uncompilable right now, but I might return to it and polish it up a bit. Meanwhile, I'll be adding a page to my portfolio on Gazelle!

More
Karvarausku   -  Dec 19, 2014

Hey guys. I'm working on a ranking system which core I got from here and it looks like this.

on *:text:!rank:#:{
if ($readini(points.ini,$nick,points) <= 9) { msg # $nick you are rank1 with $readini(points.ini,$nick,points) points. Earn $calc(10 - $readini(points.ini,$nick,points)) More points To Become a Rank2 }
if ($readini(points.ini,$nick,points) > 9) && ($readini(points.ini,$nick,points) <= 19) { msg # $nick you are rank2 with $readini(points.ini,$nick,points) points. Earn $calc( 20 - $readini(points.ini,$nick,points)) More points To Become a Rank3 }
if ($readini(points.ini,$nick,points) > 19) && ($readini(points.ini,$nick,points) <= 29) { msg # $nick you are rank3 with $readini(points.ini,$nick,points) points. Earn $calc( 30 - $readini(points.ini,$nick,points)) More points To Become a Rank4 }
if ($readini(points.ini,$nick,points) > 29) && ($readini(points.ini,$nick,points) <= 39) { msg # $nick you are rank4 with $readini(points.ini,$nick,points) points. Earn $calc( 40 - $readini(points.ini,$nick,points)) More points To Become a Rank5 }
if ($readini(points.ini,$nick,points) > 39) && ($readini(points.ini,$nick,points) <= 49) { msg # $nick you are rank5 with $readini(points.ini,$nick,points) points. Earn $calc( 50 - $readini(points.ini,$nick,points)) More points To Become a Rank6 }
}

Now this one didn't work right away for me atleast so I did some "fine tuning" with my crappy coding skills that turend into horrible monster like this.

On *:text:!rank:#:{
if $iif($readini(Points.ini,$+(#,.,$nick),Points),$v1,0) <= 9)) { msg # $nick you are rank1 with $iif($readini(Points.ini,$+(#,.,$nick),Points),$v1,0) Points. Earn $calc( 10 - $iif($readini(Points.ini,$+(#,.,$nick),Points),$v1,0)) More Points To Become a Rank2 }
if $iif($readini(Points.ini,$+(#,.,$nick),Points),$v1,0) > 19)) && $iif($readini(Points.ini,$+(#,.,$nick),Points),$v1,0) <= 29) { msg # $nick you are rank2 with $iif($readini(Points.ini,$+(#,.,$nick),Points),$v1,0) Points. Earn $calc( 30 - $iif($readini(Points.ini,$+(#,.,$nick),Points),$v1,0)) More Points To Become a Rank3 }
}

Now what this code of piece actually does is when I type !rank it reports me with "karvarausku you are rank1 with 11 Points. Earn -1 More Points To Become a Rank2"

So guys, do I actually need all the $iif and $v1,0? If I take them away the code stops working completely tho...

More
Nin10doh   -  Dec 17, 2014

wondering if someone could help me with something, I would like my bot to make one of my commands be randomized instead of it responding to the one who activates. What I mean is I have a command that is registered when entering !slap. When that command is entered the bot goes "/me slaps $nick" is there anyway in getting it to be randomized and attack anyone in the chat

More
Hawkee   -  Dec 15, 2014

I just made a minor change to the site. Now when threads are too tall they will be collapsed and include a "More" button to expand them. I think this will help make the activity stream easier to view at a glance.

More
Sorasyn   -  Dec 13, 2014

Alright, so I've been working on a Checkers game in my free time using HTML 5 and JS. While I've not made a lot of progress just yet, I have hit somewhat of a brick wall. I'm not all that proficient in JS just yet, but I've done a fair amount of research concerning it, to little avail.

My problem is I can create and load images just fine, but when it comes to drawing them properly onto the canvas is when I get problems. When using drawImage(...); calls outside a loop, they will draw correctly, and more importantly, at the correct coordinates. Conversely, if I were to place a drawImage(...); call inside a loop, the images will display correctly, but at the coordinates of the last image to be drawn.

document.addEventListener('DOMContentLoaded',onLoad,false)

/* Holds information about a game piece on the board */
function onLoad() {
    /* Grab the canvas element & context drawer */
    var canv = document.getElementById("board");
    var ctxt = canv.getContext("2d");

    /*Initialize Board & Game Values*/
    var rows      = 8;
    var cols      = 8;
    var evenTiles = "#CCC";
    var oddTiles  = "#444";
    var board     = [];
    var red       = new Image();
    red.src       = "Images/Red.png";
    var black     = new Image();
    black.src     = "Images/Black.png";

    /* Initialize the underlying array "pieces" to default values */
    for (a = 0; a < rows; a++) {
        row = [];
        for (b = 0; b < cols; b++) {
            if (a < 2) {
                if ((a % 2) == 0)
                    if ((b % 2) != 0)
                        row.push(new Piece(Piece.Color.RED, Piece.Status.NORMAL, b, a));
                    else
                        row.push(null);
                else
                    if ((b % 2) == 0)
                        row.push(new Piece(Piece.Color.RED, Piece.Status.NORMAL, b, a));
                    else
                        row.push(null);
            }
            else if (a > (rows - 3)) {
                if ((a % 2) == 0)
                    if ((b % 2) != 0)
                        row.push(new Piece(Piece.Color.BLACK, Piece.Status.NORMAL, b, a));
                    else
                        row.push(null);
                else
                    if ((b % 2) == 0)
                        row.push(new Piece(Piece.Color.BLACK, Piece.Status.NORMAL, b, a));
                    else
                        row.push(null);
            }
            else
                row.push(null);
        }
        board.push(row);
    }

    /* Draw the game board to the canvas */
    for (a = 0; a < rows; a++) {
        var row = (canv.height / rows) * a;
        for (b = 0; b < cols; b++) {
            var col = (canv.width / cols) * b;

            if ((a % 2) == 0)
                if ((b % 2) == 0)
                    ctxt.fillStyle = evenTiles;
                else
                    ctxt.fillStyle = oddTiles;
            else
                if ((b % 2) == 0)
                    ctxt.fillStyle = oddTiles;
                else
                    ctxt.fillStyle = evenTiles;

            ctxt.fillRect(row, col, (canv.height / rows), (canv.width / cols));

            //# PROBLEMATIC CODE #
            if (board[a][b] != null) {
                var piece = board[a][b];

                if (piece.Color == Piece.Color.RED)
                    red.addEventListener("load", function () { ctxt.drawImage(red, piece.X * 100, piece.Y * 100) }, false);
                else
                    black.addEventListener("load", function () { ctxt.drawImage(black, piece.X * 100, piece.Y * 100) }, false);
            }
            //# END PROBLEMATIC CODE #
        }
    }
}

The above code produces the following which draws all the pieces on top of one another at the last image's coordinates.

result

I'm thinking that the coordinates are changing, before the image is fully drawn, thus prompting the renderer to keep re-drawing it each time the variable changes. However, on the other hand, one would think that it has ample time to fully draw an image before it's called upon a second time.

Any suggestions?

More
Hawkee   -  Dec 13, 2014

I've been considering what to do about the Projects/Scripts section and I believe the best course of action is to convert them to the new page format. Files currently hosted on Hawkee will be grandfathered in with no future support for file storage. Sites like GitHub are better suited for hosting. This will allow me to permanently shut that section down and reduce the need to keep those themes and styles up to date. Let me know if you have any thoughts of concerns on this matter.

More
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.