Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
auth_update crash
Dec 23, 2017, 10:15 pm
By Remcon
check_tumble
Dec 18, 2017, 7:21 pm
By Remcon
parse description bug
Dec 15, 2017, 10:08 pm
By Remcon
Couple bugs
Dec 12, 2017, 5:42 pm
By Remcon
Bug in disarm( )
Nov 12, 2017, 6:54 pm
By GatewaySysop
LoP 1.46
Author: Remcon
Submitted by: Remcon
LOP 1.45
Author: Remcon
Submitted by: Remcon
LOP Heroes Edition
Author: Vladaar
Submitted by: Vladaar
Heroes sound extras
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.3
Author: Vladaar
Submitted by: Vladaar
Users Online
CommonCrawl, Yandex, Majestic-12, Google

Members: 0
Guests: 6
Stats
Files
Topics
Posts
Members
Newest Member
478
3,708
19,242
612
Jacki72H
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » Codebases » AFKMud Support & Development » [Snippet] Introduction snippet
Forum Rules | Mark all | Recent Posts

[Snippet] Introduction snippet
< Newer Topic :: Older Topic > New AFKMud snippet

Pages:<< prev 1 next >>
Post is unread #1 Aug 28, 2003, 9:58 pm
Go to the top of the page
Go to the bottom of the page

Zarius
Apprentice
GroupMembers
Posts69
JoinedApr 23, 2002

-- Alert --

New snippet released on Zarius's Smaug Snippets

Some people I saw were asking for introduction code, and here it is. Allows you to set your own default desc that people see when you are walking around and on who until you either introduce yourself or if you know someone, you can recognize them.
Zarius Smaug Snippets
       
Post is unread #2 Aug 29, 2003, 1:51 am
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,639
JoinedJan 1, 2002


Toward the bottom of merc.h add these lines after the interp.c defines


Heh. merc.h? That should read mud.h, just in case anyone might have been confused by that.

Otherwise this looks like a cool piece of code, nice job
       
Post is unread #3 Aug 29, 2003, 8:56 am
Go to the top of the page
Go to the bottom of the page

Zarius
Apprentice
GroupMembers
Posts69
JoinedApr 23, 2002

Doh!, I guess thats what happens when you write snippets late at night.
       
Post is unread #4 Sep 3, 2003, 8:37 am
Go to the top of the page
Go to the bottom of the page

Zarius
Apprentice
GroupMembers
Posts69
JoinedApr 23, 2002

Updated version of the snippet posted

Thanks to Samson and Vladaar at Call to arms for finding
the error of my ways
       
Post is unread #5 Sep 15, 2003, 4:24 pm
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,639
JoinedJan 1, 2002

Suggestion:

Make it more clear that free_intros needs to go in the pcdata part of free_char. Already had one mud where it was placed outside that and had it cause crash issues.
       
Post is unread #6 Sep 15, 2003, 5:22 pm
Go to the top of the page
Go to the bottom of the page

Zarius
Apprentice
GroupMembers
Posts69
JoinedApr 23, 2002

Thanks, snippet has been updated.
       
Post is unread #7 Sep 19, 2003, 9:52 pm
Go to the top of the page
Go to the bottom of the page

CTA

GroupMembers
Posts5
JoinedApr 24, 2003

First off thanks Jeff, and Jesse for making the intro snippet available.

Question.
If free_intro's is moved into the pc_data part of function free_char for db.c.....

This was what Samson noticed when I did a print ch->name in gdb and it gave a horse's vnum.

Why is intros placed in char_data structure in mud.h instead of pc_data
structure? The intent is to allow only for intro's to players right?

Also there is this function create_mobile for db.c
mob->intro_descr = NULL;

I am guessing the intentions were for it to be used by mobs? However for some reason it isn't freeing up the memory properly.

I am gonna keep fooling around with this and see what I can come up with. I can rarely get it to crash, but once a few players log on, its crashing every hour it seems.

Vladaar
       
Post is unread #8 Sep 20, 2003, 3:36 am
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,639
JoinedJan 1, 2002

Hrm. My assessment of the situation was based on having been told it was meant only for players to use. Now that I've gone back and examined the code more closely, it seem that mobs do have access to this, though I can't see a reason for why.

There are no checks to safeguard against introducing yourself to mobs, nor to keep them from introducing themselves to you. No safeguards on the recognize command either. Though this doesn't appear to be a crash problem, it could certainly lead to chaos if abused by players. Memory consumption alone would be quite high.

If the intention is only to allow players to use this then it needs to be redone to reflect this. If not, then Vlad's crash problem needs to be uncovered.
       
Pages:<< prev 1 next >>