On 02-09-15 00.30, "Thomas Larsson" <aarcerak@ROCKETMAIL.COM> wrote:
> Im adding the zap command, but i wanna prevent other
> imps from zapping me, what can i do?
>
> /* This is a normal else if */
> else if ((vict) == (ch))
> send_to_char("Now that's just plain
> foolishness!\r\n", ch);
>
> What would a Else if look like checking if the command
> is being use on my name, returning a message saying
> you cant zap the owner of the mud ?
Well, providing that you are implementor, you can always do a check for
LVL_IMPL, or even for GET_IDNUM(ch) == 1. Regardless if the other char is
implementor, prevent them from zapping, so in that case you could write it
like this:
else if (GET_LEVEL(ch) <= GET_LEVEL(vict))
Hope that helps...
Regards,
/Torgny
--
+---------------------------------------------------------------+
| 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