Jump to content

Recommended Posts

Posted

Put this Code in L2PcInstance.java

 

private static final Random _rnd = new Random();
private int _animateTitle = 0;
private int counter = 0;
private String titles[] = { "00FFCC", "CCFF00", "FF00CC", "00CCFF", "000000", "112368" };
List<Integer> repeat = new FastList<Integer>();
Thread thr;
private int index;

public void setAnimTitle(int status)
{
        _animateTitle = status;
}

public int getAnimTitle()
{
        return _animateTitle;
}

public void updTitle(L2PcInstance player)
{
        player.setAnimTitle(1);
        
        thr = new Thread() {
                public void run()
                {
                        while (getAnimTitle() == 1)
                        {
                                if (this == null || getAnimTitle() != 1)
                                        return;
                                
                                do
                                {
                                        if (counter == titles.length - 1)
                                        {
                                                repeat.clear();
                                                counter = 0;
                                        }

                                        index = _rnd.nextInt(titles.length);
                                }
                                while (repeat.contains(index));

                                getAppearance().setTitleColor(Integer.decode("0x" + titles[index]));
                                repeat.add(index);
                                counter++;
                                broadcastUserInfo();
                                
                                try
                                {
                                        Thread.sleep(2000);
                                }
                                catch (Exception e)
                                {
                                }
                                
                        }
                }
        };
        thr.start();
}

public void stopTitle(L2PcInstance charnd)
{
        charnd.setAnimTitle(0);
        thr.stop();
}

 

and to Calling the method in EnterWorld.java add :

activeChar.updTitle(activeChar);

 

and for stop it call:

 

 activeChar.stopTitle(activeChar);

 

Author: Demon

Posted

What about a little description :)

 

anyway this is the "animation" where your colornick rotate every X seconds - and it spams your processor?

Posted

Вы не автор данного чуда, оригинальный автор - помоему Демон.

Я не знаю, кто является автором Я нашел его в моей старой ресурсов

 

What about a little description :)

 

anyway this is the "animation" where your colornick rotate every X seconds - and it spams your processor?

i used it with 300 online without anyproblem

Posted

Put this Code in L2PcInstance.java

 

private static final Random _rnd = new Random();
private int _animateTitle = 0;
private int counter = 0;
private String titles[] = { "00FFCC", "CCFF00", "FF00CC", "00CCFF", "000000", "112368" };
List<Integer> repeat = new FastList<Integer>();
Thread thr;
private int index;

public void setAnimTitle(int status)
{
        _animateTitle = status;
}

public int getAnimTitle()
{
        return _animateTitle;
}

public void updTitle(L2PcInstance player)
{
        player.setAnimTitle(1);
        
        thr = new Thread() {
                public void run()
                {
                        while (getAnimTitle() == 1)
                        {
                                if (this == null || getAnimTitle() != 1)
                                        return;
                                
                                do
                                {
                                        if (counter == titles.length - 1)
                                        {
                                                repeat.clear();
                                                counter = 0;
                                        }

                                        index = _rnd.nextInt(titles.length);
                                }
                                while (repeat.contains(index));

                                getAppearance().setTitleColor(Integer.decode("0x" + titles[index]));
                                repeat.add(index);
                                counter++;
                                broadcastUserInfo();
                                
                                try
                                {
                                        Thread.sleep(2000);
                                }
                                catch (Exception e)
                                {
                                }
                                
                        }
                }
        };
        thr.start();
}

public void stopTitle(L2PcInstance charnd)
{
        charnd.setAnimTitle(0);
        thr.stop();
}

 

and to Calling the method in EnterWorld.java add :

activeChar.updTitle(activeChar);

 

and for stop it call:

 

 activeChar.stopTitle(activeChar);

 

Author:[/color]Demon

 

 

hey, the code is nice, but it could be done on the packet directly with a simple modification, so u dont need to setThe tittle all the time, and its better to use threadpool than sleep. Anyway gj

Posted

 

hey, the code is nice, but it could be done on the packet directly with a simple modification, so u dont need to setThe tittle all the time, and its better to use threadpool than sleep. Anyway gj

yes you can add it directly to enterworld and call the method without activechar in the begining.the code is very old i found in my resources..it used to worked without any problem

Posted

yes you can add it directly to enterworld and call the method without activechar in the begining.the code is very old i found in my resources..it used to worked without any problem

 

not enterworld, user/charinfo

Guest Elfocrash
Posted

Never never NEVER use Thread.sleep(2000); in classes like L2PcInstance.

Posted

Never never NEVER use Thread.sleep(2000); in classes like L2PcInstance.

 

yes, sleep is freeze not wait

Guest
This topic is now closed to further replies.


  • Posts

    • WoW Midnight — AFK Fishing Bot v2.0     Fully rewritten. No more pixel detection. V2 is audio-only and paired with a companion addon that handles everything inside the game — one keybind does it all.     Showcase:                  What's new in v2.0 Audio-only detection. Listens for the splash. No screen scanning, no calibration, no zone tuning. It just works anywhere. One key for everything. Same keybind casts the line and loots the catch. Bound via the included BobberAssist addon. Auto-buff system. Drop your lures, teas, potions (Haranir Phial, Sanguithorn Tea, Ominous Octopus Lure, etc.) into the addon. Set a timer. The bot refreshes them automatically before each cast. Sit-and-fish mode. Optional — bot types /sit when you start. Fewer interrupts from Root Crabs and roaming mobs. Smart anti-AFK. Fires only between catches, never mid-cast. AutoDestroy addon included. Junk items deleted automatically after every catch. VB-CABLE support. Play music, Discord, YouTube with zero interference. Randomized timing — natural 50–120 ms reactions.                       Features One-key start (F6) — press and walk away Audio isolation via VB-CABLE — play music, YouTube, Discord with zero interference Configurable consumable auto-use (lures / baits / potions / teas) with per-item timers Sit-and-fish mode to avoid ambient mob aggro Anti-AFK built in — jumps every 5 minutes in stand mode, jump + re-sit in sit mode (between catches only, never mid-cast) AutoDestroy addon included — automatically deletes junk items to keep bags clean after every catch Randomized splash→loot and loot→recast delays (natural timing, 50–120 ms reaction) Works in any zone, any fishing spot No pixel detection means no zone-specific tuning — it just works        Why v2 > v1 V1 scanned your screen for the bobber. It broke when the UI changed, the camera moved, or a new zone had different visuals. V2 only listens for the splash — nothing visual to break. Plus the new addon lets a single keybind cast, loot, and use your buffs. Way less setup, way more reliable.            Safety Runs completely external. No injection, no memory reads, no file edits. Watches nothing, listens to audio, presses one key. Use at your own risk. Automation is against Blizzard's ToS.          V1 owners Free upgrade. DM me for the new build.   One-time payment, lifetime access. DM on Discord: Nythrand
    • Hi as the title says, I need a working script for anti captcha. First window appears and have to click continue, then comes up another to type the code. Tell me how much u want for help $$.    
    • Did your boss send you to post this? hahaha
    • TG Support: https://t.me/buyingproxysup | Channel: https://t.me/buyingproxycom Discord support: #buyingproxy | Server: Join the BuyingProxy Discord Server!  Create your free account here
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..