act.other.c

dbt/src/act.other.c · 424.3 KB

From the archive dbtv16.tar.gz

Download the archive   « Back to the archive contents

/* ************************************************************************
*   File: act.other.c                                   Part of CircleMUD *
*  Usage: Miscellaneous player-level commands                             *
*                                                                         *
*  All rights reserved.  See license.doc for complete information.        *
*                                                                         *
*  Copyright (C) 1993, 94 by the Trustees of the Johns Hopkins University *
*  CircleMUD is based on DikuMUD, Copyright (C) 1990, 1991.               *
************************************************************************ */

#define __ACT_OTHER_C__

#include "conf.h"
#include "sysdep.h"

#include "structs.h"
#include "utils.h"
#include "comm.h"
#include "interpreter.h"
#include "handler.h"
#include "db.h"
#include "spells.h"
#include "screen.h"
#include "house.h"
#include "dg_scripts.h"

/* extern variables */
extern char arg1 [MAX_INPUT_LENGTH];
extern char arg2 [MAX_INPUT_LENGTH];
extern int spell_sort_info[MAX_SKILLS+1];
extern struct str_app_type str_app[];
extern struct room_data *world;
extern struct descriptor_data *descriptor_list;
extern struct dex_skill_type dex_app_skill[];
extern struct spell_info_type spell_info[];
extern struct index_data *mob_index;
extern char *class_abbrevs[];
extern struct spell_entry spells[];
extern int free_rent;
extern int pt_allowed;
extern int max_filesize;
extern int nameserver_is_slow;
extern int top_of_world;
extern int auto_save;
extern sh_int r_trans_space;
extern sh_int r_trans_earth;
extern sh_int r_trans_vegeta;
extern sh_int r_trans_frigid;
extern sh_int r_trans_namek;
extern sh_int r_trans_orainas;
extern sh_int r_trans_konack;
extern sh_int r_death_start_room;
extern sh_int r_mortal_start_room;
extern sh_int r_immort_start_room;
extern sh_int r_demon_start_room;
extern sh_int r_saiyan_start_room;
extern sh_int r_angel_start_room;
extern sh_int r_konack_start_room;
extern sh_int r_majin_start_room;
extern sh_int r_pk1_room;
extern sh_int r_pk2_room;
extern sh_int r_pk3_room;
extern sh_int r_pk4_room;
extern sh_int r_icer_start_room;
extern sh_int r_truffle_start_room;
extern sh_int r_namek_start_room;
extern int dotmode;
extern int value1;
extern int value2;

/* extern procedures */
void list_skills(struct char_data * ch);
void appear(struct char_data * ch);
void perform_immort_vis(struct char_data *ch);
SPECIAL(shop_keeper);
ACMD(do_gen_comm);
void die(struct char_data * ch, struct char_data * killer);
void Crash_rentsave(struct char_data * ch, int cost);
void make_corpse(struct char_data * ch);

/* local functions */
ACMD(do_quit);
ACMD(do_save);
ACMD(do_fly);
ACMD(do_land);
ACMD(do_not_here);
ACMD(do_SWIFTNESS);
ACMD(do_hide);
ACMD(do_mug);
ACMD(do_practice);
ACMD(do_visible);
ACMD(do_title);
int perform_group(struct char_data *ch, struct char_data *vict);
void print_group(struct char_data *ch);
ACMD(do_group);
ACMD(do_ungroup);
ACMD(do_inplant);
ACMD(do_report);
ACMD(do_sbreed);
ACMD(do_split);
ACMD(do_ssj);
ACMD(do_kaioken);
ACMD(do_kyodaika);
ACMD(do_spar);
ACMD(do_sparkick);
ACMD(do_sparpunch);
ACMD(do_sparelbow);
ACMD(do_sparknee);
ACMD(do_sparkiblast);
ACMD(do_transform);
ACMD(do_learn);
ACMD(do_use);
ACMD(do_repair);
ACMD(do_wimpy);
ACMD(do_display);
ACMD(do_stealth);
ACMD(do_gen_write);
ACMD(do_powerup);
ACMD(do_meditate);
ACMD(do_powerdown);
ACMD(do_gen_tog);
ACMD(do_ingest);
ACMD(do_deflect);
ACMD(do_upgrade);
ACMD(do_mystic);
ACMD(do_perfection);
ACMD(do_heal);
ACMD(do_heal2);
ACMD(do_pk);
ACMD(do_majinmorph);
ACMD(do_innerfire);
ACMD(do_clanlist);
ACMD(do_clanjoin);
ACMD(do_clanresign);
ACMD(do_rlist);
ACMD(do_mlist);
ACMD(do_olist);
ACMD(do_whois);
ACMD(do_mutate);
ACMD(do_shadow);
ACMD(do_augment);
ACMD(do_reincarnate);
ACMD(do_lp);
ACMD(do_potential);
ACMD(do_majinize);
ACMD(do_majinyes);
ACMD(do_mindread);
ACMD(do_skanassan);
ACMD(do_training);
ACMD(do_scouter);
ACMD(do_clan);
ACMD(do_race);
ACMD(do_roleplay);
ACMD(do_quote);
ACMD(do_bounty);
ACMD(do_password);
ACMD(do_trade);
ACMD(do_suicide);
ACMD(do_drop);
ACMD(do_wish);
ACMD(do_calc);
ACMD(do_sangel);
ACMD(do_transport);
ACMD(do_fu);
ACMD(do_recruit);
ACMD(do_boot);
ACMD(do_demote);
ACMD(do_promote);
ACMD(do_elect);
ACMD(do_cquit);
ACMD(do_moonburst);

/* Do not remove or alter text in version unless you want to admit to being
* a lying douche bag. You may add to it, but do not alter or remove any of
* the text.
*/
ACMD(do_version)
{
 send_to_char("Circlemud: 3.0\r\n", ch);
 send_to_char("Based on Diku: Gamma 0.0\r\n", ch);
 send_to_char("Dragonball Truth: Version 1.6\r\n", ch);
 send_to_char("Dragonball Truth Credits:     Code by -      Iovan\r\n"
              "                              Server Admin - Kuvoc\r\n"
              "                              Building by -  Iovan,\r\n"
              "Solbet, Kuvoc, Xyron, Shinigami, Mhurzin, Shigeru,\r\n"
              "Eragon, Emerai, Necrid, and many others.\r\n", ch);
}
/* For fishing */
ACMD(do_reel)
{
  if (!PRF2_FLAGGED(ch, PRF2_FISHING)) {
   send_to_char("You are not even fishing!\r\n", ch);
   return;
  }
  if (PRF2_FLAGGED(ch, PRF2_REELING)) {
   send_to_char("You are already reeling in!\r\n", ch);
   return;
  }
  if (!PRF2_FLAGGED(ch, PRF2_CAUGHT)) {
   send_to_char("You don't even have a fish on the line!\r\n", ch);
   return;
  }
  else {
    act("You start reeling in.", TRUE, ch, 0, 0, TO_CHAR);
    act("$n starts reeling in.", TRUE, ch, 0, 0, TO_ROOM);
    SET_BIT(PRF2_FLAGS(ch), PRF2_REELING);
    REMOVE_BIT(PRF2_FLAGS(ch), PRF2_CAUGHT);
  }
}
ACMD(do_fish)
{
  *buf = '\0';
  one_argument(argument, buf);
  if (!ROOM_FLAGGED(ch->in_room, ROOM_SHORE)) {
    send_to_char("You are not near water!\r\n", ch);
    return;
  }
  if (!GET_EQ(ch, WEAR_HOLD)) {
    send_to_char("You do not have a fishing pole!\r\n", ch);
    return;
  }
  if (!IS_OBJ_STAT(GET_EQ(ch, WEAR_HOLD), ITEM_ROD)) {
    send_to_char("You are not holding a fishing pole!\r\n", ch);
    return;
  }
  if (PRF2_FLAGGED(ch, PRF2_CAUGHT) || PRF2_FLAGGED(ch, PRF2_REELING)) {
    send_to_char("You have a fish on the pole!\r\n", ch);
    return;
  }
  if (PRF2_FLAGGED(ch, PRF2_FISHING)) {
    act("You decide to give up and reel in the line.", TRUE, ch, 0, 0, TO_CHAR);
    act("$n gives up and reels in their fishing line.", TRUE, ch, 0, 0, TO_ROOM);
    REMOVE_BIT(PRF2_FLAGS(ch), PRF2_FISHING);
    if (GET_SKILL(ch, SPELL_FISHING) >= 70) {
    REMOVE_BIT(PRF2_FLAGS(ch), PRF2_FISH4);
    }
    else if (GET_SKILL(ch, SPELL_FISHING) >= 40) {
    REMOVE_BIT(PRF2_FLAGS(ch), PRF2_FISH3);
    }
    else if (GET_SKILL(ch, SPELL_FISHING) >= 21) {
    REMOVE_BIT(PRF2_FLAGS(ch), PRF2_FISH2);
    }
    else if (GET_SKILL(ch, SPELL_FISHING) <= 20) {
    REMOVE_BIT(PRF2_FLAGS(ch), PRF2_FISH1);
    }

    return;
  }
  if (GET_POS(ch) != POS_RESTING) {
    send_to_char("You need to lay back and rest in order to fish right.\r\n", ch);
    return;
  }
  else {
    act("You cast out into the water.", TRUE, ch, 0, 0, TO_CHAR);
    act("$n casts their fishing line out into the water.", TRUE, ch, 0, 0, TO_ROOM);
    SET_BIT(PRF2_FLAGS(ch), PRF2_FISHING);
    if (GET_SKILL(ch, SPELL_FISHING) >= 70) {
    SET_BIT(PRF2_FLAGS(ch), PRF2_FISH4);
    }
    else if (GET_SKILL(ch, SPELL_FISHING) >= 40) {
    SET_BIT(PRF2_FLAGS(ch), PRF2_FISH3);
    }
    else if (GET_SKILL(ch, SPELL_FISHING) >= 21) {
    SET_BIT(PRF2_FLAGS(ch), PRF2_FISH2);
    }
    else if (GET_SKILL(ch, SPELL_FISHING) <= 20) {
    SET_BIT(PRF2_FLAGS(ch), PRF2_FISH1);
    }
    GET_FISHT(ch) = 3000;
    return;
  }
}

void fishcheck()
{
   struct descriptor_data *d;
   struct obj_data *obj;
   int r_num, success = FALSE;
  for (d = descriptor_list; d; d = d->next) {
     if (STATE(d) != CON_PLAYING)
         continue;
     if (!d->character) /* just to make sure */
         continue;
     if (!PRF2_FLAGGED(d->character, PRF2_FISHING))
         continue;
     if (GET_FISHT(d->character) <= 0 && !PRF2_FLAGGED(d->character, PRF2_REELING)) {
      act("You give up and reel in.", TRUE, d->character, 0, 0, TO_CHAR);
      act("$n reels in having caught nothing.", TRUE, d->character, 0, 0, TO_ROOM);
      REMOVE_BIT(PRF2_FLAGS(d->character), PRF2_FISHING);
         REMOVE_BIT(PRF2_FLAGS(d->character), PRF2_FISH1);
         REMOVE_BIT(PRF2_FLAGS(d->character), PRF2_FISH2);
         REMOVE_BIT(PRF2_FLAGS(d->character), PRF2_FISH3);
         REMOVE_BIT(PRF2_FLAGS(d->character), PRF2_FISH4);
         REMOVE_BIT(PRF2_FLAGS(d->character), PRF2_CAUGHT);
     }
     if (PRF2_FLAGGED(d->character, PRF2_FISHING)) {
        if (PRF2_FLAGGED(d->character, PRF2_FISH4) && number(1, 5000) >= 4800) {
          success = TRUE;
        }
        else if (PRF2_FLAGGED(d->character, PRF2_FISH3) && number(1, 5200) >= 5000) {
          success = TRUE;
        }
        else if (PRF2_FLAGGED(d->character, PRF2_FISH2) && number(1, 5500) >= 5300) {
          success = TRUE;
        }
        else if (PRF2_FLAGGED(d->character, PRF2_FISH1) && number(1, 6000) >= 5800) {
          success = TRUE;
        }
        if (success == TRUE && !PRF2_FLAGGED(d->character, PRF2_REELING) && !PRF2_FLAGGED(d->character, PRF2_CAUGHT)) {
         SET_BIT(PRF2_FLAGS(d->character), PRF2_CAUGHT);
         act("You feel the line on your fishing pole tug.", TRUE, d->character, 0, 0, TO_CHAR);
         act("$n smiles as $s fishing pole seems to dip.", TRUE, d->character, 0, 0, TO_ROOM);
        }
        if (PRF2_FLAGGED(d->character, PRF2_REELING) && GET_FISHT(d->character) >= 1) {
         GET_FISHT(d->character) -= GET_SKILL(d->character, SPELL_FISHING) + 40;
        }
        if ((PRF2_FLAGGED(d->character, PRF2_REELING) || PRF2_FLAGGED(d->character, PRF2_CAUGHT)) && number(1, 3000) >= 2800) {
         REMOVE_BIT(PRF2_FLAGS(d->character), PRF2_REELING);
         REMOVE_BIT(PRF2_FLAGS(d->character), PRF2_CAUGHT);
         act("You believe you lost the fish.", TRUE, d->character, 0, 0, TO_CHAR);
         act("$n frowns sadly.", TRUE, d->character, 0, 0, TO_ROOM);
        }
        if (PRF2_FLAGGED(d->character, PRF2_REELING) && GET_FISHT(d->character) <= 0) {
         switch(number(1, 20)) {
           case 1:
           case 2:
           case 3:
           case 4:
           case 5:
              r_num = 2323;
           if ((r_num = real_object(2323)) < 0) {
            send_to_char("Error, report to immortal.\r\n", d->character);
           }
           else {
            obj = read_object(r_num, REAL);
            obj_to_char(obj, d->character);
           }
           break;
           case 6:
              r_num = 2324;
           if ((r_num = real_object(2324)) < 0) {
            send_to_char("Error, report to immortal.\r\n", d->character);
           }
           else {
            obj = read_object(r_num, REAL);
            obj_to_char(obj, d->character);
           }
           break;
           default:
              r_num = 2322;
           if ((r_num = real_object(2322)) < 0) {
            send_to_char("Error, report to immortal.\r\n", d->character);
           }
           else {
            obj = read_object(r_num, REAL);
            obj_to_char(obj, d->character);
           }
           break;
         }
         act("You catch a $p!", TRUE, d->character, obj, 0, TO_CHAR);
         act("$n smiles as $e catches a $p!", TRUE, d->character, obj, 0, TO_ROOM);
         REMOVE_BIT(PRF2_FLAGS(d->character), PRF2_FISHING);
         REMOVE_BIT(PRF2_FLAGS(d->character), PRF2_FISH1);
         REMOVE_BIT(PRF2_FLAGS(d->character), PRF2_FISH2);
         REMOVE_BIT(PRF2_FLAGS(d->character), PRF2_FISH3);
         REMOVE_BIT(PRF2_FLAGS(d->character), PRF2_FISH4);
         REMOVE_BIT(PRF2_FLAGS(d->character), PRF2_REELING);
        }
      }
      GET_FISHT(d->character) -= 10;
    }  
}
/* For going Golden Oozaru */
ACMD(do_moonburst)
{
  if (!GET_SKILL(ch, SPELL_MOONB)) {
       send_to_char("You don't know how to do that!\r\n", ch);
       return;
      }
  if (IS_NPC(ch)) {
    send_to_char("You are just a mob!\r\n", ch);
       return;
      }
  if (PRF2_FLAGGED(ch, PRF2_GO)) {
   send_to_char("You can't use this while in Golden Oozaru!\r\n", ch);
   return;
  }
  if (PRF_FLAGGED(ch, PRF_OOZARU)) {
   send_to_char("You can't use this while in Oozaru!\r\n", ch);
   return;
  }
  if (!PLR_FLAGGED(ch, PLR_trans3)) {
    send_to_char("You can't use moonburst outside of Super Saiyan Three.\r\n", ch);
    return;
  }
  if (PLR_FLAGGED(ch, PLR_trans3) && PLR_FLAGGED(ch, PLR_trans4)) {
   send_to_char("You refuse to use that right now, perfering the balance of your power now.\r\n", ch);
    return;
  }
 if (PLR_FLAGGED(ch, PLR_trans3) && !PLR_FLAGGED(ch, PLR_trans4)) {
   if (!PLR_FLAGGED(ch, PLR_STAIL)) {
    send_to_char("Without a tail, it will be useless to you!\r\n", ch);
    return;
   }
   if (GET_MANA(ch) <= GET_MAX_MANA(ch) / 2) {
    send_to_char("You do not have enough ki to control the moonburst.\r\n", ch);
   }
   else {
    act("&09$n&16 stares up into a &14m&00&06o&15o&14n&11b&00&03u&15r&00&03s&11t&16 as their eyes turn &09b&00&01loo&09d &09r&00&01e&09d&16 and fangs sprout in their mouth. A &11go&00&03ld&00&11en &12a&14u&12r&14a&16 appears around them and quickly grows destroying the ground beneath them. There is a sudden explosion as their aura turns into a &11go&00&03ld&00&11en&16 pillar shooting into the sky surrounded by rings of &00li&14gh&00&06t&14ni&00ng&16 as huge rocks go flying into the sky. $e begins to grow in size as &00&03brown&16 fur appears all over them when the &11go&00&03ld&00&11en&16 aura collapses into dust. They suddenly grow to full size and let out a massive roar as $s fur turns &11go&00&03ld&11en ye&00&03ll&11ow&16. &09$n&16 has transformed into a &11Go&00&03ld&11en&16 &00&03O&09o&16z&00&03ar&01u&16.", FALSE, ch, 0, 0, TO_ROOM); 
    act("&09You&16 look up into the &14m&00&06o&15o&14n&11b&00&03u&15r&00&03s&11t&16 in the sky and begin to feel a &09s&16a&09v&16a&09g&16e power begin to rise from deep inside you. Your eyes turn &09b&00&01loo&09d &09r&00&01e&09d&16 as fangs sprout in your mouth. A &11go&00&03ld&00&11en &12a&14u&12r&14a&16 appears around you and quickly grows, destroying the ground beneath you. Your aura suddendly explodes forth into a massive &11go&00&03ld&11en&16 pillar surrounded by rings of &00li&14gh&00&06t&14ni&00ng&16 throwing huge chunks of rock flying into the sky as you begin to grow in size. &00&03Brown&16 hair begins to grow all over your body just as your aura collapses into a pillar of &11g&00&03ol&11d&16 dust. You quickly grow to full size and plant your feet on the ground and let out a massive roar as your fur turns &11go&00&03ld&11en ye&00&03ll&11ow&16. You have transformed into a &11Go&00&03ld&11en&16 &00&03O&09o&16z&00&03ar&01u&16.", FALSE, ch, 0, 0, TO_CHAR);
    SET_BIT(PRF2_FLAGS(ch), PRF2_GO);
    GET_RAGET(ch) += 1200;
    GET_MAX_HIT(ch) += 57500000;
    GET_MANA(ch) -= GET_MAX_MANA(ch) / 2;
    return;
   }
 }
}
/* Clan quit, self explanitory */
ACMD(do_cquit)
{
 
  if (CLN_FLAGGED(ch, CLN_LEADER1) || CLN_FLAGGED(ch, CLN_LEADER2) || CLN_FLAGGED(ch, CLN_LEADER3) || CLN_FLAGGED(ch, CLN_LEADER4) || CLN_FLAGGED(ch, CLN_LEADER5) || CLN_FLAGGED(ch, CLN_LEADER6) || CLN_FLAGGED(ch, CLN_LEADER7) || CLN_FLAGGED(ch, CLN_LEADER8)) {
   send_to_char("Clan leaders can't quit their clans without first using elect to hand over power.\r\n", ch);
   return;
  }
  if (!CLN_FLAGGED(ch, CLN_NEWBIE) && !CLN_FLAGGED(ch, CLN_NOVICE) && !CLN_FLAGGED(ch, CLN_MEMBER) && !CLN_FLAGGED(ch, CLN_CAPTAIN)) {
   send_to_char("You are not in a clan.\r\n", ch);
   return;
  }
 if (CLN_FLAGGED(ch, CLN_NEWBIE) || CLN_FLAGGED(ch, CLN_NOVICE) || CLN_FLAGGED(ch, CLN_MEMBER) || CLN_FLAGGED(ch, CLN_CAPTAIN)) {
   send_to_char("You quit your clan.\r\n", ch);
    REMOVE_BIT(CLN_FLAGS(ch), CLN_MEMBER1);
    REMOVE_BIT(CLN_FLAGS(ch), CLN_MEMBER2);
    REMOVE_BIT(CLN_FLAGS(ch), CLN_MEMBER3);
    REMOVE_BIT(CLN_FLAGS(ch), CLN_MEMBER4);
    REMOVE_BIT(CLN_FLAGS(ch), CLN_MEMBER5);
    REMOVE_BIT(CLN_FLAGS(ch), CLN_MEMBER6);
    REMOVE_BIT(CLN_FLAGS(ch), CLN_MEMBER7);
    REMOVE_BIT(CLN_FLAGS(ch), CLN_MEMBER8);
    REMOVE_BIT(CLN_FLAGS(ch), CLN_NEWBIE);
    REMOVE_BIT(CLN_FLAGS(ch), CLN_NOVICE);
    REMOVE_BIT(CLN_FLAGS(ch), CLN_MEMBER);
    REMOVE_BIT(CLN_FLAGS(ch), CLN_CAPTAIN);
    return;
  }
  else {
   send_to_char("You are not in a clan!\r\n", ch);
   return;
  }
}
/* Set new leader of clan */
ACMD(do_elect)
{
  struct char_data *victim;
  int value = 0;
  *buf = '\0';
  *buf1 = '\0';
  *buf2 = '\0';

  one_argument(argument, buf);
  if (!CLN_FLAGGED(ch, CLN_LEADER1) && !CLN_FLAGGED(ch, CLN_LEADER2) && !CLN_FLAGGED(ch, CLN_LEADER3) & !CLN_FLAGGED(ch, CLN_LEADER4) && !CLN_FLAGGED(ch, CLN_LEADER5) && !CLN_FLAGGED(ch, CLN_LEADER6) & !CLN_FLAGGED(ch, CLN_LEADER7) & !CLN_FLAGGED(ch, CLN_LEADER8)) {
   send_to_char("You are not the leader of a clan...\r\n", ch);
   return;
  }
  if (!*buf) {
   send_to_char("Who do you wish to lead the clan?\r\n", ch);
   return;
  }
  if (!(victim = get_char_vis(ch, buf))) {
      send_to_char("Name who leader?\r\n", ch);
      return;
  }
  if (victim == ch) {
   send_to_char("You do not need to make yourself leader...\r\n", ch);
   return;
  }
  if (!CLN_FLAGGED(victim, CLN_NEWBIE) && !CLN_FLAGGED(victim, CLN_NOVICE) && !CLN_FLAGGED(victim, CLN_MEMBER) && !CLN_FLAGGED(victim, CLN_CAPTAIN) && !CLN_FLAGGED(victim, CLN_LEADER1) && !CLN_FLAGGED(victim, CLN_LEADER2) && !CLN_FLAGGED(victim, CLN_LEADER3) && !CLN_FLAGGED(victim, CLN_LEADER4) && !CLN_FLAGGED(victim, CLN_LEADER5) && !CLN_FLAGGED(victim, CLN_LEADER6) && !CLN_FLAGGED(victim, CLN_LEADER7) && !CLN_FLAGGED(victim, CLN_LEADER8)){
   send_to_char("They are not in a clan!", ch);
   return;
  }
  if (CLN_FLAGGED(ch, CLN_LEADER1) && CLN_FLAGGED(victim, CLN_MEMBER1)) {
    send_to_char("They are now leader.\r\n", ch);
    send_to_char("You made leader of your clan, the last leader has stepped down.\r\n", victim);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_MEMBER1);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_NEWBIE);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_NOVICE);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_MEMBER);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_CAPTAIN);
    SET_BIT(CLN_FLAGS(victim), CLN_LEADER1);
    REMOVE_BIT(CLN_FLAGS(ch), CLN_LEADER1);
    SET_BIT(CLN_FLAGS(ch), CLN_MEMBER1);
    SET_BIT(CLN_FLAGS(ch), CLN_NEWBIE);
    return;
  }
  else if (CLN_FLAGGED(ch, CLN_LEADER2) && CLN_FLAGGED(victim, CLN_MEMBER2)) {
    send_to_char("They are now leader.\r\n", ch);
    send_to_char("You made leader of your clan, the last leader has stepped down.\r\n", victim);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_MEMBER2);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_NEWBIE);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_NOVICE);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_MEMBER);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_CAPTAIN);
    SET_BIT(CLN_FLAGS(victim), CLN_LEADER2);
    REMOVE_BIT(CLN_FLAGS(ch), CLN_LEADER2);
    SET_BIT(CLN_FLAGS(ch), CLN_MEMBER2);
    SET_BIT(CLN_FLAGS(ch), CLN_NEWBIE);
    return;
  }
  else if (CLN_FLAGGED(ch, CLN_LEADER3) && CLN_FLAGGED(victim, CLN_MEMBER3)) {
    send_to_char("They are now leader.\r\n", ch);
    send_to_char("You made leader of your clan, the last leader has stepped down.\r\n", victim);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_MEMBER3);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_NEWBIE);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_NOVICE);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_MEMBER);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_CAPTAIN);
    SET_BIT(CLN_FLAGS(victim), CLN_LEADER3);
    REMOVE_BIT(CLN_FLAGS(ch), CLN_LEADER3);
    SET_BIT(CLN_FLAGS(ch), CLN_MEMBER3);
    SET_BIT(CLN_FLAGS(ch), CLN_NEWBIE);
    return;
  }
  else if (CLN_FLAGGED(ch, CLN_LEADER3) && CLN_FLAGGED(victim, CLN_MEMBER3)) {
    send_to_char("They are now leader.\r\n", ch);
    send_to_char("You made leader of your clan, the last leader has stepped down.\r\n", victim);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_MEMBER3);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_NEWBIE);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_NOVICE);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_MEMBER);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_CAPTAIN);
    SET_BIT(CLN_FLAGS(victim), CLN_LEADER3);
    REMOVE_BIT(CLN_FLAGS(ch), CLN_LEADER3);
    SET_BIT(CLN_FLAGS(ch), CLN_MEMBER3);
    SET_BIT(CLN_FLAGS(ch), CLN_NEWBIE);
    return;
  }
  else if (CLN_FLAGGED(ch, CLN_LEADER4) && CLN_FLAGGED(victim, CLN_MEMBER4)) {
    send_to_char("They are now leader.\r\n", ch);
    send_to_char("You made leader of your clan, the last leader has stepped down.\r\n", victim);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_MEMBER4);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_NEWBIE);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_NOVICE);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_MEMBER);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_CAPTAIN);
    SET_BIT(CLN_FLAGS(victim), CLN_LEADER4);
    REMOVE_BIT(CLN_FLAGS(ch), CLN_LEADER4);
    SET_BIT(CLN_FLAGS(ch), CLN_MEMBER4);
    SET_BIT(CLN_FLAGS(ch), CLN_NEWBIE);
    return;
  }
  else if (CLN_FLAGGED(ch, CLN_LEADER5) && CLN_FLAGGED(victim, CLN_MEMBER5)) {
    send_to_char("They are now leader.\r\n", ch);
    send_to_char("You made leader of your clan, the last leader has stepped down.\r\n", victim);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_MEMBER5);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_NEWBIE);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_NOVICE);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_MEMBER);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_CAPTAIN);
    SET_BIT(CLN_FLAGS(victim), CLN_LEADER5);
    REMOVE_BIT(CLN_FLAGS(ch), CLN_LEADER5);
    SET_BIT(CLN_FLAGS(ch), CLN_MEMBER5);
    SET_BIT(CLN_FLAGS(ch), CLN_NEWBIE);
    return;
  }
  else if (CLN_FLAGGED(ch, CLN_LEADER6) && CLN_FLAGGED(victim, CLN_MEMBER6)) {
    send_to_char("They are now leader.\r\n", ch);
    send_to_char("You made leader of your clan, the last leader has stepped down.\r\n", victim);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_MEMBER6);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_NEWBIE);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_NOVICE);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_MEMBER);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_CAPTAIN);
    SET_BIT(CLN_FLAGS(victim), CLN_LEADER6);
    REMOVE_BIT(CLN_FLAGS(ch), CLN_LEADER6);
    SET_BIT(CLN_FLAGS(ch), CLN_MEMBER6);
    SET_BIT(CLN_FLAGS(ch), CLN_NEWBIE);
    return;
  }
  else if (CLN_FLAGGED(ch, CLN_LEADER7) && CLN_FLAGGED(victim, CLN_MEMBER7)) {
    send_to_char("They are now leader.\r\n", ch);
    send_to_char("You made leader of your clan, the last leader has stepped down.\r\n", victim);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_MEMBER7);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_NEWBIE);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_NOVICE);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_MEMBER);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_CAPTAIN);
    SET_BIT(CLN_FLAGS(victim), CLN_LEADER7);
    REMOVE_BIT(CLN_FLAGS(ch), CLN_LEADER7);
    SET_BIT(CLN_FLAGS(ch), CLN_MEMBER7);
    SET_BIT(CLN_FLAGS(ch), CLN_NEWBIE);
    return;
  }
  else if (CLN_FLAGGED(ch, CLN_LEADER8) && CLN_FLAGGED(victim, CLN_MEMBER8)) {
    send_to_char("They are now leader.\r\n", ch);
    send_to_char("You made leader of your clan, the last leader has stepped down.\r\n", victim);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_MEMBER8);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_NEWBIE);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_NOVICE);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_MEMBER);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_CAPTAIN);
    SET_BIT(CLN_FLAGS(victim), CLN_LEADER8);
    REMOVE_BIT(CLN_FLAGS(ch), CLN_LEADER8);
    SET_BIT(CLN_FLAGS(ch), CLN_MEMBER8);
    SET_BIT(CLN_FLAGS(ch), CLN_NEWBIE);
    return;
  }
  else {
   send_to_char("ZOMG! REPORT! REPORT! The mud is falling! The mud is falling! Oh wait, you aren't the leader of a clan.", ch);
   return;
  }
} 
/* Recruit new clan member */
ACMD(do_recruit) 
{
  struct char_data *victim;
  int value = 0;
  *buf = '\0';
  *buf1 = '\0';
  *buf2 = '\0';

  half_chop(argument, buf, buf1);
  if (!*buf) {
   send_to_char("Who do you wish to recruit to your clan?\r\n", ch);
   return;
  }
  if (!(victim = get_char_room_vis(ch, buf))) {
      send_to_char("Recruit who?\r\n", ch);
      return;
  }
  if (victim == ch) {
   send_to_char("You do not need to recruit yourself...\r\n", ch);
   return;
  }
  if (!*buf1) {
   send_to_char("You need to specify a clan rank to make them.\r\nRanks: Recruit, Member, Adept, Captain.\r\n", ch);
   return;
  }
  if (CLN_FLAGGED(victim, CLN_NEWBIE) || CLN_FLAGGED(victim, CLN_NOVICE) || CLN_FLAGGED(victim, CLN_MEMBER) || CLN_FLAGGED(victim, CLN_CAPTAIN) || CLN_FLAGGED(victim, CLN_LEADER1) || CLN_FLAGGED(victim, CLN_LEADER2) || CLN_FLAGGED(victim, CLN_LEADER3) || CLN_FLAGGED(victim, CLN_LEADER4) || CLN_FLAGGED(victim, CLN_LEADER5) || CLN_FLAGGED(victim, CLN_LEADER6) || CLN_FLAGGED(victim, CLN_LEADER7) || CLN_FLAGGED(victim, CLN_LEADER8)){
   send_to_char("They are already in a clan!", ch);
   return;
  }
  if (!str_cmp(buf1,"recruit")) {
   if (CLN_FLAGGED(ch, CLN_LEADER1)) {
    send_to_char("&15You successfuly recruit them.\r\n", ch);
    sprintf(buf2, "&15You have been recruited by &14%s&15 into their clan.\r\n", GET_NAME(ch));
    send_to_char(buf2, victim);
    SET_BIT(CLN_FLAGS(victim), CLN_MEMBER1);
    SET_BIT(CLN_FLAGS(victim), CLN_NEWBIE);
    return;
   }
   if (CLN_FLAGGED(ch, CLN_LEADER2)) {
    send_to_char("&15You successfuly recruit them.\r\n", ch);
    sprintf(buf2, "&15You have been recruited by &14%s&15 into their clan.\r\n", GET_NAME(ch));
    send_to_char(buf2, victim);
    SET_BIT(CLN_FLAGS(victim), CLN_MEMBER2);
    SET_BIT(CLN_FLAGS(victim), CLN_NEWBIE);
    return;
   }
   if (CLN_FLAGGED(ch, CLN_LEADER3)) {
    send_to_char("&15You successfuly recruit them.\r\n", ch);
    sprintf(buf2, "&15You have been recruited by &14%s&15 into their clan.\r\n", GET_NAME(ch));
    send_to_char(buf2, victim);
    SET_BIT(CLN_FLAGS(victim), CLN_MEMBER3);
    SET_BIT(CLN_FLAGS(victim), CLN_NEWBIE);
    return;
   }
   if (CLN_FLAGGED(ch, CLN_LEADER4)) {
    send_to_char("&15You successfuly recruit them.\r\n", ch);
    sprintf(buf2, "&15You have been recruited by &14%s&15 into their clan.\r\n", GET_NAME(ch));
    send_to_char(buf2, victim);
    SET_BIT(CLN_FLAGS(victim), CLN_MEMBER4);
    SET_BIT(CLN_FLAGS(victim), CLN_NEWBIE);
    return;
   }
   if (CLN_FLAGGED(ch, CLN_LEADER5)) {
    send_to_char("&15You successfuly recruit them.\r\n", ch);
    sprintf(buf2, "&15You have been recruited by &14%s&15 into their clan.\r\n", GET_NAME(ch));
    send_to_char(buf2, victim);
    SET_BIT(CLN_FLAGS(victim), CLN_MEMBER5);
    SET_BIT(CLN_FLAGS(victim), CLN_NEWBIE);
    return;
   }
   if (CLN_FLAGGED(ch, CLN_LEADER6)) {
    send_to_char("&15You successfuly recruit them.\r\n", ch);
    sprintf(buf2, "&15You have been recruited by &14%s&15 into their clan.\r\n", GET_NAME(ch));
    send_to_char(buf2, victim);
    SET_BIT(CLN_FLAGS(victim), CLN_MEMBER6);
    SET_BIT(CLN_FLAGS(victim), CLN_NEWBIE);
    return;
   }
   if (CLN_FLAGGED(ch, CLN_LEADER7)) {
    send_to_char("&15You successfuly recruit them.\r\n", ch);
    sprintf(buf2, "&15You have been recruited by &14%s&15 into their clan.\r\n", GET_NAME(ch));
    send_to_char(buf2, victim);
    SET_BIT(CLN_FLAGS(victim), CLN_MEMBER7);
    SET_BIT(CLN_FLAGS(victim), CLN_NEWBIE);
    return;
   }
   if (CLN_FLAGGED(ch, CLN_LEADER8)) {
    send_to_char("&15You successfuly recruit them.\r\n", ch);
    sprintf(buf2, "&15You have been recruited by &14%s&15 into their clan.\r\n", GET_NAME(ch));
    send_to_char(buf2, victim);
    SET_BIT(CLN_FLAGS(victim), CLN_MEMBER8);
    SET_BIT(CLN_FLAGS(victim), CLN_NEWBIE);
    return;
   }
  }
 if (!str_cmp(buf1,"member")) {
   if (CLN_FLAGGED(ch, CLN_LEADER1)) {
    send_to_char("&15You successfuly recruit them.\r\n", ch);
    sprintf(buf2, "&15You have been recruited by &14%s&15 into their clan.\r\n", GET_NAME(ch));
    send_to_char(buf2, victim);
    SET_BIT(CLN_FLAGS(victim), CLN_MEMBER1);
    SET_BIT(CLN_FLAGS(victim), CLN_NOVICE);
    return;
   }
   if (CLN_FLAGGED(ch, CLN_LEADER2)) {
    send_to_char("&15You successfuly recruit them.\r\n", ch);
    sprintf(buf2, "&15You have been recruited by &14%s&15 into their clan.\r\n", GET_NAME(ch));
    send_to_char(buf2, victim);
    SET_BIT(CLN_FLAGS(victim), CLN_MEMBER2);
    SET_BIT(CLN_FLAGS(victim), CLN_NOVICE);
    return;
   }
   if (CLN_FLAGGED(ch, CLN_LEADER3)) {
    send_to_char("&15You successfuly recruit them.\r\n", ch);
    sprintf(buf2, "&15You have been recruited by &14%s&15 into their clan.\r\n", GET_NAME(ch));
    send_to_char(buf2, victim);
    SET_BIT(CLN_FLAGS(victim), CLN_MEMBER3);
    SET_BIT(CLN_FLAGS(victim), CLN_NOVICE);
    return;
   }
   if (CLN_FLAGGED(ch, CLN_LEADER4)) {
    send_to_char("&15You successfuly recruit them.\r\n", ch);
    sprintf(buf2, "&15You have been recruited by &14%s&15 into their clan.\r\n", GET_NAME(ch));
    send_to_char(buf2, victim);
    SET_BIT(CLN_FLAGS(victim), CLN_MEMBER4);
    SET_BIT(CLN_FLAGS(victim), CLN_NOVICE);
    return;
   }
   if (CLN_FLAGGED(ch, CLN_LEADER5)) {
    send_to_char("&15You successfuly recruit them.\r\n", ch);
    sprintf(buf2, "&15You have been recruited by &14%s&15 into their clan.\r\n", GET_NAME(ch));
    send_to_char(buf2, victim);
    SET_BIT(CLN_FLAGS(victim), CLN_MEMBER5);
    SET_BIT(CLN_FLAGS(victim), CLN_NOVICE);
    return;
   }
   if (CLN_FLAGGED(ch, CLN_LEADER6)) {
    send_to_char("&15You successfuly recruit them.\r\n", ch);
    sprintf(buf2, "&15You have been recruited by &14%s&15 into their clan.\r\n", GET_NAME(ch));
    send_to_char(buf2, victim);
    SET_BIT(CLN_FLAGS(victim), CLN_MEMBER6);
    SET_BIT(CLN_FLAGS(victim), CLN_NOVICE);
    return;
   }
   if (CLN_FLAGGED(ch, CLN_LEADER7)) {
    send_to_char("&15You successfuly recruit them.\r\n", ch);
    sprintf(buf2, "&15You have been recruited by &14%s&15 into their clan.\r\n", GET_NAME(ch));
    send_to_char(buf2, victim);
    SET_BIT(CLN_FLAGS(victim), CLN_MEMBER7);
    SET_BIT(CLN_FLAGS(victim), CLN_NOVICE);
    return;
   }
   if (CLN_FLAGGED(ch, CLN_LEADER8)) {
    send_to_char("&15You successfuly recruit them.\r\n", ch);
    sprintf(buf2, "&15You have been recruited by &14%s&15 into their clan.\r\n", GET_NAME(ch));
    send_to_char(buf2, victim);
    SET_BIT(CLN_FLAGS(victim), CLN_MEMBER8);
    SET_BIT(CLN_FLAGS(victim), CLN_NOVICE);
    return;
   }
  }
  if (!str_cmp(buf1,"adept")) {
   if (CLN_FLAGGED(ch, CLN_LEADER1)) {
    send_to_char("&15You successfuly recruit them.\r\n", ch);
    sprintf(buf2, "&15You have been recruited by &14%s&15 into their clan.\r\n", GET_NAME(ch));
    send_to_char(buf2, victim);
    SET_BIT(CLN_FLAGS(victim), CLN_MEMBER1);
    SET_BIT(CLN_FLAGS(victim), CLN_MEMBER);
    return;
   }
   if (CLN_FLAGGED(ch, CLN_LEADER2)) {
    send_to_char("&15You successfuly recruit them.\r\n", ch);
    sprintf(buf2, "&15You have been recruited by &14%s&15 into their clan.\r\n", GET_NAME(ch));
    send_to_char(buf2, victim);
    SET_BIT(CLN_FLAGS(victim), CLN_MEMBER2);
    SET_BIT(CLN_FLAGS(victim), CLN_MEMBER);
    return;
   }
   if (CLN_FLAGGED(ch, CLN_LEADER3)) {
    send_to_char("&15You successfuly recruit them.\r\n", ch);
    sprintf(buf2, "&15You have been recruited by &14%s&15 into their clan.\r\n", GET_NAME(ch));
    send_to_char(buf2, victim);
    SET_BIT(CLN_FLAGS(victim), CLN_MEMBER3);
    SET_BIT(CLN_FLAGS(victim), CLN_MEMBER);
    return;
   }
   if (CLN_FLAGGED(ch, CLN_LEADER4)) {
    send_to_char("&15You successfuly recruit them.\r\n", ch);
    sprintf(buf2, "&15You have been recruited by &14%s&15 into their clan.\r\n", GET_NAME(ch));
    send_to_char(buf2, victim);
    SET_BIT(CLN_FLAGS(victim), CLN_MEMBER4);
    SET_BIT(CLN_FLAGS(victim), CLN_MEMBER);
    return;
   }
   if (CLN_FLAGGED(ch, CLN_LEADER5)) {
    send_to_char("&15You successfuly recruit them.\r\n", ch);
    sprintf(buf2, "&15You have been recruited by &14%s&15 into their clan.\r\n", GET_NAME(ch));
    send_to_char(buf2, victim);
    SET_BIT(CLN_FLAGS(victim), CLN_MEMBER5);
    SET_BIT(CLN_FLAGS(victim), CLN_MEMBER);
    return;
   }
   if (CLN_FLAGGED(ch, CLN_LEADER6)) {
    send_to_char("&15You successfuly recruit them.\r\n", ch);
    sprintf(buf2, "&15You have been recruited by &14%s&15 into their clan.\r\n", GET_NAME(ch));
    send_to_char(buf2, victim);
    SET_BIT(CLN_FLAGS(victim), CLN_MEMBER6);
    SET_BIT(CLN_FLAGS(victim), CLN_MEMBER);
    return;
   }
   if (CLN_FLAGGED(ch, CLN_LEADER7)) {
    send_to_char("&15You successfuly recruit them.\r\n", ch);
    sprintf(buf2, "&15You have been recruited by &14%s&15 into their clan.\r\n", GET_NAME(ch));
    send_to_char(buf2, victim);
    SET_BIT(CLN_FLAGS(victim), CLN_MEMBER7);
    SET_BIT(CLN_FLAGS(victim), CLN_MEMBER);
    return;
   }
   if (CLN_FLAGGED(ch, CLN_LEADER8)) {
    send_to_char("&15You successfuly recruit them.\r\n", ch);
    sprintf(buf2, "&15You have been recruited by &14%s&15 into their clan.\r\n", GET_NAME(ch));
    send_to_char(buf2, victim);
    SET_BIT(CLN_FLAGS(victim), CLN_MEMBER8);
    SET_BIT(CLN_FLAGS(victim), CLN_MEMBER);
    return;
   }
  }
  if (!str_cmp(buf1,"captain")) {
   if (CLN_FLAGGED(ch, CLN_LEADER1)) {
    send_to_char("&15You successfuly recruit them.\r\n", ch);
    sprintf(buf2, "&15You have been recruited by &14%s&15 into their clan.\r\n", GET_NAME(ch));
    send_to_char(buf2, victim);
    SET_BIT(CLN_FLAGS(victim), CLN_MEMBER1);
    SET_BIT(CLN_FLAGS(victim), CLN_CAPTAIN);
    return;
   }
   if (CLN_FLAGGED(ch, CLN_LEADER2)) {
    send_to_char("&15You successfuly recruit them.\r\n", ch);
    sprintf(buf2, "&15You have been recruited by &14%s&15 into their clan.\r\n", GET_NAME(ch));
    send_to_char(buf2, victim);
    SET_BIT(CLN_FLAGS(victim), CLN_MEMBER2);
    SET_BIT(CLN_FLAGS(victim), CLN_CAPTAIN);
    return;
   }
   if (CLN_FLAGGED(ch, CLN_LEADER3)) {
    send_to_char("&15You successfuly recruit them.\r\n", ch);
    sprintf(buf2, "&15You have been recruited by &14%s&15 into their clan.\r\n", GET_NAME(ch));
    send_to_char(buf2, victim);
    SET_BIT(CLN_FLAGS(victim), CLN_MEMBER3);
    SET_BIT(CLN_FLAGS(victim), CLN_CAPTAIN);
    return;
   }
   if (CLN_FLAGGED(ch, CLN_LEADER4)) {
    send_to_char("&15You successfuly recruit them.\r\n", ch);
    sprintf(buf2, "&15You have been recruited by &14%s&15 into their clan.\r\n", GET_NAME(ch));
    send_to_char(buf2, victim);
    SET_BIT(CLN_FLAGS(victim), CLN_MEMBER4);
    SET_BIT(CLN_FLAGS(victim), CLN_CAPTAIN);
    return;
   }
   if (CLN_FLAGGED(ch, CLN_LEADER5)) {
    send_to_char("&15You successfuly recruit them.\r\n", ch);
    sprintf(buf2, "&15You have been recruited by &14%s&15 into their clan.\r\n", GET_NAME(ch));
    send_to_char(buf2, victim);
    SET_BIT(CLN_FLAGS(victim), CLN_MEMBER5);
    SET_BIT(CLN_FLAGS(victim), CLN_CAPTAIN);
    return;
   }
   if (CLN_FLAGGED(ch, CLN_LEADER6)) {
    send_to_char("&15You successfuly recruit them.\r\n", ch);
    sprintf(buf2, "&15You have been recruited by &14%s&15 into their clan.\r\n", GET_NAME(ch));
    send_to_char(buf2, victim );
    SET_BIT(CLN_FLAGS(victim), CLN_MEMBER6);
    SET_BIT(CLN_FLAGS(victim), CLN_CAPTAIN);
    return;
   }
   if (CLN_FLAGGED(ch, CLN_LEADER7)) {
    send_to_char("&15You successfuly recruit them.\r\n", ch);
    sprintf(buf2, "&15You have been recruited by &14%s&15 into their clan.\r\n", GET_NAME(ch));
    send_to_char(buf2, victim);
    SET_BIT(CLN_FLAGS(victim), CLN_MEMBER7);
    SET_BIT(CLN_FLAGS(victim), CLN_CAPTAIN);
    return;
   }
   if (CLN_FLAGGED(ch, CLN_LEADER8)) {
    send_to_char("&15You successfuly recruit them.\r\n", ch);
    sprintf(buf2, "&15You have been recruited by &14%s&15 into their clan.\r\n", GET_NAME(ch));
    send_to_char(buf2, victim);
    SET_BIT(CLN_FLAGS(victim), CLN_MEMBER8);
    SET_BIT(CLN_FLAGS(victim), CLN_CAPTAIN);
    return;
   }
  }
  else {
   send_to_char("ZOMG! REPORT! REPORT! The mud is falling! The mud is falling! Oh wait, you aren't the leader of a clan.", ch);
   return;
  }
}
/* Boot clan member from clan */
ACMD(do_boot)
{
  struct char_data *victim;
  int value = 0;
  *buf = '\0';
  *buf1 = '\0';
  *buf2 = '\0';

  one_argument(argument, buf);
  if (!*buf) {
   send_to_char("Who do you wish to boot from the clan?\r\n", ch);
   return;
  }
  if (!(victim = get_char_vis(ch, buf))) {
      send_to_char("Boot who from the clan?\r\n", ch);
      return;
  }
  if (victim == ch) {
   send_to_char("You do not need to boot yourself dumbass...\r\n", ch);
   return;
  }
  if (!CLN_FLAGGED(victim, CLN_NEWBIE) && !CLN_FLAGGED(victim, CLN_NOVICE) && !CLN_FLAGGED(victim, CLN_MEMBER) && !CLN_FLAGGED(victim, CLN_CAPTAIN) && !CLN_FLAGGED(victim, CLN_LEADER1) && !CLN_FLAGGED(victim, CLN_LEADER2) && !CLN_FLAGGED(victim, CLN_LEADER3) && !CLN_FLAGGED(victim, CLN_LEADER4) && !CLN_FLAGGED(victim, CLN_LEADER5) && !CLN_FLAGGED(victim, CLN_LEADER6) && !CLN_FLAGGED(victim, CLN_LEADER7) && !CLN_FLAGGED(victim, CLN_LEADER8)){
   send_to_char("They are not in a clan!", ch);
   return;
  }
  if (CLN_FLAGGED(ch, CLN_LEADER1)) {
    send_to_char("They have been removed from your clan.\r\n", ch);
    send_to_char("You have been booted from your clan.\r\n", victim);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_MEMBER1);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_NEWBIE);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_NOVICE);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_MEMBER);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_CAPTAIN);
    return;
  }
  if (CLN_FLAGGED(ch, CLN_LEADER2)) {
    send_to_char("They have been removed from your clan.\r\n", ch);
    send_to_char("You have been booted from your clan.\r\n", victim);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_MEMBER2);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_NEWBIE);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_NEWBIE);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_NOVICE);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_MEMBER);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_CAPTAIN);
    return;
  }
  if (CLN_FLAGGED(ch, CLN_LEADER3)) {
    send_to_char("They have been removed from your clan.\r\n", ch);
    send_to_char("You have been booted from your clan.\r\n", victim);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_MEMBER3);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_NEWBIE);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_NEWBIE);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_NOVICE);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_MEMBER);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_CAPTAIN);
    return;
  }
  if (CLN_FLAGGED(ch, CLN_LEADER4)) {
    send_to_char("They have been removed from your clan.\r\n", ch);
    send_to_char("You have been booted from your clan.\r\n", victim);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_MEMBER4);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_NEWBIE);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_NEWBIE);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_NOVICE);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_MEMBER);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_CAPTAIN);
    return;
  }
  if (CLN_FLAGGED(ch, CLN_LEADER5)) {
    send_to_char("They have been removed from your clan.\r\n", ch);
    send_to_char("You have been booted from your clan.\r\n", victim);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_MEMBER5);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_NEWBIE);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_NEWBIE);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_NOVICE);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_MEMBER);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_CAPTAIN);
    return;
  }
  if (CLN_FLAGGED(ch, CLN_LEADER6)) {
    send_to_char("They have been removed from your clan.\r\n", ch);
    send_to_char("You have been booted from your clan.\r\n", victim);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_MEMBER6);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_NEWBIE);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_NEWBIE);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_NOVICE);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_MEMBER);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_CAPTAIN);
    return;
  }
  if (CLN_FLAGGED(ch, CLN_LEADER7)) {
    send_to_char("They have been removed from your clan.\r\n", ch);
    send_to_char("You have been booted from your clan.\r\n", victim);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_MEMBER7);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_NEWBIE);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_NEWBIE);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_NOVICE);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_MEMBER);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_CAPTAIN);
    return;
  }
  if (CLN_FLAGGED(ch, CLN_LEADER8)) {
    send_to_char("They have been removed from your clan.\r\n", ch);
    send_to_char("You have been booted from your clan.\r\n", victim);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_MEMBER8);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_NEWBIE);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_NEWBIE);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_NOVICE);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_MEMBER);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_CAPTAIN);
    return;
  }
  else {
   send_to_char("ZOMG! REPORT! REPORT! The mud is falling! The mud is falling! Oh wait, you aren't the leader of a clan.", ch);
   return;
  }
}
/* Promote a clan member */
ACMD(do_promote)
{
  struct char_data *victim;
  int value = 0;
  *buf = '\0';
  *buf1 = '\0';
  *buf2 = '\0';

  half_chop(argument, buf, buf1);
  if (!CLN_FLAGGED(ch, CLN_LEADER1) && !CLN_FLAGGED(ch, CLN_LEADER2) && !CLN_FLAGGED(ch, CLN_LEADER3) && !CLN_FLAGGED(ch, CLN_LEADER4) && !CLN_FLAGGED(ch, CLN_LEADER5) && !CLN_FLAGGED(ch, CLN_LEADER6) && !CLN_FLAGGED(ch, CLN_LEADER7) && !CLN_FLAGGED(ch, CLN_LEADER8)) {
   send_to_char("You are not the leader of a clan...\r\n", ch);
   return;
  }
  if (!*buf) {
   send_to_char("Who do you wish to promote?\r\n", ch);
   return;
  }
  if (!(victim = get_char_room_vis(ch, buf))) {
      send_to_char("Promote who?\r\n", ch);
      return;
  }
  if (victim == ch) {
   send_to_char("You do not need to promote yourself...\r\n", ch);
   return;
  }
  if (!*buf1) {
   send_to_char("You need to specify a clan rank to make them.\r\nRanks: Recruit, Member, Adept, Captain.\r\n", ch);
   return;
  }
  if (!str_cmp(buf1,"newbie") && CLN_FLAGGED(victim, CLN_NEWBIE)) {
   send_to_char("They are already that rank.\r\n", ch);
   return;
  }
  else if (!str_cmp(buf1,"newbie")) {
   send_to_char("They are have been promoted.\r\n", ch);
   send_to_char("You have been promoted.\r\n", victim);
    SET_BIT(CLN_FLAGS(victim), CLN_NEWBIE);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_NOVICE);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_MEMBER);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_CAPTAIN);
   return;
  }
  if (!str_cmp(buf1,"member") && CLN_FLAGGED(victim, CLN_NOVICE)) {
   send_to_char("They are already that rank.\r\n", ch);
   return;
  }
  else if (!str_cmp(buf1,"member")) {
    send_to_char("They are have been promoted.\r\n", ch);
    send_to_char("You have been promoted.\r\n", victim);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_NEWBIE);
    SET_BIT(CLN_FLAGS(victim), CLN_NOVICE);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_MEMBER);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_CAPTAIN);
   return;
  }
  if (!str_cmp(buf1,"adept") && CLN_FLAGGED(victim, CLN_MEMBER)) {
   send_to_char("They are already that rank.\r\n", ch);
   return;
  }
  else if (!str_cmp(buf1,"adept")) {
    send_to_char("They are have been promoted.\r\n", ch);
    send_to_char("You have been promoted.\r\n", victim);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_NEWBIE);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_NOVICE);
    SET_BIT(CLN_FLAGS(victim), CLN_MEMBER);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_CAPTAIN);
   return;
  }
   if (!str_cmp(buf1,"captain") && CLN_FLAGGED(victim, CLN_CAPTAIN)) {
   send_to_char("They are already that rank.\r\n", ch);
   return;
  }
  else if (!str_cmp(buf1,"captain")) {
    send_to_char("They are have been promoted.\r\n", ch);
    send_to_char("You have been promoted.\r\n", victim);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_NEWBIE);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_NOVICE);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_MEMBER);
    SET_BIT(CLN_FLAGS(victim), CLN_CAPTAIN);
   return;
  }
  else {
   send_to_char("ZOMG! REPORT! REPORT! The mud is falling! The mud is falling! Oh wait, you aren't the leader of a clan.", ch);
   return;
  }
}
/* Demote a clan member */
ACMD(do_demote)
{
  struct char_data *victim;
  int value = 0;
  *buf = '\0';
  *buf1 = '\0';
  *buf2 = '\0';

  half_chop(argument, buf, buf1);
  if (!CLN_FLAGGED(ch, CLN_LEADER1) && !CLN_FLAGGED(ch, CLN_LEADER2) && !CLN_FLAGGED(ch, CLN_LEADER3) && !CLN_FLAGGED(ch, CLN_LEADER4) && !CLN_FLAGGED(ch, CLN_LEADER5) && !CLN_FLAGGED(ch, CLN_LEADER6) && !CLN_FLAGGED(ch, CLN_LEADER7) && !CLN_FLAGGED(ch, CLN_LEADER8)) {
   send_to_char("You are not the leader of a clan...\r\n", ch);
   return;
  }
  if (!*buf) {
   send_to_char("Who do you wish to demote?\r\n", ch);
   return;
  }
  if (!(victim = get_char_room_vis(ch, buf))) {
      send_to_char("Deomote who?\r\n", ch);
      return;
  }
  if (victim == ch) {
   send_to_char("You do not need to demote yourself...\r\n", ch);
   return;
  }
  if (!*buf1) {
   send_to_char("You need to specify a clan rank to make them.\r\nRanks: Recruit, Member, Adept, Captain.\r\n", ch);
   return;
  }
  if (!CLN_FLAGGED(victim, CLN_NEWBIE) && !CLN_FLAGGED(victim, CLN_NOVICE) && !CLN_FLAGGED(victim, CLN_MEMBER) && !CLN_FLAGGED(victim, CLN_CAPTAIN) && !CLN_FLAGGED(victim, CLN_LEADER1) && !CLN_FLAGGED(victim, CLN_LEADER2) && !CLN_FLAGGED(victim, CLN_LEADER3) && !CLN_FLAGGED(victim, CLN_LEADER4) && !CLN_FLAGGED(victim, CLN_LEADER5) && !CLN_FLAGGED(victim, CLN_LEADER6) && !CLN_FLAGGED(victim, CLN_LEADER7) && !CLN_FLAGGED(victim, CLN_LEADER8)){
   send_to_char("They are not in a clan!\r\n", ch);
   return;
  }
  if (!str_cmp(buf1,"newbie") && CLN_FLAGGED(victim, CLN_NEWBIE)) {
   send_to_char("They are already that rank.\r\n", ch);
   return;
  }
  else if (!str_cmp(buf1,"newbie")) {
   send_to_char("They are have been demoted.\r\n", ch);
   send_to_char("You have been demoted.\r\n", victim);
    SET_BIT(CLN_FLAGS(victim), CLN_NEWBIE);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_NOVICE);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_MEMBER);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_CAPTAIN);
   return;
  }
  if (!str_cmp(buf1,"member") && CLN_FLAGGED(victim, CLN_NOVICE)) {
   send_to_char("They are already that rank.\r\n", ch);
   return;
  }
  else if (!str_cmp(buf1,"member")) {
    send_to_char("They are have been demoted.\r\n", ch);
    send_to_char("You have been demoted.\r\n", victim);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_NEWBIE);
    SET_BIT(CLN_FLAGS(victim), CLN_NOVICE);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_MEMBER);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_CAPTAIN);
   return;
  }
  if (!str_cmp(buf1,"adept") && CLN_FLAGGED(victim, CLN_MEMBER)) {
   send_to_char("They are already that rank.\r\n", ch);
   return;
  }
  else if (!str_cmp(buf1,"adept")) {
    send_to_char("They are have been demoted.\r\n", ch);
    send_to_char("You have been demoted.\r\n", victim);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_NEWBIE);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_NOVICE);
    SET_BIT(CLN_FLAGS(victim), CLN_MEMBER);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_CAPTAIN);
   return;
  }
   if (!str_cmp(buf1,"captain") && CLN_FLAGGED(victim, CLN_CAPTAIN)) {
   send_to_char("They are already that rank.\r\n", ch);
   return;
  }
  else if (!str_cmp(buf1,"adept")) {
    send_to_char("They are have been demoted.\r\n", ch);
    send_to_char("You have been demoted.\r\n", victim);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_NEWBIE);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_NOVICE);
    REMOVE_BIT(CLN_FLAGS(victim), CLN_MEMBER);
    SET_BIT(CLN_FLAGS(victim), CLN_CAPTAIN);
   return;
  }
}
/* Bad joke, probably just taking up space. */
ACMD(do_fu)
{
 send_to_all("           ___\r\n");
 send_to_all("          [   ]\r\n");
 send_to_all("          [   ]\r\n");
 send_to_all("          [   ]\r\n");
 send_to_all("          [   ]\r\n");
 send_to_all("    |'^^'^^    ^^`|\ \r\n");
 send_to_all("    |              |\r\n");
 send_to_all("    \             /\r\n");
 send_to_all("\r\n\r\nYou have now been deleted, good riddance!\r\n");
 return;
}
/* Transport code */
ACMD(do_transport)
{
   one_argument(argument, arg);
   if (!ROOM_FLAGGED(ch->in_room, ROOM_SPIRIT)) {
    send_to_char("You are not near a ship!\r\n", ch);
    return;
   }
   if (CLN_FLAGGED(ch, CLN_Death)) {
    send_to_char("&15The dead are not allowed to transport and leave the afterlife&00\r\n", ch);
    return;
   }
   if (!*argument && GET_LEVEL(ch) <= 9999){
     send_to_char("        &16Class &09B &16Passengers.\r\n", ch);
     send_to_char("&00&06--------&14Planets&00&06--------&00\r\n", ch);
     send_to_char("&10Earth        &113000&00\r\n", ch);
     send_to_char("&10Orainas      &115000&00\r\n", ch);
     send_to_char("&10Vegeta       &114000&00\r\n", ch);
     send_to_char("&10Konack       &112000&00\r\n", ch);
     send_to_char("&10Namek        &111500&00\r\n", ch);
     send_to_char("&10Frigid       &113500&00\r\n", ch);
     return;
    }
   else if (!*argument && GET_LEVEL(ch) <= 19999){
     send_to_char("        &16Class &09A &16Passengers.\r\n", ch);
     send_to_char("&00&06--------&14Planets&00&06--------&00\r\n", ch);
     send_to_char("&10Earth        &116000&00\r\n", ch);
     send_to_char("&10Orainas      &1110000&00\r\n", ch);
     send_to_char("&10Vegeta       &118000&00\r\n", ch);
     send_to_char("&10Konack       &114000&00\r\n", ch);
     send_to_char("&10Namek        &113000&00\r\n", ch);
     send_to_char("&10Frigid       &117000&00\r\n", ch);
     return;
    }
   else if (!*argument && GET_LEVEL(ch) >= 20000){
     send_to_char("        &16Class &09S &16Passengers.\r\n", ch);
     send_to_char("&00&06--------&14Planets&00&06--------&00\r\n", ch);
     send_to_char("&10Earth        &119000&00\r\n", ch);
     send_to_char("&10Orainas      &1115000&00\r\n", ch);
     send_to_char("&10Vegeta       &1112000&00\r\n", ch);
     send_to_char("&10Konack       &116000&00\r\n", ch);
     send_to_char("&10Namek        &114500&00\r\n", ch);
     send_to_char("&10Frigid       &1110500&00\r\n", ch);
     return;
    }
   else if (!str_cmp(arg, "earth") && (SECT(ch->in_room) == SECT_EARTH)){
    send_to_char("You are already on that planet!\r\n", ch);
    return;
   }
   else if (!str_cmp(arg, "earth") && GET_GOLD(ch) <= 2999 && GET_LEVEL(ch) <= 9999){
    send_to_char("You do not have enough money...", ch);
    return;
   }
   else if (!str_cmp(arg, "earth") && GET_GOLD(ch) <= 5999 && GET_LEVEL(ch) >= 10000 && GET_LEVEL(ch) <= 19999){
    send_to_char("You do not have enough money...", ch);
    return;
   }
   else if (!str_cmp(arg, "earth") && GET_GOLD(ch) <= 8999 && GET_LEVEL(ch) >= 20000){
    send_to_char("You do not have enough money...", ch);
    return;
   }
   else if (!str_cmp(arg, "earth") && GET_GOLD(ch) >= 3000){
    act("&15With ticket in hand, you step up to the ship, board and choose your seat for the ride.&00", FALSE, ch, 0, 0, TO_CHAR);
    act("&15$n boards the ship, with $s ticket in hand.&00", FALSE, ch, 0, 0, TO_ROOM);
    if (GET_LEVEL(ch) <= 9999) {
     GET_GOLD(ch) -= 3000;
    }
    else if (GET_LEVEL(ch) <= 19999) {
     GET_GOLD(ch) -= 6000;
    }
    if (GET_LEVEL(ch) >= 20000) {
     GET_GOLD(ch) -= 9000;
    }
    SET_BIT(PRF2_FLAGS(ch), PRF2_EARTH);
    SET_BIT(PRF2_FLAGS(ch), PRF2_TRANS1);
    char_from_room(ch);
    char_to_room(ch, r_trans_space);
    send_to_char("&16The engines roar as the ship begins to take off.&00\r\n", ch);
    return;
   }
   else if (!str_cmp(arg, "vegeta") && (SECT(ch->in_room) == SECT_VEGETA)){
    send_to_char("You are already on that planet!\r\n", ch);
    return;
   }
   else if (!str_cmp(arg, "vegeta") && GET_GOLD(ch) <= 3999 && GET_LEVEL(ch) <= 9999){
    send_to_char("You do not have enough money...", ch);
    return;
   }
   else if (!str_cmp(arg, "vegeta") && GET_GOLD(ch) <= 7999 && GET_LEVEL(ch) >= 10000 && GET_LEVEL(ch) <= 19999){
    send_to_char("You do not have enough money...", ch);
    return;
   }
   else if (!str_cmp(arg, "vegeta") && GET_GOLD(ch) <= 11999 && GET_LEVEL(ch) >= 20000){
    send_to_char("You do not have enough money...", ch);
    return;
   }
   else if (!str_cmp(arg, "vegeta") && GET_GOLD(ch) >= 4000){
    act("&15With ticket in hand, you step up to the ship, board and choose your seat for the ride.&00", FALSE, ch, 0, 0, TO_CHAR);
    act("&15$n boards the ship, with $s ticket in hand.&00", FALSE, ch, 0, 0, TO_ROOM);
    if (GET_LEVEL(ch) <= 9999) {
     GET_GOLD(ch) -= 4000;
    }
    else if (GET_LEVEL(ch) <= 19999) {
     GET_GOLD(ch) -= 8000;
    }
    if (GET_LEVEL(ch) >= 20000) {
     GET_GOLD(ch) -= 12000;
    }
    SET_BIT(PRF2_FLAGS(ch), PRF2_VEGETA);
    SET_BIT(PRF2_FLAGS(ch), PRF2_TRANS1);
    char_from_room(ch);
    char_to_room(ch, r_trans_space);
    send_to_char("&16The engines roar as the ship begins to take off.&00\r\n", ch);
    return;
   }
   else if (!str_cmp(arg, "konack") && (SECT(ch->in_room) == SECT_KONACK)){
    send_to_char("You are already on that planet!\r\n", ch);
    return;
   }
   else if (!str_cmp(arg, "konack") && GET_GOLD(ch) <= 1999 && GET_LEVEL(ch) <= 9999){
    send_to_char("You do not have enough money...", ch);
    return;
   }
   else if (!str_cmp(arg, "konack") && GET_GOLD(ch) <= 3999 && GET_LEVEL(ch) >= 10000 && GET_LEVEL(ch) <= 19999){
    send_to_char("You do not have enough money...", ch);
    return;
   }
   else if (!str_cmp(arg, "konack") && GET_GOLD(ch) <= 5999 && GET_LEVEL(ch) >= 20000){
    send_to_char("You do not have enough money...", ch);
    return;
   }
   else if (!str_cmp(arg, "konack") && GET_GOLD(ch) >= 2000){
    act("&15With ticket in hand, you step up to the ship, board and choose your seat for the ride.&00", FALSE, ch, 0, 0, TO_CHAR);
    act("&15$n boards the ship, with $s ticket in hand.&00", FALSE, ch, 0, 0, TO_ROOM);
    if (GET_LEVEL(ch) <= 9999) {
     GET_GOLD(ch) -= 2000;
    }
    else if (GET_LEVEL(ch) <= 19999) {
     GET_GOLD(ch) -= 4000;
    }
    if (GET_LEVEL(ch) >= 20000) {
     GET_GOLD(ch) -= 8000;
    }
    SET_BIT(PRF2_FLAGS(ch), PRF2_KONACK);
    SET_BIT(PRF2_FLAGS(ch), PRF2_TRANS1);
    char_from_room(ch);
    char_to_room(ch, r_trans_space);
    send_to_char("&16The engines roar as the ship begins to take off.&00\r\n", ch);
    return;
   }
   else if (!str_cmp(arg, "orainas") && (SECT(ch->in_room) == SECT_ORAINAS)){
    send_to_char("You are already on that planet!\r\n", ch);
    return;
   }
   else if (!str_cmp(arg, "orainas") && GET_GOLD(ch) <= 4999 && GET_LEVEL(ch) <= 9999){
    send_to_char("You do not have enough money...", ch);
    return;
   }
   else if (!str_cmp(arg, "orainas") && GET_GOLD(ch) <= 9999 && GET_LEVEL(ch) >= 10000 && GET_LEVEL(ch) <= 19999){
    send_to_char("You do not have enough money...", ch);
    return;
   }
   else if (!str_cmp(arg, "orainas") && GET_GOLD(ch) <= 14999 && GET_LEVEL(ch) >= 20000){
    send_to_char("You do not have enough money...", ch);
    return;
   }
   else if (!str_cmp(arg, "orainas") && GET_GOLD(ch) >= 5000){
    act("&15With ticket in hand, you step up to the ship, board and choose your seat for the ride.&00", FALSE, ch, 0, 0, TO_CHAR);
    act("&15$n boards the ship, with $s ticket in hand.&00", FALSE, ch, 0, 0, TO_ROOM);
    if (GET_LEVEL(ch) <= 9999) {
     GET_GOLD(ch) -= 5000;
    }
    else if (GET_LEVEL(ch) <= 19999) {
     GET_GOLD(ch) -= 10000;
    }
    if (GET_LEVEL(ch) >= 20000) {
     GET_GOLD(ch) -= 15000;
    }
    SET_BIT(PRF2_FLAGS(ch), PRF2_ORAINAS);
    SET_BIT(PRF2_FLAGS(ch), PRF2_TRANS1);
    char_from_room(ch);
    char_to_room(ch, r_trans_space);
    send_to_char("&16The engines roar as the ship begins to take off.&00\r\n", ch);
    return;
   }
   else if (!str_cmp(arg, "namek") && (SECT(ch->in_room) == SECT_NAMEK)){
    send_to_char("You are already on that planet!\r\n", ch);
    return;
   }
   else if (!str_cmp(arg, "namek") && GET_GOLD(ch) <= 1499 && GET_LEVEL(ch) <= 9999){
    send_to_char("You do not have enough money...", ch);
    return;
   }
   else if (!str_cmp(arg, "namek") && GET_GOLD(ch) <= 2999 && GET_LEVEL(ch) >= 10000 && GET_LEVEL(ch) <= 19999){
    send_to_char("You do not have enough money...", ch);
    return;
   }
   else if (!str_cmp(arg, "namek") && GET_GOLD(ch) <= 4499 && GET_LEVEL(ch) >= 20000){
    send_to_char("You do not have enough money...", ch);
    return;
   }
   else if (!str_cmp(arg, "namek") && GET_GOLD(ch) >= 1500){
    act("&15With ticket in hand, you step up to the ship, board and choose your seat for the ride.&00", FALSE, ch, 0, 0, TO_CHAR);
    act("&15$n boards the ship, with $s ticket in hand.&00", FALSE, ch, 0, 0, TO_ROOM);
    if (GET_LEVEL(ch) <= 9999) {
     GET_GOLD(ch) -= 1500;
    }
    else if (GET_LEVEL(ch) <= 19999) {
     GET_GOLD(ch) -= 3000;
    }
    if (GET_LEVEL(ch) >= 20000) {
     GET_GOLD(ch) -= 4500;
    }
    SET_BIT(PRF2_FLAGS(ch), PRF2_NAMEK);
    SET_BIT(PRF2_FLAGS(ch), PRF2_TRANS1);
    char_from_room(ch);
    char_to_room(ch, r_trans_space);
    send_to_char("&16The engines roar as the ship begins to take off.&00\r\n", ch);
    return;
   }
   else if (!str_cmp(arg, "frigid") && (SECT(ch->in_room) == SECT_FRIGID)){
    send_to_char("You are already on that planet!\r\n", ch);
    return;
   }
   else if (!str_cmp(arg, "frigid") && GET_GOLD(ch) <= 3499 && GET_LEVEL(ch) <= 9999){
    send_to_char("You do not have enough money...", ch);
    return;
   }
   else if (!str_cmp(arg, "frigid") && GET_GOLD(ch) <= 6999 && GET_LEVEL(ch) >= 10000 && GET_LEVEL(ch) <= 19999){
    send_to_char("You do not have enough money...", ch);
    return;
   }
   else if (!str_cmp(arg, "frigid") && GET_GOLD(ch) <= 10499 && GET_LEVEL(ch) >= 20000){
    send_to_char("You do not have enough money...", ch);
    return;
   }
   else if (!str_cmp(arg, "frigid") && GET_GOLD(ch) >= 3500){
    act("&15With ticket in hand, you step up to the ship, board and choose your seat for the ride.&00", FALSE, ch, 0, 0, TO_CHAR);
    act("&15$n boards the ship, with $s ticket in hand.&00", FALSE, ch, 0, 0, TO_ROOM);
    if (GET_LEVEL(ch) <= 9999) {
     GET_GOLD(ch) -= 3500;
    }
    else if (GET_LEVEL(ch) <= 19999) {
     GET_GOLD(ch) -= 7000;
    }
    if (GET_LEVEL(ch) >= 20000) {
     GET_GOLD(ch) -= 10500;
    }
    SET_BIT(PRF2_FLAGS(ch), PRF2_FRIGID);
    SET_BIT(PRF2_FLAGS(ch), PRF2_TRANS1);
    char_from_room(ch);
    char_to_room(ch, r_trans_space);
    send_to_char("&16The engines roar as the ship begins to take off.&00\r\n", ch);
    return;
   }
   else {
    send_to_char("That is not a proper place to transport to. Type just transport for a list of transport destinations.\r\n", ch);
   }
}
/* Angel Transformations */
ACMD(do_sangel)
{

 int MAX_MANA = 0, MAX_HIT = 0;
  *buf = '\0';
  *buf1 = '\0';
  *buf2 = '\0';

    one_argument(argument, arg);

    if ((!IS_ANGEL(ch)))
    {
      act("&15You're not an Angel&11!&00", TRUE, ch, 0, 0, TO_CHAR);
      return;
    }
   else if (!*argument)
    {
act("&10o&12---------------&10[&15Super &11A&00&03n&16g&15e&00&07l &09Forms&10]&12---------------&10o&00", TRUE, ch, 0, 0, TO_CHAR);
act("    &15Stage     Powerlevel Req.", TRUE, ch, 0, 0, TO_CHAR);
act("    &10Super Angel first     &122000000&00", TRUE, ch, 0, 0, TO_CHAR);
act("    &10Super Angel second   &1218000000&00", TRUE, ch, 0, 0, TO_CHAR);
act("    &10Super Angel Seraphim &1228000000&00", TRUE, ch, 0, 0, TO_CHAR);
act("    &10All PL Req. go off base pl.&00", TRUE, ch, 0, 0, TO_CHAR);
act("&10o&12---------------&10[&15Super &11A&00&03n&16g&15e&00&07l &09forms&10]&12---------------&10o&00", TRUE, ch, 0, 0, TO_CHAR);
send_to_char("&15All powerlevel req. go off of BASE pl.&00\r\n", ch);
  return;
}

  if (!str_cmp(arg,"second") && !PLR_FLAGGED(ch, PLR_trans1)) {
   act("&15You can't go straight to that form!&00", TRUE, ch, 0, 0, TO_CHAR);
   return;
  }
  if (!str_cmp(arg,"seraphim") && !PLR_FLAGGED(ch, PLR_trans2)) {
   act("&15You can't go straight to that form!&00", TRUE, ch, 0, 0, TO_CHAR);
   return;
  }
/*-------------------------------------------------------------------------------------*/
/*----------------------------------  Reverting  --------------------------------------*/

 if (!str_cmp(arg, "revert") && PLR_FLAGGED(ch, PLR_trans3)) {
     REMOVE_BIT(PLR_FLAGS(ch), PLR_trans3);
     REMOVE_BIT(PLR_FLAGS(ch), PLR_trans2);
     REMOVE_BIT(PLR_FLAGS(ch), PLR_trans1);

  MAX_HIT = number(38000000, 38000000);
  MAX_MANA = number(38000000, 38000000);

  GET_MAX_HIT(ch) = GET_MAX_HIT(ch) - MAX_HIT;
  GET_MAX_MANA(ch) = GET_MAX_MANA(ch) - MAX_MANA;
  act("&15$n reverts from $s form of &16Super &11A&00&03n&16g&15e&00&07l&15.&00", TRUE, ch, 0, 0, TO_ROOM);
  act("&15You revert from your form of &16Super &11A&00&03n&16g&15e&00&07l&15.&00", TRUE, ch, 0, 0, TO_CHAR);
  return;
  }

 if (!str_cmp(arg, "revert") && PLR_FLAGGED(ch, PLR_trans2)) {
     REMOVE_BIT(PLR_FLAGS(ch), PLR_trans2);
     REMOVE_BIT(PLR_FLAGS(ch), PLR_trans1);

  MAX_HIT = number(18000000, 18000000);
  MAX_MANA = number(18000000, 18000000);

  GET_MAX_HIT(ch) = GET_MAX_HIT(ch) - MAX_HIT;
  GET_MAX_MANA(ch) = GET_MAX_MANA(ch) - MAX_MANA;

  act("&15$n reverts from $s form of &16Super &11A&00&03n&16g&15e&00&07l&15.&00", TRUE, ch, 0, 0, TO_ROOM);
  act("&15You revert from your form of &16Super &11A&00&03n&16g&15e&00&07l&15.&00", TRUE, ch, 0, 0, TO_CHAR);
  return;
  }
  if (!str_cmp(arg, "revert") && PLR_FLAGGED(ch, PLR_trans1)) {
     REMOVE_BIT(PLR_FLAGS(ch), PLR_trans1);

  MAX_HIT = number(4000000, 4000000);
  MAX_MANA = number(4000000, 4000000);

  GET_MAX_HIT(ch) = GET_MAX_HIT(ch) - MAX_HIT;
  GET_MAX_MANA(ch) = GET_MAX_MANA(ch) - MAX_MANA;

  act("&15$n reverts from $s form of &16Super &11A&00&03n&16g&15e&00&07l&15.&00", TRUE, ch, 0, 0, TO_ROOM);
  act("&15You revert from your form of &16Super &11A&00&03n&16g&15e&00&07l&15.&00", TRUE, ch, 0, 0, TO_CHAR);
  return;
  }
 if (!str_cmp(arg,"first") && PLR_FLAGGED(ch, PLR_trans1)) {
  send_to_char("&15You are already in that form!&00\r\n", ch);
  return;
  }
 if (!str_cmp(arg,"first") && GET_MAX_HIT(ch) <= 1999999) {
  act("&15You do not have the power to attain that form of &16Super &11A&00&03n&16g&15e&00&07l!&00", TRUE, ch, 0, 0, TO_CHAR);
  return;
  }

 if (!str_cmp(arg,"first") && GET_MAX_HIT(ch) > 1999999) {
     SET_BIT(PLR_FLAGS(ch), PLR_trans1);

  MAX_HIT = number(4000000, 4000000);
  MAX_MANA = number(4000000, 4000000);

  GET_MAX_HIT(ch) = GET_MAX_HIT(ch) + MAX_HIT;
  GET_MAX_MANA(ch) = GET_MAX_MANA(ch) + MAX_MANA;

  act("&16A &00&07w&15h&16i&00&07t&15e &14b&15e&00&06a&14m &16of &11l&00&07i&11g&00&07h&11t &14e&15x&00&06p&00&07l&14o&15d&00&06e&00&07s &15around you and shoots high into the &14s&12k&00&07y. &15A loud &09r&16o&00&01a&15r &15follows the &14b&15e&00&06a&14m &15just before it disappears. Bending over you &15g&00&07r&16o&15w&00&07l &15in agony as your &14w&00&07i&15n&00&06g&15s &15begin to change, their soft &00&07f&15e&00&07a&15t&00&07h&15e&00&07r&15s &15hardening into a &16s&15t&16e&15e&16l &16a&00&07l&15l&16o&07y&15. As your wings finish changing a &11b&00&07r&11i&00&07g&11h&00&07t &15s&00&07i&16l&15v&00&07e&16r &14a&15u&00&06r&14a &16 &15surrounds your body, and you stand up having reached &14S&00&07u&00&06p&14e&00&07r &11A&00&03n&16g&15e&00&07l &14F&15i&00&07r&14s&15t.&00", FALSE, ch, 0, 0, TO_CHAR);
  act("&16A &00&07w&15h&16i&00&07t&15e &14b&15e&00&06a&14m &16of &11l&00&07i&11g&00&07h&11t &14e&15x&00&06p&00&07l&14o&15d&00&06e&00&07s &15around $n &15and shoots high into the&14s&12k&00&07y&15. A loud &09r&16o&00&01a&15r &15follows the &14b&15e&00&06a&14m &15just before it disappears. Bending over $e &15g&00&07r&16o&15w&00&07l &15in agony as $s wings begin to change, their soft &00&07f&15e&00&07a&15t&00&07h&15e&00&07r&15s &15harpening into a &16s&15t&16e&15e&16l &16a&00&07l&15l&16o&07y&15. As $s wings finish changing a &11b&00&07r&11i&00&07g&11h&00&07t &15s&00&07i&16l&15v&00&07e&16r &14a&15u&00&06r&14a &16 &15surrounds $s &15body, and $e stands up having &14S&00&07u&00&06p&14e&00&07r &11A&00&03n&16g&15e&00&07l &14F&15i&00&07r&14s&15t.&00", FALSE, ch, 0, 0, TO_ROOM);
  }

 if (!str_cmp(arg,"second") && PLR_FLAGGED(ch, PLR_trans2)) {
  act("&15Your already in that form of &16Super &11A&00&03n&16g&15e&00&07l&15!&00", TRUE, ch, 0, 0, TO_CHAR);
  return;
  }
if (!str_cmp(arg,"second") && GET_MAX_HIT(ch) - 4000000 <= 18000000) {
  act("&15You do not have the power to attain that form of &16Super &11A&00&03n&16g&15e&00&07l&15!&00", TRUE, ch, 0, 0, TO_CHAR);
  return;
  }

 if (!str_cmp(arg,"second") && GET_MAX_HIT(ch) - 4000000 >= 18000000) {
     SET_BIT(PLR_FLAGS(ch), PLR_trans2);

  MAX_HIT = number(14000000, 14000000);
  MAX_MANA = number(14000000, 14000000);

  GET_MAX_HIT(ch) = GET_MAX_HIT(ch) + MAX_HIT;
  GET_MAX_MANA(ch) = GET_MAX_MANA(ch) + MAX_MANA;
  act("&15A sudden &09s&16h&00&01o&09c&15k&14w&00&07a&00&06v&14e &15rips out from your body as you &14f&15o&00&07c&00&06u&16s &15your inner power. Your wings stretch out, and begin to &09c&15h&00&01a&16n&09g&00&01e&15! The &16s&15t&16e&15e&16l &00&07f&15e&00&07a&15t&00&07h&15e&00&07r&15s  start to turn &00&07s&15h&00&07i&15n&00&07y&15  as they become &15t&00&07i&16t&15a&00&07n&16i&15u&00&07m&15, and the end &00&07f&15e&00&07a&15t&00&07h&15e&00&07r&15s  become &15r&00&07a&16z&15o&00&07r&15 sharp. Your &15s&00&07i&16l&15v&00&07e&16r &14a&15u&00&06r&14a&15 grows &14b&00&07r&16i&00&03g&15h&14t&00&07e&16r, &15and &14l&00&07a&14r&00&06g&14e&00&07r,&15 ballooning out to an &09o&16r&00&01b&15 shape. &16B&00&07o&15l&16t&00&07s &15of &15s&00&07i&16l&15v&00&07e&16r  &11l&00&07i&00&03g&11h&00&07t&00&03n&14i&00&07n&00&03g &15strike within the &09o&16r&00&01b, &15coarsing faster and faster as you reach &14S&00&07u&00&06p&14e&00&07r &11A&00&03n&16g&15e&00&07l &09S&15e&00&07c&09o&15n&00&01d&00", FALSE, ch, 0, 0, TO_CHAR);
  act("&15A sudden &09s&16h&00&01o&09c&15k&14w&00&07a&00&06v&14e &15rips out from $n's body as $e &14f&15o&00&07c&00&06u&16s &15$s inner power. $s wings stretch out, and begin to &09c&15h&00&01a&16n&09g&00&01e&15! The &16s&15t&16e&15e&16l &00&07f&15e&00&07a&15t&00&07h&15e&00&07r&15s  start to turn &00&07s&15h&00&07i&15n&00&07y&15  as they become &15t&00&07i&16t&15a&00&07n&16i&15u&00&07m&15, and the end &00&07f&15e&00&07a&15t&00&07h&15e&00&07r&15s  become &15r&00&07a&16z&15o&00&07r&15 sharp. $s &15s&00&07i&16l&15v&00&07e&16r &14a&15u&00&06r&14a&15 grows &14b&00&07r&16i&00&03g&15h&14t&00&07e&16r, &15and &14l&00&07a&14r&00&06g&14e&00&07r,&15 ballooning out to an &09o&16r&00&01b&15 shape. &16B&00&07o&15l&16t&00&07s &15of &15s&00&07i&16l&15v&00&07e&16r  &11l&00&07i&00&03g&11h&00&07t&00&03n&14i&00&07n&00&03g &15strike within the &09o&16r&00&01b, &15coarsing faster and faster as $e reaches &14S&00&07u&00&06p&14e&00&07r &11A&00&03n&16g&15e&00&07l &09S&15e&00&07c&09o&15n&00&01d&00", FALSE, ch, 0, 0, TO_ROOM);

  }
 if (!str_cmp(arg,"seraphim") && PLR_FLAGGED(ch, PLR_trans3)) {
  act("&15Your already in that form of &16Super &11A&00&03n&16g&15e&00&07l&15!&00", TRUE, ch, 0, 0, TO_CHAR);
  return;
  }
if (!str_cmp(arg,"seraphim") && GET_MAX_HIT(ch) - 18000000 <= 28000000) {
  act("&15You do not have the power to attain that form of &16Super &11A&00&03n&16g&15e&00&07l&15!&00", TRUE, ch, 0, 0, TO_CHAR);
  return;
  }

 if (!str_cmp(arg,"seraphim") && GET_MAX_HIT(ch) - 18000000 >= 28000000) {
     SET_BIT(PLR_FLAGS(ch), PLR_trans3);

  MAX_HIT = number(20000000, 20000000);
  MAX_MANA = number(20000000, 20000000);

  GET_MAX_HIT(ch) = GET_MAX_HIT(ch) + MAX_HIT;
  GET_MAX_MANA(ch) = GET_MAX_MANA(ch) + MAX_MANA;

  act("&15You &14f&00&07l&00&06y&15 high into the air, beating your wings with &12r&15a&00&04p&12i&15d &15 speed. As you reach high into the &14a&00&07t&15m&12o&16s&14p&00&07h&15e&12r&16e&15 your &15s&00&07i&16l&15v&00&07e&16r &14a&15u&00&06r&14a &09e&15x&00&01p&16l&09o&15d&00&01e&16s&15 from your body, &09b&15l&09a&16s&09t&15i&09n&16g &15the surrounding air. A &00&07w&15h&16i&00&07t&15e  &14l&00&07i&14&00&07g&14h&00&07t &15covers your whole body, obscuring it from view as your wings change into &15r&00&07a&16z&15o&00&07r  &15sharp &11g&00&07o&00&03l&11d.&15 Your eyes &14g&00&07l&14o&00&07w &11g&00&07o&00&03l&11d&15 as a &11g&00&07o&00&03l&11d&00&07e&00&01n &14a&15u&00&06r&14a&15 envelopes your whole body, and the &00&07w&15h&16i&00&07t&15e &14g&00&07l&14o&99&97w &15disappears. You laugh as you realize you have achieved &14S&00&07u&00&06p&14e&00&07r &11A&00&03n&16g&15e&00&07l &14S&16e&00&06r&15a&00p&06h&14i&15m!&00", FALSE, ch, 0, 0, TO_CHAR);
  act("&15$n &14f&00&07l&00&06ies&15 high into the air, beating $s wings with &12r&15a&00&04p&12i&15d &15 speed. As $e reaches high into the &14a&00&07t&15m&12o&16s&14p&00&07h&15e&12r&16e&15 $s &15s&00&07i&16l&15v&00&07e&16r &14a&15u&00&06r&14a &09e&15x&00&01p&16l&09o&15d&00&01e&16s&15 from $s body, &09b&15l&09a&16s&09t&15i&09n&16g &15the surrounding air. A &00&07w&15h&16i&00&07t&15e  &14l&00&07i&14&00&07g&14h&00&07t &15covers $s whole body, obscuring it from view as $s wings change into &15r&00&07a&16z&15o&00&07r  &15sharp &11g&00&07o&00&03l&11d.&15 $s eyes &14g&00&07l&14o&00&07w &11g&00&07o&00&03l&11d&15 as a &11g&00&07o&00&03l&11d&00&07e&00&01n &14a&15u&00&06r&14a&15 envelopes $s whole body, and the &00&07w&15h&16i&00&07t&15e &14g&00&07l&14o&99&97w &15disappears. $e laughs as $e realize $e has achieved &14S&00&07u&00&06p&14e&00&07r &11A&00&03n&16g&15e&00&07l &14S&16e&00&06r&15a&00p&06h&14i&15m!&00", FALSE, ch, 0, 0, TO_ROOM);
  }
 return;
}
/* In game calculator with simple calculation functions */
ACMD(do_calc)
{
 int value1 = 0, value2 = 0, pro = 0, pro2 = 0, pro3 = 0;

  *buf = '\0';
  *buf1 = '\0';
  *buf2 = '\0';

 /*half_chop(argument, buf, buf1);*/
   three_arguments(argument, arg, buf, buf1);
   value1 = atoi(buf);
   value2 = atoi(buf1);
  
  if (!*arg) {
   send_to_char("&15You can subtract, add, multiply, or divide any whole number with this mud calculator. You can also figure up how much is charged in a certain number of posts by exchanging the add/subtract/multiply/divide with the size of the skill such as small/medium/large/massive. Then after that would go your maxki at the time of charging, and then the number of posts charged. You will get the answer.&00\r\n", ch);
   return;
  }
  if (!*buf) {
   send_to_char("&11Syntax&16: &16(&14multiply&16/&14divide&16/&14subtract&16/&14add&16/&14small&16/&14medium&16/&14large&16/&14massive&&16) &16(&14number&16) &16(&14number&16)\r\n&12Example&16: &15divide 44 4\r\n", ch);
   return;
  }
  if (!*buf1) {
  send_to_char("&11Syntax&16: &16(&14multiply&16/&14divide&16/&14subtract&16/&14add&16) &16(&14number&16) &16(&14number&16)\r\n&12Example&16: &15divide 44 4\r\n", ch);
   return;
  }
  if (!str_cmp(arg,"multiply")) {
   pro = value1 * value2;
   sprintf(buf2, "&16[&14%d &09x &14%d &12= &14%d&16]&00\r\n", value1, value2, pro);
   send_to_char(buf2, ch);
   return;
  }
  else if (!str_cmp(arg,"add")) {
   pro = value1 + value2;
   sprintf(buf2, "&16[&14%d &09+ &14%d &12= &14%d&16]&00\r\n", value1, value2, pro);
   send_to_char(buf2, ch);
   return;
  }
  else if (!str_cmp(arg,"subtract")) {
   pro = value1 - value2;
   sprintf(buf2, "&16[&14%d &09- &14%d &12= &14%d&16]&00\r\n", value1, value2, pro);
   send_to_char(buf2, ch);
   return;
  }
  else if (!str_cmp(arg,"divide")) {
   pro = value1 / value2;
   sprintf(buf2, "&16[&14%d &09/ &14%d &12= &14%d&16]&00\r\n", value1, value2, pro);
   send_to_char(buf2, ch);
   return;
  }
  else if (!str_cmp(arg,"small")) {
   pro = value1 / 100;
   pro2 = pro * 10 / 100;
   pro3 = pro2 * 50 * value2;
   sprintf(buf2, "&16[&14Maxki&11: &09%d &14Posts&11: &09%d &14Total&11: &09%d&16]\r\n&00", value1, value2, pro3);
   send_to_char(buf2, ch);
   return;
  }
  else if (!str_cmp(arg,"medium")) {
   pro = value1 / 100;
   pro2 = pro * 20 / 100;
   pro3 = pro2 * 20 * value2;
   sprintf(buf2, "&16[&14Maxki&11: &09%d &14Posts&11: &09%d &14Total&11: &09%d&16]&00\r\n", value1, value2, pro3);
   send_to_char(buf2, ch);
   return;
  }
  else if (!str_cmp(arg,"large")) {
   pro = value1 / 100;
   pro2 = pro * 40 / 100;
   pro3 = pro2 * 10 * value2;
   sprintf(buf2, "&16[&14Maxki&11: &09%d &14Posts&11: &09%d &14Total&11: &09%d&16]&00\r\n", value1, value2, pro3);
   send_to_char(buf2, ch);
   return;
  }
  else if (!str_cmp(arg,"massive")) {
   pro = value1 / 100;
   pro2 = pro * 60 / 100;
   pro3 = pro2 * 5 * value2;
   sprintf(buf2, "&16[&14Maxki&11: &09%d &14Posts&11: &09%d &14Total&11: &09%d&16]&00\r\n", value1, value2, pro3);
   send_to_char(buf2, ch);
   return;
  }
}
/* Used for making wishes on dragonballs. It follows a precise mathmatical formula
* You only have yourself to blame if you mess with the formula or don't build your
* dragonball set correctly.
*/
ACMD(do_wish)
{
   struct obj_data *obj, *next_obj;
   int num = 0;

  *buf = '\0';
  *buf1 = '\0';
  *buf2 = '\0';
   one_argument(argument, arg);
   if (!*arg) {
   send_to_char("&16[&09Power &10:: &11800k - 1.2mil&16]\r\n", ch);
   send_to_char("&16[&09Spirit&10:: &11800k - 1.2mil&16]\r\n", ch);
   send_to_char("&16[&09Zenni &10:: &115mil - 8mil  &16]\r\n", ch);
   send_to_char("&16[&09Con   &10:: &11     1       &16]\r\n", ch);
   send_to_char("&16[&09Int   &10:: &11     1       &16]\r\n", ch);
   send_to_char("&16[&09Wis   &10:: &11     1       &16]\r\n", ch);

   return;
   }
    for (obj = ch->carrying; obj; obj = next_obj) {
          next_obj = obj->next_content;
    if (GET_OBJ_TYPE(obj) == ITEM_dball1) {
     num += 3;
     continue;
    }
    if (GET_OBJ_TYPE(obj) == ITEM_dball2) {
     num += 1;
     continue;
    }
    if (GET_OBJ_TYPE(obj) == ITEM_dball3) {
     num += 7;
     continue;
    }
    if (GET_OBJ_TYPE(obj) == ITEM_dball4) {
     num += 11;
     continue;
    }
    if (GET_OBJ_TYPE(obj) == ITEM_dball5) {
     num += 13;
     continue;
    }
    if (GET_OBJ_TYPE(obj) == ITEM_dball6) {
     num += 15;
     continue;
    }
    if (GET_OBJ_TYPE(obj) == ITEM_dball7) {
     num += 17;
     continue;
    }
    continue;
   }
   if (!str_cmp(arg,"power") && num == 67) {
     send_to_char("&15Lightning fills the sky as clouds form. The dragon balls flash omniously just before a streak of lighting hits all seven at once. Shenron the great dragon blasts out of the dragonballs, it's form filling the sky. After a few moments of sheer awe you manage to ask for your wish.\r\n", ch);
     sprintf(buf, "&16[&14WISH&16] &12%s &15has been granted a wish!&00\r\n", GET_NAME(ch));
     send_to_all(buf);
     for (obj = ch->carrying; obj; obj = next_obj) {
          next_obj = obj->next_content;
      if (!IS_NPC(ch)) {
       if (GET_OBJ_TYPE(obj) == ITEM_dball1) {
       extract_obj(obj);
       }
       if (GET_OBJ_TYPE(obj) == ITEM_dball2) {
       extract_obj(obj);
       }
       if (GET_OBJ_TYPE(obj) == ITEM_dball3) {
       extract_obj(obj);
       }
       if (GET_OBJ_TYPE(obj) == ITEM_dball4) {
       extract_obj(obj);
       }
       if (GET_OBJ_TYPE(obj) == ITEM_dball5) {
       extract_obj(obj);
       }
       if (GET_OBJ_TYPE(obj) == ITEM_dball6) {
       extract_obj(obj);
       }
       if (GET_OBJ_TYPE(obj) == ITEM_dball7) {
       extract_obj(obj);
       }
       continue;
      }
     }
     GET_MAX_HIT(ch) += number(800000, 1200000);
     return;
     }
     if (!str_cmp(arg,"spirit") && num == 67) {
     send_to_char("&15Lightning fills the sky as clouds form. The dragon balls flash omniously just before a streak of lighting hits all seven at once. Shenron the great dragon blasts out of the dragonballs, it's form filling the sky. After a few moments of sheer awe you manage to ask for your wish.\r\n", ch);  
     sprintf(buf, "&16[&14WISH&16] &12%s &15has been granted a wish!&00\r\n", GET_NAME(ch));
     send_to_all(buf);
     for (obj = ch->carrying; obj; obj = next_obj) {
          next_obj = obj->next_content;
      if (!IS_NPC(ch)) {
       if (GET_OBJ_TYPE(obj) == ITEM_dball1) {
       extract_obj(obj);
       }
       if (GET_OBJ_TYPE(obj) == ITEM_dball2) {
       extract_obj(obj);
       }
       if (GET_OBJ_TYPE(obj) == ITEM_dball3) {
       extract_obj(obj);
       }
       if (GET_OBJ_TYPE(obj) == ITEM_dball4) {
       extract_obj(obj);
       }
       if (GET_OBJ_TYPE(obj) == ITEM_dball5) {
       extract_obj(obj);
       }
       if (GET_OBJ_TYPE(obj) == ITEM_dball6) {
       extract_obj(obj);
       }
       if (GET_OBJ_TYPE(obj) == ITEM_dball7) {
       extract_obj(obj);
       }
       continue;
      }
     }
     GET_MAX_MANA(ch) += number(800000, 1200000);
     return;
     }
     if (!str_cmp(arg,"zenni") && num == 67) {
     send_to_char("&15Lightning fills the sky as clouds form. The dragon balls flash omniously just before a streak of lighting hits all seven at once. Shenron the great dragon blasts out of the dragonballs, it's form filling the sky. After a few moments of sheer awe you manage to ask for your wish.\r\n", ch);
     sprintf(buf, "&16[&14WISH&16] &12%s &15has been granted a wish!&00\r\n", GET_NAME(ch));
     send_to_all(buf);
     for (obj = ch->carrying; obj; obj = next_obj) {
          next_obj = obj->next_content;
      if (!IS_NPC(ch)) {
       if (GET_OBJ_TYPE(obj) == ITEM_dball1) {
       extract_obj(obj);
       }
       if (GET_OBJ_TYPE(obj) == ITEM_dball2) {
       extract_obj(obj);
       }
       if (GET_OBJ_TYPE(obj) == ITEM_dball3) {
       extract_obj(obj);
       }
       if (GET_OBJ_TYPE(obj) == ITEM_dball4) {
       extract_obj(obj);
       }
       if (GET_OBJ_TYPE(obj) == ITEM_dball5) {
       extract_obj(obj);
       }
       if (GET_OBJ_TYPE(obj) == ITEM_dball6) {
       extract_obj(obj);
       }
       if (GET_OBJ_TYPE(obj) == ITEM_dball7) {
       extract_obj(obj);
       }
       continue;
      }
     }
     GET_GOLD(ch) += number(5000000, 8000000);
     return;;
     }
    if (!str_cmp(arg,"con") && num == 67) {
     if (GET_CON(ch) >= 25) {
       send_to_char("Remove your equipment, and you can no longer boost this stat.\r\n", ch);
       return;
     }
     send_to_char("&15Lightning fills the sky as clouds form. The dragon balls flash omniously just before a streak of lighting hits all seven at once. Shenron the great dragon blasts out of the dragonballs, it's form filling the sky. After a few moments of sheer awe you manage to ask for your wish.\r\n", ch);
     sprintf(buf, "&16[&14WISH&16] &12%s &15has been granted a wish!&00\r\n", GET_NAME(ch));
     send_to_all(buf);
     for (obj = ch->carrying; obj; obj = next_obj) {
          next_obj = obj->next_content;
      if (!IS_NPC(ch)) {
       if (GET_OBJ_TYPE(obj) == ITEM_dball1) {
       extract_obj(obj);
       }
       if (GET_OBJ_TYPE(obj) == ITEM_dball2) {
       extract_obj(obj);
       }
       if (GET_OBJ_TYPE(obj) == ITEM_dball3) {
       extract_obj(obj);
       }
       if (GET_OBJ_TYPE(obj) == ITEM_dball4) {
       extract_obj(obj);
       }
       if (GET_OBJ_TYPE(obj) == ITEM_dball5) {
       extract_obj(obj);
       }
       if (GET_OBJ_TYPE(obj) == ITEM_dball6) {
       extract_obj(obj);
       }
       if (GET_OBJ_TYPE(obj) == ITEM_dball7) {
       extract_obj(obj);
       }
       continue;
      }
     }
     ch->real_abils.con += 1;
     return;
     }
    if (!str_cmp(arg,"int") && num == 67) {
     if (GET_INT(ch) >= 25) {
       send_to_char("Remove your equipment, and you can no longer boost this stat.\r\n", ch);
       return;
     }
     send_to_char("&15Lightning fills the sky as clouds form. The dragon balls flash omniously just before a streak of lighting hits all seven at once. Shenron the great dragon blasts out of the dragonballs, it's form filling the sky. After a few moments of sheer awe you manage to ask for your wish.\r\n", ch);
     sprintf(buf, "&16[&14WISH&16] &12%s &15has been granted a wish!&00\r\n", GET_NAME(ch));
     send_to_all(buf);
     for (obj = ch->carrying; obj; obj = next_obj) {
          next_obj = obj->next_content;
      if (!IS_NPC(ch)) {
       if (GET_OBJ_TYPE(obj) == ITEM_dball1) {
       extract_obj(obj);
       }
       if (GET_OBJ_TYPE(obj) == ITEM_dball2) {
       extract_obj(obj);
       }
       if (GET_OBJ_TYPE(obj) == ITEM_dball3) {
       extract_obj(obj);
       }
       if (GET_OBJ_TYPE(obj) == ITEM_dball4) {
       extract_obj(obj);
       }
       if (GET_OBJ_TYPE(obj) == ITEM_dball5) {
       extract_obj(obj);
       }
       if (GET_OBJ_TYPE(obj) == ITEM_dball6) {
       extract_obj(obj);
       }
       if (GET_OBJ_TYPE(obj) == ITEM_dball7) {
       extract_obj(obj);
       }
       continue;
      }
     }
     ch->real_abils.intel += 1;
     return;
     }
    if (!str_cmp(arg,"wis") && num == 67) {
     if (GET_WIS(ch) >= 25) {
       send_to_char("Remove your equipment, and you can no longer boost this stat.\r\n", ch);
       return;
     }
     send_to_char("&15Lightning fills the sky as clouds form. The dragon balls flash omniously just before a streak of lighting hits all seven at once. Shenron the great dragon blasts out of the dragonballs, it's form filling the sky. After a few moments of sheer awe you manage to ask for your wish.\r\n", ch);
     sprintf(buf, "&16[&14WISH&16] &12%s &15has been granted a wish!&00\r\n", GET_NAME(ch));
     send_to_all(buf);
     for (obj = ch->carrying; obj; obj = next_obj) {
          next_obj = obj->next_content;
      if (!IS_NPC(ch)) {
       if (GET_OBJ_TYPE(obj) == ITEM_dball1) {
       extract_obj(obj);
       }
       if (GET_OBJ_TYPE(obj) == ITEM_dball2) {
       extract_obj(obj);
       }
       if (GET_OBJ_TYPE(obj) == ITEM_dball3) {
       extract_obj(obj);
       }
       if (GET_OBJ_TYPE(obj) == ITEM_dball4) {
       extract_obj(obj);
       }
       if (GET_OBJ_TYPE(obj) == ITEM_dball5) {
       extract_obj(obj);
       }
       if (GET_OBJ_TYPE(obj) == ITEM_dball6) {
       extract_obj(obj);
       }
       if (GET_OBJ_TYPE(obj) == ITEM_dball7) {
       extract_obj(obj);
       }
       continue;
      }
     }
     ch->real_abils.wis += 1;
     return;
     }
   else {
    send_to_char("You need all seven dragonballs", ch);
     return;
     }
}
/* Used to for killing your character and reaching the AL */
ACMD(do_suicide)
{
  *buf = '\0';
  *buf1 = '\0';
  *buf2 = '\0';
  if (PLR_FLAGGED(ch, PLR_KILLER)) {
     send_to_char("&15You have a desire to kill all in the arena, suicide is not on your mind&11!&00\r\n", ch);
     return;
    }
  if (CLN_FLAGGED(ch, CLN_Death)) {
    send_to_char("&15You are already dead...&00\r\n", ch);
    return;
   }
  if (ROOM_FLAGGED(ch->in_room, ROOM_NOQUIT))
      {
      send_to_char("You cannot kill yourself here!\r\n", ch);
    return;
     }
  if (GET_GOLD(ch) <= 49999) {
   send_to_char("&15You do not have enough money to ensure you will\r\nkeep your body in the afterlife.&00\r\n", ch);
   return;
  }
  if (GET_GOLD(ch) >= 50000) {
   send_to_char("&15After praying over your money, the gods accept the sacrifice.\r\nThe money disappears in a cloud of smoke. Smiling afterwards, you\r\ndraw your knife and stab yourself in the gut. You slowly bleed to\r\ndeath as you fade from this life.\r\n", ch); 
   GET_GOLD(ch) -= 50000;
   sprintf(buf2, "&16[&09SUICIDE&16] &14%s &15dies, having commited suicide.&00\r\n", GET_NAME(ch));
   send_to_all(buf2);
   char_from_room(ch);
   char_to_room(ch, r_death_start_room);
   SET_BIT(CLN_FLAGS(ch), CLN_Death);
   GET_DTIMER(ch) = 3600;
   GET_POS(ch) = POS_STANDING;
   look_at_room(ch, 0);
   return;
  }
}
/* For trading truth points(quest points, bonus points, whatever you wanna make them)
*/
ACMD(do_trade)
{
  struct char_data *victim;
  int value = 0;
  *buf = '\0';
  *buf1 = '\0';
  *buf2 = '\0';

  half_chop(argument, buf, buf1);
  value = atoi(buf1);  
  if (!*buf) {
   send_to_char("Who do you wish to trade Truth Points with?\r\n", ch);
   return;
  }
  if (!(victim = get_char_room_vis(ch, buf))) {
      send_to_char("Trade with who?\r\n", ch);
      return;
  }
  if (victim == ch) {
   send_to_char("You do not need to trade with yourself...\r\n", ch);
   return;
  }
  if (!*buf1) {
   send_to_char("You need to specify an amount to trade.\r\n", ch);
   return;
  }
  if (GET_ALIGNMENT(ch) < value) {
     send_to_char("You do not have that many Truth Points!", ch);
     return;
   }
  if (value <= 0) {
    send_to_char("You must trade at least 1 tp, are you mad?", ch);
    return;
  }
  if (GET_ALIGNMENT(ch) >= value) {
   sprintf(buf2, "&16[&10TP&16] &14%s &15has traded &09%s &12%d &15Truth Points&00\r\n", GET_NAME(ch), GET_NAME(victim), value);
   send_to_all(buf2);
   GET_ALIGNMENT(ch) -= value;
   GET_ALIGNMENT(victim) += value;
    if (GET_ALIGNMENT(ch) < 0) {
     GET_ALIGNMENT(ch) = 0;
    }
   return;
  }
}
/* For changing password */
ACMD(do_password)
{

  *buf = '\0';
  *buf1 = '\0';
  *buf2 = '\0';
  one_argument(argument, arg);
  
   if (IS_NPC(ch)) {
     send_to_char("Mobs do not HAVE passwords you crazy digital being.\r\n", ch);
     return;
   }
   if (!*arg) {
     sprintf(buf, "&15Your current password is &16[&11%s&16]&00\r\n", GET_PASSWD(ch));
     send_to_char(buf, ch);
     return;
    }
  else if (GET_LEVEL(ch) >= 2 && !IS_NPC(ch)) {
   strncpy(GET_PASSWD(ch), CRYPT(arg, GET_NAME(ch)), MAX_PWD_LENGTH);
   *(GET_PASSWD(ch) + MAX_PWD_LENGTH) = '\0';
   sprintf(buf, "&15Password changed to &16[&11%s&16]&00", GET_PASSWD(ch));
   send_to_char(buf, ch);
  }
}
/* For bountying players */
ACMD(do_bounty)
{
  struct char_data *victim;
  struct descriptor_data *i;
  *buf = '\0';
  *buf1 = '\0';
  *buf2 = '\0';

    one_argument(argument, arg);

    if (!*arg) {
      send_to_char("Who is it that you wish to place a bounty on?\r\n", ch);
      return;
    }
   if (PRF_FLAGGED(ch, PRF_NOGRATZ)) {
       send_to_char("&15You are in hell, no bounty for you!&00\r\n", ch);
       return;
      }
   if (IS_NPC(ch)) {
     send_to_char("You are a mob, get real.\r\n", ch);
     return;
    }
    for (i = descriptor_list; i; i = i->next) {
      if (!i->connected && i->character && i->character != ch) {
        victim = i->character;
        if (!(victim = get_char_vis(ch, arg))) {
          send_to_char(NOPERSON, ch);
          return;
        }
        if (victim == ch) {
          send_to_char("You want to place a bounty on yourself? Nah.\r\n", ch);
          return;
        }
        if (GET_LEVEL(victim) >= LVL_IMMORT) {
          send_to_char("Let's just call that person 'priviledged', okay?\r\n", ch);
          return;
        }
        if (IS_NPC(victim)) {
          send_to_char("Not on mobs!", ch);
          return;
        }
        if (GET_MAX_HIT(victim) <= 4999999 && !IS_NPC(ch)) {
          send_to_char("You can't place bounties on players under power"
                       "level of 5mil.\r\n", ch);
          return;
        }
        if (GET_MAX_HIT(ch) <= 4999999 && !IS_NPC(ch)) {
          send_to_char("You can't place bounties on players when under power"
                       "level of 5mil.\r\n", ch);
          return;
        }
        if (GET_GOLD(ch) < 1000000) {
          send_to_char("You do not have the funds to place a bounty upon them.\r\n"
                       "The cost to place a bounty is 1,000,000 gold.\r\n", ch);
          return;
        }
        if (PLR_FLAGGED(victim, PLR_icer)) {
          send_to_char("That person already has a bounty on them.\r\n", ch);
          return;
        } else
          SET_BIT(PLR_FLAGS(victim), PLR_icer);
          GET_GOLD(ch) = GET_GOLD(ch) - 1000000;
          send_to_char("You pay the 1,000,000 gold to place the bounty.\r\n", ch);
          send_to_char("A bounty has been placed upon your head - watch your "
                       "back!\r\n", victim);
          sprintf (buf, "\r\n&14BOUNTY&11::&15 A bounty has been placed upon &09%s&15's "
                        "life by &12%s&15!\r\n", GET_NAME(victim), GET_NAME(ch));
          send_to_all(buf);
          return;
       }
     }
   return;
}


/* Quote channel */
ACMD(do_quote)
{
   struct descriptor_data *pt;
    skip_spaces(&argument);
    delete_doubledollar(argument);
    DYN_DEFINE;
    DYN_CREATE;
    *dynbuf = 0;

        for (pt = descriptor_list; pt; pt = pt->next){
                if (STATE(pt) == CON_PLAYING && pt->character && !IS_NPC(pt->character)){
              if (!*argument) {
              send_to_char("What do you want to say on the quote channel???\r\n", ch);
              return;
              }
              if (GET_MAX_HIT(ch) <= 999) {
              send_to_char("You must be at least 1k powerlevel to use this channel.", ch);
              return;
              }
              if (ROOM_FLAGGED(ch->in_room, ROOM_SOUNDPROOF)) {
               send_to_char("The walls absorb your words!", ch);
               return;
              }
              if (PLR_FLAGGED(ch, PLR_NOSHOUT)) {
               send_to_char("You can't use this channel when muted!\r\n", ch);
               return;
              }
                if (GET_ADD(ch) >= 5 && GET_LEVEL(ch) <= 999999) {
                 sprintf(buf2, "&16[&14FROZEN&16] &12%s &15has been frozen for spamming, what a dumbass&00.\r\n", GET_NAME(ch));
                 send_to_all(buf2);
                 SET_BIT(PLR_FLAGS(ch), PLR_FROZEN);
                 GET_FREEZE_LEV(ch) = 1000000;
                 GET_ADD(ch) = 0;
                 return;
                }
              else {
               sprintf(buf, "&15%s &16(&10Quote&16)&00&07's, '&15%s&00&07'&00\r\n", GET_NAME(ch), argument);
               if (!ROOM_FLAGGED(pt->character->in_room, ROOM_SOUNDPROOF) && GET_NAME(pt->character) != GET_NAME(ch)) {
                send_to_char(buf, pt->character);
               }
              }

   }
  }
               sprintf(buf1, "&15You &16(&10Quote&16)&00&07, '&15%s&00&07'&00\r\n", argument);
               send_to_char(buf1, ch);
            if (GET_LEVEL(ch) <= 999999) {
               GET_ADD(ch) += 1;
            }

}
/* Roleplay channel */
ACMD(do_roleplay)
{
   struct descriptor_data *pt;
    skip_spaces(&argument);
    delete_doubledollar(argument);
  *buf = '\0';
  *buf1 = '\0';
  *buf2 = '\0';
        for (pt = descriptor_list; pt; pt = pt->next){
                if (STATE(pt) == CON_PLAYING && pt->character && !IS_NPC(pt->character)){
              if (!*argument) {
              send_to_char("What do you want to say on your race channel???\r\n", ch);
              return;
              }
              if (GET_MAX_HIT(ch) <= 999) {
              send_to_char("You must be at least 1k powerlevel to use this channel.", ch);
              return;
              }
              if (ROOM_FLAGGED(ch->in_room, ROOM_SOUNDPROOF)) {
               send_to_char("The walls absorb your words!", ch);
               return;
              }
              if (PLR_FLAGGED(ch, PLR_NOSHOUT)) {
               send_to_char("You can't use this channel when muted!\r\n", ch);
               return;
              }
              if (!PRF_FLAGGED(ch, PRF_QUEST)) {
               send_to_char("You need to type rp to join the channel first!", ch);
               return;
              }
              if (PRF_FLAGGED(ch, PRF_NOGOSS)) {
               send_to_char("You have no roleplay turned on!", ch);
               return;
              }
              else {
               sprintf(buf, "&15%s &16(&14Roleplay&16)&00&07's, '&15%s&00&07'&00\r\n", GET_NAME(ch), argument);
               if (!ROOM_FLAGGED(pt->character->in_room, ROOM_SOUNDPROOF) && PRF_FLAGGED(pt->character, PRF_QUEST) && !PRF_FLAGGED(pt->character, PRF_NOGOSS) && GET_NAME(pt->character) != GET_NAME(ch)) {
                send_to_char(buf, pt->character);
               }
              }

   }
  }
               sprintf(buf1, "&15You &16(&14Roleplay&16)&00&07's, '&15%s&00&07'&00\r\n", argument);
               send_to_char(buf1, ch);

}
/* Race channel */
ACMD(do_race)
{
   struct descriptor_data *pt;
    skip_spaces(&argument);
    delete_doubledollar(argument);
  *buf = '\0';
  *buf1 = '\0';
  *buf2 = '\0';
        for (pt = descriptor_list; pt; pt = pt->next){
                if (STATE(pt) == CON_PLAYING && pt->character && !IS_NPC(pt->character)){
              if (!*argument) {
              send_to_char("What do you want to say on your race channel???\r\n", ch);
              return;
              }
              if (GET_MAX_HIT(ch) <= 999) {
              send_to_char("You must be at least 1k powerlevel to use this channel.", ch);
              return;
              }
              if (ROOM_FLAGGED(ch->in_room, ROOM_SOUNDPROOF)) {
               send_to_char("The walls absorb your words!", ch);
               return;
              }
              if (PLR_FLAGGED(ch, PLR_NOSHOUT)) {
               send_to_char("You can't use this channel when muted!\r\n", ch);
               return;
              }
                if (GET_ADD(ch) >= 5  && GET_LEVEL(ch) <= 999999) {
                sprintf(buf2, "&16[&14FROZEN&16] &12%s &15has been frozen for spamming, what a dumbass&00.\r\n", GET_NAME(ch));
                 send_to_all(buf2);
                 SET_BIT(PLR_FLAGS(ch), PLR_FROZEN);
                 GET_FREEZE_LEV(ch) = 1000000;
                 GET_ADD(ch) = 0;
                 return;
                }
              else {
               sprintf(buf, "&14%s &16(&09race&16)&00&07's, '&15%s&00&07'&00\r\n", GET_NAME(ch), argument);
               if (!ROOM_FLAGGED(pt->character->in_room, ROOM_SOUNDPROOF) && GET_CLASS(pt->character) == GET_CLASS(ch) && GET_NAME(pt->character) != GET_NAME(ch)) {
                send_to_char(buf, pt->character);
               }
              }

   }
  }
               sprintf(buf1, "&15You &16(&09race&16)&00&07's, '&15%s&00&07'&00\r\n", argument);
               send_to_char(buf1, ch);
   if (GET_LEVEL(ch) <= 999999) {
    GET_ADD(ch) += 1;
   }
}
/* Clan Channel, requires scouter clan scouter */
ACMD(do_clan)
{
   struct descriptor_data *pt;
    skip_spaces(&argument);
    delete_doubledollar(argument);
  *buf = '\0';
  *buf1 = '\0';
  *buf2 = '\0';
        for (pt = descriptor_list; pt; pt = pt->next){
                if (STATE(pt) == CON_PLAYING && pt->character && !IS_NPC(pt->character)){
             if (GET_CLAN(ch) <= 0) {
              send_to_char("You do not have a clan scouter\r\n", ch);
              return;
             }
             if (!*argument) {
              send_to_char("What do you want to say on your clan channel???\r\n", ch);
              return;
              }
                if (GET_ADD(ch) >= 5  && GET_LEVEL(ch) <= 999999) {
                 sprintf(buf2, "&16[&14FROZEN&16] &12%s &15has been frozen for spamming, what a dumbass&00.\r\n", GET_NAME(ch));
                 send_to_all(buf2);
                 SET_BIT(PLR_FLAGS(ch), PLR_FROZEN);
                 GET_FREEZE_LEV(ch) = 1000000;
                 GET_ADD(ch) = 0;
                 return;
                }
             else {
               sprintf(buf, "&14%s &16(&12clan&16)&00&07's, '&10%s&00&07'&00\r\n", GET_NAME(ch), argument);
               if (GET_CLAN(pt->character) == GET_CLAN(ch) && GET_NAME(pt->character) != GET_NAME(ch)) {
                send_to_char(buf, pt->character);
               }
              }
             
   } 
  }
               sprintf(buf1, "&15You &16(&12clan&16)&00&07's, '&10%s&00&07'&00\r\n", argument);
               send_to_char(buf1, ch);
  if (GET_LEVEL(ch) <= 999999) {
   GET_ADD(ch) += 1;
  }
}
/* Scouting someone's power, more efficient than stock method */
ACMD(do_scouter) {

  struct char_data * vict;
  one_argument(argument, arg);
  char maxhit[50], maxmana[50], hit[50], mana[50];
  
  *buf = '\0';
  *buf1 = '\0';
  *buf2 = '\0';
  if (!GET_EQ(ch, WEAR_SHIELD)) {
    send_to_char("You need to wear a scouter to scout someone's power.\r\n", ch);
    return;
  }

  if (!(vict = get_char_room_vis(ch, arg))) {
      send_to_char("Scout who's power?\r\n", ch);
      return;
    }
  if (IS_ANDROID(vict)) {
   act("Your scouter returns no information on $N.", FALSE, ch, 0, vict, TO_CHAR);
   act("$n tries to scout your power.", FALSE, ch, 0, vict, TO_VICT);
   act("$n tries to scout $N's power and fails.", FALSE, ch, 0, vict, TO_NOTVICT);
    }
  else {
    commafmt(maxhit, sizeof(maxhit), GET_MAX_HIT(vict));
    commafmt(maxmana, sizeof(maxmana), GET_MAX_MANA(vict));
    commafmt(hit, sizeof(hit), GET_HIT(vict));
    commafmt(mana, sizeof(mana), GET_MANA(vict));
act("&10 _____________________     &00", FALSE, ch, 0, vict, TO_CHAR);
act("&10//&20                    &00", FALSE, ch, 0, vict, TO_CHAR);
act("&10|]&20                    &00", FALSE, ch, 0, vict, TO_CHAR);
act("&10|]&20                    &00", FALSE, ch, 0, vict, TO_CHAR);
act("&10|]&20&09Loading&16...       &10   &00", FALSE, ch, 0, vict, TO_CHAR);
act("&10|]&20                    &00", FALSE, ch, 0, vict, TO_CHAR);
act("&10|]&20____________________&00  ", FALSE, ch, 0, vict, TO_CHAR);
act("&09...................... []&00", FALSE, ch, 0, vict, TO_CHAR);
    sprintf(buf, "&10PL&15: &11%s&15/&11%s&00\r\n", hit, maxhit);
     send_to_char(buf, ch);
    sprintf(buf, "&10Ki&15: &11%s&15/&11%s&00\r\n", mana, maxmana);
     send_to_char(buf, ch);
   if (!IS_NPC(vict)) {
    sprintf(buf, "&10Str&15: &11%d&15&00\r\n", GET_STR(vict));
     send_to_char(buf, ch);
    sprintf(buf, "&10Con&15: &11%d&15&00\r\n", GET_CON(vict));
     send_to_char(buf, ch);
    sprintf(buf, "&10Int&15: &11%d&15&00\r\n", GET_INT(vict));
     send_to_char(buf, ch);
    sprintf(buf, "&10Wis&15: &11%d&15&00\r\n", GET_WIS(vict));
     send_to_char(buf, ch);
    sprintf(buf, "&10Dex&15: &11%d&15&00\r\n", GET_DEX(vict));
     send_to_char(buf, ch);
    sprintf(buf, "&10Speed&15: &11%d&15&00\r\n", GET_RAGE(vict));
     send_to_char(buf, ch);
    }
   act("&14$n&15 points their scouter at you, and pushes a button.&00\r\n", FALSE, ch, 0, vict, TO_VICT);
   act("&14$n&15 points their scouter at &09$N&15 and pushes a button.&00\r\n", FALSE, ch, 0, vict, TO_NOTVICT);
   WAIT_STATE(ch, PULSE_VIOLENCE * .5);
 }
}
/* Kanassan transes */
ACMD(do_skanassan)
{

int MAX_MANA = 0, MAX_HIT = 0;
  *buf = '\0';
  *buf1 = '\0';
  *buf2 = '\0';
    one_argument(argument, arg);
    WAIT_STATE(ch, PULSE_VIOLENCE * .5);
    if ((!IS_KANASSAN(ch)))
    {
      act("&15You're not a Kanassan&11!&00", TRUE, ch, 0, 0, TO_CHAR);
      return;
    }
   else if (!*argument)
    {
act("&10o&12---------------&11[&14Super Kanassan &09Forms&11]&12---------------&10o&00", TRUE, ch, 0, 0, TO_CHAR);
act("    &15Stage     Powerlevel Req.", TRUE, ch, 0, 0, TO_CHAR);
act("    &10Skanassan first     &121000000&00", TRUE, ch, 0, 0, TO_CHAR);
act("    &10Skanassan second   &1222000000&00", TRUE, ch, 0, 0, TO_CHAR);
act("    &10All PL Req. go off base pl.&00", TRUE, ch, 0, 0, TO_CHAR);
act("&10o&12---------------&11[&14Super Kanassan &09forms&11]&12---------------&10o&00", TRUE, ch, 0, 0, TO_CHAR);
  return;
}

if (!str_cmp(arg,"second") && !PLR_FLAGGED(ch, PLR_trans1)) {
  act("&15You can't go straight to that form!&00", TRUE, ch, 0, 0, TO_CHAR);
  return;
  }
/*-------------------------------------------------------------------------------------*/
/*----------------------------------  Reverting  --------------------------------------*/

 if (!str_cmp(arg, "revert") && PLR_FLAGGED(ch, PLR_trans2)) {
     REMOVE_BIT(PLR_FLAGS(ch), PLR_trans2);
     REMOVE_BIT(PLR_FLAGS(ch), PLR_trans1);

  MAX_HIT = number(34000000, 34000000);
  MAX_MANA = number(34000000, 34000000);

  GET_MAX_HIT(ch) = GET_MAX_HIT(ch) - MAX_HIT;
  GET_MAX_MANA(ch) = GET_MAX_MANA(ch) - MAX_MANA;
  act("&15$n reverts from $s form of &16SKanassan&15.&00", TRUE, ch, 0, 0, TO_ROOM);
  act("&15You revert from your form of &16SKanassan&15.&00", TRUE, ch, 0, 0, TO_CHAR);
  return;
  }

 if (!str_cmp(arg, "revert") && PLR_FLAGGED(ch, PLR_trans1)) {
     REMOVE_BIT(PLR_FLAGS(ch), PLR_trans1);

  MAX_HIT = number(4000000, 4000000);
  MAX_MANA = number(4000000, 4000000);

  GET_MAX_HIT(ch) = GET_MAX_HIT(ch) - MAX_HIT;
  GET_MAX_MANA(ch) = GET_MAX_MANA(ch) - MAX_MANA;

  act("&15$n reverts from $s form of &14SKanassan&15.&00", TRUE, ch, 0, 0, TO_ROOM);
  act("&15You revert from your form of &14SKanassan&15.&00", TRUE, ch, 0, 0, TO_CHAR);
  return;
  }
if (!str_cmp(arg,"firzt") && PLR_FLAGGED(ch, PLR_trans1)) {
  send_to_char("&15You are already in that form!&00\r\n", ch);
  return;
  }
  if (!str_cmp(arg,"first") && PLR_FLAGGED(ch, PLR_trans1)) {
   act("&15Your already in that form of &16SKanassan!&00", TRUE, ch, 0, 0, TO_CHAR);
   return;
  }
if (!str_cmp(arg,"first") && GET_MAX_HIT(ch) <= 999999) {
  act("&15You do not have the power to attain that form of &16SKanassan!&00", TRUE, ch, 0, 0, TO_CHAR);
  return;
  }

 if (!str_cmp(arg,"first") && GET_MAX_HIT(ch) > 999999) {
     SET_BIT(PLR_FLAGS(ch), PLR_trans1);

  MAX_HIT = number(4000000, 4000000);
  MAX_MANA = number(4000000, 4000000);

  GET_MAX_HIT(ch) = GET_MAX_HIT(ch) + MAX_HIT;
  GET_MAX_MANA(ch) = GET_MAX_MANA(ch) + MAX_MANA;

  act("&15The area around you begins to &00&03q&16u&15a&00&03k&16e&15, the &00&02e&10a&11r&00&03t&00&02h&15 cracking beneath your feet. You feel your &11a&00&03u&15r&00a&15 explode from your body as if it were part of you. Chunks of &00&03s&16t&15o&00n&03e&15 and rocks float into the air, surrounding your body as a great rushing as heard. Your &14s&00&06c&16al&00&06e&14s&15 begin to grow hard, lengthening and turning a &12d&00&04a&16r&15k &00&02g&10r&15e&10e&00&02n&15 shade. &14W&12a&00&06t&12e&14r&15 begins exploding from the cracks around you as your aura turns into a hazy teal color. You have achieved &11S&00&03u&15p&00&03e&11r &12K&00&04a&00&06n&14as&00&06s&00&04a&12n &16F&15i&00r&14s&00&06t&15!&00", FALSE, ch, 0, 0, TO_CHAR);
  act("&15The area around you begins to &00&03q&16u&15a&00&03k&16e&15, the &00&02e&10a&11r&00&03t&00&02h&15 cracking beneath your feet. Chunks of &00&03s&16t&15o&00n&03e&15 and rocks float into the air, surrounding your body as a great rushing as heard. $n&15's &14s&00&06c&16al&00&06e&14s&15 begin to grow hard, lengthening and turning a &12d&00&04a&16r&15k &00&02g&10r&15e&10e&00&02n&15 shade. &14W&12a&00&06t&12e&14r&15 begins exploding from the cracks around $n&15's as thier aura turns into a hazy teal color. They have achieved &11S&00&03u&15p&00&03e&11r &12K&00&04a&00&06n&14as&00&06s&00&04a&12n &16F&15i&00r&14s&00&06t&15!&00", FALSE, ch, 0, 0, TO_ROOM);
  }

 if (!str_cmp(arg,"second") && PLR_FLAGGED(ch, PLR_trans2)) {
  act("&15Your already in that form of &16SKanassan!&00", TRUE, ch, 0, 0, TO_CHAR);
  return;
  }
if (!str_cmp(arg,"second") && GET_MAX_HIT(ch) - 1000000 <= 24000000) {
  act("&15You do nthe power to attain that form of &16SKanassan!&00", TRUE, ch, 0, 0, TO_CHAR);
  return;
  }

 if (!str_cmp(arg,"second") && GET_MAX_HIT(ch) - 1000000 >= 24000000) {
     SET_BIT(PLR_FLAGS(ch), PLR_trans2);

  MAX_HIT = number(30000000, 30000000);
  MAX_MANA = number(30000

Showing the first 100 KB of 424.3 KB. Download the archive for the full file.

Site Stats

Snippets: 1791
Codebases: 571