FOnline Development > Questions and Answers

FOnline SDK - Question

<< < (57/93) > >>

Bevolard:

--- Quote from: Wipe on September 27, 2012, 09:22:18 am ---I just get a bunch of errors i have no idea what to do
--- End quote ---

barter1113:
I'm not up to date with the sdk, what is planning for the next revision, for 381?

Bevolard:

--- Quote ---~runscript debug body 1 21 0
When I restart the server it doesn't save the skin is there a way to save it?
--- End quote ---


--- Quote from: Wipe on September 27, 2012, 09:22:18 am ---
--- Code: ---if( target.ChangeCrType( param1 ))
    target.StatBase[ST_BASE_CRTYPE] = param1;

--- End code ---

Edit: Ah, it's possible that it's set basing on char gender, check main@critter_init - i think TLA is doing so, but not sure.

--- End quote ---
yeah I need help I don't really know what to do.

Skycast:
Something like this:

--- Code: ---int crType = ( player.Stat[ ST_GENDER ] == GENDER_MALE ? CRTYPE_male_type : CRTYPE_feramle_type );
player.ChangeCrType( crType );
player.StatBase[ ST_BASE_CRTYPE ] = crType;

--- End code ---

Some critter types defined in _defines.fos

--- Code: ---// Dweller
#define CRTYPE_DW_JUMPSUIT_M                     ( 11 )
#define CRTYPE_DW_JUMPSUIT_F                     ( 4 )
#define CRTYPE_DW_LEATHER_JACKET_F               ( 6 )
#define CRTYPE_DW_LEATHER_ARMOR_M                ( 12 )
#define CRTYPE_DW_LEATHER_JACKET_M               ( 13 )
#define CRTYPE_DW_METAL_ARMOR_M                  ( 14 )
#define CRTYPE_DW_TRIBAL_F                       ( 63 )
#define CRTYPE_DW_TRIBAL_M                       ( 64 )

--- End code ---

But you can add yours.

Bevolard:
ok thanks

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version