rot_wiz.c
demise/src/rot_wiz.c · 70.7 KB
From the archive dodbackup-final.tar.gz
Download the archive « Back to the archive contents
/***************************************************************************
* Original Diku Mud copyright (C) 1990, 1991 by Sebastian Hammer, *
* Michael Seifert, Hans Henrik St{rfeldt, Tom Madsen, and Katja Nyboe. *
* *
* Merc Diku Mud improvments copyright (C) 1992, 1993 by Michael *
* Chastain, Michael Quan, and Mitchell Tse. *
* *
* In order to use any part of this Merc Diku Mud, you must comply with *
* both the original Diku license in 'license.doc' as well the Merc *
* license in 'license.txt'. In particular, you may not remove either of *
* these copyright notices. *
* *
* Much time and thought has gone into this software and you are *
* benefitting. We hope that you share your changes too. What goes *
* around, comes around. *
***************************************************************************/
/***************************************************************************
* God Wars Mud improvements copyright (C) 1994, 1995, 1996 by Richard *
* Woolcock. This mud is NOT to be copied in whole or in part, or to be *
* run without the permission of Richard Woolcock. Nobody else has *
* permission to authorise the use of this code. *
***************************************************************************/
#if defined(macintosh)
#include <types.h>
#else
#include <sys/types.h>
#endif
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include "merc.h"
void
do_pset (CHAR_DATA * ch, char *argument)
{
char arg1[MIL];
char arg2[MIL];
char arg3[MIL];
char arg4[MIL];
char buf[MSL];
CHAR_DATA *victim;
int value, i = 0;
int maxspl;
sprintf (buf, "%s: Pset %s", ch->name, argument);
if (ch->level < NO_WATCH)
do_watching (ch, buf);
smash_tilde (argument);
argument = one_argument (argument, arg1);
argument = one_argument (argument, arg2);
argument = one_argument (argument, arg3);
strcpy (arg4, argument);
if (arg1[0] == '\0' || arg2[0] == '\0' || arg3[0] == '\0')
{
send_to_char ("Syntax: pset <victim> <area> <field> <value>\n\r", ch);
send_to_char ("\n\r", ch);
send_to_char ("Area being one of:\n\r", ch);
send_to_char (" credits weapon immune beast dps +dps -dps status\n\r",
ch);
send_to_char (" water fire spirit earth air class spellall\n\r", ch);
send_to_char (" mongoose crane crab viper bull mantis\n\r", ch);
send_to_char (" dragon tiger monkey swallow stanceall\n\r", ch);
send_to_char (" dragonage dragonpoints dragoncolor fullsphere\n\r",
ch);
send_to_char (" runes creditcard crystal pkills pdeaths\n\r", ch);
send_to_char (" sdeaths mdeaths mkills mastery qrequest\n\r", ch);
send_to_char (" caste kdisc ktough mstatus\n\r", ch);
send_to_char ("\n\r", ch);
send_to_char ("Field being one of:\n\r", ch);
send_to_char ("Weapon: slice stab slash whip claw blast \n\r", ch);
send_to_char ("Weapon: pound crush grep bite pierce suck \n\r", ch);
send_to_char ("Immune: slash stab smash animal misc charm\n\r", ch);
send_to_char ("Immune: heat cold acid summon voodoo \n\r", ch);
send_to_char ("Immune: hurl backstab shielded kick disarm\n\r", ch);
send_to_char ("Immune: steal sleep drain sunlight all\n\r", ch);
send_to_char ("Class: Vampire Werewolf Demon Monk Air\n\r", ch);
send_to_char (" Fire Water Earth Spirit Abomination\n\r", ch);
send_to_char (" Skindancer Psionic Bsd Nephandi\n\r", ch);
send_to_char (" Gypsy Ninja Rakshasa Kahn\n\r", ch);
send_to_char (" Efreti Shidoshi Ikiryu Saint\n\r", ch);
send_to_char (" Wishenchanter Cevoyia Gaiainq\n\r", ch);
send_to_char (" Aberration Ghoul Highlander Djinn\n\r", ch);
send_to_char (" Wraith Angel Betrayer Krenshar\n\r", ch);
send_to_char (" Planarsohei Takarra Kensai Dragon\n\r", ch);
send_to_char (" Tigrasha ShaAhoul Defyler Draconian\n\r", ch);
send_to_char (" Necromancer Balehound Paragon Grimalkin\n\r",
ch);
send_to_char (" newww", ch);
return;
}
if ((victim = get_pc_world (ch, arg1)) == NULL)
{
send_to_char ("They aren't here.\n\r", ch);
return;
}
/*
* Snarf the value (which need not be numeric).
*/
value = is_number (arg3) ? atoi (arg3) : -1;
/*
* Set something.
*/
if (!str_cmp (arg2, "roommobvnum"))
{
victim->in_room->mobvnum = value;
stc ("Done!\n\r", ch);
stc ("Done!\n\r", victim);
return;
}
if (!str_cmp (arg2, "soulblast"))
{
victim->pcdata->soulblast = value;
stc ("Done!\n\r", ch);
stc ("Done!\n\r", victim);
return;
}
if (!str_cmp (arg2, "shadow"))
{
if (!IS_WRAITH (victim))
{
stc ("Only on wraiths!\n\r", ch);
return;
}
victim->pcdata->shadow = value;
stc ("Done!\n\r", ch);
stc ("Done!\n\r", victim);
return;
}
if (!str_cmp (arg2, "fullsphere"))
{
if ((!IS_MAGE (victim) || IS_NPC (victim)) && !IS_IMMORTAL (ch))
{
send_to_char ("Sorry, only on mage chars.\n\r", ch);
return;
}
for (i = 0; i < 9; i++)
{
victim->spheres[i] = value;
}
send_to_char ("Their spheres have been set.\n\r", ch);
send_to_char ("You now have all spheres.\n\r", ch);
sprintf (buf, "%s Pset: %s %d", ch->name, arg2, value);
phistlog (victim, buf);
return;
}
if (!str_cmp (arg2, "mstatus"))
{
if (strlen (victim->pcdata->marriage) < 3)
{
act ("$N is not even engaged to anyone.", ch, NULL, victim,
TO_CHAR);
return;
}
if (!str_cmp (arg3, "clear"))
{
REMOVE_BIT (victim->extra, EXTRA_MARRIED);
free_string (victim->pcdata->marriage);
victim->pcdata->marriage = str_dup ("");
act ("$N's marital status cleared.", ch, NULL, victim, TO_CHAR);
stc ("Your marital status has been cleared.", victim);
sprintf (buf, "%s Pset: %s %s", ch->name, arg2, arg3);
phistlog (victim, buf);
return;
}
else if (!str_cmp (arg3, "spouse"))
{
if (arg4[0] == '\0' || strlen (arg4) < 4)
{
stc ("Please give a name of over 4 letters.\n\r", ch);
return;
}
if (IS_SET (victim->extra, EXTRA_MARRIED))
{
sprintf (buf, "Your spouses name has been changed to %s.\n\r",
capitalize (arg4));
stc (buf, victim);
sprintf (buf, "You change $N's spouses name to %s.\n\r",
capitalize (arg4));
act (buf, ch, NULL, victim, TO_CHAR);
}
else
{
sprintf (buf,
"Your betrotheds name has been changed to %s.\n\r",
capitalize (arg4));
stc (buf, victim);
sprintf (buf, "You change $N's betrotheds name to %s.\n\r",
capitalize (arg4));
act (buf, ch, NULL, victim, TO_CHAR);
}
free_string (victim->pcdata->marriage);
victim->pcdata->marriage = str_dup (arg4);
sprintf (buf, "%s Pset: %s %s %s", ch->name, arg2, arg3,
capitalize (arg4));
phistlog (victim, buf);
return;
}
else
{
stc ("Clear, Spouse.\n\r", ch);
return;
}
return;
}
if (!str_cmp (arg2, "quality"))
{
if (!IS_NEWWW (victim) || IS_NPC (victim))
{
stc ("Only on newwws.\n\r", ch);
return;
}
if (value < 0 || value > 1000)
{
stc ("quality range is 0 to 1000.\n\r", ch);
return;
}
if (IS_JUDGE (ch))
{
victim->pcdata->tribes[QUAL_QPOINTS] = value;
sprintf (buf, "%s Pset: %s %s %d", ch->name, arg2, arg3, value);
phistlog (victim, buf);
send_to_char ("Ok.\n\r", ch);
return;
}
return;
}
if (!str_cmp (arg2, "kdisc"))
{
if (!IS_KENSAI (victim) || IS_NPC (victim))
{
stc ("Only on Kensais.\n\r", ch);
return;
}
if (value < 0 || value > 1000)
{
stc ("Discipline range is 0 to 1000.\n\r", ch);
return;
}
if (IS_JUDGE (ch))
{
victim->pcdata->kensaidisc = value;
sprintf (buf, "%s Pset: %s %s %d", ch->name, arg2, arg3, value);
phistlog (victim, buf);
send_to_char ("Ok.\n\r", ch);
return;
}
return;
}
if (!str_cmp (arg2, "ktough"))
{
if (!IS_KENSAI (victim) || IS_NPC (victim))
{
stc ("Only on Kensais.\n\r", ch);
return;
}
if (value < 0 || value > 1000)
{
stc ("Toughness range is 0 to 1000.\n\r", ch);
return;
}
if (IS_JUDGE (ch))
{
victim->pcdata->kensaitough = value;
sprintf (buf, "%s Pset: %s %s %d", ch->name, arg2, arg3, value);
phistlog (victim, buf);
send_to_char ("Ok.\n\r", ch);
return;
}
return;
}
if (!str_cmp (arg2, "creditcard"))
{
if (!str_cmp (arg3, "approve"))
{
stc ("You pre-approve them for a creditcard.\n\r", ch);
SET_BIT (victim->corbits, COR_CREDITCARD);
stc ("You have been pre-approved for a creditcard.\n\r", victim);
victim->pcdata->credit_timer = 0;
}
else if (!str_cmp (arg3, "cut"))
{
stc
("A Huge pair of scissors apears in the air and cuts up your Creditcard.\n\r",
victim);
stc ("You cut up their Creditcard.\n\r", ch);
REMOVE_BIT (victim->corbits, COR_CREDITCARD);
}
sprintf (buf, "%s Pset: %s %s", ch->name, arg2, arg3);
phistlog (victim, buf);
return;
}
if (!str_cmp (arg2, "mastery"))
{
if (!str_cmp (arg3, "remove"))
{
if (IS_SET (victim->evenmore, EM_CREATED))
{
REMOVE_BIT (victim->evenmore, EM_CREATED);
stc ("You have removed the mastery flag\n\r", ch);
stc ("You are able to obtain your mastery\n\r", victim);
}
else
{
stc ("They have yet to obtain a mastery item\n\r", ch);
return;
}
}
else
{
stc ("To reset a mastery syntax is mastery remove\n\r", ch);
return;
}
sprintf (buf, "%s Pset: %s %s", ch->name, arg2, arg3);
phistlog (victim, buf);
return;
}
if (!str_cmp (arg2, "caste"))
{
if (!str_cmp (arg3, "warrior"))
{
if (IS_DRAC_WARRIOR (victim))
{
stc ("They are already a Warrior Caste.\n\r", ch);
return;
}
victim->pcdata->cpowers[DRAC_COMBAT] = 0;
victim->pcdata->cpowers[DRAC_MAGIC] = 0;
victim->pcdata->cpowers[DRAC_STEALTH] = 0;
victim->pcdata->cpowers[DRAC_RELIGION] = 0;
victim->pcdata->cpowers[DRAC_PROF] = PROF_WARRIOR;
sprintf (buf, "%s is now a member of the %s Caste.\n\r",
victim->name, get_dprof2 (victim));
stc (buf, ch);
sprintf (buf, "You are now a member of the %s Caste.\n\r",
get_dprof2 (victim));
stc (buf, victim);
}
else if (!str_cmp (arg3, "warlock"))
{
if (IS_DRAC_MAGE (victim))
{
stc ("They are already a Mage Caste.\n\r", ch);
return;
}
victim->pcdata->cpowers[DRAC_COMBAT] = 0;
victim->pcdata->cpowers[DRAC_MAGIC] = 0;
victim->pcdata->cpowers[DRAC_STEALTH] = 0;
victim->pcdata->cpowers[DRAC_RELIGION] = 0;
victim->pcdata->cpowers[DRAC_PROF] = PROF_MAGE;
sprintf (buf, "%s is now a member of the %s Caste.\n\r",
victim->name, get_dprof2 (victim));
stc (buf, ch);
sprintf (buf, "You are now a member of the %s Caste.\n\r",
get_dprof2 (victim));
stc (buf, victim);
}
else if (!str_cmp (arg3, "scout"))
{
if (IS_DRAC_SCOUT (victim))
{
stc ("They are already a Scout Caste.\n\r", ch);
return;
}
victim->pcdata->cpowers[DRAC_COMBAT] = 0;
victim->pcdata->cpowers[DRAC_MAGIC] = 0;
victim->pcdata->cpowers[DRAC_STEALTH] = 0;
victim->pcdata->cpowers[DRAC_RELIGION] = 0;
victim->pcdata->cpowers[DRAC_PROF] = PROF_SCOUT;
sprintf (buf, "%s is now a member of the %s Caste.\n\r",
victim->name, get_dprof2 (victim));
stc (buf, ch);
sprintf (buf, "You are now a member of the %s Caste.\n\r",
get_dprof2 (victim));
stc (buf, victim);
}
else if (!str_cmp (arg3, "cleric"))
{
if (IS_DRAC_CLERIC (victim))
{
stc ("They are already a Cleric Caste.\n\r", ch);
return;
}
victim->pcdata->cpowers[DRAC_COMBAT] = 0;
victim->pcdata->cpowers[DRAC_MAGIC] = 0;
victim->pcdata->cpowers[DRAC_STEALTH] = 0;
victim->pcdata->cpowers[DRAC_RELIGION] = 0;
victim->pcdata->cpowers[DRAC_PROF] = PROF_CLERIC;
sprintf (buf, "%s is now a member of the %s Caste.\n\r",
victim->name, get_dprof2 (victim));
stc (buf, ch);
sprintf (buf, "You are now a member of the %s Caste.\n\r",
get_dprof2 (victim));
stc (buf, victim);
}
else if (!str_cmp (arg3, "none"))
{
if (IS_DRAC_NONE (victim))
{
stc ("They dont have a Caste.\n\r", ch);
return;
}
victim->pcdata->cpowers[DRAC_COMBAT] = 0;
victim->pcdata->cpowers[DRAC_MAGIC] = 0;
victim->pcdata->cpowers[DRAC_STEALTH] = 0;
victim->pcdata->cpowers[DRAC_RELIGION] = 0;
victim->pcdata->cpowers[DRAC_PROF] = PROF_NONE;
sprintf (buf, "%s is no longer a member of any Caste.\n\r",
victim->name);
stc (buf, ch);
sprintf (buf, "You are no longer a member of any Caste.\n\r");
stc (buf, victim);
}
sprintf (buf, "%s Pset: %s %s", ch->name, arg2, arg3);
phistlog (victim, buf);
return;
}
if (!str_cmp (arg2, "hybrid"))
{
int count = 0;
if (!str_cmp (arg3, "fix"))
{
if (IS_KENSAI (victim) || IS_DRAGON (victim))
{
if (!IS_SET (victim->corbits, COR_EVOLVED))
{
SET_BIT (victim->corbits, COR_EVOLVED);
count++;
}
if (!IS_SET (victim->corbits, COR_HYBRID))
{
SET_BIT (victim->corbits, COR_HYBRID);
count++;
}
if (count > 0)
{
stc ("You fixed this Evolved player\n\r", ch);
}
else
{
stc
("There is noting wrong with the hybrrid flags on that player.\n\r",
ch);
}
}
else if (!IS_SET (victim->corbits, COR_HYBRID))
{
SET_BIT (victim->corbits, COR_HYBRID);
stc ("You set the hybrid flag\n\r", ch);
}
else
{
stc ("They already have the hybrid flag\n\r", ch);
return;
}
}
else
{
stc ("Syntax is Pset <victim> hybrid fix.\n\r", ch);
return;
}
sprintf (buf, "%s Pset: %s %s", ch->name, arg2, arg3);
phistlog (victim, buf);
return;
}
if (!str_cmp (arg2, "qrequest"))
{
if (!str_cmp (arg3, "remove"))
{
if (IS_SET (victim->evenmore, EM_QUESTOR))
{
REMOVE_BIT (victim->evenmore, EM_QUESTOR);
stc ("You have removed the qrequest flag\n\r", ch);
stc ("You are able to obtain a new quest list\n\r", victim);
}
else
{
stc ("They have yet to get a quest list\n\r", ch);
return;
}
}
else
{
stc ("Syntax is Pset <victim> qrequest remove.\n\r", ch);
return;
}
sprintf (buf, "%s Pset: %s %s", ch->name, arg2, arg3);
phistlog (victim, buf);
return;
}
if (!str_cmp (arg2, "class"))
{
if (IS_NPC (victim))
{
send_to_char ("Not on NPC's.\n\r", ch);
return;
}
if (victim->class != CLASS_NONE)
{
send_to_char ("They already have a class.\n\r", ch);
return;
}
if (victim->level < LEVEL_AVATAR)
{
send_to_char ("You can only do this to avatars.\n\r", ch);
return;
}
// if (ch->level < LEVEL_JUDGE)
// {
// send_to_char ("Sorry, no can do...\n\r", ch);
// return;
// }
if (!str_cmp (arg3, "vampire"))
{
victim->class = CLASS_VAMPIRE;
victim->pcdata->cland[0] = -1;
victim->pcdata->cland[1] = -1;
victim->pcdata->cland[2] = -1;
sprintf (buf, "%s Pset: %s %s", ch->name, arg2, arg3);
phistlog (victim, buf);
send_to_char ("Ok.\n\r", ch);
send_to_char ("You are now the Master Vampire.\n\r", victim);
}
else if (!str_cmp (arg3, "cevoyia"))
{
victim->class = CLASS_CEVOYIA;
SET_BIT (victim->corbits, COR_HYBRID);
do_remove (victim, "all");
victim->pcdata->cland[0] = -1;
victim->pcdata->cland[1] = -1;
victim->pcdata->cland[2] = -1;
sprintf (buf, "%s Pset: %s %s", ch->name, arg2, arg3);
phistlog (victim, buf);
send_to_char ("Ok.\n\r", ch);
send_to_char ("You are now a Cevoyia.\n\r", victim);
}
else if (!str_cmp (arg3, "krenshar"))
{
victim->class = CLASS_KRENSHAR;
SET_BIT (victim->corbits, COR_HYBRID);
victim->pcdata->cland[0] = -1;
victim->pcdata->cland[1] = -1;
victim->pcdata->cland[2] = -1;
sprintf (buf, "%s Pset: %s %s", ch->name, arg2, arg3);
phistlog (victim, buf);
send_to_char ("Ok.\n\r", ch);
send_to_char ("You are now a Krenshar.\n\r", victim);
}
else if (!str_cmp (arg3, "gaiainq"))
{
victim->class = CLASS_GAIAINQ;
victim->alignment = 1000;
SET_BIT (victim->corbits, COR_HYBRID);
victim->pcdata->cland[0] = -1;
victim->pcdata->cland[1] = -1;
victim->pcdata->cland[2] = -1;
sprintf (buf, "%s Pset: %s %s", ch->name, arg2, arg3);
phistlog (victim, buf);
send_to_char ("Ok.\n\r", ch);
send_to_char ("You are now a Gaia Inquisitor.\n\r", victim);
}
else if (!str_cmp (arg3, "kahn"))
{
victim->class = CLASS_KAHN;
sprintf (buf, "%s Pset: %s %s", ch->name, arg2, arg3);
phistlog (victim, buf);
send_to_char ("Ok.\n\r", ch);
send_to_char ("You are now a Kahn.\n\r", victim);
}
else if (!str_cmp (arg3, "elf"))
{
victim->class = CLASS_ELF;
sprintf (buf, "%s Pset: %s %s", ch->name, arg2, arg3);
phistlog (victim, buf);
send_to_char ("Ok.\n\r", ch);
send_to_char ("You are now a Elf.\n\r", victim);
}
else if (!str_cmp (arg3, "djinn"))
{
victim->class = CLASS_DJINN;
sprintf (buf, "%s Pset: %s %s", ch->name, arg2, arg3);
phistlog (victim, buf);
send_to_char ("Ok.\n\r", ch);
send_to_char ("You are now a Djinn.\n\r", victim);
}
else if (!str_cmp (arg3, "aberration"))
{
victim->class = CLASS_ABERRATION;
SET_BIT (victim->corbits, COR_HYBRID);
sprintf (buf, "%s Pset: %s %s", ch->name, arg2, arg3);
phistlog (victim, buf);
send_to_char ("Ok.\n\r", ch);
send_to_char ("You are now an Aberration.\n\r", victim);
}
else if (!str_cmp (arg3, "takarra"))
{
victim->class = CLASS_TAKARRA;
SET_BIT (victim->corbits, COR_HYBRID);
do_remove (victim, "all");
sprintf (buf, "%s Pset: %s %s", ch->name, arg2, arg3);
phistlog (victim, buf);
send_to_char ("Ok.\n\r", ch);
send_to_char ("You are now a Takarra.\n\r", victim);
}
else if (!str_cmp (arg3, "wraith"))
{
victim->class = CLASS_WRAITH;
sprintf (buf, "%s Pset: %s %s", ch->name, arg2, arg3);
phistlog (victim, buf);
send_to_char ("Ok.\n\r", ch);
SET_BIT (victim->nymbits, NYM_DEATHPLANE);
SET_BIT (victim->nymbits, NYM_DEATHSIGHT);
victim->pcdata->shadow = 20;
send_to_char ("You are now a Wraith.\n\r", victim);
}
else if (!str_cmp (arg3, "necromancer"))
{
victim->class = CLASS_NECROMANCER;
if (victim->level < LEVEL_MAGE)
{
victim->level = LEVEL_MAGE;
victim->trust = LEVEL_MAGE;
}
SET_BIT (victim->corbits, COR_HYBRID);
victim->pcdata->runes[0] = YELLOW_MAGIC;
victim->pcdata->runes[1] = 2047;
victim->pcdata->runes[2] = 1023;
victim->pcdata->runes[3] = 15;
victim->pcdata->cland[0] = -1;
victim->pcdata->cland[1] = -1;
victim->pcdata->cland[2] = -1;
sprintf (buf, "%s Pset: %s %s", ch->name, arg2, arg3);
phistlog (victim, buf);
send_to_char ("Ok.\n\r", ch);
SET_BIT (victim->nymbits, NYM_DEATHPLANE);
SET_BIT (victim->nymbits, NYM_DEATHSIGHT);
victim->pcdata->shadow = 20;
send_to_char ("You are now a Necromancer.\n\r", victim);
}
else if (!str_cmp (arg3, "dragon"))
{
victim->class = CLASS_DRAGON;
victim->pcdata->dpowers[DRAGON_AGE] = 1;
victim->pcdata->dpowers[DRAGON_COLOR] = 11;
victim->pcdata->cpowers[DRAC_PROF] = PROF_NONE;
victim->pcdata->cpowers[DRAC_RANK] = 1;
SET_BIT (victim->corbits, COR_HYBRID);
SET_BIT (victim->corbits, COR_EVOLVED);
sprintf (buf, "%s Pset: %s %s", ch->name, arg2, arg3);
phistlog (victim, buf);
send_to_char ("Ok.\n\r", ch);
send_to_char ("You are now a Dragon.\n\r", victim);
}
else if (!str_cmp (arg3, "draconian"))
{
victim->class = CLASS_DRACONIAN;
victim->pcdata->dpowers[DRAGON_AGE] = 1;
victim->pcdata->dpowers[DRAGON_COLOR] = number_range (1, 10);
victim->pcdata->cpowers[DRAC_PROF] = PROF_NONE;
victim->pcdata->cpowers[DRAC_RANK] = 1;
sprintf (buf, "%s Pset: %s %s", ch->name, arg2, arg3);
phistlog (victim, buf);
send_to_char ("Ok.\n\r", ch);
send_to_char ("You are now a Draconian.\n\r", victim);
}
else if (!str_cmp (arg3, "newww"))
{
victim->class = CLASS_NEWWW;
// victim->pcdata->tribes[QUAL_QPOINTS] = 20;
sprintf (buf, "%s Pset: %s %s", ch->name, arg2, arg3);
phistlog (victim, buf);
send_to_char ("Ok.\n\r", ch);
send_to_char ("You are now a new Werewolf.\n\r", victim);
}
else if (!str_cmp (arg3, "werewolf"))
{
victim->class = CLASS_WEREWOLF;
victim->pcdata->cland[0] = -1;
victim->pcdata->cland[1] = -1;
victim->pcdata->cland[2] = -1;
sprintf (buf, "%s Pset: %s %s", ch->name, arg2, arg3);
phistlog (victim, buf);
send_to_char ("Ok.\n\r", ch);
send_to_char ("You are now the Master Werewolf.\n\r", victim);
}
else if (!str_cmp (arg3, "demon"))
{
victim->class = CLASS_DEMON;
victim->alignment = -1000;
sprintf (buf, "%s Pset: %s %s", ch->name, arg2, arg3);
phistlog (victim, buf);
send_to_char ("Ok.\n\r", ch);
send_to_char ("You are now a Demon.\n\r", victim);
}
else if (!str_cmp (arg3, "betrayer"))
{
victim->class = CLASS_BETRAYER;
victim->alignment = 0;
SET_BIT (victim->corbits, COR_HYBRID);
sprintf (buf, "%s Pset: %s %s", ch->name, arg2, arg3);
phistlog (victim, buf);
send_to_char ("Ok.\n\r", ch);
send_to_char ("You are now a Betrayer.\n\r", victim);
}
else if (!str_cmp (arg3, "angel"))
{
victim->class = CLASS_ANGELW;
victim->alignment = 1000;
sprintf (buf, "%s Pset: %s %s", ch->name, arg2, arg3);
phistlog (victim, buf);
send_to_char ("Ok.\n\r", ch);
send_to_char ("You are now an Angel.\n\r", victim);
}
else if (!str_cmp (arg3, "tigrasha"))
{
victim->class = CLASS_TIGRASHA;
victim->alignment = 1000;
do_remove (victim, "all");
SET_BIT (victim->corbits, COR_HYBRID);
sprintf (buf, "%s Pset: %s %s", ch->name, arg2, arg3);
phistlog (victim, buf);
send_to_char ("Ok.\n\r", ch);
send_to_char ("You are now a Tigrasha.\n\r", victim);
}
else if (!str_cmp (arg3, "shaahoul"))
{
victim->class = CLASS_SHAAHOUL;
do_remove (victim, "all");
SET_BIT (victim->corbits, COR_HYBRID);
sprintf (buf, "%s Pset: %s %s", ch->name, arg2, arg3);
phistlog (victim, buf);
send_to_char ("Ok.\n\r", ch);
send_to_char ("You are now a Sha'Ahoul.\n\r", victim);
}
else if (!str_cmp (arg3, "defyler"))
{
victim->class = CLASS_DEFYLER;
SET_BIT (victim->corbits, COR_HYBRID);
victim->pcdata->cland[0] = -1;
victim->pcdata->cland[1] = -1;
victim->pcdata->cland[2] = -1;
sprintf (buf, "%s Pset: %s %s", ch->name, arg2, arg3);
phistlog (victim, buf);
send_to_char ("Ok.\n\r", ch);
send_to_char ("You are now a Defyler.\n\r", victim);
}
else if (!str_cmp (arg3, "planarsohei"))
{
victim->class = CLASS_PLANARSOHEI;
SET_BIT (victim->xbits, X_LIGHTPATH);
SET_BIT (victim->corbits, COR_HYBRID);
victim->alignment = 1000;
sprintf (buf, "%s Pset: %s %s", ch->name, arg2, arg3);
phistlog (victim, buf);
send_to_char ("Ok.\n\r", ch);
send_to_char ("You are now a Planar Sohei.\n\r", victim);
}
else if (!str_cmp (arg3, "Balehound"))
{
victim->class = CLASS_BALEHOUND;
SET_BIT (victim->corbits, COR_HYBRID);
victim->alignment = 1000;
victim->pcdata->cland[0] = -1;
victim->pcdata->cland[1] = -1;
victim->pcdata->cland[2] = -1;
sprintf (buf, "%s Pset: %s %s", ch->name, arg2, arg3);
phistlog (victim, buf);
send_to_char ("Ok.\n\r", ch);
send_to_char ("You are now a Balehound.\n\r", victim);
}
else if (!str_cmp (arg3, "Revenant"))
{
victim->class = CLASS_REVENANT;
SET_BIT (victim->corbits, COR_HYBRID);
victim->alignment = 1000;
sprintf (buf, "%s Pset: %s %s", ch->name, arg2, arg3);
phistlog (victim, buf);
send_to_char ("Ok.\n\r", ch);
send_to_char ("You are now a Revenant.\n\r", victim);
}
else if (!str_cmp (arg3, "Paragon"))
{
victim->class = CLASS_PARAGON;
SET_BIT (victim->corbits, COR_HYBRID);
victim->alignment = 1000;
sprintf (buf, "%s Pset: %s %s", ch->name, arg2, arg3);
phistlog (victim, buf);
send_to_char ("Ok.\n\r", ch);
send_to_char ("You are now a Paragon.\n\r", victim);
}
else if (!str_cmp (arg3, "Grimalkin"))
{
victim->class = CLASS_GRIMALKIN;
SET_BIT (victim->corbits, COR_HYBRID);
victim->alignment = 1000;
sprintf (buf, "%s Pset: %s %s", ch->name, arg2, arg3);
phistlog (victim, buf);
send_to_char ("Ok.\n\r", ch);
send_to_char ("You are now a Grimalkin.\n\r", victim);
}
else if (!str_cmp (arg3, "air"))
{
if (victim->level < LEVEL_ARCHMAGE)
{
victim->level = LEVEL_ARCHMAGE;
victim->trust = LEVEL_ARCHMAGE;
}
victim->class = CLASS_MAGE;
victim->pcdata->runes[0] = PURPLE_MAGIC;
victim->pcdata->runes[1] = 2047;
victim->pcdata->runes[2] = 1023;
victim->pcdata->runes[3] = 15;
SET_BIT (victim->corbits, COR_RUNES_ADDED);
sprintf (buf, "%s Pset: %s %s", ch->name, arg2, arg3);
phistlog (victim, buf);
send_to_char ("Ok.\n\r", ch);
send_to_char ("You are now the Air Archmage.\n\r", victim);
}
else if (!str_cmp (arg3, "Fire"))
{
if (victim->level < LEVEL_ARCHMAGE)
{
victim->level = LEVEL_ARCHMAGE;
victim->trust = LEVEL_ARCHMAGE;
}
victim->class = CLASS_MAGE;
victim->pcdata->runes[0] = RED_MAGIC;
victim->pcdata->runes[1] = 2047;
victim->pcdata->runes[2] = 1023;
victim->pcdata->runes[3] = 15;
SET_BIT (victim->corbits, COR_RUNES_ADDED);
sprintf (buf, "%s Pset: %s %s", ch->name, arg2, arg3);
phistlog (victim, buf);
send_to_char ("Ok.\n\r", ch);
send_to_char ("You are now the Fire Archmage.\n\r", victim);
}
else if (!str_cmp (arg3, "Water"))
{
if (victim->level < LEVEL_ARCHMAGE)
{
victim->level = LEVEL_ARCHMAGE;
victim->trust = LEVEL_ARCHMAGE;
}
victim->class = CLASS_MAGE;
victim->pcdata->runes[0] = BLUE_MAGIC;
victim->pcdata->runes[1] = 2047;
victim->pcdata->runes[2] = 1023;
victim->pcdata->runes[3] = 15;
SET_BIT (victim->corbits, COR_RUNES_ADDED);
sprintf (buf, "%s Pset: %s %s", ch->name, arg2, arg3);
phistlog (victim, buf);
send_to_char ("Ok.\n\r", ch);
send_to_char ("You are now the Water Archmage.\n\r", victim);
}
else if (!str_cmp (arg3, "Earth"))
{
if (victim->level < LEVEL_ARCHMAGE)
{
victim->level = LEVEL_ARCHMAGE;
victim->trust = LEVEL_ARCHMAGE;
}
victim->class = CLASS_MAGE;
victim->pcdata->runes[0] = GREEN_MAGIC;
victim->pcdata->runes[1] = 2047;
victim->pcdata->runes[2] = 1023;
victim->pcdata->runes[3] = 15;
SET_BIT (victim->corbits, COR_RUNES_ADDED);
sprintf (buf, "%s Pset: %s %s", ch->name, arg2, arg3);
phistlog (victim, buf);
send_to_char ("Ok.\n\r", ch);
send_to_char ("You are now the Earth Archmage.\n\r", victim);
}
else if (!str_cmp (arg3, "Spirit"))
{
if (victim->level < LEVEL_ARCHMAGE)
{
victim->level = LEVEL_ARCHMAGE;
victim->trust = LEVEL_ARCHMAGE;
}
victim->class = CLASS_MAGE;
victim->pcdata->runes[0] = YELLOW_MAGIC;
victim->pcdata->runes[1] = 2047;
victim->pcdata->runes[2] = 1023;
victim->pcdata->runes[3] = 15;
SET_BIT (victim->corbits, COR_RUNES_ADDED);
sprintf (buf, "%s Pset: %s %s", ch->name, arg2, arg3);
phistlog (victim, buf);
send_to_char ("Ok.\n\r", ch);
send_to_char ("You are now the Spirit Archmage.\n\r", victim);
}
else if (!str_cmp (arg3, "abomination"))
{
victim->class = CLASS_ABOMINATION;
SET_BIT (victim->corbits, COR_HYBRID);
victim->pcdata->cland[0] = -1;
victim->pcdata->cland[1] = -1;
victim->pcdata->cland[2] = -1;
sprintf (buf, "%s Pset: %s %s", ch->name, arg2, arg3);
phistlog (victim, buf);
send_to_char ("Ok.\n\r", ch);
send_to_char ("You are now an Abomination.\n\r", victim);
}
else if (!str_cmp (arg3, "skindancer"))
{
if (victim->level < LEVEL_MAGE)
{
victim->level = LEVEL_MAGE;
victim->trust = LEVEL_MAGE;
}
victim->class = CLASS_SKINDANCER;
SET_BIT (victim->corbits, COR_HYBRID);
victim->pcdata->runes[0] = GREEN_MAGIC;
victim->pcdata->runes[1] = 2047;
victim->pcdata->runes[2] = 1023;
victim->pcdata->runes[3] = 15;
victim->pcdata->cland[0] = -1;
victim->pcdata->cland[1] = -1;
victim->pcdata->cland[2] = -1;
SET_BIT (victim->corbits, COR_RUNES_ADDED);
sprintf (buf, "%s Pset: %s %s", ch->name, arg2, arg3);
phistlog (victim, buf);
send_to_char ("Ok.\n\r", ch);
send_to_char ("You are now a Skindancer.\n\r", victim);
}
else if (!str_cmp (arg3, "wishenchanter"))
{
if (victim->level < LEVEL_MAGE)
{
victim->level = LEVEL_MAGE;
victim->trust = LEVEL_MAGE;
}
victim->class = CLASS_WISHENCHANT;
SET_BIT (victim->corbits, COR_HYBRID);
victim->pcdata->runes[0] = PURPLE_MAGIC;
victim->pcdata->runes[1] = 2047;
victim->pcdata->runes[2] = 1023;
victim->pcdata->runes[3] = 15;
victim->pcdata->cland[0] = -1;
victim->pcdata->cland[1] = -1;
victim->pcdata->cland[2] = -1;
SET_BIT (victim->corbits, COR_RUNES_ADDED);
sprintf (buf, "%s Pset: %s %s", ch->name, arg2, arg3);
phistlog (victim, buf);
send_to_char ("Ok.\n\r", ch);
send_to_char ("You are now a Wish Enchanter.\n\r", victim);
}
else if (!str_cmp (arg3, "gypsy"))
{
if (victim->level < LEVEL_MAGE)
{
victim->level = LEVEL_MAGE;
victim->trust = LEVEL_MAGE;
}
SET_BIT (victim->xbits, X_LIGHTPATH);
victim->class = CLASS_GYPSY;
SET_BIT (victim->corbits, COR_HYBRID);
victim->pcdata->runes[0] = YELLOW_MAGIC;
victim->pcdata->runes[1] = 2047;
victim->pcdata->runes[2] = 1023;
victim->pcdata->runes[3] = 15;
sprintf (buf, "%s Pset: %s %s", ch->name, arg2, arg3);
phistlog (victim, buf);
send_to_char ("Ok.\n\r", ch);
send_to_char ("You are now a Gypsy.\n\r", victim);
}
else if (!str_cmp (arg3, "Psionic"))
{
if (victim->level < LEVEL_MAGE)
{
victim->level = LEVEL_MAGE;
victim->trust = LEVEL_MAGE;
}
victim->class = CLASS_LICH;
SET_BIT (victim->corbits, COR_HYBRID);
victim->pcdata->runes[0] = RED_MAGIC;
victim->pcdata->runes[1] = 2047;
victim->pcdata->runes[2] = 1023;
victim->pcdata->runes[3] = 15;
victim->pcdata->cland[0] = -1;
victim->pcdata->cland[1] = -1;
victim->pcdata->cland[2] = -1;
sprintf (buf, "%s Pset: %s %s", ch->name, arg2, arg3);
phistlog (victim, buf);
send_to_char ("Ok.\n\r", ch);
send_to_char ("You are now an Psionic.\n\r", victim);
}
else if (!str_cmp (arg3, "ikiryu"))
{
victim->class = CLASS_IKIRYU;
SET_BIT (victim->xbits, X_DARKPATH);
SET_BIT (victim->corbits, COR_HYBRID);
victim->pcdata->cland[0] = -1;
victim->pcdata->cland[1] = -1;
victim->pcdata->cland[2] = -1;
sprintf (buf, "%s Pset: %s %s", ch->name, arg2, arg3);
phistlog (victim, buf);
send_to_char ("Ok.\n\r", ch);
send_to_char ("You are now an Ikiryu.\n\r", victim);
}
else if (!str_cmp (arg3, "ninja"))
{
victim->class = CLASS_NINJA;
sprintf (buf, "%s Pset: %s %s", ch->name, arg2, arg3);
phistlog (victim, buf);
send_to_char ("Ok.\n\r", ch);
send_to_char ("You are now the Daimyo.\n\r", victim);
}
else if (!str_cmp (arg3, "monk"))
{
victim->class = CLASS_MONK;
do_remove (victim, "all");
sprintf (buf, "%s Pset: %s %s", ch->name, arg2, arg3);
phistlog (victim, buf);
send_to_char ("Ok.\n\r", ch);
send_to_char ("You are now a Abbot.\n\r", victim);
}
else if (!str_cmp (arg3, "shinobi"))
{
victim->class = CLASS_SHINOBI;
SET_BIT (victim->xbits, X_LIGHTPATH);
SET_BIT (victim->corbits, COR_HYBRID);
do_remove (victim, "all");
sprintf (buf, "%s Pset: %s %s", ch->name, arg2, arg3);
phistlog (victim, buf);
send_to_char ("Ok.\n\r", ch);
send_to_char ("You are now a Shinobi.\n\r", victim);
}
else if (!str_cmp (arg3, "saint"))
{
victim->class = CLASS_SAINT;
do_remove (victim, "all");
victim->alignment = 1000;
SET_BIT (victim->corbits, COR_HYBRID);
sprintf (buf, "%s Pset: %s %s", ch->name, arg2, arg3);
phistlog (victim, buf);
send_to_char ("Ok.\n\r", ch);
send_to_char ("You are now a Saint.\n\r", victim);
}
else if (!str_cmp (arg3, "shidoshi"))
{
SET_BIT (victim->xbits, X_DARKPATH);
SET_BIT (victim->corbits, COR_HYBRID);
victim->alignment = -1000;
victim->class = CLASS_SHIDOSHI;
sprintf (buf, "%s Pset: %s %s", ch->name, arg2, arg3);
phistlog (victim, buf);
send_to_char ("Ok.\n\r", ch);
send_to_char ("You are now a Shidoshi.\n\r", victim);
}
else if (!str_cmp (arg3, "efreti"))
{
victim->class = CLASS_EFRETI;
SET_BIT (victim->corbits, COR_HYBRID);
sprintf (buf, "%s Pset: %s %s", ch->name, arg2, arg3);
phistlog (victim, buf);
send_to_char ("Ok.\n\r", ch);
send_to_char ("You are now an Efreti.\n\r", victim);
}
else if (!str_cmp (arg3, "rakshasa"))
{
victim->class = CLASS_RAKSHASA;
SET_BIT (victim->corbits, COR_HYBRID);
victim->alignment = -1000;
sprintf (buf, "%s Pset: %s %s", ch->name, arg2, arg3);
phistlog (victim, buf);
send_to_char ("Ok.\n\r", ch);
send_to_char ("You are now a Rakshasa.\n\r", victim);
}
else if (!str_cmp (arg3, "bsd"))
{
victim->class = CLASS_BLACK_SPIRAL_DANCER;
SET_BIT (victim->corbits, COR_HYBRID);
victim->alignment = -1000;
victim->pcdata->cland[0] = -1;
victim->pcdata->cland[1] = -1;
victim->pcdata->cland[2] = -1;
sprintf (buf, "%s Pset: %s %s", ch->name, arg2, arg3);
phistlog (victim, buf);
send_to_char ("Ok.\n\r", ch);
send_to_char ("You are now a Black Spiral Dancer.\n\r", victim);
}
else if (!str_cmp (arg3, "nephandi"))
{
if (victim->level < LEVEL_MAGE)
{
victim->level = LEVEL_MAGE;
victim->trust = LEVEL_MAGE;
}
victim->class = CLASS_NEPHANDI;
SET_BIT (victim->corbits, COR_HYBRID);
victim->pcdata->runes[0] = RED_MAGIC;
victim->pcdata->runes[1] = 2047;
victim->pcdata->runes[2] = 1023;
victim->pcdata->runes[3] = 15;
SET_BIT (victim->corbits, COR_RUNES_ADDED);
sprintf (buf, "%s Pset: %s %s", ch->name, arg2, arg3);
phistlog (victim, buf);
send_to_char ("Ok.\n\r", ch);
send_to_char ("You are now a Nepandi.\n\r", victim);
}
else if (!str_cmp (arg3, "highlander"))
{
victim->class = CLASS_HIGHLANDER;
sprintf (buf, "%s Pset: %s %s", ch->name, arg2, arg3);
phistlog (victim, buf);
send_to_char ("Ok.\n\r", ch);
send_to_char ("You are now a Highlander.\n\r", victim);
}
else if (!str_cmp (arg3, "kensai"))
{
victim->class = CLASS_WEAPONMASTER;
SET_BIT (victim->corbits, COR_HYBRID);
SET_BIT (victim->corbits, COR_EVOLVED);
sprintf (buf, "%s Pset: %s %s", ch->name, arg2, arg3);
phistlog (victim, buf);
send_to_char ("Ok.\n\r", ch);
send_to_char ("You are now a Kensai.\n\r", victim);
}
else if (!str_cmp (arg3, "ghoul"))
{
victim->class = CLASS_GHOUL;
sprintf (buf, "%s Pset: %s %s", ch->name, arg2, arg3);
phistlog (victim, buf);
send_to_char ("Ok.\n\r", ch);
send_to_char ("You are now a Ghoul.\n\r", victim);
}
else
do_pset (ch, "");
classtable[class_number (ch)].classed++;
SET_BIT (victim->corbits, COR_CLASSCOUNTED_TOO);
return;
}
if (!str_cmp (arg2, "beast"))
{
if (IS_NPC (victim))
{
send_to_char ("Not on NPC's.\n\r", ch);
return;
}
if (value < 0 || value > 100)
{
send_to_char ("Beast range is 0 to 100.\n\r", ch);
return;
}
if (IS_JUDGE (ch))
{
victim->beast = value;
sprintf (buf, "%s Pset: %s %d", ch->name, arg2, value);
phistlog (victim, buf);
send_to_char ("Ok.\n\r", ch);
}
else
send_to_char ("Sorry, no can do...\n\r", ch);
return;
}
if (!str_cmp (arg2, "dps"))
{
if (IS_NPC (victim))
{
send_to_char ("Not on NPC's.\n\r", ch);
return;
}
if (value < 1 || value > 2000000)
{
send_to_char ("Demon points range is 1 to 2000000.\n\r", ch);
return;
}
if (IS_JUDGE (ch))
{
victim->pcdata->power[0] = value;
victim->pcdata->power[1] = value;
sprintf (buf, "%s Pset: %s %d", ch->name, arg2, value);
phistlog (victim, buf);
send_to_char ("Ok.\n\r", ch);
}
else
send_to_char ("Sorry, no can do...\n\r", ch);
return;
}
if (!str_cmp (arg2, "crystal"))
{
if (IS_NPC (victim))
{
send_to_char ("Not on NPC's.\n\r", ch);
return;
}
if (value < 0 || value > 200000)
{
send_to_char ("Crystal range is 0 to 200000.\n\r", ch);
return;
}
if (IS_JUDGE (ch))
{
victim->pcdata->crystal = value;
sprintf (buf, "%s Pset: %s %d", ch->name, arg2, value);
phistlog (victim, buf);
send_to_char ("Ok.\n\r", ch);
}
else
send_to_char ("Sorry, no can do...\n\r", ch);
return;
}
if (!str_cmp (arg2, "+dps"))
{
if (IS_NPC (victim))
{
send_to_char ("Not on NPC's.\n\r", ch);
return;
}
if (value < 1 || value > 2000000)
{
send_to_char ("Demon points range is 1 to 2000000.\n\r", ch);
return;
}
if (IS_JUDGE (ch))
{
victim->pcdata->power[0] += value;
victim->pcdata->power[1] += value;
sprintf (buf, "%s Pset: %s +%d", ch->name, arg2, value);
phistlog (victim, buf);
send_to_char ("Ok.\n\r", ch);
}
else
send_to_char ("Sorry, no can do...\n\r", ch);
return;
}
if (!str_cmp (arg2, "-dps"))
{
if (IS_NPC (victim))
{
send_to_char ("Not on NPC's.\n\r", ch);
return;
}
if (value < 1 || value > 2000000)
{
send_to_char ("Demon points range is 1 to 2000000.\n\r", ch);
return;
}
if (IS_JUDGE (ch))
{
victim->pcdata->power[0] -= value;
victim->pcdata->power[1] -= value;
sprintf (buf, "%s Pset: %s -%d", ch->name, arg2, value);
phistlog (victim, buf);
send_to_char ("Ok.\n\r", ch);
}
else
send_to_char ("Sorry, no can do...\n\r", ch);
return;
}
if (!str_cmp (arg2, "runes"))
{
if (IS_NPC (victim))
{
send_to_char ("Not on NPC's.\n\r", ch);
return;
}
if (!IS_MAGE (victim))
return;
if (!str_cmp (arg3, "add"))
{
if (IS_COR (victim, COR_RUNES_ADDED))
{
stc ("They already have all the runes.\n\r", ch);
return;
}
victim->pcdata->runes[1] = 2047;
victim->pcdata->runes[2] = 1023;
victim->pcdata->runes[3] = 15;
SET_BIT (victim->corbits, COR_RUNES_ADDED);
sprintf (buf, "%s Pset: %s ", ch->name, arg2);
phistlog (victim, buf);
send_to_char ("Ok.\n\r", ch);
}
return;
}
if (!str_cmp (arg2, "status"))
{
if (IS_NPC (victim))
{
send_to_char ("Not on NPC's.\n\r", ch);
return;
}
if (value < 0 || value > 200)
{
send_to_char ("Status range is 0 to 200.\n\r", ch);
return;
}
if (IS_JUDGE (ch))
{
victim->race = value;
sprintf (buf, "%s Pset: %s %d", ch->name, arg2, value);
phistlog (victim, buf);
send_to_char ("Ok.\n\r", ch);
}
else
send_to_char ("Sorry, no can do...\n\r", ch);
return;
}
if (!str_cmp (arg2, "credits"))
{
if (IS_NPC (victim))
{
send_to_char ("Not on NPC's.\n\r", ch);
return;
}
if (value < 0 || value > 500000000)
{
send_to_char ("Credit range is 0 to 500000000.\n\r", ch);
return;
}
if (IS_JUDGE (ch))
{
victim->pcdata->quest = value;
sprintf (buf, "%s Pset: %s %d", ch->name, arg2, value);
phistlog (victim, buf);
send_to_char ("Ok.\n\r", ch);
}
else
send_to_char ("Sorry, no can do...\n\r", ch);
return;
}
if (!str_cmp (arg2, "viper"))
{
if (IS_NPC (victim))
{
send_to_char ("Not on NPC's.\n\r", ch);
return;
}
if (value < 0 || value > 200)
{
send_to_char ("Stance Viper range is 0 to 200.\n\r", ch);
return;
}
if (IS_JUDGE (ch))
{
victim->stance[STANCE_VIPER] = value;
sprintf (buf, "%s Pset: %s %d", ch->name, arg2, value);
phistlog (victim, buf);
send_to_char ("Ok.\n\r", ch);
}
else
send_to_char ("Sorry, no can do...\n\r", ch);
return;
}
if (!str_cmp (arg2, "crane"))
{
if (IS_NPC (victim))
{
send_to_char ("Not on NPC's.\n\r", ch);
return;
}
if (value < 0 || value > 200)
{
send_to_char ("Stance Crane range is 0 to 200.\n\r", ch);
return;
}
if (IS_JUDGE (ch))
{
victim->stance[STANCE_CRANE] = value;
sprintf (buf, "%s Pset: %s %d", ch->name, arg2, value);
phistlog (victim, buf);
send_to_char ("Ok.\n\r", ch);
}
else
send_to_char ("Sorry, no can do...\n\r", ch);
return;
}
if (!str_cmp (arg2, "crab"))
{
if (IS_NPC (victim))
{
send_to_char ("Not on NPC's.\n\r", ch);
return;
}
if (value < 0 || value > 200)
{
send_to_char ("Stance Crab range is 0 to 200.\n\r", ch);
return;
}
if (IS_JUDGE (ch))
{
victim->stance[STANCE_CRAB] = value;
sprintf (buf, "%s Pset: %s %d", ch->name, arg2, value);
phistlog (victim, buf);
send_to_char ("Ok.\n\r", ch);
}
else
send_to_char ("Sorry, no can do...\n\r", ch);
return;
}
if (!str_cmp (arg2, "mongoose"))
{
if (IS_NPC (victim))
{
send_to_char ("Not on NPC's.\n\r", ch);
return;
}
if (value < 0 || value > 200)
{
send_to_char ("Stance Mongoose range is 0 to 200.\n\r", ch);
return;
}
if (IS_JUDGE (ch))
{
victim->stance[STANCE_MONGOOSE] = value;
sprintf (buf, "%s Pset: %s %d", ch->name, arg2, value);
phistlog (victim, buf);
send_to_char ("Ok.\n\r", ch);
}
else
send_to_char ("Sorry, no can do...\n\r", ch);
return;
}
if (!str_cmp (arg2, "bull"))
{
if (IS_NPC (victim))
{
send_to_char ("Not on NPC's.\n\r", ch);
return;
}
if (value < 0 || value > 200)
{
send_to_char ("Stance Bull range is 0 to 200.\n\r", ch);
return;
}
if (IS_JUDGE (ch))
{
victim->stance[STANCE_BULL] = value;
sprintf (buf, "%s Pset: %s %d", ch->name, arg2, value);
phistlog (victim, buf);
send_to_char ("Ok.\n\r", ch);
}
else
send_to_char ("Sorry, no can do...\n\r", ch);
return;
}
if (!str_cmp (arg2, "mantis"))
{
if (IS_NPC (victim))
{
send_to_char ("Not on NPC's.\n\r", ch);
return;
}
if (value < 0 || value > 200)
{
send_to_char ("Stance Mantis range is 0 to 200.\n\r", ch);
return;
}
if (IS_JUDGE (ch))
{
victim->stance[STANCE_MANTIS] = value;
victim->stance[STANCE_CRANE] = 200;
victim->stance[STANCE_VIPER] = 200;
sprintf (buf, "%s Pset: %s %d", ch->name, arg2, value);
phistlog (victim, buf);
send_to_char ("Ok.\n\r", ch);
}
else
send_to_char ("Sorry, no can do...\n\r", ch);
return;
}
if (!str_cmp (arg2, "dragon"))
{
if (IS_NPC (victim))
{
send_to_char ("Not on NPC's.\n\r", ch);
return;
}
if (value < 0 || value > 200)
{
send_to_char ("Stance Dragon range is 0 to 200.\n\r", ch);
return;
}
if (IS_JUDGE (ch))
{
victim->stance[STANCE_DRAGON] = value;
victim->stance[STANCE_CRAB] = 200;
victim->stance[STANCE_BULL] = 200;
sprintf (buf, "%s Pset: %s %d", ch->name, arg2, value);
phistlog (victim, buf);
send_to_char ("Ok.\n\r", ch);
}
else
send_to_char ("Sorry, no can do...\n\r", ch);
return;
}
if (!str_cmp (arg2, "tiger"))
{
if (IS_NPC (victim))
{
send_to_char ("Not on NPC's.\n\r", ch);
return;
}
if (value < 0 || value > 200)
{
send_to_char ("Stance Tiger range is 0 to 200.\n\r", ch);
return;
}
if (IS_JUDGE (ch))
{
victim->stance[STANCE_TIGER] = value;
victim->stance[STANCE_BULL] = 200;
victim->stance[STANCE_VIPER] = 200;
sprintf (buf, "%s Pset: %s %d", ch->name, arg2, value);
phistlog (victim, buf);
send_to_char ("Ok.\n\r", ch);
}
else
send_to_char ("Sorry, no can do...\n\r", ch);
return;
}
if (!str_cmp (arg2, "monkey"))
{
if (IS_NPC (victim))
{
send_to_char ("Not on NPC's.\n\r", ch);
return;
}
if (value < 0 || value > 200)
{
send_to_char ("Stance Monkey range is 0 to 200.\n\r", ch);
return;
}
if (IS_JUDGE (ch))
{
victim->stance[STANCE_MONKEY] = value;
victim->stance[STANCE_MONGOOSE] = 200;
victim->stance[STANCE_CRANE] = 200;
sprintf (buf, "%s Pset: %s %d", ch->name, arg2, value);
phistlog (victim, buf);
send_to_char ("Ok.\n\r", ch);
}
else
send_to_char ("Sorry, no can do...\n\r", ch);
return;
}
else if (!str_prefix (arg2, "ss1"))
{
if (IS_NPC (victim))
{
send_to_char ("Not on NPC's.\n\r", ch);
return;
}
if (value < 0 || value > 200)
{
send_to_char ("Stance ss1 range is 0 to 200.\n\r", ch);
return;
}
victim->stance[STANCE_SUPER1] = value;
}
else if (!str_prefix (arg2, "ss2"))
{
if (IS_NPC (victim))
{
send_to_char ("Not on NPC's.\n\r", ch);
return;
}
if (value < 0 || value > 200)
{
send_to_char ("Stance ss2 range is 0 to 200.\n\r", ch);
return;
}
victim->stance[STANCE_SUPER2] = value;
}
else if (!str_prefix (arg2, "ss3"))
{
if (IS_NPC (victim))
{
send_to_char ("Not on NPC's.\n\r", ch);
return;
}
if (value < 0 || value > 200)
{
send_to_char ("Stance ss3 range is 0 to 200.\n\r", ch);
return;
}
victim->stance[STANCE_SUPER3] = value;
}
else if (!str_prefix (arg2, "ss4"))
{
if (IS_NPC (victim))
{
send_to_char ("Not on NPC's.\n\r", ch);
return;
}
if (value < 0 || value > 200)
{
send_to_char ("Stance ss4 range is 0 to 200.\n\r", ch);
return;
}
victim->stance[STANCE_SUPER4] = value;
}
else if (!str_prefix (arg2, "ss5"))
{
if (IS_NPC (victim))
{
send_to_char ("Not on NPC's.\n\r", ch);
return;
}
if (value < 0 || value > 200)
{
send_to_char ("Stance ss5 range is 0 to 200.\n\r", ch);
return;
}
victim->stance[STANCE_SUPER5] = value;
}
if (!str_cmp (arg2, "swallow"))
{
if (IS_NPC (victim))
{
send_to_char ("Not on NPC's.\n\r", ch);
return;
}
if (value < 0 || value > 200)
{
send_to_char ("Stance Swallow range is 0 to 200.\n\r", ch);
return;
}
if (IS_JUDGE (ch))
{
victim->stance[STANCE_SWALLOW] = value;
victim->stance[STANCE_CRAB] = 200;
victim->stance[STANCE_MONGOOSE] = 200;
sprintf (buf, "%s Pset: %s %d", ch->name, arg2, value);
phistlog (victim, buf);
send_to_char ("Ok.\n\r", ch);
}
else
send_to_char ("Sorry, no can do...\n\r", ch);
return;
}
if (!str_cmp (arg2, "stanceall"))
{
if (IS_NPC (victim))
{
send_to_char ("Not on NPC's.\n\r", ch);
return;
}
if (value < 0 || value > 200)
{
send_to_char ("Stance range is 0 to 200.\n\r", ch);
return;
}
if (IS_JUDGE (ch))
{
int i;
for (i = 1; i <= 10; i++)
victim->stance[i] = value;
sprintf (buf, "%s Pset: %s %d", ch->name, arg2, value);
phistlog (victim, buf);
send_to_char ("Ok.\n\r", ch);
}
else
send_to_char ("Sorry, no can do...\n\r", ch);
return;
}
if (!str_cmp (arg2, "spellall"))
{
if (IS_NPC (victim))
{
send_to_char ("Not on NPC's.\n\r", ch);
return;
}
if ((IS_MAGE (victim) || IS_DRAC_MAGE (victim))
&& victim->level >= LEVEL_ARCHMAGE)
maxspl = 400;
else if ((IS_MAGE (victim) || IS_DRAC_MAGE (victim))
&& victim->level >= LEVEL_MAGE)
maxspl = 300;
else if ((IS_MAGE (victim) || IS_DRAC_MAGE (victim))
&& victim->level >= LEVEL_APPRENTICE)
maxspl = 240;
else
maxspl = 200;
if (IS_DRAC_MAGE (victim) && maxspl > 300)
maxspl -= 40;
if (value < 4 || value > maxspl)
{
sprintf (buf, "Spell range is 4 to %d.\n\r", maxspl);
stc (buf, ch);
return;
}
if (IS_JUDGE (ch))
{
victim->spl[PURPLE_MAGIC] = value;
victim->spl[RED_MAGIC] = value;
victim->spl[BLUE_MAGIC] = value;
victim->spl[YELLOW_MAGIC] = value;
victim->spl[GREEN_MAGIC] = value;
sprintf (buf, "%s Pset: %s %d", ch->name, arg2, value);
phistlog (victim, buf);
send_to_char ("All spells set.\n\r", ch);
}
else
send_to_char ("Sorry, no can do....\n\r", ch);
return;
}
if (!str_cmp (arg2, "mdeaths"))
{
if (!IS_NPC (victim))
{
victim->mdeath = value;
sprintf (buf, "%s Pset: %s %d", ch->name, arg2, value);
phistlog (victim, buf);
send_to_char ("Player Mobdeaths set.\n\r", ch);
return;
}
}
if (!str_cmp (arg2, "mkills"))
{
if (!IS_NPC (victim))
{
victim->mkill = value;
sprintf (buf, "%s Pset: %s %d", ch->name, arg2, value);
phistlog (victim, buf);
send_to_char ("Mobkills set.\n\r", ch);
return;
}
}
if (!str_cmp (arg2, "sdeaths"))
{
if (!IS_NPC (victim))
{
victim->pcdata->slaydeaths = value;
sprintf (buf, "%s Pset: %s %d", ch->name, arg2, value);
phistlog (victim, buf);
send_to_char ("Slay Deaths set.\n\r", ch);
return;
}
}
if (!str_cmp (arg2, "pdeaths"))
{
if (!IS_NPC (victim))
{
victim->pdeath = value;
sprintf (buf, "%s Pset: %s %d", ch->name, arg2, value);
phistlog (victim, buf);
send_to_char ("Playerdeaths set.\n\r", ch);
return;
}
}
if (!str_cmp (arg2, "pkills"))
{
if (!IS_NPC (victim))
{
victim->pkill = value;
sprintf (buf, "%s Pset: %s %d", ch->name, arg2, value);
phistlog (victim, buf);
send_to_char ("Playerkills set.\n\r", ch);
return;
}
}
if (!str_cmp (arg2, "air"))
{
if (IS_NPC (victim))
{
send_to_char ("Not on NPC's.\n\r", ch);
return;
}
if ((IS_MAGE (victim) || IS_DRAC_MAGE (victim))
&& victim->level >= LEVEL_ARCHMAGE)
maxspl = 400;
else if ((IS_MAGE (victim) || IS_DRAC_MAGE (victim))
&& victim->level >= LEVEL_MAGE)
maxspl = 300;
else if ((IS_MAGE (victim) || IS_DRAC_MAGE (victim))
&& victim->level >= LEVEL_APPRENTICE)
maxspl = 240;
else
maxspl = 200;
if (IS_DRAC_MAGE (victim) && maxspl > 300)
maxspl -= 40;
if (IS_MAGE (victim) && PURPLE_MAGIC == victim->pcdata->runes[0])
maxspl += 50;
if (value < 4 || value > maxspl)
{
sprintf (buf, "Spell range is 4 to %d.\n\r", maxspl);
stc (buf, ch);
return;
}
if (IS_JUDGE (ch))
{
victim->spl[PURPLE_MAGIC] = value;
sprintf (buf, "%s Pset: %s %d", ch->name, arg2, value);
phistlog (victim, buf);
send_to_char ("Ok.\n\r", ch);
}
else
send_to_char ("Sorry, no can do...\n\r", ch);
return;
}
if (!str_cmp (arg2, "fire"))
{
if (IS_NPC (victim))
{
send_to_char ("Not on NPC's.\n\r", ch);
return;
}
if ((IS_MAGE (victim) || IS_DRAC_MAGE (victim))
&& victim->level >= LEVEL_ARCHMAGE)
maxspl = 400;
else if ((IS_MAGE (victim) || IS_DRAC_MAGE (victim))
&& victim->level >= LEVEL_MAGE)
maxspl = 300;
else if ((IS_MAGE (victim) || IS_DRAC_MAGE (victim))
&& victim->level >= LEVEL_APPRENTICE)
maxspl = 240;
else
maxspl = 200;
if (IS_DRAC_MAGE (victim) && maxspl > 300)
maxspl -= 40;
if (IS_MAGE (victim) && RED_MAGIC == victim->pcdata->runes[0])
maxspl += 50;
if (value < 4 || value > maxspl)
{
sprintf (buf, "Spell range is 4 to %d.\n\r", maxspl);
stc (buf, ch);
return;
}
if (IS_JUDGE (ch))
{
victim->spl[RED_MAGIC] = value;
sprintf (buf, "%s Pset: %s %d", ch->name, arg2, value);
phistlog (victim, buf);
send_to_char ("Ok.\n\r", ch);
}
else
send_to_char ("Sorry, no can do...\n\r", ch);
return;
}
if (!str_cmp (arg2, "water"))
{
if (IS_NPC (victim))
{
send_to_char ("Not on NPC's.\n\r", ch);
return;
}
if ((IS_MAGE (victim) || IS_DRAC_MAGE (victim))
&& victim->level >= LEVEL_ARCHMAGE)
maxspl = 400;
else if ((IS_MAGE (victim) || IS_DRAC_MAGE (victim))
&& victim->level >= LEVEL_MAGE)
maxspl = 300;
else if ((IS_MAGE (victim) || IS_DRAC_MAGE (victim))
&& victim->level >= LEVEL_APPRENTICE)
maxspl = 240;
else
maxspl = 200;
if (IS_DRAC_MAGE (victim) && maxspl > 300)
maxspl -= 40;
if (IS_MAGE (victim) && BLUE_MAGIC == victim->pcdata->runes[0])
maxspl += 50;
if (value < 4 || value > maxspl)
{
sprintf (buf, "Spell range is 4 to %d.\n\r", maxspl);
stc (buf, ch);
return;
}
if (IS_JUDGE (ch))
{
victim->spl[BLUE_MAGIC] = value;
sprintf (buf, "%s Pset: %s %d", ch->name, arg2, value);
phistlog (victim, buf);
send_to_char ("Ok.\n\r", ch);
}
else
send_to_char ("Sorry, no can do...\n\r", ch);
return;
}
if (!str_cmp (arg2, "earth"))
{
if (IS_NPC (victim))
{
send_to_char ("Not on NPC's.\n\r", ch);
return;
}
if ((IS_MAGE (victim) || IS_DRAC_MAGE (victim))
&& victim->level >= LEVEL_ARCHMAGE)
maxspl = 400;
else if ((IS_MAGE (victim) || IS_DRAC_MAGE (victim))
&& victim->level >= LEVEL_MAGE)
maxspl = 300;
else if ((IS_MAGE (victim) || IS_DRAC_MAGE (victim))
&& victim->level >= LEVEL_APPRENTICE)
maxspl = 240;
else
maxspl = 200;
if (IS_DRAC_MAGE (victim) && maxspl > 300)
maxspl -= 40;
if (IS_MAGE (victim) && GREEN_MAGIC == victim->pcdata->runes[0])
maxspl += 50;
if (value < 4 || value > maxspl)
{
sprintf (buf, "Spell range is 4 to %d.\n\r", maxspl);
stc (buf, ch);
return;
}
if (IS_JUDGE (ch))
{
victim->spl[GREEN_MAGIC] = value;
sprintf (buf, "%s Pset: %s %d", ch->name, arg2, value);
phistlog (victim, buf);
send_to_char ("Ok.\n\r", ch);
}
else
send_to_char ("Sorry, no can do...\n\r", ch);
return;
}
if (!str_cmp (arg2, "dragonage"))
{
if (IS_NPC (victim))
{
send_to_char ("Not on NPC's.\n\r", ch);
return;
}
if (!IS_DRAGON (victim))
{
send_to_char ("Only on Dragons.\n\r", ch);
return;
}
value = atoi (arg3);
if (value < 1 || value > 12)
{
send_to_char ("Valid range is 1 to 12.\n\r", ch);
return;
}
victim->pcdata->dpowers[DRAGON_AGE] = value;
sprintf (buf, "%s Pset: %s %d", ch->name, arg2, value);
phistlog (victim, buf);
send_to_char ("Ok.\n\r", ch);
return;
}
if (!str_cmp (arg2, "dragoncolor"))
{
if (IS_NPC (victim))
{
send_to_char ("Not on NPC's.\n\r", ch);
return;
}
if (!IS_DRAGON (victim) && !IS_DRACONIAN (victim))
{
send_to_char ("Only on Dragons or Draconians.\n\r", ch);
return;
}
if (!str_cmp (arg3, "red"))
value = 1;
else if (!str_cmp (arg3, "green"))
value = 2;
else if (!str_cmp (arg3, "blue"))
value = 3;
else if (!str_cmp (arg3, "brass"))
value = 4;
else if (!str_cmp (arg3, "silver"))
value = 5;
else if (!str_cmp (arg3, "white"))
value = 6;
else if (!str_cmp (arg3, "black"))
value = 7;
else if (!str_cmp (arg3, "gold"))
value = 8;
else if (!str_cmp (arg3, "shadow"))
value = 9;
else if (!str_cmp (arg3, "pink"))
value = 10;
else if (!str_cmp (arg3, "grey"))
value = 11;
else
{
do_pset (ch, "");
return;
}
victim->pcdata->dpowers[DRAGON_COLOR] = value;
sprintf (buf, "%s Pset: %s %s", ch->name, arg2, arg3);
phistlog (victim, buf);
send_to_char ("Ok.\n\r", ch);
return;
}
if (!str_cmp (arg2, "dragonpoints"))
{
if (IS_NPC (victim))
{
send_to_char ("Not on NPC's.\n\r", ch);
return;
}
if (!IS_DRAGON (victim))
{
send_to_char ("Only on Dragons.\n\r", ch);
return;
}
value = atoi (arg3);
if (value < 1 || value > 1000000)
{
send_to_char ("Valid range is 1 to 1000000.\n\r", ch);
return;
}
victim->dps = value;
sprintf (buf, "%s Pset: %s %d", ch->name, arg2, value);
phistlog (victim, buf);
send_to_char ("Ok.\n\r", ch);
return;
}
if (!str_cmp (arg2, "spirit"))
{
if (IS_NPC (victim))
{
send_to_char ("Not on NPC's.\n\r", ch);
return;
}
if (IS_PUREMAGE (victim) && victim->level >= LEVEL_ARCHMAGE)
maxspl = 400;
else if (IS_PUREMAGE (victim) && victim->level >= LEVEL_MAGE)
maxspl = 300;
else if (IS_PUREMAGE (victim) && victim->level >= LEVEL_APPRENTICE)
maxspl = 240;
else if (IS_MAGE (victim))
maxspl = 240;
else if (IS_DRAC_MAGE (victim))
maxspl = 240;
else
maxspl = 200;
if (IS_PUREMAGE (victim) && YELLOW_MAGIC == victim->pcdata->runes[0])
maxspl += 50;
if (value < 4 || value > maxspl)
{
sprintf (buf, "Spell range is 4 to %d.\n\r", maxspl);
stc (buf, ch);
return;
}
if (IS_JUDGE (ch))
{
victim->spl[YELLOW_MAGIC] = value;
sprintf (buf, "%s Pset: %s %d", ch->name, arg2, value);
phistlog (victim, buf);
send_to_char ("Ok.\n\r", ch);
}
else
send_to_char ("Sorry, no can do...\n\r", ch);
return;
}
if (!str_cmp (arg2, "immune"))
{
if (IS_NPC (victim))
{
send_to_char ("Not on NPC's.\n\r", ch);
return;
}
if (arg3 == '\0')
{
send_to_char ("pset <victim> immune <immunity>.\n\r", ch);
return;
}
if (IS_JUDGE (ch))
{
if (!str_cmp (arg3, "voodoo"))
{
if (IS_SET (victim->immune, IMM_VOODOO))
{
REMOVE_BIT (victim->immune, IMM_VOODOO);
send_to_char ("Ok Immunity Removed.\n\r", ch);
return;
}
else
{
SET_BIT (victim->immune, IMM_VOODOO);
sprintf (buf, "%s Pset: %s %s", ch->name, arg2, arg3);
phistlog (victim, buf);
send_to_char ("Ok Immunity Added.\n\r", ch);
return;
}
}
if (!str_cmp (arg3, "slash"))
{
if (IS_SET (victim->immune, IMM_SLASH))
{
REMOVE_BIT (victim->immune, IMM_SLASH);
send_to_char ("Ok Immunity Removed.\n\r", ch);
return;
}
else
{
SET_BIT (victim->immune, IMM_SLASH);
sprintf (buf, "%s Pset: %s %s", ch->name, arg2, arg3);
phistlog (victim, buf);
send_to_char ("Ok Immunity Added.\n\r", ch);
return;
}
}
if (!str_cmp (arg3, "stab"))
{
if (IS_SET (victim->immune, IMM_STAB))
{
REMOVE_BIT (victim->immune, IMM_STAB);
send_to_char ("Ok Immunity Removed.\n\r", ch);
return;
}
else
{
SET_BIT (victim->immune, IMM_STAB);
sprintf (buf, "%s Pset: %s %s", ch->name, arg2, arg3);
phistlog (victim, buf);
send_to_char ("Ok Immunity Added.\n\r", ch);
return;
}
}
if (!str_cmp (arg3, "smash"))
{
if (IS_SET (victim->immune, IMM_SMASH))
{
REMOVE_BIT (victim->immune, IMM_SMASH);
send_to_char ("Ok Immunity Removed.\n\r", ch);
return;
}
else
{
SET_BIT (victim->immune, IMM_SMASH);
sprintf (buf, "%s Pset: %s %s", ch->name, arg2, arg3);
phistlog (victim, buf);
send_to_char ("Ok Immunity Added.\n\r", ch);
return;
}
}
if (!str_cmp (arg3, "anmial"))
{
if (IS_SET (victim->immune, IMM_ANIMAL))
{
REMOVE_BIT (victim->immune, IMM_ANIMAL);
send_to_char ("Ok Immunity Removed.\n\r", ch);
return;
}
else
{
SET_BIT (victim->immune, IMM_ANIMAL);
sprintf (buf, "%s Pset: %s %s", ch->name, arg2, arg3);
phistlog (victim, buf);
send_to_char ("Ok Immunity Added.\n\r", ch);
return;
}
}
if (!str_cmp (arg3, "misc"))
{
if (IS_SET (victim->immune, IMM_MISC))
{
REMOVE_BIT (victim->immune, IMM_MISC);
send_to_char ("Ok Immunity Removed.\n\r", ch);
return;
}
else
{
SET_BIT (victim->immune, IMM_MISC);
sprintf (buf, "%s Pset: %s %s", ch->name, arg2, arg3);
phistlog (victim, buf);
send_to_char ("Ok Immunity Added.\n\r", ch);
return;
}
}
if (!str_cmp (arg3, "charm"))
{
if (IS_SET (victim->immune, IMM_CHARM))
{
REMOVE_BIT (victim->immune, IMM_CHARM);
send_to_char ("Ok Immunity Removed.\n\r", ch);
return;
}
else
{
SET_BIT (victim->immune, IMM_CHARM);
sprintf (buf, "%s Pset: %s %s", ch->name, arg2, arg3);
phistlog (victim, buf);
send_to_char ("Ok Immunity Added.\n\r", ch);
return;
}
}
if (!str_cmp (arg3, "heat"))
{
if (IS_SET (victim->immune, IMM_HEAT))
{
REMOVE_BIT (victim->immune, IMM_HEAT);
send_to_char ("Ok Immunity Removed.\n\r", ch);
return;
}
else
{
SET_BIT (victim->immune, IMM_HEAT);
sprintf (buf, "%s Pset: %s %s", ch->name, arg2, arg3);
phistlog (victim, buf);
send_to_char ("Ok Immunity Added.\n\r", ch);
return;
}
}
if (!str_cmp (arg3, "cold"))
{
if (IS_SET (victim->immune, IMM_COLD))
{
REMOVE_BIT (victim->immune, IMM_COLD);
send_to_char ("Ok Immunity Removed.\n\r", ch);
return;
}
else
{
SET_BIT (victim->immune, IMM_COLD);
sprintf (buf, "%s Pset: %s %s", ch->name, arg2, arg3);
phistlog (victim, buf);
send_to_char ("Ok Immunity Added.\n\r", ch);
return;
}
}
if (!str_cmp (arg3, "lightning"))
{
if (IS_SET (victim->immune, IMM_LIGHTNING))
{
REMOVE_BIT (victim->immune, IMM_LIGHTNING);
send_to_char ("Ok Immunity Removed.\n\r", ch);
return;
}
else
{
SET_BIT (victim->immune, IMM_LIGHTNING);
sprintf (buf, "%s Pset: %s %s", ch->name, arg2, arg3);
phistlog (victim, buf);
send_to_char ("Ok Immunity Added.\n\r", ch);
return;
}
}
if (!str_cmp (arg3, "acid"))
{
if (IS_SET (victim->immune, IMM_ACID))
{
REMOVE_BIT (victim->immune, IMM_ACID);
send_to_char ("Ok Immunity Removed.\n\r", ch);
return;
}
else
{
SET_BIT (victim->immune, IMM_ACID);
sprintf (buf, "%s Pset: %s %s", ch->name, arg2, arg3);
phistlog (victim, buf);
send_to_char ("Ok Immunity Added.\n\r", ch);
return;
}
}
if (!str_cmp (arg3, "shield"))
{
if (IS_SET (victim->immune, IMM_SHIELDED))
{
REMOVE_BIT (victim->immune, IMM_SHIELDED);
send_to_char ("Ok Immunity Removed.\n\r", ch);
return;
}
else
{
SET_BIT (victim->immune, IMM_SHIELDED);
sprintf (buf, "%s Pset: %s %s", ch->name, arg2, arg3);
phistlog (victim, buf);
send_to_char ("Ok Immunity Added.\n\r", ch);
return;
}
}
if (!str_cmp (arg3, "hurl"))
{
if (IS_SET (victim->immune, IMM_HURL))
{
REMOVE_BIT (victim->immune, IMM_HURL);
send_to_char ("Ok Immunity Removed.\n\r", ch);
return;
}
else
{
sprintf (buf, "%s Pset: %s %s", ch->name, arg2, arg3);
phistlog (victim, buf);
SET_BIT (victim->immune, IMM_HURL);
send_to_char ("Ok Immunity Added.\n\r", ch);
return;
}
}
if (!str_cmp (arg3, "backstab"))
{
if (IS_SET (victim->immune, IMM_BACKSTAB))
{
REMOVE_BIT (victim->immune, IMM_BACKSTAB);
send_to_char ("Ok Immunity Removed.\n\r", ch);
return;
}
else
{
SET_BIT (victim->immune, IMM_BACKSTAB);
sprintf (buf, "%s Pset: %s %s", ch->name, arg2, arg3);
phistlog (victim, buf);
send_to_char ("Ok Immunity Added.\n\r", ch);
return;
}
}
if (!str_cmp (arg3, "kick"))
{
if (IS_SET (victim->immune, IMM_KICK))
{
REMOVE_BIT (victim->immune, IMM_KICK);
send_to_char ("Ok Immunity Removed.\n\r", ch);
return;
}
else
{
SET_BIT (victim->immune, IMM_KICK);
sprintf (buf, "%s Pset: %s %s", ch->name, arg2, arg3);
phistlog (victim, buf);
send_to_char ("Ok Immunity Added.\n\r", ch);
return;
}
}
if (!str_cmp (arg3, "disarm"))
{
if (IS_SET (victim->immune, IMM_DISARM))
{
REMOVE_BIT (victim->immune, IMM_DISARM);
send_to_char ("Ok Immunity Removed.\n\r", ch);
return;
}
else
{
SET_BIT (victim->immune, IMM_DISARM);
sprintf (buf, "%s Pset: %s %s", ch->name, arg2, arg3);
phistlog (victim, buf);
send_to_char ("Ok Immunity Added.\n\r", ch);
return;
}
}
if (!str_cmp (arg3, "steal"))
{
if (IS_SET (victim->immune, IMM_STEAL))
{
REMOVE_BIT (victim->immune, IMM_STEAL);
send_to_char ("Ok Immunity Removed.\n\r", ch);
return;
}
else
{
SET_BIT (victim->immune, IMM_STEAL);
sprintf (buf, "%s Pset: %s %s", ch->name, arg2, arg3);
phistlog (victim, buf);
send_to_char ("Ok Immunity Added.\n\r", ch);
return;
}
}
if (!str_cmp (arg3, "sleep"))
{
if (IS_SET (victim->immune, IMM_SLEEP))
{
REMOVE_BIT (victim->immune, IMM_SLEEP);
send_to_char ("Ok Immunity Removed.\n\r", ch);
return;
}
else
{
SET_BIT (victim->immune, IMM_SLEEP);
sprintf (buf, "%s Pset: %s %s", ch->name, arg2, arg3);
phistlog (victim, buf);
send_to_char ("Ok Immunity Added.\n\r", ch);
return;
}
}
if (!str_cmp (arg3, "sunlight"))
{
if (IS_SET (victim->immune, IMM_SUNLIGHT))
{
REMOVE_BIT (victim->immune, IMM_SUNLIGHT);
send_to_char ("Ok Immunity Removed.\n\r", ch);
return;
}
else
{
SET_BIT (victim->immune, IMM_SUNLIGHT);
sprintf (buf, "%s Pset: %s %s", ch->name, arg2, arg3);
phistlog (victim, buf);
send_to_char ("Ok Immunity Added.\n\r", ch);
return;
}
}
if (!str_cmp (arg3, "all"))
{
SET_BIT (victim->immune, IMM_DRAIN);
SET_BIT (victim->immune, IMM_VOODOO);
SET_BIT (victim->immune, IMM_SLASH);
SET_BIT (victim->immune, IMM_STAB);
SET_BIT (victim->immune, IMM_SMASH);
SET_BIT (victim->immune, IMM_ANIMAL);
SET_BIT (victim->immune, IMM_MISC);
SET_BIT (victim->immune, IMM_CHARM);
SET_BIT (victim->immune, IMM_HEAT);
SET_BIT (victim->immune, IMM_COLD);
SET_BIT (victim->immune, IMM_LIGHTNING);
SET_BIT (victim->immune, IMM_ACID);
SET_BIT (victim->immune, IMM_HURL);
SET_BIT (victim->immune, IMM_BACKSTAB);
SET_BIT (victim->immune, IMM_KICK);
SET_BIT (victim->immune, IMM_DISARM);
SET_BIT (victim->immune, IMM_STEAL);
SET_BIT (victim->immune, IMM_SLEEP);
sprintf (buf, "%s Pset: %s %s", ch->name, arg2, arg3);
phistlog (victim, buf);
send_to_char ("Ok All Immunities Added.\n\r", ch);
return;
}
send_to_char ("No such immunity exists.\n\r", ch);
return;
}
else
send_to_char ("Sorry, no can do...\n\r", ch);
return;
}
if (!str_cmp (arg2, "weapon"))
{
int max_wpn = 0;
if (IS_NPC (victim))
{
send_to_char ("Not on NPC's.\n\r", ch);
return;
}
argument = one_argument (argument, arg4);
/*
* Snarf the value (which need not be numeric).
*/
value = is_number (arg4) ? atoi (arg4) : -1;
if (IS_WM (victim))
{
if (!str_cmp (arg3, "slice"))
max_wpn = 1200;
else
max_wpn = 600;
}
else if (IS_HIGHLANDER (victim))
{
if (!str_cmp (arg3, "slice"))
max_wpn = 1000;
else
max_wpn = 500;
}
else if (IS_MONK (victim))
{
if (!str_cmp (arg3, "unarmed"))
max_wpn = 800;
else
max_wpn = 400;
}
else if (IS_KAHN (victim))
{
if (!str_cmp (arg3, "unarmed"))
max_wpn = 400;
else
max_wpn = 200;
}
else if (IS_DRAC_WARRIOR (victim))
{
max_wpn = 300;
}
else
max_wpn = 200;
if (victim->pcdata->wpntrain > 0)
{
max_wpn += (victim->pcdata->wpntrain * 10);
}
if (value < 0 || value > max_wpn)
{
sprintf (buf, "Weapon skill range is 0 to %d.\n\r", max_wpn);
stc (buf, ch);
return;
}
if (IS_JUDGE (ch))
{
if (!str_cmp (arg3, "unarmed"))
{
victim->wpn[0] = value;
sprintf (buf, "%s Pset: %s %s %d", ch->name, arg2, arg3, value);
phistlog (victim, buf);
send_to_char ("Ok.\n\r", ch);
return;
}
if (!str_cmp (arg3, "slice"))
{
victim->wpn[1] = value;
sprintf (buf, "%s Pset: %s %s %d", ch->name, arg2, arg3, value);
phistlog (victim, buf);
send_to_char ("Ok.\n\r", ch);
return;
}
if (!str_cmp (arg3, "stab"))
{
victim->wpn[2] = value;
sprintf (buf, "%s Pset: %s %s %d", ch->name, arg2, arg3, value);
phistlog (victim, buf);
send_to_char ("Ok.\n\r", ch);
return;
}
if (!str_cmp (arg3, "slash"))
{
victim->wpn[3] = value;
sprintf (buf, "%s Pset: %s %s %d", ch->name, arg2, arg3, value);
phistlog (victim, buf);
send_to_char ("Ok.\n\r", ch);
return;
}
if (!str_cmp (arg3, "whip"))
{
victim->wpn[4] = value;
sprintf (buf, "%s Pset: %s %s %d", ch->name, arg2, arg3, value);
phistlog (victim, buf);
send_to_char ("Ok.\n\r", ch);
return;
}
if (!str_cmp (arg3, "claw"))
{
victim->wpn[5] = value;
sprintf (buf, "%s Pset: %s %s %d", ch->name, arg2, arg3, value);
phistlog (victim, buf);
send_to_char ("Ok.\n\r", ch);
return;
}
if (!str_cmp (arg3, "blast"))
{
victim->wpn[6] = value;
sprintf (buf, "%s Pset: %s %s %d", ch->name, arg2, arg3, value);
phistlog (victim, buf);
send_to_char ("Ok.\n\r", ch);
return;
}
if (!str_cmp (arg3, "pound"))
{
victim->wpn[7] = value;
sprintf (buf, "%s Pset: %s %s %d", ch->name, arg2, arg3, value);
phistlog (victim, buf);
send_to_char ("Ok.\n\r", ch);
return;
}
if (!str_cmp (arg3, "crush"))
{
victim->wpn[8] = value;
sprintf (buf, "%s Pset: %s %s %d", ch->name, arg2, arg3, value);
phistlog (victim, buf);
send_to_char ("Ok.\n\r", ch);
return;
}
if (!str_cmp (arg3, "grep"))
{
victim->wpn[9] = value;
sprintf (buf, "%s Pset: %s %s %d", ch->name, arg2, arg3, value);
phistlog (victim, buf);
send_to_char ("Ok.\n\r", ch);
return;
}
if (!str_cmp (arg3, "bite"))
{
victim->wpn[10] = value;
sprintf (buf, "%s Pset: %s %s %d", ch->name, arg2, arg3, value);
phistlog (victim, buf);
send_to_char ("Ok.\n\r", ch);
return;
}
if (!str_cmp (arg3, "pierce"))
{
victim->wpn[11] = value;
sprintf (buf, "%s Pset: %s %s %d", ch->name, arg2, arg3, value);
phistlog (victim, buf);
send_to_char ("Ok.\n\r", ch);
return;
}
if (!str_cmp (arg3, "suck"))
{
victim->wpn[12] = value;
sprintf (buf, "%s Pset: %s %s %d", ch->name, arg2, arg3, value);
phistlog (victim, buf);
send_to_char ("Ok.\n\r", ch);
return;
}
if (!str_cmp (arg3, "all"))
{
victim->wpn[0] = value;
victim->wpn[1] = value;
victim->wpn[2] = value;
victim->wpn[3] = value;
victim->wpn[4] = value;
victim->wpn[5] = value;
victim->wpn[6] = value;
victim->wpn[7] = value;
victim->wpn[8] = value;
victim->wpn[8] = value;
victim->wpn[9] = value;
victim->wpn[10] = value;
victim->wpn[11] = value;
victim->wpn[12] = value;
sprintf (buf, "%s Pset: %s %s %d", ch->name, arg2, arg3, value);
phistlog (victim, buf);
send_to_char ("Ok.\n\r", ch);
return;
}
send_to_char ("No such weapon skill exists.\n\r", ch);
return;
}
else
send_to_char ("Sorry, no can do...\n\r", ch);
return;
}
/*
* Generate usage message.
*/
do_pset (ch, "");
return;
}