Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ SMAUG ➜ SMAUG coding ➜ Multiple class entry who list

Multiple class entry who list

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Txzeenath   USA  (54 posts)  Bio
Date Thu 22 Jul 2004 07:33 PM (UTC)
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

Posted by Txzeenath   USA  (54 posts)  Bio
Date Reply #1 on Thu 22 Jul 2004 10:20 PM (UTC)
Message
Got it working.. if anyone needs to know how to list multiple classes for something like multiclass or something just ask and i'll post it

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

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


11,216 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.