Where do you add commands?

Status
Not open for further replies.

Sujoyy

Member
Jan 21, 2011
147
1
Where do you add the commands for example.
PHP:
#region :escape
case "escape":
{
if (rankManager.containsRight(_Rank, "fuse_administrator_access") == false)
return false;
else
{
string jail;
jail = DB.runRead("SELECT arrested FROM users WHERE name = '" + _Username + "'");
if (jail == "1")
{
DB.runQuery("UPDATE users SET arrested = '0', time_jail = '0' WHERE name = '" + _Username + "'");
Room.sendSaying(roomUser, "*Uses their god like powers to escape prison*");
TestRefresh(_Username);
jailLooper.Abort();
jailLooper = null;

}
}
break;
}
#endregion

Where do I put that? DB?
 

Kieren

The OGz
Aug 4, 2010
2,957
751
1. Okay.. open virtualUser.CS with visual c# or visual studio.
1b. If u dont do the above you can open virtualUser.CS with any text editing software.
2. Press "CTRL + F" to search. Search for case "alert":.
2b. If u dont do the above you can scroll down until you find any of the commands.
3. Above case"alert": add your command.
3b. If u dont do the above you can place your command under this.

PHP:
   switch (args[0].ToLower()) // arg[0] = command itself
                {

Thanks to Niqu for information, in the first place.

[mod] Thread closed problem solved. [/mod]
 
Status
Not open for further replies.

Users who are viewing this thread

Top