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.