Anyone have a working gambler mod for smaug? I have added the changes that are required but I am still missing something somewhere. The code compiles ok with no errors, but its still not quite right. I need to assign spec_gambler to the mob that is to be the gambler but that choice is not available. I pretty sure the problem lies in special.c so with that inj mind heres some code snips that I added:
DECLARE_SPEC_FUN( spec_gambler );
if ( !str_cmp( name, "spec_gambler" ) ) return spec_gambler;
if ( special == spec_gambler ) return "spec_gambler";
bool spec_gambler( CHAR_DATA *ch)
{
if (!IS_NPC(ch))
return FALSE;
else
return TRUE;
}
All the above code was added to the appropriate places in the special.c file as near as I can tell. Any help or direction would be greatly appreciated.
DECLARE_SPEC_FUN( spec_gambler );
if ( !str_cmp( name, "spec_gambler" ) ) return spec_gambler;
if ( special == spec_gambler ) return "spec_gambler";
bool spec_gambler( CHAR_DATA *ch)
{
if (!IS_NPC(ch))
return FALSE;
else
return TRUE;
}
All the above code was added to the appropriate places in the special.c file as near as I can tell. Any help or direction would be greatly appreciated.