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
➜ cancel follow/lose
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Tenchi
(7 posts) Bio
|
Date
| Fri 24 Jan 2003 02:21 AM (UTC) |
Message
| Hello =)
I'm looking for a code that will stop someone from following you. I believe there's a lose snippet out there but I can't find it. I've visited people who have said it's on their webpag (on other forums) but I've searched and could not find it T.T if anyone can help me, please reply =) | Top |
|
Posted by
| Boborak
USA (228 posts) Bio
|
Date
| Reply #1 on Fri 24 Jan 2003 03:37 AM (UTC) |
Message
| Although I don't have the code at this point. I have thought of adding something similar myself. So, maybe I'll take this opportunity to help us both out. Personally I was going to write a command to stop *all* followers. Is this what you are looking for? or were you wanting to pick a specific follower to "lose"? | Top |
|
Posted by
| Boborak
USA (228 posts) Bio
|
Date
| Reply #2 on Fri 24 Jan 2003 03:49 AM (UTC) |
Message
| LOL! Much easier then I thought it was going to be. It seems the majority of the code was already there for me.
open up act_comm.c
find do_follow
below this bit of code at the top of do_follow..
if ( arg[0] == '\0' )
{
send_to_char( "Follow whom?\n\r", ch );
return;
}
add this..
if ( !strcmp(arg, "self") )
{
CHAR_DATA *fch;
for ( fch = first_char; fch; fch = fch->next )
{
if ( fch->master == ch )
stop_follower( fch );
if ( fch->leader == ch )
fch->leader = fch;
}
return;
}
save, make clean, enjoy ;-)
Now all you have to do, to stop *everyone* from following you is type 'follow self'. | Top |
|
Posted by
| Tenchi
(7 posts) Bio
|
Date
| Reply #3 on Fri 24 Jan 2003 04:46 AM (UTC) |
Message
| That would be useful, but I'd much rather have the 'lose' command. I'm thinking in a situation where someone is following a group, and being obnoxious. The group doesn't want to disband every time the lil guy follow's 'em =( | Top |
|
Posted by
| Meerclar
USA (733 posts) Bio
|
Date
| Reply #4 on Fri 24 Jan 2003 05:15 AM (UTC) |
Message
| Well, given the fact that "group" is traditionally a status trigger, grouping them then ungrouping them would have the same functionality without any additional coding. Another option would be to write a nofollow char config option that would disable the ability for anyone else to follow them. |
Meerclar - Lord of Cats
Coder, Builder, and Tormenter of Mortals
Stormbringer: Rebirth
storm-bringer.org:4500
www.storm-bringer.org | 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.
14,673 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top