Author Topic: [TUTORAL]>>: How To Make Jobs On CityRPG!  (Read 1234 times)

Okay, go into your Gamemode_CityRPG folder, you will find a folder that says jobs, you might see 2 things, an 1.cs and so on or civilian.cs, here is for both.
For civilian.cs:
Code: [Select]
//============================================================
// Project : CityRPG
// Author : You
// Description : JobName Code file
// ============================================================

$CityRPG::jobs::name = "Name of Job Here";  // the name of job
$CityRPG::jobs::initialInvestment = 0-1000; //how much it costs to get that job
$CityRPG::jobs::pay = 1-1000;     //how much they get payed
$CityRPG::jobs::tools = "hammerImage printerImage wrenchImage";  //default tools
$CityRPG::jobs::datablock = playerNoJet;
$CityRPG::jobs::education = 1-100;

$CityRPG::jobs::sellItems = true/false;
$CityRPG::jobs::sellFood = true/false;
$CityRPG::jobs::sellServices = true/false;

$CityRPG::jobs::law = true/false;
$CityRPG::jobs::canPardon = true/false;

$CityRPG::jobs::thief = truefalse;
$CityRPG::jobs::hideJobName = true/false;

$CityRPG::jobs::offerer = true/false;
$CityRPG::jobs::claimer = true/falsefalse;

$CityRPG::jobs::labor = true/false;

$CityRPG::jobs::tmHexColor = "CCCCCC";
$CityRPG::jobs::helpline = "\c6Describe your job here.";
}

And for the 1.cs:
Code: [Select]
// ============================================================
// Project : peopleRP
// Author : Iban
// Description : Civilian Code file
// ============================================================
// Table of Contents
// 1. Preferences
// ============================================================



// ============================================================
// ============================================================
// Section 1 : Preferences
// ============================================================
if(!$CityRPG__HasBuiltJobs || !isFile("config/server/IbanMod/CityRPGG/Prefs.cs") || $CityRPG::temp::rebuildPref)
{
$CityRPG::jobs::name[$CityRPG::jobs++] = "Job Name here";
$CityRPG::jobs::initialInvestment[$CityRPG::jobs] = 0-1000; /how much it takes to get this job
$CityRPG::jobs::pay[$CityRPG::jobs] = 0-1000; //how much they get payed
$CityRPG::jobs::tools[$CityRPG::jobs] = "hammerImage printerImage wrenchImage"; //default tools
$CityRPG::jobs::items[$CityRPG::jobs] = true/false;
$CityRPG::jobs::law[$CityRPG::jobs] = true/false;
$CityRPG::jobs::canPardon[$CityRPG::jobs] = true/false;

$CityRPG::jobs::thief[$CityRPG::jobs] = true/false;
$CityRPG::jobs::drugPusher[$CityRPG::jobs] = true/false;
$CityRPG::jobs::hideJobName[$CityRPG::jobs] = true/false;

$CityRPGG::jobs::tmHexColor[$CityRPG::jobs] = "CCCCCC";

$CityRPG::jobs::bounty::Offerer[$CityRPG::jobs] = true/false;
$CityRPG::jobs::bounty::Claimer[$CityRPG::jobs] = true/false;

$CityRPG::jobs::labor[$CityRPG::jobs] = true/false; //can you chop treez

$CityRPG::jobs::helpline[$CityRPG::jobs] = "\c6Describe your job in this collem";
}

If you are doing the civilian.cs one, you must go to scriptobject.cs in main folder and find:
Code: [Select]
// ============================================================
// Project : CityRPG
// Author : Iban
// Description : Your new ScriptObject overlords.
// ============================================================
// Table of Contents
// 1. JobSO
// 2. CitySO
// 3. CalendarSO
// 4. ClothesSO
// 5. WeatherSO
// ============================================================

// ============================================================
// Section 1 : JobsSO
// ============================================================
function JobSO::populateJobs(%so)
{
for(%a = 1; isObject(%so.job[%a]); %a++)
{
%so.job[%a].delete();
%so.job[%a] = "";
}

// NOTE: Order is incredibly important. Jobs are referenced by ID, which is determined by order.
// Mixing up the order of these professions will cause save data to reference the wrong job.
%so.addJobFromFile("civilian");
%so.addJobFromFile("grocer");
%so.addJobFromFile("policeman");
%so.addJobFromFile("criminal");
%so.addJobFromFile("bountyhunter");
%so.addJobFromFile("official");
%so.addJobFromFile("miner");
%so.addJobFromFile("shopkeeper");
%so.addJobFromFile("armsdealer");
%so.addJobFromFile("lumberjack");
%so.addJobFromFile("laborer");
%so.addJobFromFile("tailor");
}

You must add an
Code: [Select]
%so.addJobFromFile("filenamehere");Example:
Code: [Select]
// ============================================================
// Project : CityRPG
// Author : Iban
// Description : Your new ScriptObject overlords.
// ============================================================
// Table of Contents
// 1. JobSO
// 2. CitySO
// 3. CalendarSO
// 4. ClothesSO
// 5. WeatherSO
// ============================================================

// ============================================================
// Section 1 : JobsSO
// ============================================================
function JobSO::populateJobs(%so)
{
for(%a = 1; isObject(%so.job[%a]); %a++)
{
%so.job[%a].delete();
%so.job[%a] = "";
}

// NOTE: Order is incredibly important. Jobs are referenced by ID, which is determined by order.
// Mixing up the order of these professions will cause save data to reference the wrong job.
%so.addJobFromFile("civilian");
%so.addJobFromFile("grocer");
%so.addJobFromFile("policeman");
%so.addJobFromFile("criminal");
%so.addJobFromFile("bountyhunter");
%so.addJobFromFile("official");
%so.addJobFromFile("miner");
%so.addJobFromFile("shopkeeper");
%so.addJobFromFile("armsdealer");
%so.addJobFromFile("lumberjack");
%so.addJobFromFile("laborer");
%so.addJobFromFile("tailor");
        %so.addjobFromFile("Terrorest");
}
Now this is your tutorial, this will never be asked again. Now stop spamming you stuff on the forums.
« Last Edit: March 17, 2010, 08:27:50 PM by Light And Day »

So... you made a tutorial for a mod that's rarely used?

Forgot peoples mods!
Go to your Peoplemods_CityRPG Folder, go to jobs.dat
You'll find a bunch of very easy to do codes, just at the last one, i think its like Bounty or something.
Put in this (No double enter, just 1 enter, so:
 description
name):
From the last one it will go

 description what ever the last one was ^_^ //this is last line, don't actually put this in!
ID 0-1000 //To find this number, go to the last line that says ID 1-2-3 etc. And use the one after
 name whateveryourjobishere

 initialInvestment 0-1000 /how much it costs to buy this job
 pay 0-100 //how much the kid gets payed
 tools hammerItem wrenchItem printGun
 items true/false
 law true/false
 description describeyourplayer here

Thats it for Jookia's i believe.

So... you made a tutorial for a mod that's rarely used?
Try these links:
•http://forum.blockland.us/index.php?topic=53052.0
•http://forum.blockland.us/index.php?topic=58803.0
•http://forum.blockland.us/index.php?topic=50649.0
•http://forum.blockland.us/index.php?topic=66040.0
•http://forum.blockland.us/index.php?topic=70634.0

Is that enough?

This is like posting a topic asking help for V0002 in the help section of the forums.

This is like posting a topic asking help for V0002 in the help section of the forums.
Nobody but 999- had that. Why wouldd they ask, 49827149812749281734198274213 897421398 asked me for this, now quit whinning.

Nobody but 999- had that.

I hope that did not mean "BL_IDs 999 and under", as many players with higher IDs played v0002 before Retail like myself.
Not all of us bought Retail in time for a hundred-digit ID.

Nobody but 999- had that. Why wouldd they ask, 49827149812749281734198274213 897421398 asked me for this, now quit whinning.
Error: Whinning does not register as a valid word.

Error: I dont loving care!

Try these links:
•http://forum.blockland.us/index.php?topic=53052.0
•http://forum.blockland.us/index.php?topic=58803.0
•http://forum.blockland.us/index.php?topic=50649.0
•http://forum.blockland.us/index.php?topic=66040.0
•http://forum.blockland.us/index.php?topic=70634.0
Excuse me, have you looked at the dates of when those topics were posted?
I'm sorry, but you are an egoistical moron.

Try these links:
•http://forum.blockland.us/index.php?topic=53052.0
•http://forum.blockland.us/index.php?topic=58803.0
•http://forum.blockland.us/index.php?topic=50649.0
•http://forum.blockland.us/index.php?topic=66040.0
•http://forum.blockland.us/index.php?topic=70634.0

Is that enough?
It still doesn't look like CityRP has notable usage these days.

can somone post a link for the CityRPG Game Mode pls im looking forward to editing it...

Tom

can somone post a link for the CityRPG Game Mode pls im looking forward to editing it adding some crappy jobs (like "god" and "hooker")...

Leave it to an idiot to make this topic.