This is my custom command service.
Here is the format.
[command]
[description]
[emulator]
Example
:test
:Send a notification to the user saying 'test'
Uber/Holograph
Please note, Some may not be instant.
Printable View
This is my custom command service.
Here is the format.
[command]
[description]
[emulator]
Example
:test
:Send a notification to the user saying 'test'
Uber/Holograph
Please note, Some may not be instant.
command - :brb
version = v26
what is does = makes user name example "(BRB) Richie"
I doubt this will work..Code:#region brb
case "brb":
{
_Username = "*[BRB] + "_Username"*";
refreshAppearance(true, true, true);
break;
}
#endregion
but worth a shot
and i dont think force has it cause i have their emulator.
K I would like a Toll function
<:Toll>
<R35>
<Charges a toll to go through on any one way gate from the set amount example blue gate :toll 11 credits charges a habbo 11 credits to go through it.>
Testing my abilities eh? xD
The actual toll code
I was thinking of putting it for admin's only, but wdf xDCode:#region :toll
case "toll":
{
string owner;
using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
{
owner = dbClient.getString("SELECT owner FROM rooms WHERE id = '" + _roomID + "'");
}
if (owner != _Username)
sendData("BK" + "Sorry, you cannot set a toll for a room you don't own");
else
{
int cost = int.Parse(args[1]);
if (cost < 0)
sendData("BK" + "Sorry, set your toll at 0");
else
{
using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
{
dbClient.runQuery("UPDATE users SET toll = '" + cost + "', toll = '1' WHERE id = '" + _roomID + "'");
}
sendData("BK" + "You have successfully put room toll at" + cost + " credits!");
}
}
break;
}
#endregion
Haven't debugged but should work xDCode:if (Item.Sprite == "one_way_door*3")// Black
{
using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
{
int toll;
int cost;
string roomOwner;
{
toll = dbClient.getInt("SELECT toll FROM rooms WHERE id = '" + _roomID + "'");
cost = dbClient.getInt("SELECT cost FROM users WHERE name = '" + _roomOwner + "'");
roomOwner = dbClient.getString("SELECT owner FROM rooms WHERE id = '" + _roomID + "'");
}
if (toll == 1)
{
dbClient.runQuery("UPDATE users SET credits = credits + '" + cost + "' WHERE name = '" + roomOwner + "'");
dbClient.runQuery("UPDATE users SET credits = credits - '" + cost + "' WHERE name = '" + _Username + "'");
}
refreshValueables(true, false);
sendData("BK" + "You have been charged 5 credits for your toll.");
}
}
A bit rushed.
Emulator: Dissi's edit R26
Command: :happyhour on/off
What it does: It puts the Rares catalogue_pages to rank 1 every monday on 7pm till 8pm and it refreshes the cata too >;)
@ rajito,
I would say Dissi's
though, i'm about to use lost memory's
@Eronisch
Once again, took a swing at itCode:#region :happyhour <yes>/<no>
case "happyhour":
{
using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
{
if (_Rank > 5)
{
string option = args[2];
{
if (option == "yes")
{
dbClient.runQuery("UPDATE catalogue_pages SET minrank = '3' WHERE indexid = '6'");
}
if (option == "no")
{
dbClient.runQuery("UPDATE catalogue_pages SET minrank = '7' WHERE indexid = '6'");
}
}
}
}
break;
}
#endregion
the indexid 6 = My Rares Page, fix that if you want.
the minrank = 3 VIP Rank.
Thanks!
(Command name) :summon ”username”
(Emulator) v26
(What it does) summon the user that you put in the command next to you, even if the person isn't in the room where you are
Posted via Mobile Device
Ok thanks but it said R35. But ok Ill try it
---------- Post added at 09:51 PM ---------- Previous post was at 09:47 PM ----------
:disease - turns into a zombie
:cure - Turns them back to normal. Gives them back there clothes.
:unclone - unclones them from when they used clone.
V26 Dissi Edit
[commandname]:ME
[emulator]RastaLulz RP Edition
[what it does]http://img121.imageshack.us/img121/2472/sinttulogw.png
Cure =Code:#region :bite <user>
case "disease":
{
virtualUser User = userManager.getUser(args[1]);
if (User._roomID == _roomID && (roomUser.Y == User.roomUser.Y && roomUser.X == User.roomUser.X) || (roomUser.Y + 1 == User.roomUser.Y && roomUser.X == User.roomUser.X) || (roomUser.Y - 1 == User.roomUser.Y && roomUser.X == User.roomUser.X) || (roomUser.Y == User.roomUser.Y && roomUser.X + 1 == User.roomUser.X) || (roomUser.Y == User.roomUser.Y && roomUser.X - 1 == User.roomUser.X))
{
User._Figure = "hd-180-35.ch-93.lg-270-110.sh-290-110.hr-831-61";
User._Mission = "Zombie";
User.refreshAppearance(false, true, true);
Room.sendSaying(roomUser, "*Spreads their zombie poison to " + User._Username + " causing zombification*");
}
break;
}
#endregion
Thats Disease.
and the Unclone is an easy Poof Cmd.Code:#region :inject <user>
case "inject":
{
virtualUser User = userManager.getUser(args[1]);
if (User._roomID == _roomID && (roomUser.Y == User.roomUser.Y && roomUser.X == User.roomUser.X) || (roomUser.Y + 1 == User.roomUser.Y && roomUser.X == User.roomUser.X) || (roomUser.Y - 1 == User.roomUser.Y && roomUser.X == User.roomUser.X) || (roomUser.Y == User.roomUser.Y && roomUser.X + 1 == User.roomUser.X) || (roomUser.Y == User.roomUser.Y && roomUser.X - 1 == User.roomUser.X))
{
User.refreshAppearance(true, true, true);
Room.sendSaying(roomUser, "*Turns " + User._Username + " back into a human.*");
User._Mission = "Human";
}
break;
}
#endregion
---------- Post added at 10:11 PM ---------- Previous post was at 10:10 PM ----------
Hmm this may take a while,
But i'll see if i can do something like that.
---------- Post added at 10:28 PM ---------- Previous post was at 10:11 PM ----------
Ok So this is my best bet at the "Me" Function
Where your Commands Are
Next Find internal int _Tickets;Code:#region me
case "me":
{
using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
{
dbClient.runQuery("UPDATE users SET me = '1' WHERE id = '" + userID + "'");
sendData("BK" + "You are now in *Me* Mode, To get out Say ;stop");
}
break;
}
case "stop":
{
using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
{
dbClient.runQuery("UPDATE users SET me = '0' WHERE id = '" + userID + "'");
}
break;
}
#endregion
Add This under that
Now the Big Part xDCode:int me = 0;
Find Message = stringManager.filterSwearwords(Message);
Under that you need to add
Thanks to swimo for teh base!!Code:string MECHECK;
using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
{
MECHECK = dbClient.getString("SELECT me FROM users where id = '" + userID + "'");
}
if (MECHECK == "1")
{
Message = "*" + Message + "*";
}
xD
Thanks and could you also get
:dropall -drops all items in hand-
:buy (amount) so when your about to buy something it gives you like 10 items instead of 1
---------- Post added at 03:01 AM ---------- Previous post was at 02:55 AM ----------
Here is the summon command for you!
Code:#region :summon <username>
case "summon":
{
if (_Rank < 7)
return false;
else
{
virtualUser User = userManager.getUser(args[1]);
User.sendData("D^" + "H" + Encoding.encodeVL64(_roomID));
User.sendData("BK" + "An administrator has summoned you!");
}
break;
}
#endregion
thanks i'm trying it out now
---------- Post added at 07:31 AM ---------- Previous post was at 07:19 AM ----------
code: :summonall
Emu: v26
what it does: same as the old summon, but then summon all the users, and if the room is full, then give an message that the room is full
Thanksssss summon Coe Works, But can you code the :summonall code?
---------- Post added at 12:17 PM ---------- Previous post was at 11:06 AM ----------
Emu: Holograph Dissi's edit
Command: :roombadge <badgecode> :roombadge off
What it does: ONLY admins can use this command.
if an admin is in his own room and say :roombadge <badgecode> all the users that are going to to room recieve the badge, and gives alert(you recieved a new badge!) and if someone that already has the badge is going to the room he gets no message or the message (you already have the badge)
if you say :roombadge off then the command is off ;)
---------- Post added at 12:19 PM ---------- Previous post was at 12:17 PM ----------
Emulator: Holograph Dissi's edit
Command: :clone <username>
Effect: Gives yourself the same clothes as the user that you typt.
Here is the Clone one!
Code:#region :clone
case "clone": // clone command
{
if (_Rank < 7)
return false;
virtualUser Target = userManager.getUser(Text.Split(' ')[1]);
if (rankManager.containsRight(_Rank, "fuse_administrator_access", userID) == false)
sendData("BK" + "You don't have the rights to steal someones look!");
{
using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
{
dbClient.runQuery("UPDATE users SET figure = '" + Target._Figure + "' WHERE id = '" + userID + "'");
refreshAppearance(true, true, true);
}
}
break;
}
#endregion
raiito
Why is it then roombadge off?
This cmd was already release so i'll just post it here
Thanks AWACode: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;
}
"summon all" will crash the server, trust me
so you rather leave it at the regular
:brb (message) and :back
V26
Say :brb (message) and then every minute you say I'm brb (message) for 1 minute. Then say :back for normal.
Note: please set it for all users.
Posted via Mobile Device
Oh shit i forgot about those A LONG TIME ago
I don thaz em anymore but now that i have gotten better they will be easier and cleaner xD
I Sill have the erm.
Colour Wars.
Converted to Other Games
Well the MassBadge was coded by Awa
I used Snippets for the "Me" System from Swim0
and the rest coded scratch
Heres a bit of a edit.
Code:#region massbadge
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("BK" + "You 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("BK" + "You have successfully sent a badge to all users!");
userManager.sendData("BK" + "You have received a badge, please check your badge list.");
}
}
break;
}
#endregion
command :bankrob
EMU: HoloRP Rasta
What does it do: make you Rob the bank But Give out Random amount of coins like i know someone release it but it only set for 200 coins each time i want random amount EVERY time
:purchase n :hair command Please Tyvm=Harsh :)
Daily credits everyday that you log in you get 500 credits
V26
Posted via Mobile Device
:warp x y
v26
Warps users to the certain places. My server doesn't have it for some reason...
--------------
Not sure what id call it, but im thinking this:
:standing
v26
Sends and alert to the user who typed command saying the x and y of where there standing, Also its rank 6+. I believe its been released before but i cant seem to find it anywhere, since i have no idea what its called :P
Code:#region warp
case "warp": // Warps the virtual user to a certain X,Y coordinate
{
if (rankManager.containsRight(_Rank, "fuse_administrator_access", userID) == false)
return false;
else
{
int X = int.Parse(args[1]);
int Y = int.Parse(args[2]);
roomUser.X = X;
roomUser.Y = Y;
roomUser.goalX = -1;
Room.Refresh(roomUser);
refreshAppearance(false, false, true); // Use the poof animation
}
break;
}
#endregion
int userCoins = 500; << Hc & Normal habbos will get 500Code:#region User coins daily system!
string now = DateTime.Today.ToString();
using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
{
int usercredits = dbClient.getInt("SELECT userid FROM user_dailycoins WHERE userid = '" + userID + "' AND date = '" + now + "'");
int userCoins = 500;
int staffShare = 1000;
if (usercredits == 0 && _Rank < 3)
{
dbClient.runQuery("INSERT INTO user_dailycoins (userid, date) VALUES ('" + userID + "','" + now + "')");
dbClient.runQuery("UPDATE users SET credits = credits + '" + userCoins + "' WHERE id = '" + userID + "'");
sendData("BK" + "You have just received " + userCoins + " coins from the daily system!");
refreshValueables(true, false);
}
else
{
if (usercredits == 0 && _Rank > 2)
{
dbClient.runQuery("INSERT INTO user_dailycoins (userid, date) VALUES ('" + userID + "','" + now + "')");
dbClient.runQuery("UPDATE users SET credits = credits + '" + staffShare + "' WHERE id = '" + userID + "'");
sendData("BK" + "You have just received " + staffShare + " coins from the daily system!");
refreshValueables(true, false);
}
}
}
#endregion
int staffShare = 1000; Rank 3 (VIP) Will get 1000 credits.
Hi all can somone do me a buy command?
so you can like buy a certain furni at a shop room ive been trying but not sure how to do it
[command]:buy <furniname>< Amount >
[Rastas RP Edition]
[what it does] gives you the asked furni and ammount and - creds right amount thx all
discript
Idk if it works, credits to aresCJCode:#region :buy
// Under development [AresCJ]
// :buy <TID> <username> <amount>
case "buy": // Buys a certain amount for a user.
{
if (rankManager.containsRight(this, "fuse_administrator_access", userID) == false)
{
return false;
}
string id = args[1]; // Get the username
string Amount = args[1]; // Get the amount for the users
int _userID = userManager.getUserID(id); // Must be an int to be read.
virtualUser _iD = userManager.getUser(_userID); // Retrieving the user ID
using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
{
foreach (virtualUser User in userManager._Users.Values)
{
for (int i = 0; i <= Int32.Parse(Amount); i++)
// Getting the amount for the user and how much he/she wants.
{
dbClient.runQuery("INSERT INTO furniture(tid,ownerid,roomid) VALUES (" + args[1] + "," + id + "," + "0)");
}
refreshHand("update");
}
}
break;
}
#endregion
I'm not 100% sure myself, I was working on it, then I passed it on somewhere I forgot.
---------- Post added at 05:57 AM ---------- Previous post was at 05:55 AM ----------
Yeap, there goes my other one!!
I'm developing a whole new way of doing this... it'll be much less code and much faster.
:follow <username>
Follows the user
v26
Thats already packet
If you are aiming at a RolePlay hotel that isnt needed
If not then its already in there.
---------- Post added at 04:35 PM ---------- Previous post was at 03:53 PM ----------
Theres your Follow Btw,
Code:#region follow
case "follow":
{
virtualUser User = userManager.getUser(args[1]);
{
sendData("D^" + "H" + Encoding.encodeVL64(User._roomID));
}
break;
}
#endregion
How about :loan x
Loans them money from bank But also have to pay it back within 3-4 days
Holo RP server
:addbot <name> <message> <desc>
Add a bot into the room with it saying the message you put. (making it apper infront of you wearing the clothing you where wearing well you said command)
V26 RP
:removebots
Removes all bots in room
V26 RP
I dont know if someone already posted this, but force does not have this. oim an ex-mod on force.. their custom commands are :moonwalk :token and i think another i dont remember.
and btw, nice :P ^^
Command: :rotm
Function: set all the current rooms in room_categorie 3 to room_categorie 0
Version: r26 dissi's edit
&
Command: :showhand <target>
Function: shows all the furni from the target in his hand in a alert. Like
<Target name> tid 1, tid 4 etc.
Version: r26 dissi's edit
:brb/:back
its make the people say: ik ben even weg! ik ben al HERE THE MINUTES HE'S AWAY weg
holograph emulator R36 from aresCJ
Mind my bad coding, As i am sick..Code:#region :rotm
case "rotm":// Room of the month!
{
if (_Rank > 6)
{
using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
{
int catagory;
catagory = dbClient.getInt("SELECT room_catagory FROM rooms");
}
{
if (catagory == 3);
dbClient.runQuery("UPDATE rooms SET room_catagory = '0' WHERE room_catagory = '3'");
}
}
break;
}
#endregion
command: :invite <message>
effect: Send an message to all online users that says an admin invited you! <message> do you want to come? <yes-no-button> if they click on yes they will follow.
emu: v26
Posted via Mobile Device
Il request an AFK system, after 3 minutes you go AFK, if you do not type (;
I'm going to release my :afk & :back commands for Rastalulz roleplay edition.
Code:#region :afk
case "afk": // enables :AFK status for Moderators+
{
if (_Rank > 5)
{
virtualUser User = userManager.getUser(args[1]);
using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
{
dbClient.runQuery("UPDATE users SET afk = '1' WHERE name = '" + _Username + "'");
User._Mission = "[AFK] This user is AFK";
{
User.refreshAppearance(true, true, true);
}
}
}
break;
}
#endregion
By the way, its more like :afk x & :back xCode:#region :back
case "back": // brings teh user back from AFK
{
if (_Rank > 5)
{
virtualUser User = userManager.getUser(args[1]);
using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
{
dbClient.runQuery("UPDATE users SET afk = '0' WHERE name = '" + _Username + "'");
User.refreshAppearance(true, true, true);
}
}
break;
}
#endregion
I haven't coded it to be like the :poof command.
------------------------------------
In your external_vars.txt, find
and replace withCode:moderator.cmds=[":alert x",":flag x",":ban x",":kick x",":superban x",":game x",":hire x",":hit x",":kill x",":promote x",":demote x",":fire x",":give x",":shutup x",":withdraw x",":say x",":unmute x",":transfer x",":softkick x",":punch x",":arrest x",":stun x",":cuff x",":uncuff x",":summon x",":push x",":pull x",":heal x",":release x","withdraw x",":adminheal x"]
:)Code:moderator.cmds=[":alert x",":flag x",":ban x",":kick x",":superban x",":game x",":hire x",":hit x",":kill x",":promote x",":demote x",":fire x",":give x",":shutup x",":withdraw x",":say x",":unmute x",":transfer x",":softkick x",":punch x",":arrest x",":stun x",":cuff x",":uncuff x",":summon x",":push x",":pull x",":heal x",":release x","withdraw x",":adminheal x",":afk x",":back x"]
Thanks,
- Menkz
Ok ehm, With my command i mean.
You will have to typ, :showhand <username>
Than it sends to you a message window that shows all the furni tid from the targets hand.
:givitem
Hand the target user the handitem the user is holding.
Rastalulz Dissis edit
:givebadge <user> <badgeid>
v26
gives badge to user
:jump
v26
And you jump (:
Right, Just releasing a few codes...:
(Credits to rasta for the basic base of it)Code:case "afk":
{
if (_Rank > 5)
{
using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
{
dbClient.runQuery("UPDATE users SET afk = '1' WHERE name = '" + _Username + "'");
string motto;
motto = dbClient.getString("SELECT mission FROM users WHERE name = '" + _Username + "'");
_Mission = "[AFK] " + motto;
refreshAppearance(false, false, true);
}
Room.sendSaying(roomUser, "Im AFK don't mess with me right now!");
break;
}
break;
}
And Back:
I am not the best coder im probably the worst but yer. There you go...Code:case "back":
{
if (_Rank > 5)
{
using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
{
dbClient.runQuery("UPDATE users SET afk = '0' WHERE name = '" + _Username + "'");
Room.sendSaying(roomUser, "*Right, I'm back Nowz!.*");
refreshAppearance(true, false, true);
refreshBadges();
refreshValueables(true, true);
}
break;
}
}
break;
Ok Erm.. I'm Going to Open this Back Up!!
And the First CMD is a FreeBie!
Code:#region remove
case "remove":
{
using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
{
string clothes = stringManager.wrapParameters(args, 1);
string[] id = clothes.Split(new Char[] { '-' });
string hair = id[0];
if (id[0] == "ch")
{
string thefigure = _Figure;
string[] result = thefigure.Split(new Char[] { '.' });
{
Room.sendSaying(roomUser, "*Removes shirt*");
result[1] = "ch-1-1";
_Figure = result[0] + "." + result[1] + "." + result[2] + "." + result[3] + "." + result[4] + "." + result[5] + "." + result[6];
{
dbClient.runQuery("UPDATE users SET figure = '" + result[0] + "." + result[1] + "." + result[2] + "." + result[3] + "." + result[4] + "." + result[5] + "." + result[6] + "' WHERE name = '" + _Username + "'");
}
refreshAppearance(false, true, true);
}
}
else if (id[0] == "ea")
{
string thefigure = _Figure;
string[] result = thefigure.Split(new Char[] { '.' });
{
Room.sendSaying(roomUser, "*Removes glasses*");
result[5] = "ea-1-1";
_Figure = result[0] + "." + result[1] + "." + result[2] + "." + result[3] + "." + result[4] + "." + result[5] + "." + result[6];
{
dbClient.runQuery("UPDATE users SET figure = '" + result[0] + "." + result[1] + "." + result[2] + "." + result[3] + "." + result[4] + "." + result[5] + "." + result[6] + "' WHERE name = '" + _Username + "'");
}
refreshAppearance(false, true, true);
}
}
else if (id[0] == "ha")
{
string thefigure = _Figure;
string[] result = thefigure.Split(new Char[] { '.' });
{
Room.sendSaying(roomUser, "*Removes hat*");
result[6] = "ha-1-1";
_Figure = result[0] + "." + result[1] + "." + result[2] + "." + result[3] + "." + result[4] + "." + result[5] + "." + result[6];
{
dbClient.runQuery("UPDATE users SET figure = '" + result[0] + "." + result[1] + "." + result[2] + "." + result[3] + "." + result[4] + "." + result[5] + "." + result[6] + "' WHERE name = '" + _Username + "'");
}
refreshAppearance(false, true, true);
}
}
else if (id[0] == "sh")
{
string thefigure = _Figure;
string[] result = thefigure.Split(new Char[] { '.' });
{
result[3] = "sh-1-1";
Room.sendSaying(roomUser, "*Purchases a new pair of shoes*");
_Figure = result[0] + "." + result[1] + "." + result[2] + "." + result[3] + "." + result[4] + "." + result[5] + "." + result[6];
{
dbClient.runQuery("UPDATE users SET figure = '" + result[0] + "." + result[1] + "." + result[2] + "." + result[3] + "." + result[4] + "." + result[5] + "." + result[6] + "' WHERE name = '" + _Username + "'");
}
}
refreshAppearance(false, true, true);
}
else
{
sendData("BK" + "You cannot be working, arrested or dead to change clothes!");
}
}
break;
}
#endregion
Can you code/finish of the gang commands in phoenixemulator;
:gangform - forms a gang
:gangkick - kicks a gang member
:gangleave - leave the gang your in
:gangaccept - accepts the gang invite
:ganginvite - invites the person of your choice.
and so on.
Thanks in advanceeeeeee :D
Ok, i coded this AFK system, i cant get it to retrive the old motto that user had. So i just set it to put the mission as 'Civilian' when they type :back, Can you help?
Server: Pheonix Emulator
v26
Code:#region back
case "back":
{
DB.runQuery("UPDATE users SET afk = '0' WHERE name = '" + _Username + "'");
DB.runQuery("UPDATE users SET mission = 'Civilian' WHERE name = '" + _Username + "'");
Room.sendSaying(roomUser, "*Guess who's back, back, back, back again, " + _Username + " is back, tell a friend*");
refreshAppearance(true, true, true);
break;
}
#endregion
Code:#region brb
case "brb":
{
Room.sendSaying(roomUser, "*BRB " + _Username + " *");
DB.runQuery("UPDATE users SET afk = '1' WHERE name = '" + _Username + "'");
DB.runQuery("UPDATE users SET mission = '[AFK]' WHERE name = '" + _Username + "'");
refreshAppearance(true, true, true);
break;
}
#endregion
:cfh Sends a call for help,
Rastalulz RP.
Posted via Mobile Device
Glad to help, Also, Do you need a coder for your hotel?Code:#region :cfh
case "cfh": // User sends CFH message
{
using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
{
string cfhMessage = Text.Substring(3);
dbClient.runQuery("INSERT INTO cms_help (username,ip,message,date,picked_up,subject,roomid) VALUES ('" + _Username + "','" + connectionSocket.RemoteEndPoint.ToString().Split(Char.Parse(":"))[0] + "','" + cfhMessage + "','" + DateTime.Now + "','0','CFH message [hotel]','" + _roomID.ToString() + "')");
int cfhID = dbClient.getInt("SELECT id FROM cms_help WHERE username = '" + _Username + "' AND picked_up = '0'");
string roomName = dbClient.getString("SELECT name FROM rooms WHERE id = '" + _roomID + "'"); // H = Automated / I = Manual H = Hide Room ID / I = Show Room ID
userManager.sendToRank(Config.Minimum_CFH_Rank, true, "BT" + Encoding.encodeVL64(cfhID) + Convert.ToChar(2) + "I" + "Sent: " + DateTime.Now + Convert.ToChar(2) + _Username + Convert.ToChar(2) + cfhMessage + Convert.ToChar(2) + Encoding.encodeVL64(_roomID) + Convert.ToChar(2) + roomName + Convert.ToChar(2) + "I" + Convert.ToChar(2) + Encoding.encodeVL64(_roomID));
}
break;
}
#endregion
Btw, Let me know if it doesn't work (;
Updated it for you. :)
Not much just a bit more advanced to what you did.
Im not the best coder but that should work.......
I added:
Into afkCode:{
int motto;
{
DB.getInt("SELECT mission FROM users WHERE name = " + _ Username +");
{
_Mission = "[AFK]" + motto;
And removed the mysql bit to make someones motto to Civillian.
Should work, did this on my server
THanks alot ;)
[:sellroom (price)]
[Habbx Emu]
[It allows people to sell their rooms for a price]
And another one:
[:buyroom]
[Habbx Emu]
[It allows people to buy their room for the amount priced, and if they don't have enough money they can't buy it, if the room gets bought the owner gets the credits charged]
I'm pretty sure HabbX emulator is Dissi's so these should work
Credits to Rasta.Code:#region :sellproperty <amount> & :buyproperty
case "sellproperty":
{
string owner;
using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
{
owner = dbClient.getString("SELECT owner FROM rooms WHERE id = '" + _roomID + "'");
}
if (owner != _Username)
sendData("BK" + "Sorry, but you cannot sell someone elses property.");
else
{
int salepice = int.Parse(args[1]);
if (salepice < 0)
sendData("BK" + "Sorry, but you cannot sell your property for less then 0 credits.");
else
{
using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
{
dbClient.runQuery("UPDATE rooms SET price = '" + salepice + "', sale = '1' WHERE id = '" + _roomID + "'");
}
sendData("BK" + "You have successfully put your property on the market for " + salepice + " credits!");
}
}
break;
}
case "buyproperty":
{
string forsale;
string roomprice;
string owner;
string credits;
using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
{
forsale = dbClient.getString("SELECT sale FROM rooms WHERE id = '" + _roomID + "'");
roomprice = dbClient.getString("SELECT price FROM rooms WHERE id = '" + _roomID + "'");
owner = dbClient.getString("SELECT owner FROM rooms WHERE id = '" + _roomID + "'");
credits = dbClient.getString("SELECT credits FROM users WHERE name = '" + _Username + "'");
}
if (forsale != "1")
sendData("BK" + "Sorry, but this room is not for sale.");
else
{
int roomprice_mod = int.Parse(roomprice);
int credits_mod = int.Parse(credits);
if (roomprice_mod > credits_mod && owner != _Username)
sendData("BK" + "Sorry, but you do not have enough credits to purchase this property.");
else
{
virtualUser User = userManager.getUser(owner);
using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
{
dbClient.runQuery("UPDATE rooms SET owner = '" + _Username + "', sale = '0' WHERE id = '" + _roomID + "'");
dbClient.runQuery("UPDATE users SET credits = credits + '" + roomprice + "' WHERE name = '" + owner + "'");
dbClient.runQuery("UPDATE users SET credits = credits - '" + roomprice + "' WHERE name = '" + _Username + "'");
dbClient.runQuery("DELETE FROM jobs_rooms WHERE room_id = '" + _roomID + "';");
}
refreshValueables(true, false);
User.refreshValueables(true, false);
sendData("D^" + "H" + Encoding.encodeVL64(_roomID));
sendData("BK" + "You have successfully bought this property for " + roomprice + " credits.");
User.sendData("BK" + _Username + " has bought your room for " + roomprice + " credits!");
}
}
break;
}
#endregion
-Bump-
Opening it back again! :D
Command name= :BRB
What it do= Changes players user name to [BRB] Username.
Emu=Holograph Emulator XZ Edit [R26]
Command= :back
What it do= Changes players username from [BRB] Username to Username
Emu=Holograph Emulator XZ Edit [R26]
Command name= :moonwalk
What it do= Makes player "Moonwalk"
Emu=Holograph Emulator XZ Edit [R26]
Thanx (:
Server v31
Dcrs v26
Command wanted
command on v26 holoemu to be able to do like :staffmeet meaning staff meeting message pops up sayying being taken to meeting then they all end up at infobus please
Posted via Mobile Device
Might want to change this, If its a public room an "I" is sent instead of an "H".
This is more precise:
Code:#region :follow
case "follow":
{
virtualUser User = userManager.getUser(args[1]);
{
if (User._inPublicroom == true)
{
sendData("D^" + "I" + Encoding.encodeVL64(User._roomID));
}
else // private / guest room
{
sendData("D^" + "H" + Encoding.encodeVL64(User._roomID));
}
}
break;
}
#endregion
Enjoy. :)
:summonall
what it does: summon all users in to the room i am at.
Note: PLEASE do not make me being summoned again. except that other people
OR you can make it rank 7 cannot be summoned.
Using aresCJ's finalemu.
r35.
Thanks
Here is a tuff one:
:pet <dog, cat or alligator>
transforms user to one of the Pets from above
V16 Hablux
Posted via Mobile Device
Lol... Sorry guys <3
Posted via Mobile Device
Now shall i open diz back up? :O
Yesh! Can you also do my request even though it's fir debbo
Posted via Mobile Device
Alex, ur making a vb6 server... Can you do it. Ohh and from the above I ment debbo now hablux
Posted via Mobile Device
stop bumbing threads u fucking fucker man slack
-High Drunk Zak
sorry no one replied.
here's sledmores :bankrob
1. Look for "private Thread workoutDosLooper;" in virtualUsers.cs
2. Under that put "private Thread bankRobLooper;"
3. Look for "private void jailBreak()"
4. Under that put
5. Look for ":jailbreak"Code:private void bankRob()
{
int iCount = 0;
try
{
while (true)
{
using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
{
if (_roomID != BANK VAULT ID HERE || roomUser.Y != BANK VAULT Y CORD HERE || roomUser.X != BANK VAULT X CORD HERE)
{
userManager.sendToCop(1, false, "BK" + "The bank is being robbed get there fast!");
Room.sendSaying(roomUser, "*stops robbing the banks vault*");
jailBreakLooper = null;
jailBreakLooper.Abort();
}
if (iCount == 60)
{
Room.sendSaying(roomUser, "*needs three more minutes to succesfully rob the banks vault*");
}
if (iCount == 120)
{
Room.sendSaying(roomUser, "*needs two more minutes to succesfully rob the banks vault*");
}
if (iCount == 180)
{
Room.sendSaying(roomUser, "*needs one more minute to succesfully rob the banks vault*");
}
iCount++;
if (iCount > 180)
{
Room.sendSaying(roomUser, "*successfully breaks into to the banks vault and claims 200 credits!*");
dbClient.runQuery("UPDATE users SET credits = credits + 200 WHERE id = '" + userID + "' LIMIT 1");
refreshValueables(true, true);
bankRobLooper = null;
bankRobLooper.Abort();
}
Thread.Sleep(1000);
}
}
}
catch
{
Thread.CurrentThread.Abort();
bankRobLooper = null;
}
}
6. Under that region put
Don't forget to adjust the cords and room ids.Code:#region :bankrob
case "bankrob":
{
if (bankRobLooper == null && _roomID == YOUR BANK VAULT ID HERE && roomUser.Y == THE Y CORD OF THE TILE && roomUser.X == THE X CORD OF THE TILE)
{
userManager.sendToCop(1, false, "BK" + "The bank is being robbed get there fast!");
Room.sendSaying(roomUser, "*Starts to rob the banks vault*");
Room.sendSaying(roomUser, "*needs four more minutes to succesfully rob the banks vault*");
ThreadStart bankRobStarter = new ThreadStart(bankRob);
bankRobLooper = new Thread(bankRobStarter);
bankRobLooper.Priority = ThreadPriority.Lowest;
bankRobLooper.Start();
}
break;
}
#endregion
Credits 100% Sledmore.
I want everyone to know, I'm opening this back up and now including Uber commands ;]
ok then man,
ill get the ball rolling, make a summon command for uber? useful to someone? ;)
PHP Code:#region :summon <user>
case "summon":
{
if (Session.GetHabbo().Rank >= 5)
{
TargetRoom = UberEnvironment.GetGame().GetClientManager().GetClientByHabbo(Params[1]).GetHabbo().CurrentRoom;
TargetUser = Params[1];
if (TargetUser == null)
{
Session.SendNotif("You didn't input a target");
return false;
}
TargetClient = UberEnvironment.GetGame().GetClientManager().GetClientByHabbo(TargetUser);
if (Session.GetHabbo().CurrentRoomId == TargetClient.GetHabbo().CurrentRoomId)
{
Session.SendNotif(Params[1] + " is already in that room!");
}
TargetClient.SendNotif(Session.GetHabbo().Username + " summoned you");
TargetClient.GetMessageHandler().PrepareRoomForUser(Session.GetHabbo().CurrentRoomId, "");
}
}
return true;
#endregion
me i was thinking about selling a room with all furni in it command
[command] :welcomemsg
[description] sets a welcome message when users enter a room!
[emulator] ceser1's
[command] admincmds
[description] Pops up admins commands only for rank 7
[emulator] Dissi's
Thnx
Coolaid, can u really not code that yourself? I can code that
PHP Code:#region :commands
case "commands": // commands list
{
StringBuilder Commands = new StringBuilder();
if (_Rank >= 5)
{
Commands.AppendLine("Staff Commands");
Commands.AppendLine("List em here");
}
if (_Rank == 4)
{
Commands.AppendLine("Moderator Commands");
Commands.AppendLine("List em here");
}
if (_Rank > 1 && _Rank < 4)
{
Commands.AppendLine("VIP Commands");
Commands.AppendLine("List em here");
}
if (_Rank < 2)
{
Commands.AppendLine("Your Commands");
Commands.AppendLine("List em here");
}
sendData("BK" + Commands.ToString());
break;
}
#endregion
Thnx that command worked! I have one more
[command] :poof
[description] Refreshes the user in client
[emulator] Dissi's
Thnxnxx
version:26
EMU:Habbx EMU
Command: dick the naked command with the dick on it ;)
Lol, Thank you but please do not send notifcation back to here with the code please send to my email b c ill probly not be on for so. so heres my email at thrillhotel@gmail.com thanks-Christian
Are you mad? pixel dick can't be made by commands itself.
---------- Post added at 02:26 PM ---------- Previous post was at 02:24 PM ----------
Oh, if someone needs a Holograph command lemme know i wanna test my Ion skills with Holograph ^-^
Command:Naked
Emulator:R63
Effect: Makes user Naked showing penis and vagina
Command:Sex (UserName)
Emulator:R63
Effect: makes you have sex with other user (they must have a button come up saying :Yes or no to sex?)
I think the dude above me is a virgin.... And he's never gonna get laid...
You can actually uhm... draw them on the ccts..
Correction, only a virgin who's never gonna get laid, will do that (:
[setroommessage]
[holograph emulator]
room owner may set a room welcome message when users enter room they will recieve the message