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;
than
sprintf(...);
do_set(ch, "...", 0, 0);
<...do_set does a lot of processing...>
--
George Greer - Me@Null.net | Genius may have its limitations, but stupidity
http://www.van.ml.org/~greerga | is not thus handicapped. -- Elbert Hubbard
+------------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
| http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
+------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/08/00 PST