| Posted by
| Txzeenath
USA (54 posts) Bio
|
| Message
| I want to add three fields to the class area of the who list..
Here's the code i've tried:
strcpy( char_name, wch->name );
if (wch->classtwo != -1 && wch->classthree != -1)
sprintf( class_text, "%s%2d %s|%s|%s", NOT_AUTHED(wch) ? "N" : " ", wch->level,
class_table[wch->class]->who_name, class_table[wch->classtwo]->who_name,
class_table[wch->classthree]->who_name );
else if (wch->classtwo != -1 && wch->classthree == -1)
sprintf( class_text, "%s%2d %s|%s|%s", NOT_AUTHED(wch) ? "N" : " ", wch->level,
class_table[wch->class]->who_name, class_table[wch->classtwo]->who_name,
class_table[wch->classthree]->who_name );
else if (wch->classtwo == -1 && wch->classthree == -1)
sprintf( class_text, "%s%2d %s|%s|%s", NOT_AUTHED(wch) ? "N" : " ", wch->level,
class_table[wch->class]->who_name );
class = class_text;
But all that does is crash when the first or second ones come out true |
Darkness comes along thy path, searching, wanting, calling wrath,
shadows awaken, release the light, one and only.. here to fight,
challenge the darkness, the shadows they call, hunting the living,
more and all. Roaring thunder, full of hate, a single bound, seals
your fate.
-Txzeenath
telnet://divineright.org:8088
Alumuble Arda -
*Player owned shops, clans, and housing
*Multiclass & Stat training
*Random mob name generation implemented and Overland mapping.
*Realistic equipment statistics
*Interactive enviroment(weather/sectors)
*Weapon sheaths(scabbards), Throwing weapons
*Automatic crash recovery, saving, and reporting without disconnecting
*Fully customizeable color, Automapper, "Smart" mobiles, Hiscore tables, and more!
Currently running AGE v1.9.6(Originated and modified from Smaug 1.4a) | | Top |
|