Re: Wizcommands

From: Torgny Bjers (
Date: 09/14/02

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...


   | FAQ: |
   | Archives: |
   | Newbie List:   |

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