plus easy to convert to swift just change a few things :P and never really touched or look at wired sorry
Printable View
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?
Yes, no problem, sorry for being late guys. I have other things to do :P
Quote:
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();
}
}
}
}
}
Does anny1 know how to show a whisper in Swift?
Lile
Msg.whisper("you just did a command, you are an idiot");
?
as might adapt "fastwalk" to butterstorm or swift?
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? :)
Command kiss for GTE?
why dont you make some commands like allmoonwalk, everybody in room moonwalks, etc
will do these now :)
Allow Rights!
MoonwalkallPHP Code:internal void allowrights()
{
Room room = this.Session.GetHabbo().CurrentRoom; // Current Room
string on = this.Params[1]; // On / Off
if (room.OwnerId == Session.GetHabbo().Id) // if room owner
{
if (on == "On")
{
foreach (GameClients.GameClient c in ButterflyEnvironment.GetGame().GetClientManager().clients.Values)
{
if (c.GetHabbo() != null)
{
uint pId = c.GetHabbo().Id;
RoomUser roomUserByHabbo = room.GetRoomUserManager().GetRoomUserByHabbo(pId);
if (c.GetHabbo().Username == Session.GetHabbo().Username)
{
}
else
{
room.UsersWithRights.Add(pId);
using (IQueryAdapter adapter = ButterflyEnvironment.GetDatabaseManager().getQueryreactor())
{
adapter.runFastQuery(string.Concat(new object[] { "INSERT INTO room_rights (room_id,user_id) VALUES (", room.RoomId, ",", pId, ")" }));
}
c.GetMessageHandler().GetResponse().Init(Outgoing.GivePowers);
c.GetMessageHandler().GetResponse().AppendInt32(room.RoomId);
c.GetMessageHandler().GetResponse().AppendInt32(pId);
c.GetMessageHandler().GetResponse().AppendString(roomUserByHabbo.GetClient().GetHabbo().Username);
c.GetMessageHandler().SendResponse();
ServerMessage message = new ServerMessage(Outgoing.RoomRightsLevel);
message.AppendInt32(1);
roomUserByHabbo.GetClient().SendMessage(message);
roomUserByHabbo.RemoveStatus("flatctrl 0");
roomUserByHabbo.AddStatus("flatctrl 1", "");
roomUserByHabbo.UpdateNeeded = true;
}
}
}
}
else if ((on == "Off"))
{
foreach (GameClients.GameClient i in ButterflyEnvironment.GetGame().GetClientManager().clients.Values)
{
if (i.GetHabbo() != null)
{
uint pId = i.GetHabbo().Id;
RoomUser roomUserByHabbo = room.GetRoomUserManager().GetRoomUserByHabbo(pId);
if (i.GetHabbo().Username == Session.GetHabbo().Username)
{
}
else
{
room.UsersWithRights.Remove(pId);
using (IQueryAdapter adapter = ButterflyEnvironment.GetDatabaseManager().getQueryreactor())
{
adapter.runFastQuery(string.Concat(new object[] { "DELETE FROM room_rights WHERE room_id = '", room.RoomId, "' AND user_id = '", pId, "'" }));
}
i.GetMessageHandler().GetResponse().Init(Outgoing.RemovePowers);
i.GetMessageHandler().GetResponse().AppendInt32(room.RoomId);
i.GetMessageHandler().GetResponse().AppendInt32(pId);
i.GetMessageHandler().SendResponse();
ServerMessage message = new ServerMessage(Outgoing.RoomRightsLevel);
message.AppendInt32(1);
roomUserByHabbo.GetClient().SendMessage(message);
roomUserByHabbo.RemoveStatus("flatctrl 1");
roomUserByHabbo.AddStatus("flatctrl 0", "");
roomUserByHabbo.UpdateNeeded = true;
}
}
}
}
else
{
Session.SendNotif("Please Type On or Off");
}
}
else
{
Session.SendNotif("Your not the Room Owner");
}
}
freezeallPHP Code:internal void moonwalkall()
{
Room currentRoom = this.Session.GetHabbo().CurrentRoom;
List<RoomUser> roomUsers = currentRoom.GetRoomUserManager().GetRoomUsers();
foreach (RoomUser user in roomUsers)
{
user.moonwalkEnabled = true;
}
}
(any bcstorm edit) dont have my plus emu on this computer to code it for plus cant be to hard to convert :) dont forget to chatcommandregistery and command.ini and commandsregister.iniPHP Code:internal void freezeall()
{
Room currentRoom = this.Session.GetHabbo().CurrentRoom;
int effectId = 12;
List<RoomUser> roomUsers = currentRoom.GetRoomUserManager().GetRoomUsers();
foreach (RoomUser user in roomUsers)
{
if (Session.GetHabbo().Id != user.userID)
{
user.GetClient().GetHabbo().GetAvatarEffectsInventoryComponent().ApplyCustomEffect(effectId);
user.CanWalk = false;
}
}
}
Thats all im doing for today :) here you go @Droppy and @Pro
Im getting this error?
Error 1 'Butterfly.HabboHotel.GameClients.GameClientManager.clients' is inaccessible due to its protection level C:\Users\MYPC\Emulator\Butterfly\HabboHotel\Misc\ChatCommandHandler.cs 1261 108 Butterfly
Emulator
EDIT:
FIX:
change
private Dictionary<uint, GameClient> clients = new Dictionary<uint, GameClient>();
to
internal Dictionary<uint, GameClient> clients = new Dictionary<uint, GameClient>();
Is this safe to do?