- Joined
- Jul 8, 2010
- Messages
- 1
- Reaction score
- 0
Are any of these Commands for UberCMS R50-R54, if there not can anyone make commands for Ubercms ?
Are any of these Commands for UberCMS R50-R54, if there not can anyone make commands for Ubercms ?
SSorry Holograph Emulator Only And Idiotic is working Is That You Cant try to Work If Your Arrested
I'll download uberEmulator and check it out.
I wants some codes:
*Shoot down [USERNAME]*
It will shoot down the target user and cut down 500 credits and 10 hp(row in db:
hp
version:Lost_Memory edition v26
No I will explain
first you shoot and will steal some credits(500 credits)
ps. and a code if you have 0 hp you'll be redirected to our hospital where you must stay for 5 mins.
No, i tryed that code, and it doesn´t work because Emu35 doesn´t have the code :drink or somethingSame One Released Before It Should Work With Emu35 And Thanks Idiotic for Explaining to himCode:#region :voice <"text"> You need to put the quotes, Example: :voice "Welcome-everyone" case "voice": { string text = args[1]; statusManager.carryItem("voiceSpeak(" + text + ")"); Thread.Sleep(1000); { statusManager.carryItem("voiceStop"); } } break; #endregion
I Get A Working Drink Command For Emu35No, i tryed that code, and it doesn´t work because Emu35 doesn´t have the code :drink or something![]()
It doesn't work for emu35, because emu35 allows only numbers (int) for carryitem. It can be easily fixed thought.No, i tryed that code, and it doesn´t work because Emu35 doesn´t have the code :drink or something![]()
#region :shoot <user>
case "shoot":
{
using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
{
virtualUser User = userManager.getUser(args[1]);
if (roomUser.walkLock == true)
{
sendData("BK" + "Nice try, But You Cant Shoot While Stunned.");
}
else
{
{
int isArrested = dbClient.getInt("SELECT arrested FROM users WHERE name = '" + _Username + "'");
int canShoot = dbClient.getInt("SELECT shoot FROM rooms WHERE id = '" + _roomID + "'");
int isAfk = dbClient.getInt("SELECT afk FROM users WHERE name = '" + User._Username + "'");
if (isAfk == 1)
{
sendData("BK" + "Nice Try Cant Shoot If There AFK.");
}
else
{
if (isArrested < 1)
{
if (canShoot == 1)
{
sendData("BK" + "Sorry But You Cant Shoot In This Room");
}
else
{
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))
{
int myHealth = dbClient.getInt("SELECT health FROM users WHERE name = '" + User._Username + "'");
Random randNum = new Random();
int shoot_dif_0 = 10;
//what a user shoots
int shoot = shoot_dif_0;
int getshoot = myHealth - shoot;
if (getshoot< 1 && _Username == User._Username)
{
sendData("BK" + "You Cant Kill Yourself.");
}
else
{
dbClient.runQuery("UPDATE users SET health = health - '" + shoot + "' WHERE name = '" + User._Username + "'");;
int health_db_ko = dbClient.getInt("SELECT health FROM users WHERE name = '" + User._Username + "'");
Room.sendShout(roomUser, "*Shoots at " + args[1] + ", causing " + shoot + " damage and gets 100 credits*");
//if the user has 0 health left
if (health_db_ko < 1)
{
if (User._Mission == "[Game] Deathmatch" || User._Mission == "[Game] Brawl")
{
Room.sendShout(roomUser, "*Shoots " + args[1] + ", sending them to the lobby*");
if (User._Mission == "[Game] DeathMatch")
{
if (_Mission == "[Game] Deathmatch")
{
dbClient.runQuery("UPDATE users SET game_dm = game_dm + '10' WHERE name = '" + _Username + "'");
}
User.sendData("D^" + "H" + Encoding.encodeVL64(272));
User.sendData("BK" + "Thank you for playing deathmatch.");
}
if (User._Mission == "[Game] Shoot match")
{
if (_Mission == "[Game] Shoot Match")
{
dbClient.runQuery("UPDATE users SET game = game_dm + '1' WHERE name = '" + _Username + "'");
}
User.sendData("D^" + "H" + Encoding.encodeVL64(181));
User.sendData("BK" + "Thank you for playing Shoot Match.");
}
User.refreshAppearance(true, true, true);
dbClient.runQuery("UPDATE users SET health = '100' WHERE name = '" + User._Username + "'");
}
else
{
User.sendData("D^" + "H" + Encoding.encodeVL64(153));
User.sendData("BK" + "Shot Dead By " + _Username + " ");
Room.sendShout(roomUser, "*Shoots " + args[1] + ", Killing them*");
dbClient.runQuery("UPDATE users SET kills = kills + 1 WHERE name = '" + _Username + "'");
dbClient.runQuery("UPDATE users SET deaths = deaths + 1, dead = '1', time_dead = '10' WHERE name = '" + User._Username + "'");
User._Mission = "Dead";
int user;
user = dbClient.getInt("SELECT name FROM users WHERE id = '" + _roomID + "'");
dbClient.runQuery("UPDATE users SET credits = credits + '100' WHERE name = '" + _Username + "'");
dbClient.runQuery("UPDATE users SET credits = credits - '100' WHERE name = '" + User._Username + "'");
refreshAppearance(true, true, true);
ThreadStart koStarter = new ThreadStart(User.knockOut);
User.deadLooper = new Thread(koStarter);
User.deadLooper.Priority = ThreadPriority.Lowest;
User.deadLooper.Start();
User.roomUser.walkLock = true;
}
}
}
}
else
{
if (User._roomID == _roomID && (roomUser.Y + 1 == User.roomUser.Y && roomUser.X + 1 == User.roomUser.X) || (roomUser.Y - 1 == User.roomUser.Y && roomUser.X - 1 == User.roomUser.X) || (roomUser.Y - 1 == User.roomUser.Y && roomUser.X + 1 == User.roomUser.X) || (roomUser.Y + 1 == User.roomUser.Y && roomUser.X - 1 == User.roomUser.X))
{
Room.sendShout(roomUser, "*Shoots at " + args[1] + ", but misses*");
}
}
}
}
}
}
}
}
break;
}
#endregion
And how can i fix it?It doesn't work for emu35, because emu35 allows only numbers (int) for carryitem. It can be easily fixed thought.
using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
{
_Donateur = dbClient.getInt("SELECT * FROM users_don WHERE userid = '" + userID + "'");
}
if (_Donateur > 0) // User is donateur
{
private void GangClaim()
{
int iCount = 0;
try
{
while (true)
{
using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
{
if (_roomID !=Turf ID HERE || roomUser.Y != Turf Y CORD HERE || roomUser.X != BANK VAULT X CORD HERE)
{
userManager.sendToCop(1, false, "BK" + "The Gang Turf is being took get there fast!");
Room.sendSaying(roomUser, "*stops taking of the Turf*");
jailBreakLooper = null;
jailBreakLooper.Abort();
}
if (iCount == 60)
{
Room.sendSaying(roomUser, "*needs three more minutes to succesfully take over the Turf*");
}
if (iCount == 120)
{
Room.sendSaying(roomUser, "*needs two more minutes to succesfully take over the Turf*");
}
if (iCount == 180)
{
Room.sendSaying(roomUser, "*needs one more minute to succesfully take over the Turf*");
}
iCount++;
if (iCount > 180)
{
Room.sendSaying(roomUser, "*successfully Takes over the Turf and is gang Turf Owner!*");
dbClient.runQuery("UPDATE users SET credits = credits + 200 WHERE id = '" + userID + "' LIMIT 1");
refreshValueables(true, true);
bankRobLooper = null;
bankRobLooper.Abort();
}
Thread.Sleep(1000);
}
}
}
catch
{
Thread.CurrentThread.Abort();
bankRobLooper = null;
}
}
#region :gangclaim
case "gangclaim":
{
if (bankRobLooper == null && _roomID == YOUR Turf ID HERE && roomUser.Y == THE Y CORD OF THE TILE && roomUser.X == THE X CORD OF THE TILE)
{
userManager.sendToCop(1, false, "BK" + "The Gang Turf is being took get there fast");
Room.sendSaying(roomUser, "*Starts to take over the Turf*");
Room.sendSaying(roomUser, "*needs four more minutes to succesfully take over the Turf*");
ThreadStart GangClaimStarter = new ThreadStart(GangClaim);
GangClaimLooper = new Thread(gangclaimStarter);
GangClaimLooper.Priority = ThreadPriority.Lowest;
GangClaimbLooper.Start();
}
break;
}
#endregion