[SERVICE] Custom Commands Database - Request/Post Here

Status
Not open for further replies.
Re: RP Logout Command

I was working with this a little bit, seems like some people can never get it to work, but after I realised, it's just a simple command.

What does this command do?

Allows it when you type :logout, your user will disconnect after 15 seconds. Basically your set on a timer.

Problems with this command..

- You can't move or talk after command has been triggered.
- Doesn't work when you click the "X" of the client.
- Doesn't have anything to disable the trigger once it has begun.

Basically, some work can be done on it, and I think somebody with more knowledge can do this.

This command was coded from scratch, please thank me for this release and I hope it's useful! :)

Code:
#region :logout
                    case "logout":
                        {
                            
                            Room.sendShout(roomUser, "--- Auto-Logoff in 15 seconds ---");
                            Thread.Sleep(15000);
                            Room.removeUser(roomUser.roomUID, false, "");
                            Disconnect();
                            
                            break;
                        }
                    #endregion
This goes with Rasta's Emu. Holograph dissi's edit.

The "Thanks" button helps a lot to. ;)

I have an error after 15 seconds:

321olos - [SERVICE] Custom Commands Database - Request/Post Here - RaGEZONE Forums


Translated phrase: Object reference not set to an instance of an object (approximatively..)
 
Re: [SERVICE] Making Holograph Emulator commands [SERVICE]

im gunna make a list of commands that i think should be made for uber servers some may be made but called different names if so please tell me the links to download thanks
1) :passover allows you to pass through any user and walk over any furni and the little black gab between parts of floor in rooms you can walk over that
2) :givecredits username amount gives the amout of credits you choose to the user u choose
3) :godcommands has 5 god commands which are :godspeed walk to times faster :godfly makes u fly over anyones head but not furni :godland stops :godfly :godwarp x y teleports u to the cords u put in using x and y cords or you can click a square and teleport there :godrights gives you the same amout of rights the room owner does.
4):colorred user changes figure to hd-180-59
5) :colorblue user changes figure to hd-180-60
6) :coloryellow user changes figure to hd-180-50
7) :colorpink user changes figure to hd-180-54
8) :colorblack user changes figure to hd-180-601
9) :colorpurple user changes figure to hd-180-56
10) :colorgreen user changes figure yo hd-180-101
11) :devil all changes all users figure to hd-180-59
12) :nude on nude off changes figure to hd-180-59 nude of
turns off and puts last clothes you had on back on
13) :pull user pulls a user to you from 1 square away
14) :push user pushes a user one square away from you
15) :clone creates a copy of u with the number 1 added
on the end of the clones name u can make up to 5 clones
the second clone will have 2 on end of his name third clone with
a 3 on the end nd so on link that till 5th clone and also :clonedelete clonename and :clonecontroll clonename controlls that clone and the clones says what you say.

thouse are the commands i want it would be nice for them to be made and thanks if you make them :)
 
Re: [SERVICE] Making Holograph Emulator commands [SERVICE]

im gunna make a list of commands that i think should be made for uber servers some may be made but called different names if so please tell me the links to download thanks
1) :passover allows you to pass through any user and walk over any furni and the little black gab between parts of floor in rooms you can walk over that
2) :givecredits username amount gives the amout of credits you choose to the user u choose
3) :godcommands has 5 god commands which are :godspeed walk to times faster :godfly makes u fly over anyones head but not furni :godland stops :godfly :godwarp x y teleports u to the cords u put in using x and y cords or you can click a square and teleport there :godrights gives you the same amout of rights the room owner does.
4):colorred user changes figure to hd-180-59
5) :colorblue user changes figure to hd-180-60
6) :coloryellow user changes figure to hd-180-50
7) :colorpink user changes figure to hd-180-54
8) :colorblack user changes figure to hd-180-601
9) :colorpurple user changes figure to hd-180-56
10) :colorgreen user changes figure yo hd-180-101
11) :devil all changes all users figure to hd-180-59
12) :nude on nude off changes figure to hd-180-59 nude of
turns off and puts last clothes you had on back on
13) :pull user pulls a user to you from 1 square away
14) :push user pushes a user one square away from you
15) :clone creates a copy of u with the number 1 added
on the end of the clones name u can make up to 5 clones
the second clone will have 2 on end of his name third clone with
a 3 on the end nd so on link that till 5th clone and also :clonedelete clonename and :clonecontroll clonename controlls that clone and the clones says what you say.

thouse are the commands i want it would be nice for them to be made and thanks if you make them :)
Sorry to burst your bubble but I highly doubt anyone will do those commands for you.
 
Re: [SERVICE] Making Holograph Emulator commands [SERVICE]

Sorry to burst your bubble but I highly doubt anyone will do those commands for you.
lol i know they wont all be done i am just hoping for some i just put as many as i could because more can be done if people want to lol
 
Re: [SERVICE] Making Holograph Emulator commands [SERVICE]

So awesome if you can do this:

:deleteitem (nameuser) (itemid)

that would be nice :D

-kingstupid
 
Re: [SERVICE] Making Holograph Emulator commands [SERVICE]

:hotelalert <message>
Dissi's TDbP
Sends a hotel alert to all users online with message.
and

:poof
Updates characters looks

and

:arrest
Bans a user for 1hour
 
Re: [SERVICE] Making Holograph Emulator commands [SERVICE]

Since Im Free From My Working On My Emulator Is There Any Commands You Guys Need

---------- Post added at 04:59 PM ---------- Previous post was at 04:47 PM ----------

RP Poof
Code:
#region :poof
                    case "poof": // Refreshes users look
                        {
                            int isWorking;
                            int isDead;
                            int isArrested;
                            using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
                            {
                                isWorking = dbClient.getInt("SELECT working FROM users WHERE name = '" + _Username + "'");
                                isDead = dbClient.getInt("SELECT dead FROM users WHERE name = '" + _Username + "'");
                                isArrested = dbClient.getInt("SELECT arrested FROM users WHERE name = '" + _Username + "'");
                            }
                            if (isWorking == 0 && isDead == 0 && isArrested == 0)
                            {
                                refreshAppearance(true, true, true);
                            }
                            break;
                        }
                    #endregion
Code:
#region :hotelalert
                    case "hotelalert": // Broadcoasts a message to all virtual users (hotel alert)
                        {
                            if (rankManager.containsRight(_Rank, "fuse_administrator_access", userID) == false)
                                return false;
                            else
                            {
                                string Message = Text.Substring(3);
                                userManager.sendData("BK" + stringManager.getString("scommand_hotelalert") + "\r" + Message);
                                staffManager.addStaffMessage("halert", userID, 0, Message, "");
                            }
                        }
                        break; 
                    #endregion

Arrest

Code:
#region :arrest <user> <time>
                    case "arrest":
                        {
                            virtualUser User = userManager.getUser(args[1]);
                            using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
                            {
                                int isworking = dbClient.getInt("SELECT working FROM users WHERE name = '" + _Username + "'");
                                if (isworking == 1)
                                {
                                    {
                                        int me_secure_id = dbClient.getInt("SELECT secure_id FROM users WHERE name = '" + _Username + "'");
                                        int canarrest = dbClient.getInt("SELECT arrest FROM jobs_ranks WHERE id = '" + me_secure_id + "'");

                                        if (User._roomID == _roomID && (roomUser.Y == User.roomUser.Y && roomUser.X == User.roomUser.X) || (roomUser.Y + 1 == User.roomUser.Y && roomUser.X == User.roomUser.X) || (roomUser.Y - 1 == User.roomUser.Y && roomUser.X == User.roomUser.X) || (roomUser.Y == User.roomUser.Y && roomUser.X + 1 == User.roomUser.X) || (roomUser.Y == User.roomUser.Y && roomUser.X - 1 == User.roomUser.X))
                                        {
                                            if (canarrest == 1)
                                            {
                                                if (User.roomUser.walkLock == false)
                                                {
                                                    Room.sendSaying(roomUser, "*attempts to arrest " + User._Username + ", but notices that he is not cuffed*");
                                                }
                                                else
                                                {
                                                    int time = int.Parse(args[2]);
                                                    if (time > 60 || time < 1)
                                                    {
                                                        sendData("BK" + "What exactly are you trying to do?");
                                                    }
                                                    else
                                                    {
                                                        dbClient.runQuery("UPDATE users SET arrested = '1', arrests = arrests + '1', time_jail = '" + args[2] + "' WHERE name = '" + User._Username + "'");

                                                        int fine = time * 5;
                                                        dbClient.runQuery("UPDATE users SET credits = credits - '" + fine + "' WHERE name = '" + User._Username + "'");
                                                        refreshValueables(true, false);

                                                        Room.sendSaying(roomUser, "*arrests " + User._Username + " for " + time + " minutes, and fines them " + fine + " credits*");

                                                        User.sendData("D^" + "H" + Encoding.encodeVL64(150));
                                                        User.sendData("BK" + "You have been arrested by " + _Username + ", and fined " + fine + " credits!");

                                                        ThreadStart jailStarter = new ThreadStart(User.jailTime);
                                                        User.jailLooper = new Thread(jailStarter);
                                                        User.jailLooper.Priority = ThreadPriority.Lowest;
                                                        User.jailLooper.Start();
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                            break;
                        }
                    #endregion


Use Rastas DB Well Just Use His DB :P

Credits: Rasta Me For Hotelalet

---------- Post added at 05:02 PM ---------- Previous post was at 04:59 PM ----------

Code:
#region :colour <colour>
                    case "colour red":
                        {
                            virtualUser User = userManager.getUser(args[1]);
                            User._Figure = "hd-180-59";
                            refreshAppearance(false, false, true);
                            break;
                        }
                    case "colour blue":
                        {
                            virtualUser User = userManager.getUser(args[1]);
                            User._Figure = "hd-180-60";
                            refreshAppearance(false, false, true);
                            break;
                        }
                    case "colour yellow":
                        {
                            virtualUser User = userManager.getUser(args[1]);
                            User._Figure = "hd-180-50";
                            refreshAppearance(false, false, true);
                            break;
                        }
                    case "colour pink":
                        {
                            virtualUser User = userManager.getUser(args[1]);
                            User._Figure = "hd-180-54";
                            refreshAppearance(false, false, true);
                            break;
                        }
                    case "colour black":
                        {
                            virtualUser User = userManager.getUser(args[1]);
                            _Figure = "hd-180-601";
                            refreshAppearance(false, false, true);
                            break;
                        }
                    case "colour purple":
                        {
                            virtualUser User = userManager.getUser(args[1]);
                            User._Figure = "hd-180-56";
                            refreshAppearance(false, false, true);
                            break;
                        }
                    case "colour green":
                        {
                            virtualUser User = userManager.getUser(args[1]);
                            User._Figure = "hd-180-101";
                            refreshAppearance(false, false, true);
                            break;
                        }
                    case "restore": //Retoues Normal Colour
                        refreshAppearance(true, true, true);
                        refreshBadges();
                        break;
                    #endregion
Credits Just And Me Well Just Changed A Bit
 
Re: [SERVICE] Making Holograph Emulator commands [SERVICE]

hmm, could anyone try and code a region with clothes commands as so:

:hat ID
:torso ID
:trousers ID
:feet ID

or something like that, where when the ID is input they get this. I'd do it using the change appearance but I don't know how to just change part of the apperance if someone could tell me that or code this it'd be smashing.

Thanks :)
 
Re: [SERVICE] Making Holograph Emulator commands [SERVICE]

Since Im Free From My Working On My Emulator Is There Any Commands You Guys Need

---------- Post added at 04:59 PM ---------- Previous post was at 04:47 PM ----------

RP Poof
Code:
#region :poof
                    case "poof": // Refreshes users look
                        {
                            int isWorking;
                            int isDead;
                            int isArrested;
                            using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
                            {
                                isWorking = dbClient.getInt("SELECT working FROM users WHERE name = '" + _Username + "'");
                                isDead = dbClient.getInt("SELECT dead FROM users WHERE name = '" + _Username + "'");
                                isArrested = dbClient.getInt("SELECT arrested FROM users WHERE name = '" + _Username + "'");
                            }
                            if (isWorking == 0 && isDead == 0 && isArrested == 0)
                            {
                                refreshAppearance(true, true, true);
                            }
                            break;
                        }
                    #endregion
Code:
#region :hotelalert
                    case "hotelalert": // Broadcoasts a message to all virtual users (hotel alert)
                        {
                            if (rankManager.containsRight(_Rank, "fuse_administrator_access", userID) == false)
                                return false;
                            else
                            {
                                string Message = Text.Substring(3);
                                userManager.sendData("BK" + stringManager.getString("scommand_hotelalert") + "\r" + Message);
                                staffManager.addStaffMessage("halert", userID, 0, Message, "");
                            }
                        }
                        break; 
                    #endregion

Arrest

Code:
#region :arrest <user> <time>
                    case "arrest":
                        {
                            virtualUser User = userManager.getUser(args[1]);
                            using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
                            {
                                int isworking = dbClient.getInt("SELECT working FROM users WHERE name = '" + _Username + "'");
                                if (isworking == 1)
                                {
                                    {
                                        int me_secure_id = dbClient.getInt("SELECT secure_id FROM users WHERE name = '" + _Username + "'");
                                        int canarrest = dbClient.getInt("SELECT arrest FROM jobs_ranks WHERE id = '" + me_secure_id + "'");

                                        if (User._roomID == _roomID && (roomUser.Y == User.roomUser.Y && roomUser.X == User.roomUser.X) || (roomUser.Y + 1 == User.roomUser.Y && roomUser.X == User.roomUser.X) || (roomUser.Y - 1 == User.roomUser.Y && roomUser.X == User.roomUser.X) || (roomUser.Y == User.roomUser.Y && roomUser.X + 1 == User.roomUser.X) || (roomUser.Y == User.roomUser.Y && roomUser.X - 1 == User.roomUser.X))
                                        {
                                            if (canarrest == 1)
                                            {
                                                if (User.roomUser.walkLock == false)
                                                {
                                                    Room.sendSaying(roomUser, "*attempts to arrest " + User._Username + ", but notices that he is not cuffed*");
                                                }
                                                else
                                                {
                                                    int time = int.Parse(args[2]);
                                                    if (time > 60 || time < 1)
                                                    {
                                                        sendData("BK" + "What exactly are you trying to do?");
                                                    }
                                                    else
                                                    {
                                                        dbClient.runQuery("UPDATE users SET arrested = '1', arrests = arrests + '1', time_jail = '" + args[2] + "' WHERE name = '" + User._Username + "'");

                                                        int fine = time * 5;
                                                        dbClient.runQuery("UPDATE users SET credits = credits - '" + fine + "' WHERE name = '" + User._Username + "'");
                                                        refreshValueables(true, false);

                                                        Room.sendSaying(roomUser, "*arrests " + User._Username + " for " + time + " minutes, and fines them " + fine + " credits*");

                                                        User.sendData("D^" + "H" + Encoding.encodeVL64(150));
                                                        User.sendData("BK" + "You have been arrested by " + _Username + ", and fined " + fine + " credits!");

                                                        ThreadStart jailStarter = new ThreadStart(User.jailTime);
                                                        User.jailLooper = new Thread(jailStarter);
                                                        User.jailLooper.Priority = ThreadPriority.Lowest;
                                                        User.jailLooper.Start();
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                            break;
                        }
                    #endregion


Use Rastas DB Well Just Use His DB :P

Credits: Rasta Me For Hotelalet

---------- Post added at 05:02 PM ---------- Previous post was at 04:59 PM ----------

Code:
#region :colour <colour>
                    case "colour red":
                        {
                            virtualUser User = userManager.getUser(args[1]);
                            User._Figure = "hd-180-59";
                            refreshAppearance(false, false, true);
                            break;
                        }
                    case "colour blue":
                        {
                            virtualUser User = userManager.getUser(args[1]);
                            User._Figure = "hd-180-60";
                            refreshAppearance(false, false, true);
                            break;
                        }
                    case "colour yellow":
                        {
                            virtualUser User = userManager.getUser(args[1]);
                            User._Figure = "hd-180-50";
                            refreshAppearance(false, false, true);
                            break;
                        }
                    case "colour pink":
                        {
                            virtualUser User = userManager.getUser(args[1]);
                            User._Figure = "hd-180-54";
                            refreshAppearance(false, false, true);
                            break;
                        }
                    case "colour black":
                        {
                            virtualUser User = userManager.getUser(args[1]);
                            _Figure = "hd-180-601";
                            refreshAppearance(false, false, true);
                            break;
                        }
                    case "colour purple":
                        {
                            virtualUser User = userManager.getUser(args[1]);
                            User._Figure = "hd-180-56";
                            refreshAppearance(false, false, true);
                            break;
                        }
                    case "colour green":
                        {
                            virtualUser User = userManager.getUser(args[1]);
                            User._Figure = "hd-180-101";
                            refreshAppearance(false, false, true);
                            break;
                        }
                    case "restore": //Retoues Normal Colour
                        refreshAppearance(true, true, true);
                        refreshBadges();
                        break;
                    #endregion
Credits Just And Me Well Just Changed A Bit

I need that fro Dissi's edit not RP
 
Re: [SERVICE] Making Holograph Emulator commands [SERVICE]

That Is For Dissi Since You Asked For Arrest I Thought you Need It For A RP Plus They Already In Dissis Expect Arrest But One I Gave You Was RP
 
Last edited:
Re: [SERVICE] Making Holograph Emulator commands [SERVICE]

um i cant find :override alows player to passthrough other players and walk other anystanding furni

---------- Post added at 08:42 PM ---------- Previous post was at 08:37 PM ----------

Since Im Free From My Working On My Emulator Is There Any Commands You Guys Need

---------- Post added at 04:59 PM ---------- Previous post was at 04:47 PM ----------

RP Poof
Code:
#region :poof
                    case "poof": // Refreshes users look
                        {
                            int isWorking;
                            int isDead;
                            int isArrested;
                            using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
                            {
                                isWorking = dbClient.getInt("SELECT working FROM users WHERE name = '" + _Username + "'");
                                isDead = dbClient.getInt("SELECT dead FROM users WHERE name = '" + _Username + "'");
                                isArrested = dbClient.getInt("SELECT arrested FROM users WHERE name = '" + _Username + "'");
                            }
                            if (isWorking == 0 && isDead == 0 && isArrested == 0)
                            {
                                refreshAppearance(true, true, true);
                            }
                            break;
                        }
                    #endregion
Code:
#region :hotelalert
                    case "hotelalert": // Broadcoasts a message to all virtual users (hotel alert)
                        {
                            if (rankManager.containsRight(_Rank, "fuse_administrator_access", userID) == false)
                                return false;
                            else
                            {
                                string Message = Text.Substring(3);
                                userManager.sendData("BK" + stringManager.getString("scommand_hotelalert") + "\r" + Message);
                                staffManager.addStaffMessage("halert", userID, 0, Message, "");
                            }
                        }
                        break; 
                    #endregion

Arrest

Code:
#region :arrest <user> <time>
                    case "arrest":
                        {
                            virtualUser User = userManager.getUser(args[1]);
                            using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
                            {
                                int isworking = dbClient.getInt("SELECT working FROM users WHERE name = '" + _Username + "'");
                                if (isworking == 1)
                                {
                                    {
                                        int me_secure_id = dbClient.getInt("SELECT secure_id FROM users WHERE name = '" + _Username + "'");
                                        int canarrest = dbClient.getInt("SELECT arrest FROM jobs_ranks WHERE id = '" + me_secure_id + "'");

                                        if (User._roomID == _roomID && (roomUser.Y == User.roomUser.Y && roomUser.X == User.roomUser.X) || (roomUser.Y + 1 == User.roomUser.Y && roomUser.X == User.roomUser.X) || (roomUser.Y - 1 == User.roomUser.Y && roomUser.X == User.roomUser.X) || (roomUser.Y == User.roomUser.Y && roomUser.X + 1 == User.roomUser.X) || (roomUser.Y == User.roomUser.Y && roomUser.X - 1 == User.roomUser.X))
                                        {
                                            if (canarrest == 1)
                                            {
                                                if (User.roomUser.walkLock == false)
                                                {
                                                    Room.sendSaying(roomUser, "*attempts to arrest " + User._Username + ", but notices that he is not cuffed*");
                                                }
                                                else
                                                {
                                                    int time = int.Parse(args[2]);
                                                    if (time > 60 || time < 1)
                                                    {
                                                        sendData("BK" + "What exactly are you trying to do?");
                                                    }
                                                    else
                                                    {
                                                        dbClient.runQuery("UPDATE users SET arrested = '1', arrests = arrests + '1', time_jail = '" + args[2] + "' WHERE name = '" + User._Username + "'");

                                                        int fine = time * 5;
                                                        dbClient.runQuery("UPDATE users SET credits = credits - '" + fine + "' WHERE name = '" + User._Username + "'");
                                                        refreshValueables(true, false);

                                                        Room.sendSaying(roomUser, "*arrests " + User._Username + " for " + time + " minutes, and fines them " + fine + " credits*");

                                                        User.sendData("D^" + "H" + Encoding.encodeVL64(150));
                                                        User.sendData("BK" + "You have been arrested by " + _Username + ", and fined " + fine + " credits!");

                                                        ThreadStart jailStarter = new ThreadStart(User.jailTime);
                                                        User.jailLooper = new Thread(jailStarter);
                                                        User.jailLooper.Priority = ThreadPriority.Lowest;
                                                        User.jailLooper.Start();
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                            break;
                        }
                    #endregion


Use Rastas DB Well Just Use His DB :P

Credits: Rasta Me For Hotelalet

---------- Post added at 05:02 PM ---------- Previous post was at 04:59 PM ----------

Code:
#region :colour <colour>
                    case "colour red":
                        {
                            virtualUser User = userManager.getUser(args[1]);
                            User._Figure = "hd-180-59";
                            refreshAppearance(false, false, true);
                            break;
                        }
                    case "colour blue":
                        {
                            virtualUser User = userManager.getUser(args[1]);
                            User._Figure = "hd-180-60";
                            refreshAppearance(false, false, true);
                            break;
                        }
                    case "colour yellow":
                        {
                            virtualUser User = userManager.getUser(args[1]);
                            User._Figure = "hd-180-50";
                            refreshAppearance(false, false, true);
                            break;
                        }
                    case "colour pink":
                        {
                            virtualUser User = userManager.getUser(args[1]);
                            User._Figure = "hd-180-54";
                            refreshAppearance(false, false, true);
                            break;
                        }
                    case "colour black":
                        {
                            virtualUser User = userManager.getUser(args[1]);
                            _Figure = "hd-180-601";
                            refreshAppearance(false, false, true);
                            break;
                        }
                    case "colour purple":
                        {
                            virtualUser User = userManager.getUser(args[1]);
                            User._Figure = "hd-180-56";
                            refreshAppearance(false, false, true);
                            break;
                        }
                    case "colour green":
                        {
                            virtualUser User = userManager.getUser(args[1]);
                            User._Figure = "hd-180-101";
                            refreshAppearance(false, false, true);
                            break;
                        }
                    case "restore": //Retoues Normal Colour
                        refreshAppearance(true, true, true);
                        refreshBadges();
                        break;
                    #endregion
Credits Just And Me Well Just Changed A Bit

cheers for color command m8
 
Re: [SERVICE] Making Holograph Emulator commands [SERVICE]

Um thanks for telling us that you will be helping people code commands its really not a tut unless your gonna tell us how to code commands.
 
Re: [SERVICE] Making Holograph Emulator commands [SERVICE]

Erm Well Saves Time Im Keeping This Active
I Will Soon Release My RP Emulator Based Of Handyandys Edit
Ontopic: OK Ready For Some Requests

---------- Post added at 10:44 PM ---------- Previous post was at 10:43 PM ----------

I Dunno About the Overide Command Will Try To Code Later Ps For Uber Dissi Etc
 
Re: [SERVICE] Making Holograph Emulator commands [SERVICE]

Hello, I wanted the command to add the pixels UBEREMU
Could someone help me? someone who has the code?

Thank you Thank you in advance!
-Marlon Colhado

I believe there is one, its just :pixels name amount, Worked for me anyways, but if you don't have it then here,

PHP:
                    case "pixels":
                        if (Session.GetHabbo().Rank >= 4)
                        {
                            TargetClient = UberEnvironment.GetGame().GetClientManager().GetClientByHabbo(Params[1]);
                            if (TargetClient != null)
                            {
                                int creditsToAdd;
                                if (int.TryParse(Params[2], out creditsToAdd))
                                {
                                    TargetClient.GetHabbo().ActivityPoints = TargetClient.GetHabbo().ActivityPoints + creditsToAdd;
                                    TargetClient.GetHabbo().UpdateActivityPointsBalance(true);
                                    TargetClient.SendNotif(Session.GetHabbo().Username + " has awarded you " + creditsToAdd.ToString() + " Pixels!");
                                    Session.SendNotif("Pixels balance updated successfully.");
                                    return true;
                                }
                                else
                                {
                                    Session.SendNotif("Please send a valid amount of pixels.");
                                    return false;
                                }
                            }
                            else
                            {
                                Session.SendNotif("User could not be found.");
                                return false;
                            }
                        }
                        return false;

Enjoy.
 
Status
Not open for further replies.
Back