Re: [Service] Holograph Commands [Service]
Quote:
Originally Posted by
Eronisch
Code:
#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
Idk if it works, credits to aresCJ
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 ----------
Quote:
Originally Posted by
Eronisch
Code:
#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 userCoins = 500; << Hc & Normal habbos will get 500
int staffShare = 1000; Rank 3 (VIP) Will get 1000 credits.
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.
Re: [Service] Holograph Commands [Service]
:follow <username>
Follows the user
v26
Re: [Service] Holograph Commands [Service]
Quote:
Originally Posted by
rajito
invite to room
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
Re: [Service] Holograph Commands [Service]
How about :loan x
Loans them money from bank But also have to pay it back within 3-4 days
Holo RP server
Re: [Service] Holograph Commands [Service]
: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
Re: [Service] Holograph Commands [Service]
Quote:
Originally Posted by
No0b
wow thanks lol
did you just go over my post? lol
?
and
:sendall (roomid)
Sends all users in the room to the roomid selected
V26 RP
Re: [Service] Holograph Commands [Service]
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 ^^
Re: [Service] Holograph Commands [Service]
Quote:
Originally Posted by
smartguy88
?
and
:sendall (roomid)
Sends all users in the room to the roomid selected
V26 RP
Code:
#region :sendroom <roomid>
case "sendroom":
{
if (_Rank > 6)
{
foreach (virtualRoomUser ALLUSERSINROOM in Room.Users)
{
int roomid = int.Parse(args[1]);
ALLUSERSINROOM.User.sendData("D^" + "H" + Encoding.encodeVL64(roomid));
}
}
break;
}
#endregion
:)
Re: [Service] Holograph Commands [Service]
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
Re: [Service] Holograph Commands [Service]
: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
Re: [Service] Holograph Commands [Service]
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
Mind my bad coding, As i am sick..
Re: [Service] Holograph Commands [Service]
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
Re: [Service] Holograph Commands [Service]
Il request an AFK system, after 3 minutes you go AFK, if you do not type (;
Re: [Service] Holograph Commands [Service]
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
Code:
#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
By the way, its more like :afk x & :back x
I haven't coded it to be like the :poof command.
------------------------------------
In your external_vars.txt, find
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"]
and replace with
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
Re: [Service] Holograph Commands [Service]
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.