RevolutionX [V26/Plugin/RP]

Status
Not open for further replies.

Zak

Posting Freak
Mar 12, 2011
847
453
What is RevolutionX?
RevolutionX is a plugin made for Xoa to handle it querys better for it's RP fields and tables.

What does RevoultionX stand for?
RevolutionX stands for RevolutionXoa.

Contents of the RevoltionX folder?
DataCacher Folder, Contains Cacher.cs
DataRouter Folder, Contains Router.cs
SessionRouter Folder, Contains SessionRouter.cs

How to instal?
Add the RevolutionX folder to Source folder of your Xoa emu.
Replace your current virtualUser with the modified one.
Open up Visual Studio, include the RevolutionX folder by right Clicking it and Selecting "Include in Project"
And then Debug! And you done and ready to go!

What did i code this?
I did because i was sick of seeing people making rp's and not being able to reach 20 users without the server crashing.

How long did it take?
It only took half an hour. It is not complete but it does the job perfect.

Example of the plugin doing the Reset data in the pre-login

Code:
//Reset Data                                SessionRouter.CachedComposer().ComposeCachedSession().ComposeStableResetData(userID);

TODO:
Add more feature for plugin.
Recode the One way gates using Plugin.
Code the Room entry badges using the Plugin.

This product currently is not noob-friendly.

Download:

Stay on topic. Don't flame. Don't ask for help on anything besides this Plugin.

Happy Holidays. Merry Christmas.

Cheers,
Zak
 

iDeliriouz

Teh Trollface Lulz
Dec 2, 2011
145
28
I love it, will be using it if I want a habbo roleplay. They're the best rps if they're oldschool :)
 

Ept

Many men wish death upon me.
Jun 16, 2011
591
276
This is awesome, Zak! Thanks for releasing, I'm sure a-lot of RPs' will use this!
 

Ari

Member
Sep 29, 2010
320
48
Nice this is an a lot better method than I'm using currently but I've quit habbo anyway
 

iDevon

Solo Dolo
Dec 27, 2010
404
49
Download link doesn't work.
1cf96f7742014b67bd09a23.png
 

Zak

Posting Freak
Mar 12, 2011
847
453
Posts merged.
Works fine?



Sec Uploading to Sharefast.net with the new Cachebuilder too.
 

Zak

Posting Freak
Mar 12, 2011
847
453
Example of it being used.
Code:
         case "jailtimer":
                        {
                            int Arrested = SessionRouter.CachedComposer().ComposeCachedBuilder().AppendCache(userID,
                                                                                                             Arrested,
                                                                                                             "arrested");
                            if (Arrested == 1 && jailLooper == null)
                            {
                                var jailStarter = new ThreadStart(jailTime);
                                jailLooper = new Thread(jailStarter);
                                jailLooper.Priority = ThreadPriority.Lowest;
                                jailLooper.Start();
                            }
                            break;
                        }
Cache Builder v1

Insert Into Router.cs

Variable
Code:
private Builder _cacheBuilder;
Method
Code:
        public Builder ComposeCachedBuilder()
        {
            return _cacheBuilder;
        }
Builder.cs

Code:
namespace Holo.Source.RevoultionPlugins.CacheBuilder
{
    public class Builder
    {
        /// <summary>
        /// Define A Variable Stabely
        /// </summary>
        /// <param name="sessionId">userID goes here.</param>
        /// <param name="sVariable">Your variables goes here.</param>
        /// <param name="sColumn">The column you want from users table.</param>
        /// <param name="iValue">Value that you wanna set for the column</param>
        public string AppendCache(int sessionId, string sVariable, string sColumn, int iValue)
        {
            //Get Client To Database.
            var dataClient = Eucalypt.dbManager.GetClient();
            //Define dataRow And Get Information From Users Table Using GetRow Method Of The Client And Get The Info Using The User Id.
            var dataRow = dataClient.getRow("SElECT * FROM users WHERE id = '" + sessionId + "'");

            // Get Column And Set It's Value
            if (dataRow != null) sVariable = (string) (dataRow[sColumn] = iValue);

            return sVariable;
        }

        /// <summary>
        /// Get Column
        /// </summary>
        /// <param name="sessionId">userID</param>
        /// <param name="sVariable">Target Variable</param>
        /// <param name="sColumn">Column</param>
        /// <returns></returns>
        public string AppendCache(int sessionId, string sVariable, string sColumn)
        {
            //Get Client To Database.
            var dataClient = Eucalypt.dbManager.GetClient();
            //Define dataRow And Get Information From Users Table Using GetRow Method Of The Client And Get The Info Using The User Id.
            var dataRow = dataClient.getRow("SElECT * FROM users WHERE id = '" + sessionId + "'");

            // Get Column And Set It's Value
            if (dataRow != null) sVariable = (string)(dataRow[sColumn]);

            return sVariable;
        }

        /// <summary>
        /// Define A Variable Stabely
        /// </summary>
        /// <param name="sessionId">userID goes here.</param>
        /// <param name="iVariable">Your variables goes here.</param>
        /// <param name="sColumn">The column you want from users table.</param>
        /// <param name="iValue">Value that you wanna set for the column</param>
        public int AppendCache(int sessionId, int iVariable, string sColumn, int iValue)
        {
            //Get Client To Database.
            var dataClient = Eucalypt.dbManager.GetClient();
            //Define dataRow And Get Information From Users Table Using GetRow Method Of The Client And Get The Info Using The User Id.
            var dataRow = dataClient.getRow("SElECT * FROM users WHERE id = '" + sessionId + "'");

            // Get Column And Set It's Value
            if (dataRow != null) iVariable = (int)(dataRow[sColumn] = iValue);

            return iVariable;
        }

        /// <summary>
        /// Get Column
        /// </summary>
        /// <param name="sessionId">userID</param>
        /// <param name="iVariable">Target Variable</param>
        /// <param name="sColumn">Column</param>
        /// <returns></returns>
        public int AppendCache(int sessionId, int iVariable, string sColumn)
        {
            //Get Client To Database.
            var dataClient = Eucalypt.dbManager.GetClient();
            //Define dataRow And Get Information From Users Table Using GetRow Method Of The Client And Get The Info Using The User Id.
            var dataRow = dataClient.getRow("SElECT * FROM users WHERE id = '" + sessionId + "'");

            // Get Column And Set It's Value
            if (dataRow != null) iVariable = (int)(dataRow[sColumn]);

            return iVariable;
        }
    }
}

This is a great addon RevolutionX plugin as it allows users to make there own features more stable.

Files Included in download link.

Link:
[Sharefast was taking the piss to upload so i uploaded on Sendspace]
 

Cablink

http://www.vroleplay.net - join now!
Feb 4, 2011
382
27
Thanks for this, my roleplay hotel will be using this!

I get these errors:
 

Zak

Posting Freak
Mar 12, 2011
847
453
Oh this was for Xoa emulator.

But give me the whole of the code for each error.

And i'll change it for you.
 
Status
Not open for further replies.

Users who are viewing this thread

Top