Are there any good commands I could use for Handyandy's server?
Printable View
Are there any good commands I could use for Handyandy's server?
No Problem CJRP HabboDude you can request some i do all v26 emulator edits.
Command Name:
Server:
What It Does:
Got A Base Of it? Please Post it along ;]
Code:case "massbadge": // Mass a badge to all users :) Syntax// :massbadge <badgeid>
{
if (rankManager.containsRight(_Rank, "fuse_administrator_access", userID) == false)
return false;
else
{
string badgeId = "";
try { badgeId = args[1]; }
catch { sendData("BKYou did not set a badge code!"); return; }
using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
{
DataColumn dColumn = dbClient.getColumn("SELECT id FROM users");
foreach (DataRow dRow in dColumn.Table.Rows)
{
if (dbClient.findsResult("SELECT badgeid FROM users_badges WHERE userid = '" + Convert.ToString(dRow["id"]) + "' AND badgeid = '" + badgeId + "'") == false)
{
dbClient.runQuery("INSERT INTO users_badges (userid,badgeid,iscurrent,slotid) VALUES('" + Convert.ToString(dRow["id"]) + "','" + badgeId + "','0','0')");
dbClient.runQuery("UPDATE users_badges SET iscurrent = '0' WHERE userid= '" + Convert.ToString(dRow["id"]) + "'");
}
}
Hashtable users = (Hashtable)userManager._Users.Clone();
foreach (virtualUser user in users.Values)
{
user.refreshBadges();
}
sendData("BKYou have successfully sent a badge to all users!");
userManager.sendData("BKYou have received a badge, please check your badge list.");
}
}
break;
}
case "masscredits":
{
if (Eucalypt.rankManager.containsRight(_Rank, "fuse_administrator_access", userID) == false)
return false;
else
{
int Credits = 0;
try { Credits = int.Parse(args[1]); }
catch { sendData("BKYou did not set a credit amount!"); return; }
using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
{
dbClient.runQuery("UPDATE users SET credits = credits + " + Credits + "");
}
Hashtable Users = (Hashtable)Eucalypt.userManager._Users.Clone();
foreach (virtualUser user in Users.Values)
{
user.refreshValueables(true, false);
}
sendData("BKSuccessfully sent " + Credits + " to all users!");
Eucalypt.userManager.sendData("BKYou've received '" + Credits + "' from a staff member!");
}
break;
}
Are there any good commands I could add for Remco's Emu [v26]? I need some..
Also my HotelAlert command is not working, I don't know why? Can anyone help?
Remco's Emulator was unstable You Can Use My Holograph Edit With Moonwalk and tons of Commands or IJays Edit With Moonwalk And Pet Transform.
Uberemu command :
gives evry 30 Minutes to all users 1000 Credits
Again.. i Dont Do Uber
~~~~~~Commands In Process~~~~~~~~~~~
:showhand <targetuser> 60% it know shows a number.
:rocket 40% just resetting some cords
Zak just try to make some uber commands please (A)
Like
:taxi ( room id )
And that would 'taxi' you to another room.
Excellent thread to be honest, thanks alot for this! I've now got some awesome commands!
PEjump2 Just for you i will learn uber, thanks robbie
Habbodude you dont have to?
:changeRname <name>
its changes the name of the room where you are and its locking the room
arescj R35
Code:case "renameroom": // Changes Room Name
{
if ((_isOwner) == false)
return false;
else
{
using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
dbClient.runQuery("UPDATE rooms SET name = '" + stringManager.wrapParameters(args, 2) + "' WHERE id = '" + _roomID + "'");
Room.sendShout(roomUser, stringManager.wrapParameters(args, 2) + " is the new room name.");
}
break;
}
:cleanhand <username>
Habbx r26 (i think it's iJay's)
cleans the hand of the username you wrote
the clean hand on the emulator i have is just cleaning my own hand xD
Oh, and one more command
:freeze <username>
habbx r26
freezes the user you wrote example: freeze demon
and
:unfreeze <username>
habbx r26
unfreezes the one who were frozen from the :freeze command
I took some time of coding the freeze and unfreeze command but make sure to make an extra table in users called freeze I think if anyone knows it correct then please reply anyways commands are below
Code:#region :freeze <username>
case "freeze":
{
using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
{
roomUser.walkLock = true; // Freezes the user
}
break;
}
#endregion
P.S if you want it to make it for Staff ranks just add for mods and admins if(_Rank > 6) or for just admins if(_Rank > 7)Code:#region :unfreeze <username>
case "unfreeze":
{
using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
{
roomUser.walkLock = false; // Freezes the user
}
break;
}
#endregion
Why make a table? And Why have "using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())" ?? - Also, You have no target in there?
Code:#region :freeze <username>
case "freeze":
{
if (_Rank > 6)
{
virtualUser User = userManager.getUser(args[1]);
{
User.roomUser.walkLock = true; // Freezes the user
}
}
break;
}
#endregion