RE: [SMAUG] random newbie help needed
RE: [SMAUG] random newbie help needed
Here's a brief lesson in logic... You're wanting to change a message you
see when someone sacrifices something.
A simple grep of the word sacrifice in the source files shows:
act_obj.c line 2170 void do_sacrifice
A simple opening of act_obj.c in any text/code editor, and entering void
do_sacrifice, and boom, there the function is.
Scanning it briefly one easily can see:
if ( !IS_NPC( ch ) && ch->pcdata->deity &&
ch->pcdata->deity->name[0] != '\0' )
{
strcpy( name, ch->pcdata->deity->name );
}
else if ( !IS_NPC( ch ) && IS_GUILDED(ch) &&
sysdata.guild_overseer[0] != '\0' )
{
strcpy( name, sysdata.guild_overseer );
}
else if ( !IS_NPC( ch ) && ch->pcdata->clan &&
ch->pcdata->clan->deity[0] != '\0' )
{
strcpy( name, ch->pcdata->clan->deity );
}
else
{
strcpy( name, "Thoric" );
}
| -----Original Message-----
| From: owner-smaug@game.org [mailto:owner-smaug@game.org] On
| Behalf Of soshi
| Sent: Sunday, December 14, 2003 6:09 PM
| To: SML
| Subject: RE: [SMAUG] random newbie help needed
|
|
| the recompiling worked, thanks :> all the recall vnums seem
| to be working perfectly now.
|
| however, i think i wasn't clear about the deity.
|
| at current, when un devoted characters sacrifice an item or a
| corpse, it reads 'thoric gives you one gold coin for your
| sacrifice.' i wanted to have 'thoric' to be the name of the
| main deity in the MUD.
|
| sorry for not being clear. :>