Author Topic: Aoki's CityRPG  (Read 1365 times)

Aoki's city RPG is just sitting in a passworded wasteland, Nothing's been done to it for about 1 or 2 months now.
Tell me if you know anything
Thanks! :cookieMonster:


I work on the server, it's being updated very slowly but surely.
Hold your horses

I work on the server, it's being updated very slowly but surely.
Hold your horses
I've been to the server, I was there all day yestersday. Nobody came.
All that is done is the Spawn, island and Bank. This server's been open for months!

I've been to the server, I was there all day yestersday. Nobody came.
All that is done is the Spawn, island and Bank. This server's been open for months!

tell us pass please

tell us pass please
1712 (Don't tell any of their admins!)

1712 (Don't tell any of their admins!)
You know they probably changed it since they can look on here, lol.

1712 (Don't tell any of their admins!)
Well well well ima report it to Aoki!

I'm an admin there and I haven't joined in a few weeks because it keeps loving resetting. It's loving annoying. I loved it at first but I'll just get to reincarnation and then BOOM new map. Not enough time to spend my riches even with a few nights of afking.

1712 (Don't tell any of their admins!)
I'm an admin on the server you know.



working on some code-stuffs for v13, the build will be easy once this is done. ... I'll streamline it later, but for now I'm rushing to get it done soon, things like using one value for education and less [for] loops.
Code: [Select]
function CityRPEmploymentBrickData::parseData(%this, %brick, %client, %triggerStatus, %text, %text2, %text3)
{
if(%triggerStatus !$= "")
{
if(%triggerStatus == true && %client.stage $= "")
{
messageClient(%client, '', "\c3Welcome to the Employment System! \c6What would you like to do?");
messageClient(%client, '', "\c31 \c6- See job listings!");
messageClient(%client, '', "\c32 \c6- Apply for a job!");
%client.stage = 0;
}

if(%triggerStatus == false && %client.stage !$= "")
{
messageClient(%client, '', "\c6Thanks, come again!");
%client.stage = "";
}

return;
}

if(%text2 $= "" && %text3 $= "")
%input = strLwr(%text);
if(%text2 !$= "")
%input = strLwr(%text SPC %text2);
if(%text3 !$= "")
%input = strLwr(%input SPC %text3);

if(mFloor(%client.stage) == 0)
{
if(strReplace(%input, "1", "") !$= %input || strReplace(%input, "one", "") !$= %input)
{
messageClient(%client,'',"\c3What branch would you like to see listings for?");
messageClient(%client, '', "\c31 \c6- \c7[\c6Bounty Hunter\c7]");
messageClient(%client, '', "\c32 \c6- \c7[\c6Civilian\c7]");
messageClient(%client, '', "\c33 \c6- \c7[\c6Criminal\c7]");
messageClient(%client, '', "\c34 \c6- \c7[\c6Police\c7]");
messageClient(%client, '', "\c35 \c6- \c7[\c6Labor\c7]");
if(CityRPData.getData(%client.bl_id).valueCriminalEDU == 5)
messageClient(%client, '', "\c36 \c6- \c7[\c6Organized Crime\c7]");
if(CityRPData.getData(%client.bl_id).valuePoliceEDU == 5)
messageClient(%client, '', "\c37 \c6- \c7[\c6Special Ops\c7]");

%client.stage = 1;
}
if(strReplace(%input, "2", "") !$= %input || strReplace(%input, "two", "") !$= %input)
{
messageClient(%client,'',"\c3What branch will you be applying for?");
messageClient(%client, '', "\c31 \c6- \c7[\c6Bounty Hunter\c7]");
messageClient(%client, '', "\c32 \c6- \c7[\c6Civilian\c7]");
messageClient(%client, '', "\c33 \c6- \c7[\c6Criminal\c7]");
messageClient(%client, '', "\c34 \c6- \c7[\c6Police\c7]");
messageClient(%client, '', "\c35 \c6- \c7[\c6Labor\c7]");
if(CityRPData.getData(%client.bl_id).valueCriminalEDU == 5)
messageClient(%client, '', "\c36 \c6- \c7[\c6Organized Crime\c7]");
if(CityRPData.getData(%client.bl_id).valuePoliceEDU == 5)
messageClient(%client, '', "\c37 \c6- \c7[\c6Special Ops\c7]");

%client.stage = 2;
}
return;
}

if(mFloor(%client.stage) == 1)
{
if(strReplace(%input, "1", "") !$= %input || strReplace(%input, "one", "") !$= %input)
{
messageClient(%client, '', "\c2[Bounty Hunter] Jobs");

for(%j = 1; %j <= JobSO.getJobCount(); %j++)
{
if(JobSO.job[%j].bountyEdu > 0)
{
messageClient(%client, '', "\c3" @ JobSO.job[%j].name SPC "\c6- Inital Investment: \c3" @ JobSO.job[%j].invest SPC "- \c6Pay: \c3" @ JobSO.job[%j].pay SPC "- \c6Required Education: \c3" @ JobSO.job[%j].bountyEdu @ " - \c6Required Exp: \c3" @ JobSO.job[%j].bountyExp);
messageClient(%client, '', JobSO.job[%j].helpline);
}
}

%client.stage = "";
}

if(strReplace(%input, "2", "") !$= %input || strReplace(%input, "two", "") !$= %input)
{
messageClient(%client, '', "\c2[Civilian] Jobs");

for(%j = 1; %j <= JobSO.getJobCount(); %j++)
{
if(JobSO.job[%j].civilianEdu > 0)
{
messageClient(%client, '', "\c3" @ JobSO.job[%j].name SPC "\c6- Inital Investment: \c3" @ JobSO.job[%j].invest SPC "- \c6Pay: \c3" @ JobSO.job[%j].pay SPC "- \c6Required Education: \c3" @ JobSO.job[%j].civilianEdu @ " - \c6Required Exp: \c3" @ JobSO.job[%j].civilianExp);
messageClient(%client, '', JobSO.job[%j].helpline);
}
}

%client.stage = "";
}

if(strReplace(%input, "3", "") !$= %input || strReplace(%input, "three", "") !$= %input)
{
messageClient(%client, '', "\c2[Criminal] Jobs");

for(%j = 1; %j <= JobSO.getJobCount(); %j++)
{
if(JobSO.job[%j].criminalEdu > 0 && JobSO.job[%j].OCEdu == 0)
{
messageClient(%client, '', "\c3" @ JobSO.job[%j].name SPC "\c6- Inital Investment: \c3" @ JobSO.job[%j].invest SPC "- \c6Pay: \c3" @ JobSO.job[%j].pay SPC "- \c6Required Education: \c3" @ JobSO.job[%j].criminalEdu @ " - \c6Required Exp: \c3" @ JobSO.job[%j].criminalExp);
messageClient(%client, '', JobSO.job[%j].helpline);
}
}

%client.stage = "";
}

if(strReplace(%input, "5", "") !$= %input || strReplace(%input, "four", "") !$= %input)
{
messageClient(%client, '', "\c2[Labor] Jobs");
for(%j = 1; %j <= JobSO.getJobCount(); %j++)
{
if(JobSO.job[%j].laborEdu > 0)
{
messageClient(%client, '', "\c3" @ JobSO.job[%j].name SPC "\c6- Inital Investment: \c3" @ JobSO.job[%j].invest SPC "- \c6Pay: \c3" @ JobSO.job[%j].pay SPC "- \c6Required Education: \c3" @ JobSO.job[%j].laborEdu @ " - \c6Required Exp: \c3" @ JobSO.job[%j].laborExp);
messageClient(%client, '', JobSO.job[%j].helpline);
}
}

%client.stage = "";
}

if(strReplace(%input, "4", "") !$= %input || strReplace(%input, "five", "") !$= %input)
{
messageClient(%client, '', "\c2[Police] Jobs");

for(%j = 1; %j <= JobSO.getJobCount(); %j++)
{
if(JobSO.job[%j].policeEdu > 0 && JobSO.job[%j].SpecEDU == 0)
{
messageClient(%client, '', "\c3" @ JobSO.job[%j].name SPC "\c6- Inital Investment: \c3" @ JobSO.job[%j].invest SPC "- \c6Pay: \c3" @ JobSO.job[%j].pay SPC "- \c6Required Education: \c3" @ JobSO.job[%j].policeEdu @ " - \c6Required Exp: \c3" @ JobSO.job[%j].policeExp);
messageClient(%client, '', JobSO.job[%j].helpline);
}
}

%client.stage = "";
}

if(strReplace(%input, "6", "") !$= %input || strReplace(%input, "six", "") !$= %input)
{
if(CityRPData.getData(%client.bl_id).valueCriminalEDU != 5)
{
%client.stage = "";
return;
}

messageClient(%client, '', "\c2[Organized Crime] Jobs");

for(%j = 1; %j <= JobSO.getJobCount(); %j++)
{
if(JobSO.job[%j].ocEdu > 0)
{
messageClient(%client, '', "\c3" @ JobSO.job[%j].name SPC "\c6- Inital Investment: \c3" @ JobSO.job[%j].invest SPC "- \c6Pay: \c3" @ JobSO.job[%j].pay SPC "- \c6Required Education: \c3" @ JobSO.job[%j].OCEdu @ " - \c6Required Exp: \c3" @ JobSO.job[%j].OCExp);
messageClient(%client, '', JobSO.job[%j].helpline);
}
}

%client.stage = "";
}

if(strReplace(%input, "7", "") !$= %input || strReplace(%input, "seven", "") !$= %input)
{
if(CityRPData.getData(%client.bl_id).valuePoliceEDU != 5)
{
%client.stage = "";
return;
}
messageClient(%client, '', "\c2[Special Ops] Jobs");

for(%j = 1; %j <= JobSO.getJobCount(); %j++)
{
if(JobSO.job[%j].specEdu > 0)
{
messageClient(%client, '', "\c3" @ JobSO.job[%j].name SPC "\c6- Inital Investment: \c3" @ JobSO.job[%j].invest SPC "- \c6Pay: \c3" @ JobSO.job[%j].pay SPC "- \c6Required Education: \c3" @ JobSO.job[%j].SpecEdu @ " - \c6Required Exp: \c3" @ JobSO.job[%j].SpecExp);
messageClient(%client, '', JobSO.job[%j].helpline);
}
}

%client.stage = "";
}
return;
}

if(mFloor(%client.stage) == 2)
{
if(strReplace(%input, "1", "") !$= %input || strReplace(%input, "one", "") !$= %input)
{
messageClient(%client, '', "\c2Which [Bounty Hunter] job would you like to apply for?");

for(%j = 1; %j <= JobSO.getJobCount(); %j++)
{
if(JobSO.job[%j].bountyEdu > 0)
{
messageClient(%client, '', "\c3" @ JobSO.job[%j].name SPC "\c6- Inital Investment: \c3" @ JobSO.job[%j].invest SPC "- \c6Pay: \c3" @ JobSO.job[%j].pay SPC "- \c6Required Education: \c3" @ JobSO.job[%j].bountyEdu @ " - \c6Required Exp: \c3" @ JobSO.job[%j].bountyExp);
messageClient(%client, '', JobSO.job[%j].helpline);
}
}

%client.stage = "3";
}

if(strReplace(%input, "2", "") !$= %input || strReplace(%input, "two", "") !$= %input)
{
messageClient(%client, '', "\c2Which [Civilian] job would you like to apply for?");

for(%j = 1; %j <= JobSO.getJobCount(); %j++)
{
if(JobSO.job[%j].civilianEdu > 0)
{
messageClient(%client, '', "\c3" @ JobSO.job[%j].name SPC "\c6- Inital Investment: \c3" @ JobSO.job[%j].invest SPC "- \c6Pay: \c3" @ JobSO.job[%j].pay SPC "- \c6Required Education: \c3" @ JobSO.job[%j].civilianEdu @ " - \c6Required Exp: \c3" @ JobSO.job[%j].civilianExp);
messageClient(%client, '', JobSO.job[%j].helpline);
}
}

%client.stage = "3";
}

if(strReplace(%input, "3", "") !$= %input || strReplace(%input, "three", "") !$= %input)
{
messageClient(%client, '', "\c2Which [Criminal] job would you like to apply for?");

for(%j = 1; %j <= JobSO.getJobCount(); %j++)
{
if(JobSO.job[%j].criminalEdu > 0 && JobSO.job[%j].OCEdu == 0)
{
messageClient(%client, '', "\c3" @ JobSO.job[%j].name SPC "\c6- Inital Investment: \c3" @ JobSO.job[%j].invest SPC "- \c6Pay: \c3" @ JobSO.job[%j].pay SPC "- \c6Required Education: \c3" @ JobSO.job[%j].criminalEdu @ " - \c6Required Exp: \c3" @ JobSO.job[%j].criminalExp);
messageClient(%client, '', JobSO.job[%j].helpline);
}
}

%client.stage = "3";
}

if(strReplace(%input, "5", "") !$= %input || strReplace(%input, "four", "") !$= %input)
{
messageClient(%client, '', "\c2Which [Labor] job would you like to apply for?");
for(%j = 1; %j <= JobSO.getJobCount(); %j++)
{
if(JobSO.job[%j].laborEdu > 0)
{
messageClient(%client, '', "\c3" @ JobSO.job[%j].name SPC "\c6- Inital Investment: \c3" @ JobSO.job[%j].invest SPC "- \c6Pay: \c3" @ JobSO.job[%j].pay SPC "- \c6Required Education: \c3" @ JobSO.job[%j].laborEdu @ " - \c6Required Exp: \c3" @ JobSO.job[%j].laborExp);
messageClient(%client, '', JobSO.job[%j].helpline);
}
}

%client.stage = "3";
}

if(strReplace(%input, "4", "") !$= %input || strReplace(%input, "five", "") !$= %input)
{
messageClient(%client, '', "\c2Which [Police] job would you like to apply for?");

for(%j = 1; %j <= JobSO.getJobCount(); %j++)
{
if(JobSO.job[%j].policeEdu > 0 && JobSO.job[%j].SpecEDU == 0)
{
messageClient(%client, '', "\c3" @ JobSO.job[%j].name SPC "\c6- Inital Investment: \c3" @ JobSO.job[%j].invest SPC "- \c6Pay: \c3" @ JobSO.job[%j].pay SPC "- \c6Required Education: \c3" @ JobSO.job[%j].policeEdu @ " - \c6Required Exp: \c3" @ JobSO.job[%j].policeExp);
messageClient(%client, '', JobSO.job[%j].helpline);
}
}

%client.stage = "3";
}

if(strReplace(%input, "6", "") !$= %input || strReplace(%input, "six", "") !$= %input)
{
if(CityRPData.getData(%client.bl_id).valueCriminalEDU != 5)
{
%client.stage = "";
return;
}

messageClient(%client, '', "\c2Which [Organized Crime] job would you like to apply for?");

for(%j = 1; %j <= JobSO.getJobCount(); %j++)
{
if(JobSO.job[%j].ocEdu > 0)
{
messageClient(%client, '', "\c3" @ JobSO.job[%j].name SPC "\c6- Inital Investment: \c3" @ JobSO.job[%j].invest SPC "- \c6Pay: \c3" @ JobSO.job[%j].pay SPC "- \c6Required Education: \c3" @ JobSO.job[%j].OCEdu @ " - \c6Required Exp: \c3" @ JobSO.job[%j].OCExp);
messageClient(%client, '', JobSO.job[%j].helpline);
}
}

%client.stage = "3";
}

if(strReplace(%input, "7", "") !$= %input || strReplace(%input, "seven", "") !$= %input)
{
if(CityRPData.getData(%client.bl_id).valuePoliceEDU != 5)
{
%client.stage = "";
return;
}
messageClient(%client, '', "\c2Which [Special Ops] job would you like to apply for?");

for(%j = 1; %j <= JobSO.getJobCount(); %j++)
{
if(JobSO.job[%j].specEdu > 0)
{
messageClient(%client, '', "\c3" @ JobSO.job[%j].name SPC "\c6- Inital Investment: \c3" @ JobSO.job[%j].invest SPC "- \c6Pay: \c3" @ JobSO.job[%j].pay SPC "- \c6Required Education: \c3" @ JobSO.job[%j].SpecEdu @ " - \c6Required Exp: \c3" @ JobSO.job[%j].SpecExp);
messageClient(%client, '', JobSO.job[%j].helpline);
}
}

%client.stage = "3";
}
return;
}

if(mFloor(%client.stage) == 3)
{
for(%a = 1; %a <= JobSO.getJobCount(); %a++)
{
if(%input $= StrLwr(JobSO.job[%a].name))
{
%foundJob = true;

if(%a == CityRPData.getData(%client.bl_id).valueJobID)
{
messageClient(%client, '', "\c6You are already" SPC CityRP_DetectVowel(JobSO.job[%a].name) SPC "\c3" @ JobSO.job[%a].name @ "\c6!");
%client.stage = "";
return;
}

if(JobSO.job[%a].law && getWord(CityRPData.getData(%client.bl_id).valueJailData, 0) == 1)
{
messageClient(%client, '', "\c6You don't have a clean criminal record. You can't become" SPC CityRP_DetectVowel(JobSO.job[%a].name) SPC "\c3" @ JobSO.job[%a].name @ "\c6.");
%client.stage = "";
return;
}

if(CityRPData.getData(%client.bl_id).valueBountyEDU < JobSO.job[%a].bountyEDU || CityRPData.getData(%client.bl_id).valueCriminalEDU < JobSO.job[%a].criminalEDU || CityRPData.getData(%client.bl_id).valueCivilianEDU < JobSO.job[%a].CivilianEDU || CityRPData.getData(%client.bl_id).valueLaborEDU < JobSO.job[%a].valueLaborEDU || CityRPData.getData(%client.bl_id).valuePoliceEDU < JobSO.job[%a].policeEDU || CityRPData.getData(%client.bl_id).valueOCEdu < JobSO.job[%a].OCEdu || CityRPData.getData(%client.bl_id).valueSpecEDU < JobSO.job[%a].SpecEDU)
{
messageClient(%client, '', "\c6You are not educated enough to get this job.");
%client.stage = "";
return;
}

if(CityRPData.getData(%client.bl_id).valueMoney < JobSO.job[%a].invest)
{
messageClient(%client, '', "\c6It costs \c3$" @ JobSO.job[%a].invest SPC "\c6to become" SPC CityRP_DetectVowel(JobSO.job[%a].name) SPC JobSO.job[%a].name @ "\c6.");
%client.stage = "";
return;
}

messageClient(%client, '', "\c6You have made your own initiative to become" SPC CityRP_DetectVowel(JobSO.job[%a].name) SPC "\c3" @ JobSO.job[%a].name @ "\c6.");
CityRPData.getData(%client.bl_id).valueMoney -= JobSO.job[%a].invest;
CityRPData.getData(%client.bl_id).valueJobID = %a;

if(isObject(%client.player))
{
serverCmdunUseTool(%client);
%client.player.giveDefaultEquipment();
}

%client.SetInfo();
%client.stage = "";
return;
}
}
if(!%foundJob)
{
messageClient(%client, '', "\c6Invalid job name.");
%client.stage = "";
return;
}
}
}
« Last Edit: March 15, 2014, 02:56:02 PM by Color »

lol still using that getData from the old sassy

time to upgrade

Seems we need a new cityRPG code.