line--; if( line == 0 ) strcpy( (char*)script1, pj->name().ascii() );
line--; if( line == 0 ) strcpy( (char*)script1, (char*)pj->name().latin1() );
void ttext(int line, SERIAL serial){	char type;	if (isCharSerial(serial))		type = 2;	else		type = 1;	if (type==1) { line--; if( line == 0 ) strcpy( (char*)script1, "Item Properties"); }	if (type==2) { line--; if( line == 0 ) strcpy( (char*)script1, "Character Properties"); }	line--; if( line == 0 ) strcpy( (char*)script1, "Next page");	line--; if( line == 0 ) strcpy( (char*)script1, "Previous page");	if (type==1)	{		P_ITEM pj = FindItemBySerial(serial);		if (pj == NULL)			return;		line--; if( line == 0 ) strcpy( (char*)script1, "Name");		line--; if( line == 0 ) strcpy( (char*)script1, pj->name().ascii() );		line--; if( line == 0 ) strcpy( (char*)script1, "ID");		line--; if( line == 0 ) sprintf( (char*)script1,"0x%x (%i)", pj->id(), pj->id());		line--; if( line == 0 ) strcpy( (char*)script1, "Hue");		line--; if( line == 0 ) sprintf( (char*)script1,"0x%x (%i)", pj->color(), pj->color());		line--; if( line == 0 ) strcpy( (char*)script1, "X");		line--; if( line == 0 ) sprintf( (char*)script1,"%i (0x%x)", pj->pos.x, pj->pos.x);		line--; if( line == 0 ) strcpy( (char*)script1, "Y");		line--; if( line == 0 ) sprintf( (char*)script1,"%i (0x%x)", pj->pos.y, pj->pos.y);		line--; if( line == 0 ) strcpy( (char*)script1, "Z");		line--; if( line == 0 ) sprintf( (char*)script1,"%i (0x%x)", pj->pos.z, pj->pos.z);		line--; if( line == 0 ) strcpy( (char*)script1, "Type");		line--; if( line == 0 ) sprintf( (char*)script1,"%i", pj->type());		line--; if( line == 0 ) strcpy( (char*)script1,  "TwoHanded" );		line--; if( line == 0 ) sprintf( (char*)script1, "%i", pj->twohanded() ? 1 : 0 );		line--; if( line == 0 ) strcpy( (char*)script1, "Layer");		line--; if( line == 0 ) sprintf( (char*)script1,"%i (0x%x)", pj->layer(), pj->layer());		line--; if( line == 0 ) strcpy( (char*)script1, "Amount");		line--; if( line == 0 ) sprintf( (char*)script1,"%i", pj->amount());		line--; if( line == 0 ) strcpy( (char*)script1, "More");		line--; if( line == 0 ) sprintf( (char*)script1,"0x%x", (pj->more1<<24)+(pj->more2<<16)+(pj->more3<<8)+pj->more4);		line--; if( line == 0 ) strcpy( (char*)script1, "MoreB");		line--; if( line == 0 ) sprintf( (char*)script1,"0x%x", (pj->moreb1()<<24)+(pj->moreb2()<<16)+(pj->moreb3()<<8)+pj->moreb4());		line--; if( line == 0 ) strcpy( (char*)script1, "Stackable");		line--; if( line == 0 ) sprintf( (char*)script1,"%i", pj->isPileable() ? 1 : 0 );		line--; if( line == 0 ) strcpy( (char*)script1, "Dyeable");		line--; if( line == 0 ) sprintf( (char*)script1,"%i", pj->dye );		line--; if( line == 0 ) strcpy( (char*)script1, "Corpse");		line--; if( line == 0 ) sprintf( (char*)script1,"%i", pj->corpse() ? 1 : 0 );		line--; if( line == 0 ) strcpy((char*) script1, "LoDamage" );		line--; if( line == 0 ) sprintf( (char*)script1,"%i", pj->lodamage() );		line--; if( line == 0 ) strcpy( (char*)script1, "HiDamage" );		line--; if( line == 0 ) sprintf( (char*)script1,"%i", pj->hidamage() );		line--; if( line == 0 ) strcpy( (char*)script1, "Defense");		line--; if( line == 0 ) sprintf( (char*)script1,"%i", pj->def);		line--; if( line == 0 ) strcpy( (char*)script1, "Magic");		line--; if( line == 0 ) sprintf( (char*)script1,"%i", pj->magic);		line--; if( line == 0 ) strcpy( (char*)script1, "Visible");		line--; if( line == 0 ) sprintf( (char*)script1,"%i", pj->visible);		line--; if( line == 0 ) strcpy( (char*)script1, "HitPoints" );		line--; if( line == 0 ) sprintf( (char*)script1, "%i", pj->hp() );		line--; if( line == 0 ) strcpy( (char*)script1, "MaxHitPoints" );		line--; if( line == 0 ) sprintf((char*) script1, "%i", pj->maxhp() );		line--; if( line == 0 ) strcpy((char*) script1, "Speed" );		line--; if( line == 0 ) sprintf((char*) script1, "%i", pj->speed() );		line--; if( line == 0 ) strcpy( (char*)script1, "Rank");		line--; if( line == 0 ) sprintf((char*) script1,"%i", pj->rank);		line--; if( line == 0 ) strcpy((char*) script1, "Value");		line--; if( line == 0 ) sprintf((char*) script1,"%i", pj->value);		line--; if( line == 0 ) strcpy((char*) script1, "Good" );		line--; if( line == 0 ) sprintf( (char*)script1,"%i", pj->good );		line--; if( line == 0 ) strcpy( (char*)script1, "Made Skill" );		line--; if( line == 0 ) sprintf( (char*)script1, "%i", pj->madewith );		line--; if( line == 0 ) strcpy((char*) script1, "Creator" );		line--; if( line == 0 ) strcpy((char*)script1, pj->creator.c_str() );	}	if( type == 2 )	{		P_CHAR pc_j = FindCharBySerial(serial);		if (pc_j == NULL)			return;		line--; if( line == 0 ) strcpy( (char*)script1, "Name" );		line--; if( line == 0 ) strcpy( (char*)script1,  pc_j->name.c_str() );		line--; if( line == 0 ) strcpy( (char*)script1, "Title" );		line--; if( line == 0 ) strcpy((char*) script1,  pc_j->title().latin1() );		line--; if( line == 0 ) strcpy( (char*)script1, "X" );		line--; if( line == 0 ) sprintf((char*) script1,"%i", pc_j->pos.x );		line--; if( line == 0 ) strcpy((char*) script1, "Y" );		line--; if( line == 0 ) sprintf( (char*)script1,"%i", pc_j->pos.y );		line--; if( line == 0 ) strcpy( (char*)script1, "Z" );		line--; if( line == 0 ) sprintf( (char*)script1,"%i", pc_j->pos.z );		line--; if( line == 0 ) strcpy( (char*)script1, "Direction" );		line--; if( line == 0 ) sprintf( (char*)script1,"%i", pc_j->dir );		line--; if( line == 0 ) strcpy( (char*)script1, "Body" );		line--; if( line == 0 ) sprintf((char*) script1,"(0x%x) %i", pc_j->id(), pc_j->id() );		line--; if( line == 0 ) strcpy((char*) script1, "Skin" );		line--; if( line == 0 ) sprintf( (char*)script1, "(0x%x) %i", pc_j->skin(), pc_j->skin() );		line--; if( line == 0 ) strcpy( (char*)script1, "Defence" );		line--; if( line == 0 ) sprintf((char*) script1,"%i", pc_j->def );		line--; if( line == 0 ) strcpy( (char*)script1, "Hunger" );		line--; if( line == 0 ) sprintf( (char*)script1,"%i", pc_j->hunger() );		line--; if( line == 0 ) strcpy( (char*)script1, "Strength" );		line--; if( line == 0 ) sprintf((char*) script1,"%i", pc_j->st );		line--; if( line == 0 ) strcpy( (char*)script1, "Dexterity" );		line--; if( line == 0 ) sprintf( (char*)script1,"%i", pc_j->realDex() );		line--; if( line == 0 ) strcpy( (char*)script1, "Intelligence" );		line--; if( line == 0 ) sprintf( (char*)script1,"%i", pc_j->in );		line--; if( line == 0 ) strcpy( (char*)script1, "Karma" );		line--; if( line == 0 ) sprintf( (char*)script1,"%i", pc_j->karma );		line--; if( line == 0 ) strcpy( (char*)script1, "Fame" );		line--; if( line == 0 ) sprintf( (char*)script1,"%i", pc_j->fame );		line--; if( line == 0 ) strcpy( (char*)script1, "Kills" );		line--; if( line == 0 ) sprintf( (char*)script1,"%i", pc_j->kills );		line--; if( line == 0 ) strcpy( (char*)script1, "Jail time" );		line--; if( line == 0 ) sprintf( (char*)script1,"%i", pc_j->jailsecs );			}	line--; if( line == 0) strcpy( (char*)script1, "}");}