Author Topic: City RPG  (Read 745 times)

How do i create jobs, change prices, to a city rpg?

Code: [Select]
Q: How do i add jobs?
A: In the jobs folder copy one of the jobs. Then paste it and edit the job.
Open it and you will see the job's prefs. Here are the prefs and what they do.

$CityRPG::jobs::name = "Criminal"; - Job name
$CityRPG::jobs::initialInvestment = 50; - Cost to get job
$CityRPG::jobs::pay = 40; - Pay
$CityRPG::jobs::tools = "CityRPGPicklockItem"; - Starting items
$CityRPG::jobs::datablock = playerNoJet; - Datablock
$CityRPG::jobs::education = 1; - Needed education

$CityRPG::jobs::sellItems = false; - Can sell items
$CityRPG::jobs::sellFood = false; - Can sell food
$CityRPG::jobs::sellServices = false; - Not used

$CityRPG::jobs::law = false; - Clean record?
$CityRPG::jobs::canPardon = false; - Can relese people from jail (At a fee of course!)

$CityRPG::jobs::thief = true; - can pickpocked
$CityRPG::jobs::hideJobName = true; - Hide them

$CityRPG::jobs::offerer = false; - Can legaliy place bountys
$CityRPG::jobs::claimer = false; - Can legaliy claim bountys

$CityRPG::jobs::labor = false; - Is a laborer

$CityRPG::jobs::tmHexColor = "FF0000"; - Job color
$CityRPG::jobs::helpline = "\c6Criminals can pickpocket people and break open doors."; - Job description

When your down makeing your new job open the scriptobject.CS and add your job to the BOTTOM of the job list.


Q: How do i add items to the sellitems list?
A: In the prefs.cs go down to 2.1 and you should see this:

$CityRPG::prices::weapon::name[$CityRPG::guns] = "keyItem"; - The items DATABLOCK (Found in the items server.cs)
$CityRPG::prices::weapon::price[$CityRPG::guns] = 5; -Cost of item.
$CityRPG::prices::weapon::mineral[$CityRPG::guns++] = 1; -Ore cost of item (Recomended to keep it low unless you have a lot of people mineing on your server.

Copy these three lines and replace them whith what you want!.