Re: [CODE]

From: George (greerga@DRAGON.HAM.MUOHIO.EDU)
Date: 11/16/97

On Sun, 16 Nov 1997, Chuck Reed wrote:

>I was wondering how a person could execute an actual game command like "set
>blah level blah" inside a function.  Am I off the wrong track doing
>something like calling ACMD(do_set(GET_NAME(victim), "level", newlevel))?

do_set(ch, "<victim_name> level 50", 0, 0);

It'd be better to do what do_set() does by yourself instead of going
through do_set.  It's much faster to do:

GET_LEVEL(victim) = 50;


do_set(ch, "...", 0, 0);
<...do_set does a lot of processing...>

George Greer  -   | Genius may have its limitations, but stupidity | is not thus handicapped. -- Elbert Hubbard

     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | |

This archive was generated by hypermail 2b30 : 12/08/00 PST