Could you make a commands like massduckets and globalduckets?
Printable View
Could you make a commands like massduckets and globalduckets?
:flagme??
I think its something like this. But i am not sure its not tested.!
Code:#region massduckets
case "massduckets":
if (!this.Session.GetHabbo().GotCommand("massduckets"))
{
return true;
}
if (Params.Length != 1)
{
try
{
int num22 = int.Parse(Params[1]);
foreach (GameClient Client in MercuryEnvironment.GetGame().GetClientManager().clients.Values)
{
if (Client.GetHabbo() != null)
{
ActivityPoints += num22;
Client.GetHabbo().UpdateActivityPointsBalance();
this.Session.SendNotif("Je hebt succesvol de duckets van de online gebruikers bijgewerkt!");
}
}
}
catch
{
}
return true;
}
this.Session.SendNotif("Je moet een aantal invoeren!");
return true;
#endregion
Could you make a commands like flagme
Do you tink you could code a wired effect orsomthing wich does like this
If the wired is on the pile of wireds
And there is like a
User walks on & a show message
Like an, ALL USERS wired
I mean like
If a user walks on a furni all users recive a message an effect like that
Like a condition rsomthing
IDK if these are made not gonna look everywhere:
- Kill ( stops a user from moving and enables a frozen effect i.e enable 12)
- Unkill ( undoes what kill does)
- Ach ( Updates a users ach score my m8 was too lazy to use the db)
- Kiss ( like in an rp but u need to be close , it also enables the hearts enable)
- Rank ( to rank an user valid for only rank 8 i.e my highest rank )
- Fly (Combination of override and a little height from ground)
- Close mod tools (closes mod tool bar)
- Open mod tools (opens mod tool bar)
[REQUEST] [MAKE VIP COMMAND LIMITED]
I will send a PM for give 10$ PayPal to the first who build this command!
Wanted command: :givevip
Explain: All users can give a VIP subscription to others users (rank 2) but limited. In the users table, a column 'vip_give' exists with the remains quantity.
Exemple Jack can give (3) vip subscriptions to his friends. The number '3' is from the database (vip_give column)
When the column value is 0 for the users, when he type the command he receive a message 'You can't give VIP subs'.
@xKADOx I can make it. But I dont entirely understand it. Add my Skype w33ddaily
Hello, here's a versione of :brb made by me.
Code:case "brb":
case "afk":
case "idle":
{
Room room = Session.GetHabbo().CurrentRoom;
RoomUser roomuser = room.GetRoomUserManager().GetRoomUserByHabbo(Session.GetHabbo().Id);
if (roomuser.IsAsleep == true) {
roomuser.IsAsleep = false;
roomuser.Chat(Session, "*" + Session.GetHabbo().Username + " is now back*", true, 1);
roomuser.UpdateNeeded = true;
return true;
} else if (roomuser.IsAsleep == false) {
roomuser.Chat(Session, "*Sleeping [AFK]*", true, 1);
roomuser.IsAsleep = true;
roomuser.UpdateNeeded = true;
return true;
}
} return true;
here it is @SophResh123
Buy room
Sell room:Code:Go to HabboHotel.Rooms.Room
Add
internal bool ForSale;
internal int SalePrice;
after
internal bool isCycling = false;
add
this.ForSale = false;
this.SalePrice = 0;
under
this.RoomChat = Chat;
Now go to
Mercury.Messages.GameClientMessageHandler.cs
look for internal void MoveItem()
Add anywhere
if (Room.ForSale)
{
Session.SendWhisper("You cannot edit the room whilst it's for sale.");
Session.SendWhisper("Cancel the sale of this room by doing ':sellroom 0' (without '')");
return;
}
add the same code for voids...
internal void TriggerItem() &
internal void TakeItem()
Then Go to chatCommandHandler and add
case "buyroom":
{
if (!this.Session.GetHabbo().GotCommand("buyroom"))
{
Room Room = Session.GetHabbo().CurrentRoom;
RoomUser RoomOwner = Room.GetRoomUserManager().GetRoomUserByHabbo(Room.Owner);
if (Room == null)
{
return true;
}
if (Room.Owner == Session.GetHabbo().Username)
{
SendChatMessage(Session, "You already own this room!");
return true;
}
if (!Room.ForSale)
{
SendChatMessage(Session, "This room is not for sale!");
return true;
}
if (Session.GetHabbo().Credits < Room.SalePrice)
{
SendChatMessage(Session, "You do not have enough credits to buy this room!");
return true;
}
if (RoomOwner == null || RoomOwner.GetClient() == null)
{
SendChatMessage(Session, "An unknown error occured, this room is no longer for sale.");
Room.ForSale = false;
Room.SalePrice = 0;
return true;
}
GameClient Owner = RoomOwner.GetClient();
Session.GetHabbo().Credits -= Room.SalePrice;
Session.GetHabbo().UpdateCreditsBalance();
Owner.GetHabbo().Credits += Room.SalePrice;
Owner.GetHabbo().UpdateCreditsBalance();
Room.Owner = Session.GetHabbo().Username;
Room.OwnerId = (int)Session.GetHabbo().Id;
Room.RoomData.Owner = Session.GetHabbo().Username;
Room.RoomData.OwnerId = (int)Session.GetHabbo().Id;
uint RoomId = Room.RoomId;
using (IQueryAdapter dbClient = MercuryEnvironment.GetDatabaseManager().getQueryreactor())
{
dbClient.runFastQuery("UPDATE rooms SET owner='" + Session.GetHabbo().Username + "' WHERE id='" + Room.RoomId + "' LIMIT 1");
}
Session.GetHabbo().UsersRooms.Add(Room.RoomData);
Owner.GetHabbo().UsersRooms.Remove(Room.RoomData);
MercuryEnvironment.GetGame().GetRoomManager().UnloadRoom(Room);
RoomData Data = MercuryEnvironment.GetGame().GetRoomManager().GenerateRoomData(Room.RoomId);
Data.SerializeRoomData(new ServerMessage(), true, Session, false);
Session.GetMessageHandler().PrepareRoomForUser(Room.RoomId, "");
}
return true;
}
Code:case "sellroom":
{
if (!this.Session.GetHabbo().GotCommand("sellroom"))
{
Room Room = Session.GetHabbo().CurrentRoom;
Int32 Value = 0;
if (Room == null)
return true;
if (!Room.CheckRights(Session, true))
return true;
if (Params.Length == 1)
{
Session.SendNotif("In order to sell a room, you must include a value. \n\nPLEASE NOTE:\nIf you sell a room you CANNOT get any of it back!");
return true;
}
else if (Room.Group != null)
{
Session.SendNotif("You cannot sell a room with a group on it.\n Delete the group first by typing :deletegroup");
return true;
}
else if (!MercuryEnvironment.IsNum(Params[1]))
{
SendChatMessage(Session, "You must enter a number!");
return true;
}
else
Value = Convert.ToInt32(Params[1]);
if (Value < 0)
{
SendChatMessage(Session, "You can not sell a room for less than 0 credits!");
return true;
}
if (Room.ForSale)
{
Room.SalePrice = Value;
}
else
{
Room.ForSale = true;
Room.SalePrice = Value;
}
foreach (RoomUser User in Room.GetRoomUserManager().GetRoomUsers())
{
User.SendChatMsg("This room is for sale! The current asking price is " + Value + " credits! Buy it by saying :buyroom");
}
Session.SendNotif("In order to sell a room, you must include a value. \n\nPLEASE NOTE:\nIf you sell a room you CANNOT get any of it back!\n\n" +
"You can cancel selling a room by typing ':buyroom 0' (Without '')");
}
return true;
}
Change name checks work with fuse_can_change_name ...Quote:
I don't know exactly how changename check works, but ill figure it out.
:headshot command?
You put :headshot EliteKey and it makes the user you headshotted get the enable 133 (no head) and the person triggering the command says 'BOOM HEADSHOT'
Change 'MINRANKHERE'Code:#region headshot
{
uint minrank = MINRANKHERE;
if (this.Session.GetHabbo().Rank >= minrank)
{
Room room1 = MercuryEnvironment.GetGame().GetRoomManager().GetRoom(this.Session.GetHabbo().CurrentRoomId);
RoomUser user1 = room1.GetRoomUserManager().GetRoomUserByHabbo(this.Session.GetHabbo().Username);
RoomUser user2 = room1.GetRoomUserManager().GetRoomUserByHabbo(Params[1]);
if (user2 != null)
{
if ((Math.Abs((int)(user1.X - user2.X)) < 2) && (Math.Abs((int)(user1.Y - user2.Y)) < 2))
{
user1.Chat(user1.GetClient(), "BOOM, HEADSHOT", true, 0, 1);
user2.ApplyEffect(133);
}
}
}
return true;
}
#endregion
Maybe a :prison x
moves the user to a specified room and doesn't let the user leave the room before a timer is out like 1-7 days until someone :release x the user. if the user relog the client he will automaticly be teleported to the room again if his time isnt out.
Show a window with all vip comands (where for rank 2):
in ChatCommandHandler.cs:
Add it under "public DataTable Commands;" :
Before, after "this.LoadCommandsList();" addCode:public DataTable VIPCommands;
Add:Code:this.LoadVIPCommandsList();
Finally:Code:public void LoadVIPCommandsList()
{
using (IQueryAdapter dbClient = MercuryEnvironment.GetDatabaseManager().getQueryreactor())
{
dbClient.setQuery("SELECT command,params,description FROM fuse_cmds WHERE rank = 2 ORDER BY command ASC");
this.VIPCommands = dbClient.getTable();
}
}
Code:case "vip":
{
StringBuilder builder2 = new StringBuilder();
builder2.Append("VIP's Commands:\n");
foreach (DataRow row2 in this.VIPCommands.Rows)
{
builder2.Append(":" + Convert.ToString(row2[0]) + " " + Convert.ToString(row2[1]) + " - " + Convert.ToString(row2[2]) + "\n");
}
this.Session.SendNotifWithScroll(builder2.ToString());
return true;
}
:nav
Open the navigator
min rank: 4
Please, would it be possible to build the command
:built command , its replaces rolleer for stacking
- - - Updated - - -
Please someone la command could share control Furni built