No Zapping Arch Wizzes

Here's how to prevent zapping of arch wizards:

In /verbs/creators/zap.c, change:

    if(!living(ob)) {
        write("You can only zap living things.");
        return 1;
    }
    else name = ob->GetName();

to

    if(!living(ob)) {
        write("You can only zap living things.");
        return 1;
    } else if (archp(ob)) {
        write("You can't zap an Arch!");
        return 1;
    } else name = ob->GetName();

Trackback URL for this post:

http://erroraccessdenied.com/trackback/861

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <b> <i> <u> <cite> <ul> <ol> <li> <dl> <dt> <dd> <blockquote> <br> <p> <img> <pre>
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • Lines and paragraphs break automatically.

More information about formatting options