RP CMS - V1.5

xixclan

New Member
Jul 19, 2010
9
0
hey, i decieded to edit rataz CMS so here it is :)

new.jpg

top.jpg

corp.jpg

me.jpg

hk.jpg

( Phpretro housekeeping just a new login page )

New feature :
  • Wanted Page ( Code For the emu below )
  • More details for create business
  • View top 30 corps page
  • Badge display on me page
  • New housekeeping login page
  • And a few more things

Wanted Page Emu Codes :
Add Wanted :
#region :addwanted <user>
case "addwanted":
{
virtualUser User = userManager.getUser(args[1]);
using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
{
int isworking = dbClient.getInt("SELECT working FROM users WHERE name = '" + _Username + "'");
if (isworking == 1)
{
{
int me_secure_id = dbClient.getInt("SELECT secure_id FROM users WHERE name = '" + _Username + "'");
int canarrest = dbClient.getInt("SELECT arrest FROM jobs_ranks WHERE id = '" + me_secure_id + "'");

if (canarrest == 1)
{
Room.sendSaying(roomUser, "*Adds " + User._Username + ", to the wanted list!*");
dbClient.runQuery("UPDATE users SET wanted = '1' WHERE name = '" + User._Username + "'");
userManager.sendToCop(1, false, "BK" + "" + User._Username + " has been added to the wanted list by " + _Username + "!");
}
}
}
}
break;
}
#endregion

Remove Wanted :
#region :removewanted <user>
case "removewanted":
{
virtualUser User = userManager.getUser(args[1]);
using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
{
int isworking = dbClient.getInt("SELECT working FROM users WHERE name = '" + _Username + "'");
if (isworking == 1)
{
{
int me_secure_id = dbClient.getInt("SELECT secure_id FROM users WHERE name = '" + _Username + "'");
int canarrest = dbClient.getInt("SELECT arrest FROM jobs_ranks WHERE id = '" + me_secure_id + "'");

if (canarrest == 1)
{
Room.sendSaying(roomUser, "*Removes " + User._Username + ", from the wanted list!*");
dbClient.runQuery("UPDATE users SET wanted = '0' WHERE name = '" + User._Username + "'");
userManager.sendToCop(1, false, "BK" + "" + User._Username + " has been removed from the wanted list by " + _Username + "!");
}
}
}
}
break;
}
#endregion
Updated Arrest code ( removed wanted when arrested ) :
#region :arrest <user> <time>
case "arrest":
{
virtualUser User = userManager.getUser(args[1]);
using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
{
int isworking = dbClient.getInt("SELECT working FROM users WHERE name = '" + _Username + "'");
if (isworking == 1)
{
{
int me_secure_id = dbClient.getInt("SELECT secure_id FROM users WHERE name = '" + _Username + "'");
int canarrest = dbClient.getInt("SELECT arrest FROM jobs_ranks WHERE id = '" + me_secure_id + "'");

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))
{
if (canarrest == 1)
{
if (User.roomUser.walkLock == false)
{
Room.sendSaying(roomUser, "*attempts to arrest " + User._Username + ", but notices that he is not cuffed*");
}
else
{
int time = int.Parse(args[2]);
if (time > 60 || time < 1)
{
sendData("BK" + "What exactly are you trying to do?");
}
else
{
dbClient.runQuery("UPDATE users SET arrested = '1', wanted = '0' arrests = arrests + '1', time_jail = '" + args[2] + "' WHERE name = '" + User._Username + "'");

int fine = time * 5;
dbClient.runQuery("UPDATE users SET credits = credits - '" + fine + "' WHERE name = '" + User._Username + "'");
refreshValueables(true, false);

Room.sendSaying(roomUser, "*arrests " + User._Username + " for " + time + " minutes, and fines them " + fine + " credits*");

User.sendData("D^" + "H" + Encoding.encodeVL64(112));
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();
}
}
}
}
}
}
}
break;
}
#endregion

and a few other things which i havent taken pics of :)
enjoy :) download ( Includes DB )

Credits :

Me - for doing the edits etc.
RastaLulz - The CMS Base and most of the features
Sledmore - for the wanted page and corps page ( which was edited by me ).
Various people - for addons etc
( Without all these people this would not be possible )

( My Site Changed Host Today So I Have Had To Re Upload The Images ETC. Sorry For The Delay ! )
 

Sledmore

Chaturbate Livestreamer
Staff member
FindRetros Moderator
Jul 24, 2010
5,194
3,901
RP CMS - V2

Nice release, thanks for using my stock exchange, wanted page and wanted commands! :').
 

Lawrence

Member
May 29, 2010
45
0
Just wondering:

How did it get to version 1.5 when it was released as version 1? Have I missed out on 5 (maybe 4 if original was 1.1) versions?

What was added/changed in them?
 

xixclan

New Member
Jul 19, 2010
9
0
yh i made a few , private relases with just small edits , so this is just all them added with bug fixes etc
 

Andeh

the best cis-boy
Jun 1, 2010
892
124
Download link is down
Thread Closed until you edited the thread including a new download link.
 

Kieren

The OGz
Aug 4, 2010
2,957
751
For one you have made no change's to the CMS since Rasta has released this, also the image's don't show and try and add the wanted command to the emulator because all you have done is given us the emulator code and rasta's CMS what can be easy found.
 

Users who are viewing this thread

Top