quench.txt
snippets · 690 B · 2010-03-30
quench by Jason Huang: header must stay intact.
Download « Back to the snippets list
/* Original Code by Jason Huang (god@sure.net). */
/* Permission to use this code is granted provided this header is */
/* retained and unaltered. */
void spell_quench( int sn, int level, CHAR_DATA *ch, void *vo )
{
if ( IS_NPC(ch) )
return;
ch->pcdata->condition[COND_THIRST] = 30;
send_to_char( "You have quenched your thirst.\n\r", ch );
return;
}
void spell_sate( int sn, int level, CHAR_DATA *ch, void *vo )
{
if ( IS_NPC(ch) )
return;
ch->pcdata->condition[COND_HUNGER] = 24;
send_to_char( "You have sated your hunger.\n\r", ch );
return;
}