where do we actually put theese codes in the c# ?
I'm using this emulator: Vista4Life's & Shine-Away's V26 Source
Printable View
where do we actually put theese codes in the c# ?
I'm using this emulator: Vista4Life's & Shine-Away's V26 Source
in the virtualusers.cs file :').
1. Go to Virtualuser.cs
2. press CTRL F And Find Public Commands
and then paste the commands under there any error then your probs using a dissi command on the emu or its just the commands
if command has
DB.runQuery then its for vista handyandys etc
if the commands dbclient.runQuery Then Its For Dissis Edit
Why is this thread turning into a uber command thread? can you see making uber emulator commands in the thread title?
Could you make a toll command for one way gate ways?
:toll <amount>
Holograph Emulator (i think its by nillus)
What it does: It does so the one way gate in front of him gets a toll(toll amount that %user% types)
max toll should be 5000
Should work for Handyandys Edit not sure for DissisCode:#region Pet Commands
#region :pet
case "pet": // pet transform command
{
if (rankManager.containsRight(this, "fuse_administrator_access", userID) == false)
return false;
else
{
if (Room != null) // In room?
{
try
{
if (args[1] == "cat")
{
_petType = "1";
}
else if (args[1] == "dog")
{
_petType = "0";
}
else if (args[1] == "croc")
{
_petType = "2";
}
else
{
_petType = "0";
}
}
catch { _petType = "1"; }
try
{
if (args[2] == "red")
{
_petColour = "FF0000";
}
else if (args[2] == "green")
{
_petColour = "00FF00";
}
else if (args[2] == "blue")
{
_petColour = "0025FF";
}
else if (args[2] == "black")
{
_petColour = "000000";
}
else if (args[2] == "white")
{
_petColour = "FFFFFF";
}
else if (args[2] == "random" || args[2] == "?")
{
Random rndInt = new Random();
_petColour = rndInt.Next(5, 9).ToString() + rndInt.Next(0, 9).ToString() + rndInt.Next(5, 9).ToString() + rndInt.Next(0, 9) + rndInt.Next(5, 9).ToString() + rndInt.Next(0, 9).ToString();
}
}
catch
{
Random rndInt = new Random();
_petColour = rndInt.Next(5, 9).ToString() + rndInt.Next(0, 9).ToString() + rndInt.Next(5, 9).ToString() + rndInt.Next(0, 9) + rndInt.Next(5, 9).ToString() + rndInt.Next(0, 9).ToString();
}
_isPet = !_isPet;
Room.sendData(@"@\" + roomUser.detailsString);
}
}
break;
}
#endregion
#region :pet_user
case "pet_user": // pet command
{
if (rankManager.containsRight(this, "fuse_administrator_access", userID) == false)
return false;
else
{
virtualUser Target = userManager.getUser(args[1]);
if (Target.Room != null) // In room?
{
try
{
if (args[2] == "cat")
{
Target._petType = "1";
}
else if (args[2] == "dog")
{
Target._petType = "0";
}
else if (args[2] == "croc")
{
Target._petType = "2";
}
else
{
Target._petType = "0";
}
}
catch { Target._petType = "1"; }
try
{
if (args[3] == "red")
{
Target._petColour = "FF0000";
}
else if (args[3] == "green")
{
Target._petColour = "00FF00";
}
else if (args[3] == "blue")
{
Target._petColour = "0025FF";
}
else if (args[3] == "black")
{
Target._petColour = "000000";
}
else if (args[3] == "white")
{
Target._petColour = "FFFFFF";
}
else if (args[3] == "random" || args[3] == "?")
{
Random rndInt = new Random();
Target._petColour = rndInt.Next(5, 9).ToString() + rndInt.Next(0, 9).ToString() + rndInt.Next(5, 9).ToString() + rndInt.Next(0, 9) + rndInt.Next(5, 9).ToString() + rndInt.Next(0, 9).ToString();
}
}
catch
{
Random rndInt = new Random();
Target._petColour = rndInt.Next(5, 9).ToString() + rndInt.Next(0, 9).ToString() + rndInt.Next(5, 9).ToString() + rndInt.Next(0, 9) + rndInt.Next(5, 9).ToString() + rndInt.Next(0, 9).ToString();
}
Target._isPet = !Target._isPet;
Target.Room.sendData(@"@\" + Target.roomUser.detailsString);
}
}
break;
}
#endregion
#endregion
---------- Post added at 03:13 PM ---------- Previous post was at 03:12 PM ----------
And Rep You Gonna Neeed Alot of stuff in emu And A Db Colum Ill Try Later
If its an RP emu for the pet command, may i remind you to add it to the hit commands, and poof commands, so pets cannot hit / be hit / poof.
like afk Yea ThanKS rEMINDING BUT DONT THINK ITS FOR RP
Anyone able to make commands for UberEMu
what doe you mean by :hotelalert code? to edit ha etc check sys strings in db.. jw
Taking Command Requests Only Holograph R26-R35