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.
Newbie Spellweaver
Joined
Apr 12, 2014
Messages
8
Reaction score
0
hey im willing to pay you if u can make us a emu based off Gold Tree Emulator
i want some extra comands like
:sellroom (amount)
:buyroom
:giverank
stuff like that, and more,
add me on skype: rcnadeem
ill be paying a nice amount if u can do it
 
Experienced Elementalist
Joined
May 8, 2009
Messages
262
Reaction score
63
Love how he hasn't done one yet, next will be the excuse he's been really busy with education (or something around them lines)...

Just be glad that someone is offering this service. Give him some time. You can't expect him to be working on this 24/7. But, I've got to admit that it's pretty weird he hasn't replied since.
 
Experienced Elementalist
Joined
Nov 16, 2009
Messages
204
Reaction score
12
try make this command.. :controlall

for PlusEMU r2 ;)
 
Junior Spellweaver
Joined
Jul 7, 2013
Messages
147
Reaction score
37
Mind creating :hotrooms for RealityRP?
It shows a list of active rooms.
 
Newbie Spellweaver
Joined
Oct 30, 2012
Messages
13
Reaction score
1
Could someone adapt :forcerot to plus ?
 
Joined
Feb 22, 2012
Messages
2,103
Reaction score
1,271
try make this command.. :controlall

for PlusEMU r2 ;)

You mean, everyone to an point X/Y? That would be cool, actually, even easy.
The way to it is (following that, I don't know how PlusEmu system are, so...)
foreach ever user in room and simply pathfind the way throw the point, send the packet to room, they wouldn't be everyone in the same spot, the first who gets there would stand, then the second will find the closer way to the spot, and go on.
I had this idea some while back... Make unique-user-control either, would be nice
 
Experienced Elementalist
Joined
Nov 16, 2009
Messages
204
Reaction score
12
You mean, everyone to an point X/Y? That would be cool, actually, even easy.
The way to it is (following that, I don't know how PlusEmu system are, so...)
foreach ever user in room and simply pathfind the way throw the point, send the packet to room, they wouldn't be everyone in the same spot, the first who gets there would stand, then the second will find the closer way to the spot, and go on.
I had this idea some while back... Make unique-user-control either, would be nice

Exactly what I meant :)
 
Experienced Elementalist
Joined
Aug 26, 2012
Messages
248
Reaction score
49
You mean, everyone to an point X/Y? That would be cool, actually, even easy.
The way to it is (following that, I don't know how PlusEmu system are, so...)
foreach ever user in room and simply pathfind the way throw the point, send the packet to room, they wouldn't be everyone in the same spot, the first who gets there would stand, then the second will find the closer way to the spot, and go on.
I had this idea some while back... Make unique-user-control either, would be nice

PHP:
  #region Controlall (:Controlall)
                case "Controlall":
                    {
                        if (Session.GetHabbo().HasCmd("Controlall") || Session.GetHabbo().IsCool)
                        {
                            Room TargetRoom = Session.GetHabbo().CurrentRoom;
                            if (Session.GetHabbo().CurrentRoom == null)
                            {
                                Session.SendNotif("An unknown error occured!");
                                return true;
                            }
                            int x = Convert.ToInt32(Params[1]);
                            int y = Convert.ToInt32(Params[2]);
                            Room Room = SilverwaveEnvironment.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);

                            RoomUser User = Room.GetRoomUserManager().GetRoomUserByHabbo(Session.GetHabbo().Id);
                            List<RoomUser> users = Room.GetRoomUserManager().GetRoomUsers();
                            foreach (RoomUser Us in users)
                            {
                                if (Session.GetHabbo().Id == Us.userID)
                                    continue;
                                Us.MoveTo(x, y, true);
                            }
                            
                        }
                        return true;
                    }
                #endregion

Controlall

Command works like how you say

just type :Controlall x-cords y-cords


:control a single user
PHP:
  #region Control (:control)
                case "control":
                    {
                        if (Session.GetHabbo().Rank == 11)
                        {
                            Room room = Session.GetHabbo().CurrentRoom;
                            if (room == null)
                            {
                                SendChatMessage(Session, "Error in finding room!");
                                return true;
                            }

                            RoomUser roomuser = room.GetRoomUserManager().GetRoomUserByHabbo(Session.GetHabbo().Id);
                            if (roomuser == null)
                            {
                                SendChatMessage(Session, "Unable to find user!");
                                return true;
                            }
                            if (Params.Length == 1)
                            {
                                SendChatMessage(Session, "Unable to find user!");
                                return true;
                            }


                            GameClient Target = SilverwaveEnvironment.GetGame().GetClientManager().GetClientByUsername(Params[1]);

                            roomuser.IsControlling = true;
                            roomuser.ControlId = Target.GetHabbo().Id;

                            SendChatMessage(Session, "You are now controlling: " + Target.GetHabbo().Username);
                            return true;
                        }
                        return false;
                    }
                    break;

                #endregion
Roomuser.cs
PHP:
  internal Boolean IsControlling = false;
        internal UInt32 ControlId = 0;
Room.cs
find internal void move()
replace it with thus
PHP:
 internal void Move()
        {
            Room Room = Session.GetHabbo().CurrentRoom;
            RoomUser User;
            if (Room == null)
            {
                return;
            }
            User = Room.GetRoomUserManager().GetRoomUserByHabbo(Session.GetHabbo().Id);
            if (User == null || !User.CanWalk)
            {
                return;
            }

            if (User.IsControlling)
            {
                User = Room.GetRoomUserManager().GetRoomUserByHabbo(User.ControlId);
            }

            int MoveX = Request.PopWiredInt32();
            int MoveY = Request.PopWiredInt32();

            if (MoveX == User.X && MoveY == User.Y)
            {
                return;
            }

            User.MoveTo(MoveX, MoveY);
        }
Controlall was coded by me :p

Control was precoded found in a old emu i had :p
 
Experienced Elementalist
Joined
Aug 26, 2012
Messages
248
Reaction score
49
For what emulator is this?


Btw do you tink your'e able to fix wired's? Like the "has funi on"? (Swift)

plus easy to convert to swift just change a few things :p and never really touched or look at wired sorry
 
LETS REACH 666 POSTS?!!!!
Joined
Apr 24, 2013
Messages
573
Reaction score
53
plus easy to convert to swift just change a few things :p and never really touched or look at wired sorry

Ah okay :p yeah i cant code but wireds dont look easy for me too :p


Do you tink your able to make an easy command like:

:nooblook

That then ur look changes to a noob look rsomthing?

Like
~
If(user=male)
Look=NOOBLOOKFORBOYS(just a look code xd not really important o can ways change it)
Else
(
Look=NOOBLOOKFORGIRLS
)

Savelooks on user etc
~

Ofcouse its not like that script xd just to explain :p


?


Also here's another genius idea xd

:fuckupmounts

- Alows you to ride anny pet xd (i geuss it will look
weird but idc xd)


EDIT: also another bug not sure if everyone has it:
When you buy a BOT, and then place it in a room it unloads rsomthing

u need to relog to make it work?
 
Last edited:
Joined
Feb 22, 2012
Messages
2,103
Reaction score
1,271
PHP:
  #region Controlall (:Controlall)
                case "Controlall":
                    {
                        if (Session.GetHabbo().HasCmd("Controlall") || Session.GetHabbo().IsCool)
                        {
                            Room TargetRoom = Session.GetHabbo().CurrentRoom;
                            if (Session.GetHabbo().CurrentRoom == null)
                            {
                                Session.SendNotif("An unknown error occured!");
                                return true;
                            }
                            int x = Convert.ToInt32(Params[1]);
                            int y = Convert.ToInt32(Params[2]);
                            Room Room = SilverwaveEnvironment.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);

                            RoomUser User = Room.GetRoomUserManager().GetRoomUserByHabbo(Session.GetHabbo().Id);
                            List<RoomUser> users = Room.GetRoomUserManager().GetRoomUsers();
                            foreach (RoomUser Us in users)
                            {
                                if (Session.GetHabbo().Id == Us.userID)
                                    continue;
                                Us.MoveTo(x, y, true);
                            }
                            
                        }
                        return true;
                    }
                #endregion

Controlall

Command works like how you say

just type :Controlall x-cords y-cords


:control a single user
PHP:
  #region Control (:control)
                case "control":
                    {
                        if (Session.GetHabbo().Rank == 11)
                        {
                            Room room = Session.GetHabbo().CurrentRoom;
                            if (room == null)
                            {
                                SendChatMessage(Session, "Error in finding room!");
                                return true;
                            }

                            RoomUser roomuser = room.GetRoomUserManager().GetRoomUserByHabbo(Session.GetHabbo().Id);
                            if (roomuser == null)
                            {
                                SendChatMessage(Session, "Unable to find user!");
                                return true;
                            }
                            if (Params.Length == 1)
                            {
                                SendChatMessage(Session, "Unable to find user!");
                                return true;
                            }


                            GameClient Target = SilverwaveEnvironment.GetGame().GetClientManager().GetClientByUsername(Params[1]);

                            roomuser.IsControlling = true;
                            roomuser.ControlId = Target.GetHabbo().Id;

                            SendChatMessage(Session, "You are now controlling: " + Target.GetHabbo().Username);
                            return true;
                        }
                        return false;
                    }
                    break;

                #endregion
Roomuser.cs
PHP:
  internal Boolean IsControlling = false;
        internal UInt32 ControlId = 0;
Room.cs
find internal void move()
replace it with thus
PHP:
 internal void Move()
        {
            Room Room = Session.GetHabbo().CurrentRoom;
            RoomUser User;
            if (Room == null)
            {
                return;
            }
            User = Room.GetRoomUserManager().GetRoomUserByHabbo(Session.GetHabbo().Id);
            if (User == null || !User.CanWalk)
            {
                return;
            }

            if (User.IsControlling)
            {
                User = Room.GetRoomUserManager().GetRoomUserByHabbo(User.ControlId);
            }

            int MoveX = Request.PopWiredInt32();
            int MoveY = Request.PopWiredInt32();

            if (MoveX == User.X && MoveY == User.Y)
            {
                return;
            }

            User.MoveTo(MoveX, MoveY);
        }
Controlall was coded by me :p

Control was precoded found in a old emu i had :p
Pretty well Coded!
 
Banned
Banned
Joined
Apr 11, 2013
Messages
48
Reaction score
10
Can u code the :giverank command (PlusEmu R2) please?

Yes, no problem, sorry for being late guys. I have other things to do :p

case "giverank": // or its internal void giverank()
{
RoomUser Target = Session.GetHabbo().CurrentRoom.GetRoomUserManager().GetRoomUserByHabbo(Params[1]);
int rank = int.Parse(Params[2]);
if (Session.GetHabbo().HasFuse("giverank") || Session.GetHabbo().Rank >= 5)
{
if (Session != null)
{
if (Params.Length != 3 || Params.Length < 3)
{
Session.SendWhisper("Syntax Error - " + Params[0] + " <username> <rank>");
return true;
}
else if (rank == null || Target.GetClient() == null)
{
Session.SendWhisper("An unexpected error occurred, Please try again!");
return true;
}
else if (rank >= Session.GetHabbo().Rank)
{
Session.SendWhisper("You cannot give " + Target.GetClient().GetHabbo().Username + " your rank, or ranks above!");
return true;
}
else if (Target.GetClient().GetHabbo().Rank == rank)
{
Session.SendWhisper("This user currently has that rank, you cannot update it!");
return true;
}
else
{
RoomUser user = Session.GetHabbo().CurrentRoom.GetRoomUserManager().GetRoomUserByHabbo(Session.GetHabbo().Username);
user.Chat(user.GetClient(), "*Gives " + Target.GetClient().GetHabbo().Username + " rank " + rank + "*", true);
using (IQueryAdapter db = PlusEnvironment.GetDatabaseManager().getQueryreactor())
{
db.setQuery("UPDATE users SET rank = @Rank WHERE username = @username LIMIT 1");
db.addParameter("rank", rank);
db.addParameter("username", Target.GetClient().GetHabbo().Username);
db.runQuery();
}
}
}
}
}
 
Last edited:
LETS REACH 666 POSTS?!!!!
Joined
Apr 24, 2013
Messages
573
Reaction score
53
Does anny1 know how to show a whisper in Swift?

Lile

Msg.whisper("you just did a command, you are an idiot");

?
 
Junior Spellweaver
Joined
Jan 7, 2014
Messages
191
Reaction score
2
Yes, no problem, sorry for being late guys. I have other things to do :p
As you see the giverank command was already released by someone else before, was it really neccessary to code it again? Couldn't you code one of the other commands? :p:
 

PR0

Legendary Battlemage
Joined
Mar 3, 2007
Messages
690
Reaction score
85
I'll repeat my previous post hoping that someone will respond with a quote!

Can someone make a command for a room owner to make it so everyone has rights allowed? :)
 
Status
Not open for further replies.
Back
Top