Results 1 to 9 of 9
  1. #1
    Mr_Guy's Avatar
    Join Date
    Nov 2015
    Gender
    male
    Location
    Oregon, USA
    Posts
    66
    Reputation
    10
    Thanks
    52
    My Mood
    Cheeky

    Thumbs up [K Relay] Simple countdown

    I made a simple countdown timer. I barely know C# so I bullshit my way through this, but it works (for the most part).

    You can only count down from numbers 1-15, because more that 15 and you crash for some reason. I'll fix this later.

    Here are some scans:
    https://www.virustotal.com/en/file/3...is/1479720727/
    https://virusscan.jotti.org/en-US/fi...job/p85ggvhc3c

    And here's a screenshot:




    <b>Downloadable Files</b> Downloadable Files
    Last edited by Ahlwong; 11-21-2016 at 02:32 AM.

  2. The Following 3 Users Say Thank You to Mr_Guy For This Useful Post:

    andreis1 (12-26-2016),Autorefresh (11-21-2016),WRTGw4erygrgreg (11-21-2016)

  3. #2
    wctops's Avatar
    Join Date
    Nov 2015
    Gender
    male
    Posts
    92
    Reputation
    10
    Thanks
    15
    My Mood
    Amazed
    Don't really see its usefulness, but it's a good starter project I suppose.

  4. #3
    Mr_Guy's Avatar
    Join Date
    Nov 2015
    Gender
    male
    Location
    Oregon, USA
    Posts
    66
    Reputation
    10
    Thanks
    52
    My Mood
    Cheeky
    It's useful in it's own unique way (and not many people will realize why)

    I accidentally found something that people thought was patched by making a super simple timer

    No, it's not a dupe.

  5. #4
    Ahl's Avatar
    Join Date
    Dec 2012
    Gender
    male
    Location
    /modcp
    Posts
    16,599
    Reputation
    3219
    Thanks
    5,383
    My Mood
    Angelic
    @ @Mr_Guy you need to upload virus scans of the zip file and not the dll

    This is just a reminder. I've just done it for you

    Approved, post back results
    Last edited by Ahlwong; 11-21-2016 at 02:35 AM.
    News Force Head Editor from 09/14/2018 - 03/02/2020
    Publicist from 11/23/2017 - 06/07/2019
    Global Moderator since 09/24/2017
    Minion+ from 04/16/2017 - 09/24/2017
    Market Place Minion from 04/16/2017 - 09/24/2017
    Minecraft Minion from 02/23/2017 - 09/24/2017
    Realm of the Mad God Minion from 11/06/2016 - 09/24/2017

    Middleman from 09/14/2016 - 09/24/2017
    News Force Editor from 08/23/2016 - 09/14/2018
    News Force (Section of the Week) from 03/21/2016 - 07/17/2017
    News Force (User News) from 10/18/2015 - 09/14/2018

    Donator since 03/16/2015
    Realm of the Mad God Editor from 05/20/2014 - 07/08/2014
    Member since 12/23/2012


    Rep Power: 82

  6. #5
    Plus22's Avatar
    Join Date
    Nov 2013
    Gender
    male
    Posts
    527
    Reputation
    53
    Thanks
    103
    My Mood
    Inspired
    Quote Originally Posted by Mr_Guy View Post
    I made a simple countdown timer. I barely know C# so I bullshit my way through this, but it works (for the most part).

    You can only count down from numbers 1-15, because more that 15 and you crash for some reason. I'll fix this later.
    That was surprisingly funny to read
    just stop. come with me son.

  7. #6
    The 7th Hokage's Avatar
    Join Date
    Feb 2015
    Gender
    male
    Location
    Konoha
    Posts
    2,424
    Reputation
    264
    Thanks
    1,324
    My Mood
    Chatty
    Thanks for releasing.

  8. #7
    New's Avatar
    Join Date
    Jun 2014
    Gender
    male
    Location
    Location:
    Posts
    2,605
    Reputation
    386
    Thanks
    4,708
    My Mood
    Angelic
    Quote Originally Posted by Mr_Guy View Post
    You can only count down from numbers 1-15, because more that 15 and you crash for some reason. I'll fix this later.
    Found the problem



    The method "countDown" is not called thru a thread, so thread.sleep freezes the GUI thread - aka the KRelay thread, no wonder it crashes.

    Instead, use tasks, delay with Task.Delay:
    Code:
            private async void countDown(Client client, int arg)
            {
                int num;
                for (int i = arg; i >= 0; i = num - 1)
                {
                    PlayerTextPacket playerTextPacket = (PlayerTextPacket)Packet.Create(PacketType.PLAYERTEXT);
                    playerTextPacket.Text = i + " ";
                    client.SendToServer(playerTextPacket);
                    await Task.Delay(1000);
                    num = i;
                }
            }
    Just change the method with that one and it should no longer crash.

    Generally you shouldn't use thread.sleep, outside a thread.
    Last edited by New; 11-21-2016 at 12:54 PM.
    New

    Current Project:
    SimpleExaltHack

    Outdated stuff I made in the past:
    Famebot
    Clientless tradebot
    RotMG ping checker
    Zautonexus crack

  9. The Following User Says Thank You to New For This Useful Post:

    [MPGH]Ahl (11-21-2016)

  10. #8
    Autorefresh's Avatar
    Join Date
    Aug 2014
    Gender
    male
    Location
    Belgrade
    Posts
    78
    Reputation
    10
    Thanks
    913
    My Mood
    Yeehaw
    commands? //10

  11. #9
    WRTGw4erygrgreg's Avatar
    Join Date
    Nov 2013
    Gender
    male
    Location
    Under the Sea
    Posts
    417
    Reputation
    44
    Thanks
    148
    It's actually so funny that you made this the same day I learned loops in my cs class, I can do this too now !

Similar Threads

  1. [RELEASE] Simple Weapon Hack
    By Naeron in forum WarRock - International Hacks
    Replies: 51
    Last Post: 06-05-2007, 07:17 PM
  2. Simple question
    By SoulRemover in forum WarRock - International Hacks
    Replies: 1
    Last Post: 04-22-2007, 09:42 AM
  3. Simple Sig Help
    By Gourav2122 in forum Art & Graphic Design
    Replies: 1
    Last Post: 12-11-2006, 06:44 PM
  4. My last try. :P Simple as everything.
    By SadisticGrin in forum Art & Graphic Design
    Replies: 15
    Last Post: 07-30-2006, 06:09 AM
  5. Simple Reflective Text
    By Chronologix in forum Tutorials
    Replies: 4
    Last Post: 05-20-2006, 05:56 AM