//johndoe@gooeymud #include #define SYNTAX "Usage: Pk \n" int cmd_pk(object ob, string name, int pk, string s_pk) { name = this_player()->query("cap_name"); s_pk = "%^RESET%^[%^RED%^PK%^RESET%^]%^YELLOW%^"; pk = this_player()->query("no_attack"); ob = this_object(); ob = environment( ob ); switch(pk) { case 0: write("Players can not attack you anymore\n"); this_player()->set("no_attack", 1); this_player()->set("short", "%^RESET%^%^YELLOW%^"+name+"%^RESET%^"); break; case 1: write("Players can attack you now\n"); this_player()->set("no_attack", 0); this_player()->set("short", s_pk+name+"%^RESET%^"); break; } return 1; }