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
➜ identify spell is in error
identify spell is in error
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Fester
(5 posts) Bio
|
Date
| Mon 14 Jan 2002 02:37 AM (UTC) Amended on Mon 14 Jan 2002 02:43 AM (UTC) by Fester
|
Message
| Whenever identify is cast the spell shows every wear flag
*BUT* the one that is actually on the item.
if i'm not mistaken this would be the chunk of code that is responsible for this problem.
magic.c
line 3196
if ( obj->item_type != ITEM_LIGHT && obj->wear_flags-1 > 0 )
ch_printf( ch, ", with wear location: %s\n\r", flag_string(obj->wear_flags-1, w_flags) );
else
send_to_char( ".\n\r", ch );
however bieng somewhat new to smaug and a poor coder at best
i'm afraid that i'm stuck.;(
Any help would be appreciated. Thanx in advance ;)
-Edit-
is smaug v1.4a for windows compiled under cygwin | Top |
|
Posted by
| Fester
(5 posts) Bio
|
Date
| Reply #1 on Mon 14 Jan 2002 03:46 AM (UTC) |
Message
| Fixed the problem on my own after all ;)
changed
if ( obj->item_type != ITEM_LIGHT && obj->wear_flags-1 > 0 )
ch_printf( ch, ", with wear location: %s\n\r", flag_string(obj->wear_flags-1, w_flags) );
to this
if ( obj->item_type != ITEM_LIGHT && obj->wear_flags-1 > 0 )
ch_printf( ch, ", with wear location: %s\n\r", flag_string(obj->wear_flags, w_flags) );
| 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.
10,103 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top