Re: NEWBIE: DGSCRPITS / Emote

From: Mike Stilson (mike@velgarian.sytes.net)
Date: 09/15/02


On Sun, Sep 15, 2002 at 03:53:45AM -0700, Thomas Larsson wrote:
>Im getting a mob using player special at act.wizard.c
>line 127. So i though maybe DGSCRIPTS used this part
>of emotes ? If not then im lost.

Whether or not dg uses it, mobs don't have that structure (or rather ALL
mobs share the same instance of that structure) so you don't want to be
using it.

(I think I just answered this almost identical question a couple days
ago)

>
>      strcpy(buf, argument);
>    act(buf, FALSE, ch, 0, 0, TO_ROOM);
-    if (PRF_FLAGGED(ch, PRF_NOREPEAT))
+    if (!IS_NPC(ch) && PRF_FLAGGED(ch, PRF_NOREPEAT))
>      send_to_char(OK, ch);
>    else
>      act(buf, FALSE, ch, 0, 0, TO_CHAR);

Alternatively, to allow some stuff with jarred mobs, alter your
{PRF,PLR}_FLAGGED macros to check for ch->desc and return the value from
the jarring person.


-me

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   | Newbie List:  http://groups.yahoo.com/group/circle-newbies/   |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 06/25/03 PDT