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 ➜ help with a code

help with a code

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


Posted by Gorock   (149 posts)  Bio
Date Wed 21 Sep 2005 10:51 PM (UTC)
Message
i have been searching the web but i cant find anything on how to remove the code so that peacefulls can cast spells on deadly and how deadlys can enter town again so where would i find that at thanks
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #1 on Wed 21 Sep 2005 11:23 PM (UTC)
Message
Do a search in the files for the message. It should be in the function is_safe

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

Posted by Gorock   (149 posts)  Bio
Date Reply #2 on Mon 26 Sep 2005 05:06 AM (UTC)
Message
ok i found it in act_move.c and then i commented out the little piece of code that it was in but then i got a lot of errors here is what i got

/* Prevent deadlies from entering a nopkill-flagged area from a
non-flagged area, but allow them to move around if already
inside a nopkill area. - Blodkai
*/

if( IS_SET( to_room->area->flags, AFLAG_NOPKILL )
&& !IS_SET( ch->in_room->area->flags, AFLAG_NOPKILL ) && ( IS_PKILL( ch ) && !IS_IMMOR$
{
set_char_color( AT_MAGIC, ch );
send_to_char( "\n\rA godly force forbids deadly characters from entering that area...\n$
return rNONE;
}



then i changed it to



/* Prevent deadlies from entering a nopkill-flagged area from a
non-flagged area, but allow them to move around if already
inside a nopkill area. - Blodkai
*/

/* if( IS_SET( to_room->area->flags, AFLAG_NOPKILL )
&& !IS_SET( ch->in_room->area->flags, AFLAG_NOPKILL ) && ( IS_PKILL( ch ) && !IS_IMMOR$
{
set_char_color( AT_MAGIC, ch );
send_to_char( "\n\rA godly force forbids deadly characters from entering that area...\n$
return rNONE;
}*/

but i got a lot of errors and what not so what would i do

Top

Posted by Gorock   (149 posts)  Bio
Date Reply #3 on Mon 26 Sep 2005 05:13 AM (UTC)
Message
ok never mind i got it working thanks though
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.


16,187 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.