Instead of the act functions do something like:
sprintf( buf, "%s gives [%d] %s to you.\n\r", ch,
number, obj );
send_to_char( buf, ch );
You'd have to do it to replace each of the act
statements, which would be a pain to replace the one
that goes to the room. Of course the room doesn't
need to know how many you give them...
-Matt Foltz
--- [EMAIL PROTECTED] wrote:
> How would i make the do_give function , written by
> TAKA and the GHOST DANCER MUD Project team, show how
> much i am giving to someone?
>
> the piece of code in question
>
> if (i >= number)
> {
> MOBtrigger = FALSE;
> act( "$n gives some $p to $N.", ch, obj, victim,
> TO_NOTVICT );
> act( "$n gives you some $p.", ch, obj, victim,
> TO_VICT );
> act( "You give some $p to $N.", ch, obj, victim,
> TO_CHAR );
> MOBtrigger = TRUE;
> return;
> }
>
> if ( ( obj = get_obj_carry( ch, arg1, ch ) ) ==
> NULL )
> {
> send_to_char( "You do not have that item.\n\r", ch
> );
> MOBtrigger = FALSE;
> act( "$n gives somr $p to $N.", ch, obj, victim,
> TO_NOTVICT );
> act( "$n gives you some $p.", ch, obj, victim,
> TO_VICT );
> act( "You give some $p to $N.", ch, obj, victim,
> TO_CHAR );
> MOBtrigger = TRUE;
> return;
> }
> }
> }
>
>
> Thanks for any help/flames/responses.
> Charlie
>
>
__________________________________________________________________
> The NEW Netscape 7.0 browser is now available.
> Upgrade now!
>
http://channels.netscape.com/ns/browsers/download.jsp
>
>
> Get your own FREE, personal Netscape Mail account
> today at http://webmail.netscape.com/
>
> --
> ROM mailing list
> [email protected]
> http://www.rom.org/cgi-bin/mailman/listinfo/rom
__________________________________________________
Do you Yahoo!?
HotJobs - Search new jobs daily now
http://hotjobs.yahoo.com/