Ari
Member
- Sep 29, 2010
- 320
- 48
Yes guys I'm back this may be my last emulator I will be developing.
All this is, is a edit of Holograph Emulator, for RP hotels
Features:
A whole new BOT system
Mostly everything will be cached
Much more..
Here are some screenies:
Code Snippits:
I'll add some more screenshots and code snippits further on in development
Credits:
Me
Craig
RastaLulz
Cecer1
Xavi
Jacky
C0be (Makarov)
All this is, is a edit of Holograph Emulator, for RP hotels
Features:
A whole new BOT system
Mostly everything will be cached
Much more..
Here are some screenies:
Code Snippits:
Code:
internal void arrestUser(int uid, int time)
{
virtualUser User = userManager.getUser(uid);
using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
{
if (_Jailed == 1)
{
User._Arrests = User._Arrests + 1;
User._Jailed = 1;
User._JailTime = time;
User._LandAtDoor = true;
jailLooper.Abort();
jailLooper = null;
Room.sendSaying(roomUser, "\n\n*" + _Username + " re-arrests " + User._Username + " for " + time + " minutes* " + "" + " \n\n " + _Username + " re-arrests " + User._Username + " for " + time + " minutes*");
User.sendData("D^" + "H" + Encoding.encodeVL64(7));
User.sendData("BK" + "You have been re-arrested by " + _Username + ".");
ThreadStart jailStarter = new ThreadStart(User.jailTime);
User.jailLooper = new Thread(jailStarter);
User.jailLooper.Priority = ThreadPriority.Lowest;
User.jailLooper.Start();
}
else if (_Jailed == 0)
{
User._Arrests = User._Arrests + 1;
User._Jailed = 1;
User._JailTime = time;
int fine = time * 5;
dbClient.runQuery("UPDATE users SET credits = credits - '" + fine + "' WHERE name = '" + User._Username + "'");
User._LandAtDoor = true;
User._Wanted = 0;
User.refreshValueables(true, false);
Room.sendSaying(roomUser, "\n\n*" + _Username + " arrests " + User._Username + " for " + time + " minutes, and issues them a " + fine + " credit fine* " + "" + " \n\n " + _Username + " arrests " + User._Username + " for " + time + " minutes, and issues them a " + fine + " credit fine*");
User.sendData("D^" + "H" + Encoding.encodeVL64(7));
User.sendData("BK" + "You have been arrested by " + _Username + ", and fined " + fine + " credits.");
ThreadStart jailStarter = new ThreadStart(User.jailTime);
User.jailLooper = new Thread(jailStarter);
User.jailLooper.Priority = ThreadPriority.Lowest;
User.jailLooper.Start();
}
}
}
Code:
internal void killUser(int uid)
{
virtualUser User = userManager.getUser(uid);
if (User._Mission == "[CW] Red Team" || User._Mission == "[CW] Blue Team")
{
User.sendData("D^" + "H" + Encoding.encodeVL64(423));
User.sendData("BK" + "You were knocked out by another user and sent to the graveyard.");
}
else if (User._Mission == "[Game] Deathmatch" || User._Mission == "[Game] Brawl")
{
if (User._Mission == "[Game] Deathmatch")
{
User.sendData("D^" + "H" + Encoding.encodeVL64(21));
User.sendData("BK" + "An administrator has summoned you.");
}
if (User._Mission == "[Game] Brawl")
{
User.sendData("D^" + "H" + Encoding.encodeVL64(21));
User.sendData("BK" + "An administrator has summoned you.");
}
User.refreshAppearance(true, true, true);
User._Health = 100;
}
else
{
User._OOC = 1;
User.sendData("D^" + "H" + Encoding.encodeVL64(2));
User.sendData("BK" + "You have been knocked out by another user and sent to the hospital.");
User._Health = 100;
User._Dead = 1;
User._DeadTime = 600;
User._Mission = "[Dead]" + _Mission + "";
User._Deaths = User._Deaths + 1;
User.refreshAppearance(true, true, true);
}
}
Credits:
Me
Craig
RastaLulz
Cecer1
Xavi
Jacky
C0be (Makarov)