Re: [DG Scripts] bug in alias variable

From: Mark A. Heilpern (heilpern@MINDSPRING.COM)
Date: 01/23/98


Can't recall the specifics, but I think I handled this in my release by
allowing     mkill %actor%     to work (PL2 should allow many of the
script-specific commands to work with %actor%.)

Also, %actor.name% will return a useable value here. This was not
the case in the original DG release but it is in mine.


At 02:09 PM 1/23/98 +0100, you wrote:
>Here's a quick fix for the alias variable.  Due to the way the
>GET_NAME macro works it will return the short description for
>mobiles.  Not good for mkill %actor.alias% if actor is a mob! All
>you'll probably see will be,
>
>SCRIPT ERR: Mob (a tabby cat, VNum 1014): mkill: victim (a) not found
>
>as in this case the first thing in the mobs short description is an
>'a' :(
>
>change in dg_scripts.c this bit after the "name" field ..
>
>      else if (!str_cmp(field, "alias"))
>    strcpy(str, (c)->player.name);
>
>now aliases will be returned for mobs and players and you can get ya
>mobiles scrappin like cats and dogs !!
>
>Andy
>
>
>     +------------------------------------------------------------+
>     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
>     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
>     +------------------------------------------------------------+
>


     +------------------------------------------------------------+
     | 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/15/00 PST