Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[SERVICE] - Coding Commands

Status
Not open for further replies.
Banned
Banned
Joined
Apr 11, 2013
Messages
48
Reaction score
10
Hey guys, I'm wanting to get better at coding, I'm pretty much good for anything. I tend to use very little MySQL in commands; but that's just so you know ;).

I'm coding commands for people, but I'm not coding any for Phoenix, Only Plus/Bfly or some sort of open source Emulator that's easily accessible.

Just write it like this E.G.

Command - What it does - :<command> <user> or something? for example;

hit - hits the user / decreases their health - :hit <username>.
 
Newbie Spellweaver
Joined
Feb 12, 2014
Messages
50
Reaction score
2
Hello !
Can you make for me :
A command for transform to a pet like dog,cat and more
for AnkkaEmulator ( Source in RG ) based in BcStorm
Sorry for my bad english i'm french
You can contact me with skype : romuald.buisson
Thank's !
 
Newbie Spellweaver
Joined
Jan 16, 2014
Messages
70
Reaction score
5
Hi,
Are you able to code commands to reload room :)reloadroom), open mod chatlog tool for room :)chatlogs) and open user-info mod tool :)userinfo X) for Ankka BCStorm Edit?


Thanks.
 
Junior Spellweaver
Joined
Oct 29, 2013
Messages
124
Reaction score
9
A command for transform to a pet like dog,cat and more
 
LETS REACH 666 POSTS?!!!!
Joined
Apr 24, 2013
Messages
573
Reaction score
53
Can u fix Invisible for like SwiftEmu (Bfly based i tink)

Or fix the Kick User so it doesnt work with user Enter's Room
 
Custom Title Activated
Loyal Member
Joined
Oct 26, 2012
Messages
2,357
Reaction score
1,086
Hi,
Are you able to code commands to reload room :)reloadroom), open mod chatlog tool for room :)chatlogs) and open user-info mod tool :)userinfo X) for Ankka BCStorm Edit?


Thanks.
Why would you want the commands for chatlog and user-info? Also it's not really possible with a command since the window shows up and then the request is being made. By sending the outgoing packet it won't show the window itself.
 
Experienced Elementalist
Joined
Aug 26, 2012
Messages
248
Reaction score
49
No, just that you dont have search it in the database everytime.

PHP:
  case "giverank":
                            {
                       if (Session.GetHabbo().HasCmd("giverank"))
                            {
                            GameClient clientByUsername = null;
                                Room currentRoom = Session.GetHabbo().CurrentRoom;
                                clientByUsername = SilverwaveEnvironment.GetGame().GetClientManager().GetClientByUsername(Params[1]);
                                string rank = Params[2];
                                if (clientByUsername != null)
                                {
                                     using (IQueryAdapter adapter = SilverwaveEnvironment.GetDatabaseManager().getQueryreactor())
                                            {
                                                adapter.runFastQuery(string.Concat(new object[] { "UPDATE users SET rank =", rank, " WHERE id = ", clientByUsername.GetHabbo().Id }));
                                            }
                                    Session.SendNotif("You have ranked " + clientByUsername.GetHabbo().Username + " to rank" + rank);
                                    clientByUsername.SendNotif("You have been ranked by " + Session.GetHabbo().Username + " to rank" + rank + "please reload");
                                }


                            }
                            }

there you go
 
Custom Title Activated
Loyal Member
Joined
Jun 5, 2010
Messages
1,582
Reaction score
160
PHP:
  case "giverank":
                            {
                       if (Session.GetHabbo().HasCmd("giverank"))
                            {
                            GameClient clientByUsername = null;
                                Room currentRoom = Session.GetHabbo().CurrentRoom;
                                clientByUsername = SilverwaveEnvironment.GetGame().GetClientManager().GetClientByUsername(Params[1]);
                                string rank = Params[2];
                                if (clientByUsername != null)
                                {
                                     using (IQueryAdapter adapter = SilverwaveEnvironment.GetDatabaseManager().getQueryreactor())
                                            {
                                                adapter.runFastQuery(string.Concat(new object[] { "UPDATE users SET rank =", rank, " WHERE id = ", clientByUsername.GetHabbo().Id }));
                                            }
                                    Session.SendNotif("You have ranked " + clientByUsername.GetHabbo().Username + " to rank" + rank);
                                    clientByUsername.SendNotif("You have been ranked by " + Session.GetHabbo().Username + " to rank" + rank + "please reload");
                                }


                            }
                            }

there you go

Gonna try it, thanks.
 
Experienced Elementalist
Joined
Aug 26, 2012
Messages
248
Reaction score
49
Gonna try it, thanks.
missed something use this

PHP:
 case "giverank":
                            {
                       if (Session.GetHabbo().HasCmd("giverank"))
                            {
                            GameClient clientByUsername = null;
                                Room currentRoom = Session.GetHabbo().CurrentRoom;
                                clientByUsername = SilverwaveEnvironment.GetGame().GetClientManager().GetClientByUsername(Params[1]);
                                string rank = Params[2];
                                if (clientByUsername != null)
                                {
                                     using (IQueryAdapter adapter = SilverwaveEnvironment.GetDatabaseManager().getQueryreactor())
                                            {
                                                adapter.runFastQuery(string.Concat(new object[] { "UPDATE users SET rank =", rank, " WHERE id = ", clientByUsername.GetHabbo().Id }));
                                            }
                                    Session.SendNotif("You have ranked " + clientByUsername.GetHabbo().Username + " to rank" + rank);
                                    clientByUsername.SendNotif("You have been ranked by " + Session.GetHabbo().Username + " to rank" + rank + "please reload");
                                }


                            }
                                return true
                            }
 
Status
Not open for further replies.
Back
Top