Author Topic: CityRPG job help  (Read 1292 times)

I'm trying to make a Duck job and its Not using the player type I tell it to use here is the code.
Code: [Select]
// ================================================================
// Project : Brickland City RPG
// Author : Iban + Bot
// Description : Duck Code file
// ================================================================

$CityRPG::jobs::name = "Duck";
$CityRPG::jobs::initialInvestment = 100;
$CityRPG::jobs::pay = 50;
$CityRPG::jobs::tools = "";
$CityRPG::jobs::datablock = Duck;
$CityRPG::jobs::education = 1;

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

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

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

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

$CityRPG::jobs::labor = false;

$CityRPG::jobs::tmHexColor = "FFFFFF";
$CityRPG::jobs::helpline = "\c6Become a duck. Ducks can fly for a short amount of time, and are cute!";
What is wrong with it? Please help me.

Have you made a duck playertype for it to use?


The datablock isn't going to be Duck.

Look at the files for Player_Duck instead of assuming it's Duck.

It's probably Player_Duck or DuckPlayer

It's probably Player_Duck or DuckPlayer

change yourself to the duck player, then in the console type

echo(findlocalclient().player.getdatablock().getname());

change yourself to the duck player, then in the console type

echo(findlocalclient().player.getdatablock().getname());
This works too.  :cookieMonster:

change yourself to the duck player, then in the console type

echo(findlocalclient().player.getdatablock().getname());

Will this make players with the job spawn as a playerduck?

Will this make players with the job spawn as a playerduck?
No.

You have to have the datablock as the datablock for the duck.

I don't understand why people use odd names as "Duck_Player", why don't they just follow the usual pattern? Like.. playerDuckArmor.

The datablock is wrong it would be something else idk try
echo(findlocalclient().player.getdatablock().getname()); in the console
« Last Edit: February 09, 2011, 11:41:23 AM by rainzx »

The datablock is wrong it would be something else idk try
echo(findlocalclient().player.getdatablock().getname());

change yourself to the duck player, then in the console type

echo(findlocalclient().player.getdatablock().getname());

nice bump you did there.