Re: [Service] Coding Emulator Commands
*Command Name - :sleep
*Emulator Name - Butterfly Emulator r96
*Action - Makes the user sleep on the floor
*Client version - R63
Rep + like if you do this! :)
Re: [Service] Coding Emulator Commands
Quote:
Originally Posted by
Lasse
*Command Name - :sleep
*Emulator Name - Butterfly Emulator r96
*Action - Makes the user sleep on the floor
*Client version - R63
Rep + like if you do this! :)
Coding this now :)
Gosh, Why do I feel as if i'm running these free coding threads..
Quote:
Originally Posted by
Funixeh
Command Name
jetpack or rocket
Emulator
Butterfly Emulator r93
Action
Increases the height of the user by about 1, and moves them one tile forward (both would preferably be done at the same time).
Client
r63
Thanks. And yes, I took the idea from HabboRP's command :):
Jetpack Command
Code:
internal void jetpack()
{
Room room = Session.GetHabbo().CurrentRoom;
if (room == null)
return;
RoomUser roomuser = room.GetRoomUserManager().GetRoomUserByHabbo(Session.GetHabbo().Id);
if (roomuser == null)
return;
RoomUser roomuserTarget = room.GetRoomUserManager().GetRoomUserByHabbo(Session.GetHabbo().Id);
if (roomuserTarget == null)
return;
Point furtherstSquare = CoordinationUtil.GetPointBehind(roomuserTarget.Coordinate, roomuserTarget.RotBody);
Point a = new Point(furtherstSquare.X, furtherstSquare.Y++);
if (CoordinationUtil.GetDistance(furtherstSquare, a) > CoordinationUtil.GetDistance(furtherstSquare, roomuserTarget.Coordinate))
furtherstSquare = a;
Point b = new Point(furtherstSquare.X, furtherstSquare.Y--);
if (CoordinationUtil.GetDistance(furtherstSquare, b) > CoordinationUtil.GetDistance(furtherstSquare, roomuserTarget.Coordinate))
furtherstSquare = b;
Point c = new Point(furtherstSquare.X++, furtherstSquare.Y);
if (CoordinationUtil.GetDistance(furtherstSquare, c) > CoordinationUtil.GetDistance(furtherstSquare, roomuserTarget.Coordinate))
furtherstSquare = c;
Point d = new Point(furtherstSquare.X--, furtherstSquare.Y++);
if (CoordinationUtil.GetDistance(furtherstSquare, d) > CoordinationUtil.GetDistance(furtherstSquare, roomuserTarget.Coordinate))
furtherstSquare = d;
Point e = new Point(furtherstSquare.X++, furtherstSquare.Y--);
if (CoordinationUtil.GetDistance(furtherstSquare, e) > CoordinationUtil.GetDistance(furtherstSquare, roomuserTarget.Coordinate))
furtherstSquare = e;
Point f = new Point(furtherstSquare.X--, furtherstSquare.Y);
if (CoordinationUtil.GetDistance(furtherstSquare, f) > CoordinationUtil.GetDistance(furtherstSquare, roomuserTarget.Coordinate))
furtherstSquare = f;
roomuserTarget.Chat(roomuserTarget.GetClient(), "*Gets jetpack out and flys*", true);
roomuserTarget.GetClient().GetHabbo().CurrentRoom.SendMessage(roomuserTarget.GetClient().GetHabbo().CurrentRoom.GetRoomItemHandler().UpdateUserOnRoller(roomuserTarget, new Point(furtherstSquare.X, furtherstSquare.Y), 0, roomuserTarget.GetClient().GetHabbo().CurrentRoom.GetRoomUserManager().GetRoomUserByHabbo(Session.GetHabbo().Id).Z + 1));
roomuserTarget.GetClient().GetHabbo().CurrentRoom.GetRoomUserManager().UpdateUserStatus(roomuserTarget, false);
}
usage:
Re: [Service] Coding Emulator Commands
Quote:
Originally Posted by
Lasse
*Command Name - :sleep
*Emulator Name - Butterfly Emulator r96
*Action - Makes the user sleep on the floor
*Client version - R63
Rep + like if you do this! :)
Code:
internal void sleep()
{
Room TargetRoom = Session.GetHabbo().CurrentRoom;
RoomUser TargetRoomUser = null;
TargetRoom = ButterflyEnvironment.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
if (TargetRoom == null)
return;
TargetRoomUser = TargetRoom.GetRoomUserManager().GetRoomUserByHabbo(Session.GetHabbo().Id);
if (TargetRoomUser == null)
return;
TargetRoomUser.AddStatus("lay", "0.5");
}
Here you go (should work, but didn't test it yet)
Re: [Service] Coding Emulator Commands
Quote:
Originally Posted by
Lasse
*Command Name - :sleep
*Emulator Name - Butterfly Emulator r96
*Action - Makes the user sleep on the floor
*Client version - R63
Rep + like if you do this! :)
Sleep Command
Code:
internal void sleep()
{
Room room = Session.GetHabbo().CurrentRoom;
if (room == null)
return;
RoomUser roomuser = room.GetRoomUserManager().GetRoomUserByHabbo(Session.GetHabbo().Id);
if (roomuser == null)
return;
if (!roomuser.Statusses.ContainsKey("lay"))
{
roomuser.Statusses.Add("lay", TextHandling.GetString(0) + " null");
roomuser.Chat(roomuser.GetClient(), "*Lies down and goes to sleep*", true);
}
else
{
roomuser.Statusses.Remove("lay");
roomuser.Chat(roomuser.GetClient(), "*Wakes up and gets up from the floor*", true);
}
}
Usage:
Will work and tested. :)
EDIT: Also if you're already laying just say :sleep to stand up (Yea, may fuck up on beds :L)
Re: [Service] Coding Emulator Commands
Quote:
Originally Posted by
Divide
Sleep Command
Code:
internal void sleep()
{
Room room = Session.GetHabbo().CurrentRoom;
if (room == null)
return;
RoomUser roomuser = room.GetRoomUserManager().GetRoomUserByHabbo(Session.GetHabbo().Id);
if (roomuser == null)
return;
if (!roomuser.Statusses.ContainsKey("lay"))
{
roomuser.Statusses.Add("lay", TextHandling.GetString(0) + " null");
roomuser.Chat(roomuser.GetClient(), "*Lies down and goes to sleep*", true);
}
else
{
roomuser.Statusses.Remove("lay");
roomuser.Chat(roomuser.GetClient(), "*Wakes up and gets up from the floor*", true);
}
}
Usage:
Will work and tested. :)
EDIT: Also if you're already laying just say :sleep to stand up (Yea, may fuck up on beds :L)
yeah... use his and not mine... mine works, but it won't stand you back up if u say it twice :\
Re: [Service] Coding Emulator Commands
Anyone can make mine plz...
Re: [Service] Coding Emulator Commands
Quote:
Originally Posted by
Divide
Code:
internal void roomfigure()
{
if (Session.GetHabbo().HasFuse("fuse_sysadmin"))
{
using (IQueryAdapter dbClient = ButterflyEnvironment.GetDatabaseManager().getQueryreactor())
{
RoomUserManager roomUserManager = new RoomUserManager(Session.GetHabbo().CurrentRoom);
foreach (RoomUser user in roomUserManager.UserList.Values)
{
if (user.IsBot)
continue;
else
{
user.GetClient().GetHabbo().Gender = Params[1];
user.GetClient().GetHabbo().Look = Params[2];
user.GetClient().GetMessageHandler().GetResponse().Init(266);
user.GetClient().GetMessageHandler().GetResponse().AppendInt32(-1);
user.GetClient().GetMessageHandler().GetResponse().AppendStringWithBreak(user.GetClient().GetHabbo().Look);
user.GetClient().GetMessageHandler().GetResponse().AppendStringWithBreak(user.GetClient().GetHabbo().Gender.ToLower());
user.GetClient().GetMessageHandler().GetResponse().AppendStringWithBreak(user.GetClient().GetHabbo().Motto);
user.GetClient().GetMessageHandler().SendResponse();
if (user.GetClient().GetHabbo().InRoom)
{
Room Room = user.GetClient().GetHabbo().CurrentRoom;
if (Room == null)
{
return;
}
RoomUser User = Room.GetRoomUserManager().GetRoomUserByHabbo(user.GetClient().GetHabbo().Id);
if (User == null)
{
return;
}
ServerMessage RoomUpdate = new ServerMessage(266);
RoomUpdate.AppendInt32(User.VirtualId);
RoomUpdate.AppendStringWithBreak(user.GetClient().GetHabbo().Look);
RoomUpdate.AppendStringWithBreak(user.GetClient().GetHabbo().Gender.ToLower());
RoomUpdate.AppendStringWithBreak(user.GetClient().GetHabbo().Motto);
Room.SendMessage(RoomUpdate);
}
}
}
}
}
}
Usage:
Code:
:roomfigure <gender> <figure>
Usage example:
Code:
:roomfigure M hr-404-430.hd-393-393.ch-494-85
M = First letter of gender (M or F, Male or Female)
hr-404-430.hd-393-393.ch-494-85 = Figure code
Now, Where's my cookies? :D
EDIT: Here's a code so it will only update the figure for one time, If they reload the room or go to another room it will change back to their original.
I want my cookies!!!!! (Well, a like would be more appriciated :D)
You sir, deserve a jar full of cookies! Haha, thanks mate. :]
Re: [Service] Coding Emulator Commands
Command Name::giveitem (username)
Emulator Name:Phoenix 3.7.1
Action:Gives the holding item to the following user
Client version:R63
-------------------------------------------------------------------------------------------
Command Name::emptyitems
Emulator Name:Phoenix 3.7.1
Action:Empty the user that says this
Client version:R63
--------------------------------------------------------------------------------------------
Command Name::summon staff
Emulator Name:Phoenix 3.7.1
Action:Summon all staff
Client version:R63
--------------------------------------------------------------------------------------------
Command Name::sit
Emulator Name:Phoenix 3.7.1
Action:Sits
Client version:R63
--------------------------------------------------------------------------------------------
Command Name::reload (username)
Emulator Name:Phoenix 3.7.1
Action:Makes the user reload room
Client version:R63
--------------------------------------------------------------------------------------------
Command Name::redeemcredits
Emulator Name:Phoenix 3.7.1
Action:Redeem all the 'Exchange' furni in the inventory
Client version:R63
--------------------------------------------------------------------------------------------
Re: [Service] Coding Emulator Commands
Quote:
Originally Posted by
chl
Command Name::giveitem (username)
Emulator Name:Phoenix 3.7.1
Action:Gives the holding item to the following user
Client version:R63
-------------------------------------------------------------------------------------------
Command Name::emptyitems
Emulator Name:Phoenix 3.7.1
Action:Empty the user that says this
Client version:R63
--------------------------------------------------------------------------------------------
Command Name::summon staff
Emulator Name:Phoenix 3.7.1
Action:Summon all staff
Client version:R63
--------------------------------------------------------------------------------------------
Command Name::sit
Emulator Name:Phoenix 3.7.1
Action:Sits
Client version:R63
--------------------------------------------------------------------------------------------
Command Name::reload (username)
Emulator Name:Phoenix 3.7.1
Action:Makes the user reload room
Client version:R63
--------------------------------------------------------------------------------------------
Command Name::redeemcredits
Emulator Name:Phoenix 3.7.1
Action:Redeem all the 'Exchange' furni in the inventory
Client version:R63
--------------------------------------------------------------------------------------------
Are you fucking kidding me? I'm sure if you have read the thread, you'll already know that you cannot add commands to Phoenix!
Re: [Service] Coding Emulator Commands
Quote:
Originally Posted by
chl
Command Name::giveitem (username)
Emulator Name:Phoenix 3.7.1
Action:Gives the holding item to the following user
Client version:R63
-------------------------------------------------------------------------------------------
Command Name::emptyitems
Emulator Name:Phoenix 3.7.1
Action:Empty the user that says this
Client version:R63
--------------------------------------------------------------------------------------------
Command Name::summon staff
Emulator Name:Phoenix 3.7.1
Action:Summon all staff
Client version:R63
--------------------------------------------------------------------------------------------
Command Name::sit
Emulator Name:Phoenix 3.7.1
Action:Sits
Client version:R63
--------------------------------------------------------------------------------------------
Command Name::reload (username)
Emulator Name:Phoenix 3.7.1
Action:Makes the user reload room
Client version:R63
--------------------------------------------------------------------------------------------
Command Name::redeemcredits
Emulator Name:Phoenix 3.7.1
Action:Redeem all the 'Exchange' furni in the inventory
Client version:R63
--------------------------------------------------------------------------------------------
you can't add commands to phoenix. and they exist in 3.8.1.....
Re: [Service] Coding Emulator Commands
...
oh crap?
Damn I really need those commands
Re: [Service] Coding Emulator Commands
Lol... nobody has :teleport for me?
Re: [Service] Coding Emulator Commands
Can you make :sleep and :jetpack for Uber?
Re: [Service] Coding Emulator Commands
Quote:
Originally Posted by
Leon
You sir, deserve a jar full of cookies! Haha, thanks mate. :]
YAY! A whole jar :D
Re: [Service] Coding Emulator Commands
Quote:
Originally Posted by
phoxyhabbo
Lol... nobody has :teleport for me?
i am still coding it :\
Re: [Service] Coding Emulator Commands
Quote:
Originally Posted by
Divide
Make you save me a couple..
Re: [Service] Coding Emulator Commands
Thanks for the jetpack command Divide, you're awesome :)
Re: [Service] Coding Emulator Commands
Hi i've been looking for a :update_items on butterfly
*Command Name = :items_update
*Emulator Name = Butterfly
*Action = Update the items_base
*Client version = R67
Please :). I can help coding some commands to. But I can't with this one.
Re: [Service] Coding Emulator Commands
Quote:
Originally Posted by
Baird Ceo
Hi i've been looking for a :update_items on butterfly
*Command Name = :items_update
*Emulator Name = Butterfly
*Action = Update the items_base
*Client version = R67
Please :). I can help coding some commands to. But I can't with this one.
z0mg u haz r67 ;ooo
Re: [Service] Coding Emulator Commands
Quote:
Originally Posted by
Ken816
i am still coding it :\
Okay, im sorry!
Re: [Service] Coding Emulator Commands
*Command Name:
:walk [User] [on/off]
*Emulator Name (and version if possible):
Uber Emulator
*Action:
You can control the User [User].
*Client version (EXAMPLE: R63):
R63
Re: [Service] Coding Emulator Commands
Quote:
Originally Posted by
Huginho98
*Command Name:
:walk [User] [on/off]
*Emulator Name (and version if possible):
Uber Emulator
*Action:
You can control the User [User].
*Client version (EXAMPLE: R63):
R63
Awesome idea. :):
Re: [Service] Coding Emulator Commands
- Command Name
- Emulator Name (and version if possible)
- Action
- Anything awesome, I don't care.
- Client version (EXAMPLE: R63)
If you do this for me then you get this: