Author Topic: CityRP jobs  (Read 5425 times)

i dont know if this is in the right section, but can someone tell me how to add new jobs/edit jobs in cityrp server.cs? thanks.
« Last Edit: November 15, 2008, 05:35:26 PM by Creola »

I want to know how too... sorry for being no help though...  :cookieMonster:

I need to know this too lol

If you can't even find the job stuff, good luck making any jobs.

I couldn't stand looking at it after 10 seconds, I tried to figure it out for you though.

Put this in a script for every job you want.
Code: [Select]

$CityRP::jobs::name[$CityRP::jobs++] = "Name"; // Name of the job
$CityRP::jobs::initialInvestment[$CityRP::jobs] = 0; // How much it costs to become the job
$CityRP::jobs::pay[$CityRP::jobs] = 50; // How much you get paid
$CityRP::jobs::tools[$CityRP::jobs] = "hammerItem wrenchItem printGun"; // Tools it uses
$CityRP::jobs::items[$CityRP::jobs] = false; // Can spawn items? (like shopkeeper)
$CityRP::jobs::law[$CityRP::jobs] = false; //Has some sort of place inside the law system?
$CityRP::jobs::pickpocket[$CityRP::jobs] = false; // Can steal money?

Also, do you think if you could make sorta when player dies they drop their cash and other players can pick it up, like on iban's

Code: [Select]
$CityRP::jobs::law[$CityRP::jobs] = false; //Has some sort of place inside the law system?

Actually, law determines whether or not players require a clean record to apply for the job.

Also, do you think if you could make sorta when player dies they drop their cash and other players can pick it up, like on iban's
QFF

This is what I did
(Blockland/Config/Server/PeopleMods/CityRPPrefs)
$CityRP::demerits::attemptedMurder = 25;
$CityRP::demerits::demoteLevel = 250;
$CityRP::demerits::hittingInnocents = 25;
$CityRP::demerits::murder = 75;
$CityRP::demerits::pickpocketing = 60;
$CityRP::demerits::wantedLevel = 50;
$CityRP::jobs = 6;           <- Change that number for how many jobs you want
$CityRP::jobs::initialInvestment1 = 0;
$CityRP::jobs::initialInvestment2 = 100;
$CityRP::jobs::initialInvestment3 = 150;
$CityRP::jobs::initialInvestment4 = 150;
$CityRP::jobs::initialInvestment5 = 250;
$CityRP::jobs::initialInvestment6 = 125;   <- That is how much you pay to get the job
$CityRP::jobs::items1 = 0;
$CityRP::jobs::items2 = 1;
$CityRP::jobs::items3 = 0;
$CityRP::jobs::items4 = 0;
$CityRP::jobs::items5 = 0;
$CityRP::jobs::items6 = 0;      <- That decides if they can have items (1=yes 0=no)
$CityRP::jobs::law1 = 0;
$CityRP::jobs::law2 = 0;
$CityRP::jobs::law3 = 0;
$CityRP::jobs::law4 = 1;
$CityRP::jobs::law5 = 1;
$CityRP::jobs::law6 = 1;       <- That decides if they are part of the law    ^
$CityRP::jobs::name1 = "Civilian";
$CityRP::jobs::name2 = "Shop Keeper";
$CityRP::jobs::name3 = "Criminal";
$CityRP::jobs::name4 = "Policeman";
$CityRP::jobs::name5 = "Official";
$CityRP::jobs::name6 = "Spy";       <- That is where you decide the name of the job
$CityRP::jobs::pay1 = 20;
$CityRP::jobs::pay2 = 40;
$CityRP::jobs::pay3 = 20;
$CityRP::jobs::pay4 = 50;
$CityRP::jobs::pay5 = 100;
$CityRP::jobs::pay6 = 75;            <- That is where you set how much they make
$CityRP::jobs::pickpocket1 = 0;
$CityRP::jobs::pickpocket2 = 0;
$CityRP::jobs::pickpocket3 = 1;
$CityRP::jobs::pickpocket4 = 0;
$CityRP::jobs::pickpocket5 = 0;
$CityRP::jobs::pickpocket6 = 0;    <- That is where you decide if you can pickpocket ^
$CityRP::jobs::tools1 = "hammerItem wrenchItem printGun";
$CityRP::jobs::tools2 = "hammerItem wrenchItem printGun";
$CityRP::jobs::tools3 = "hammerItem wrenchItem printGun";
$CityRP::jobs::tools4 = "hammerItem wrenchItem printGun CityRPBatonItem";   
$CityRP::jobs::tools5 = "hammerItem wrenchItem printGun";
$CityRP::jobs::tools6 = "hammerItem wrenchItem printGun";     <-Those are the items
$CityRP::other::commandSymbol = "^";
$CityRP::other::interest = 1.01;
$CityRP::other::interestTick = 5;
$CityRP::other::maxInterest = 10000;
$CityRP::other::tickSpeed = 5;
$CityRP::prices::addItemSpawn = 25;
$CityRP::prices::jailingBonus = 25;
$CityRP::prices::loanPay = 25;
$CityRP::prices::maxLoan = 5000;
$CityRP::prices::reset = 1000;
$CityRP::prices::vehicleSpawn = 500;


The number after the thing like 'tools' tells which job you are affecting.

-crap-
No, Use the other way, Its just so much easier.
« Last Edit: December 06, 2008, 01:16:43 PM by Slicksilver555 »

That was the way I found.

this is good advice, but does anyone know how to add weapons to use like the desert eagle and tazer?

@ Heal: Why would you do that? You would need to know how to get them past Dermerits, wouldn't you?

Does anyone know where to find the City RP code name for items that are add-ons? Where do I look in the folders?