Author Topic: Ibans city rpg v2 how to create jobs?  (Read 7437 times)

All you city rpg haters stay away some people like this. Anyway I was trying to make a job for Ibans city rpg V2 and i edited prefs added my job, went to the jobs folder and copied criminal and changed it and it doesn't work. Nothings wrong with syntax I checked it and compared to the original, only the correct changes were made.

Also this is what my job file looks like

// ============================================================
// Project            :   CityRPG
// Author            :   Iban
// Description         :   Criminal Code file
// ============================================================

$CityRPG::jobs::name = "Assassin";
$CityRPG::jobs::initialInvestment = 50;
$CityRPG::jobs::pay = 50;
$CityRPG::jobs::tools = "CityRPGPicklockItem";
$CityRPG::jobs::datablock = playerNoJet;
$CityRPG::jobs::education = 2;

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

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

$CityRPG::jobs::thief = true;
$CityRPG::jobs::hideJobName = true;

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

$CityRPG::jobs::labor = false;

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

Lack of modify button, I meant I have V3 of Ibans city rpg mod.


I tried doing this too, maybe the mod only uses jobs that it's told too, and you have to edit it to use that one too, but I don't know.

Create new job type by copy/pasting it below, if I'm right, they're all in the same .cs file like they were in v2.
After copy/pasta, edit the values.

I did copy and paste then I changed the trues and falses around.

I know... Thats not the only thing. :O I could tell you but... :3

Well wasn't that helpful....

Well wasn't that helpful....
Ill tell you
You're trying to make assassin right...? Well first open up any job (pre-made) make it the way you want and rename it. Place it on your desktop before you make any changes then rename the "icon". Open up the City RPG File...Go down to "scriptobject"Drag it to desktop For example use mine:
// ============================================================
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("policechief");
   %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("councilmember");
   %so.addJobFromFile("administrator");
        %so.addJobFromFile("tourist");
        %so.addJobFromFile("president");
        %sddJobFromFile("mayor");
        %so.addJobFromFile("cia agent");
        %so.addJobFromFile("criminalboss");
        %so.addJobFromFile("supervisor");
        %so.addJobFormFile("tourist");
        %so.addJobFromFile("assassin");
        %so.addJobFromFile("undercovercop");
]
Just type in your job like so at the end. Put the scriptobject back into your CityRPG file and save over it. Go to the jobs folder and drag your job from the desktop into the jobs folder. Open up Blockland and there you have it added jobs! If it doesnt work you messed up the scripting or you are not hosting the server correctly.

Thank you I'll try it out :)

how do you get the city rpg lots and bricks like bank brick and so on how do you get cuase i dont know how to get it?

its in the IbanMod brick tab. It comes with the mod. If you dont see it, open brick selector and press tab till you see it.

how do you do it idk how

What.

        %so.addJobFromFile("supervisor");
        %so.addJobFormFile("tourist");
        %so.addJobFromFile("assassin");
        %so.addJobFromFile("undercovercop");
]