Re: [REL][SERVICE] Making Holograph Commands! [SERVICE][REL]
I finished coding but it through me heaps of errors. So im only doing r26.
Re: [REL][SERVICE] Making Holograph Commands! [SERVICE][REL]
Oh, just thought of this. :promote
:demote
Re: [REL][SERVICE] Making Holograph Commands! [SERVICE][REL]
Quote:
Originally Posted by
settaz
:pull
v26
:hirecop
v26
This makes their rank 3
:firecop
v26
This makes their rank back 2
:stun
v26
Stuns and says *Stuns [username]*
:unstun
v26
Stuns and says *Stuns [username]*
Note: :stun last for 10 seconds
What does :pull do?
:stun/:unstun
PHP Code:
#region :stun
case "stun":
{
if (rankManager.containsRight(_Rank, "fuse_administrator_access") == false)
return false;
else
{
virtualUser _User = userManager.getUser(args[1]);
if (_User.roomUser.walkLock == false)
{
_User.roomUser.walkLock = true; // Freeze the user
Room.sendSaying(roomUser, "*Stunned " + _User._Username + "*");
sendData("BK" + _User._Username + " is now stunned!");
}
else
{
sendData("BK" + _User._Username + " is already stunned!");
}
}
break;
}
#endregion
#region :unstun
case "unstun":
{
if (rankManager.containsRight(_Rank, "fuse_administrator_access") == false)
return false;
else
{
virtualUser _User = userManager.getUser(args[1]);
if (_User.roomUser.walkLock == true)
{
_User.roomUser.walkLock = false; // unfreeze the user
Room.sendSaying(roomUser, "*Unstunned " + _User._Username + "*");
sendData("BK" + _User._Username + " is now unstunned!");
}
else
{
sendData("BK" + _User._Username + " is not stunned!");
}
}
break;
}
#endregion
:hirecop/:firecop
PHP Code:
#region :hirecop
case "hirecop":
{
virtualUser Target = userManager.getUser(DB.Stripslash(args[1]));
{
DB.runQuery("UPDATE users SET rank = '3' WHERE username = '" + Target._Username + "'");
Target.sendData("BK" + "You have just been hired as a cop.");
sendData("BK" + "You have just made " + Target._Username + " a cop.");
}
break;
}
#endregion
#region :firecop
case "firecop":
{
virtualUser Target = userManager.getUser(DB.Stripslash(args[1]));
{
DB.runQuery("UPDATE users SET rank = '2' WHERE username = '" + Target._Username + "'");
Target.sendData("BK" + "You have just been fired from being a cop.");
sendData("BK" + "You have just fired " + Target._Username + " from being a cop.");
}
break;
}
#endregion
Re: [REL][SERVICE] Making Holograph Commands! [SERVICE][REL]
They seem not to work...When I use:stun it says :stun [username]
For :hirecop it says DB does not exist in context,
Re: [REL][SERVICE] Making Holograph Commands! [SERVICE][REL]
Quote:
Originally Posted by
settaz
They seem not to work...When I use:stun it says :stun [username]
What ones dont work. Does the cop ones work. I know the stun commands do cause i use them on my hotel.
---------- Post added at 02:24 PM ---------- Previous post was at 02:16 PM ----------
Quote:
Originally Posted by
settaz
They seem not to work...When I use:stun it says :stun [username]
For :hirecop it says DB does not exist in context,
So ur emu uses dbClient. Here they are.
PHP Code:
#region :hirecop
case "hirecop":
{
virtualUser Target = userManager.getUser(args[1]);
using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
{
dbClient.runQuery("UPDATE users SET rank = '3' WHERE username = '" + Target._Username + "'");
Target.sendData("BK" + "You have just been hired as a cop.");
sendData("BK" + "You have just made " + Target._Username + " a cop.");
}
break;
}
#endregion
#region :firecop
case "firecop":
{
virtualUser Target = userManager.getUser(args[1]);
using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
{
dbClient.runQuery("UPDATE users SET rank = '2' WHERE username = '" + Target._Username + "'");
Target.sendData("BK" + "You have just been fired from being a cop.");
sendData("BK" + "You have just fired " + Target._Username + " from being a cop.");
}
break;
}
#endregion
Re: [REL][SERVICE] Making Holograph Commands! [SERVICE][REL]
Thanks.
Can you do:
:promote
v26
It promotes cops from cadet to Officer to Commisioner
:demote
v26
It demotes from officer to cadet
:fire
v26
It fires a cop
Re: [REL][SERVICE] Making Holograph Commands! [SERVICE][REL]
Quote:
Originally Posted by
settaz
Thanks.
Can you do:
:promote
v26
It promotes cops from cadet to Officer to Commisioner
:demote
v26
It demotes from officer to cadet
:fire
v26
It fires a cop
Sorry for being late.
:promote
PHP Code:
#region :promote
case "promote":
{
using (DatabseClient dbClient = Eucalypt.dbManager.GetClient())
virtualUser Target = userManager.getUser(args[1]);
if (rankManager.containsRight(_Rank, "fuse_administrator_access", userID) == false)
return false;
else
{
int Rank = dbClient.getInt("SELECT rank FROM users WHERE name = '" + Target._Username + "'", null);
{
if (Rank == 3)
{
dbClient.runQuery("UPDATE users SET rank = '4' WHERE name = '" + Target._Username + "'");
Target.sendData("BK" + "You have just been upgraded to a Officer.");
sendData("BK" + "You have just upgaded " + Target._Username + " to a Officer.");
}
else if (Rank == 4)
{
dbClient.runQuery("UPDATE users SET rank = '5' WHERE name = '" + Target._Username + "'");
Target.sendData("BK" + "You have just been upgraded to a Commisioner.");
sendData("BK" + "You have just upgaded " + Target._Username + " to a Commisioner.");
}
}
}
break;
}
#endregion
The fire command is :firecop i posted before.
And im working on demote.
---------- Post added at 08:44 PM ---------- Previous post was at 08:37 PM ----------
Heres Demote.
PHP Code:
#region :demote
case "demote":
{
using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
virtualUser Target = userManager.getUser(args[1]);
if (rankManager.containsRight(_Rank, "fuse_administrator_access", userID) == false)
return false;
else
{
int Rank = dbClient.getInt("SELECT rank FROM users WHERE name = '" + Target._Username + "'", null);
{
if (Rank == 3)
{
dbClient.runQuery("UPDATE users SET rank = '2' WHERE name = '" + Target._Username + "'");
Target.sendData("BK" + "You have just been demoted to a user.");
sendData("BK" + "You have just demoted " + Target._Username + " to a user.");
}
else if (Rank == 4)
{
dbClient.runQuery("UPDATE users SET rank = '3' WHERE name = '" + Target._Username + "'");
Target.sendData("BK" + "You have just been demoted to a Officer.");
sendData("BK" + "You have just demoted " + Target._Username + " to a Officer.");
}
}
}
break;
}
#endregion
Re: [REL][SERVICE] Making Holograph Commands! [SERVICE][REL]
For both it says dbClient does not exist in the context.
Also, for :startwork can you make it where if rank 3 motto is cadet, rank 4 officer, rank 5 chief, and rank 6 and 7 commisioners
Re: [REL][SERVICE] Making Holograph Commands! [SERVICE][REL]
I get the following error when recompiling the source after adding the :getfurni (pickall) command:
"'Holo.Virtual.Rooms.virtualRoom.FloorItemManager._Items' is inaccessible due to its protection level"
How do I fix this?
Re: [REL][SERVICE] Making Holograph Commands! [SERVICE][REL]
Quote:
Originally Posted by
321olos
Ok im bored so im gonna code commands. So ask for a command and i will probs code in 10-30 mins depending if its big.
Can u code a command to give every users registered furnis like
:massfurni
And
Users who are Online like :globalfurni
That would be cool.
Im asked for it 3x xd
Re: [REL][SERVICE] Making Holograph Commands! [SERVICE][REL]
Can you make some commands for nillus v23
So like
:invisible <user> rank 7 only
and
:teleport <user> so you can teleport a user arround a room <rank 7 only>
Re: [REL][SERVICE] Making Holograph Commands! [SERVICE][REL]
Quote:
Originally Posted by
tweeney
Can you make some commands for dissi v26
So like
:invisible <user> rank 7 only
and
:teleport <user> so you can teleport a user arround a room <rank 7 only>
Dissi teleport is
#region :teleport/:warp
case "teleport": // Toggles the user's teleport ability on/off
{
if (rankManager.containsRight(_Rank, "fuse_administrator_access", userID) == false)
return false;
else
{
roomUser.SPECIAL_TELEPORTABLE = (roomUser.SPECIAL_TELEPORTABLE != true); // Reverse the bool
refreshAppearance(false, false, true); // Use the poof animation
}
break;
}
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
dont know about invisible
Re: [REL][SERVICE] Making Holograph Commands! [SERVICE][REL]
Quote:
Originally Posted by
kylegill
Dissi teleport is
#region :teleport/:warp
case "teleport": // Toggles the user's teleport ability on/off
{
if (rankManager.containsRight(_Rank, "fuse_administrator_access", userID) == false)
return false;
else
{
roomUser.SPECIAL_TELEPORTABLE = (roomUser.SPECIAL_TELEPORTABLE != true); // Reverse the bool
refreshAppearance(false, false, true); // Use the poof animation
}
break;
}
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
dont know about invisible
Teleport is for your own, when u tip :teleport & u click on the floor, then u are teleporting & warp is when u want to move to a x y floor..
Re: [REL][SERVICE] Making Holograph Commands! [SERVICE][REL]
o shit, sorry i mis-read it. there is a command released for it somewhere. ill have a look around
Re: [REL][SERVICE] Making Holograph Commands! [SERVICE][REL]
SOmebody Found a Massfurni Command?
:massfurni, like :massbadge, but it give all users a Furni.
That would be cool, when somebody got the command ;D