patch_1.01c_to_1.02.gz
patches · 53.5 KB · 2010-03-30
Download « Back to the patches list
diff -cr tmp/dist/area/help.are dist/area/help.are
*** tmp/dist/area/help.are Wed Jan 22 09:22:22 1997
--- dist/area/help.are Thu Feb 6 09:34:42 1997
***************
*** 88,94 ****
~
! 1 'ACID BLAST' 'BURNING HANDS' 'COLOUR SPRAY' FIREBALL 'LIGHTNING BOLT' 'MAGIC MISSILE' 'SHOCKING GRASP'~
These are all attack spells and should not be used against another player
unless both you and the other player are listed under 'who deadly' and are
within the legal pkill level range.
--- 88,106 ----
~
! 1 'ACETUM PRIMUS'~
! 'Acetum Primus,' is the third and most powerful of the known acid
! disciplines at the Mage's disposal. This incantation pulls forth the
! strongest caustic agents in the casting Mage's neighboring planes,
! and propels them in a tight cyclone-like blast towards the Mage's
! chosen victim. The cross-dimensional disturbance, the physical
! violence, and the bonescouring potency of the conjured compound all
! work together to effect an estimable estrapade.
!
! ~
!
! 1 'ACID BLAST' 'BURNING HANDS' 'COLOUR SPRAY' FIREBALL 'LIGHTNING BOLT'
!
'MAGIC MISSILE' 'SHOCKING GRASP'~
These are all attack spells and should not be used against another player
unless both you and the other player are listed under 'who deadly' and are
within the legal pkill level range.
***************
*** 218,235 ****
be used when msetting a mobile (mset <mob name> affected <affect flag>).
They may additionally be used to mset players if your level allows it.
! blind invisible detect_evil detect_invis detect_magic detect_hidden
! sanctuary faerie_fire infrared curse poison protect sneak hide sleep
! charm flying pass_door floating truesight detect_traps scrying
! fireshield shockshield iceshield aqua_breath possess
~
53 AFFECTTYPES APPLYTYPES~
none strength dexterity intelligence wisdom constitution
sex level age height weight mana
hit move gold experience armor hitroll
! damroll save_para save_rod save_petri save_breath save_spell
charisma resistant immune susceptible affected luck
backstab pick track steal sneak hide
detrap dodge peek scan gouge search
--- 230,252 ----
be used when msetting a mobile (mset <mob name> affected <affect flag>).
They may additionally be used to mset players if your level allows it.
! Blind Invisible Detect_evil Detect_invis Detect_magic
! Detect_hidden **Hold** Sanctuary Faerie_fire Infrared
! Curse **Flaming** Poison Protect Paralysis
! Sneak Hide Sleep Charm Flying
! Pass_door Floating Truesight Detect_traps Scrying
! Fireshield Shockshield Iceshield Aqua_breath Possess
+ Note - Hold and Flaming are current not in use.
+
+ See also: OSET AFFECTTYPES
~
53 AFFECTTYPES APPLYTYPES~
none strength dexterity intelligence wisdom constitution
sex level age height weight mana
hit move gold experience armor hitroll
! damroll save_para save_rod save_poison save_breath save_spell
charisma resistant immune susceptible affected luck
backstab pick track steal sneak hide
detrap dodge peek scan gouge search
***************
*** 283,288 ****
--- 300,309 ----
all sites within 'foo.edu' are banned as well.
~
+ 0 AMOTD~
+ AMOTD
+ ~
+
1 'ANIMATE DEAD~
Syntax: cast 'animate dead' <victim>
***************
*** 360,366 ****
1 ARENA~
Characters may duel in the arena, which is located in Limbo, if supervised
! by an immortal. Note that equipment will not scrap in the arena.
~
0 ARMOR~
--- 381,391 ----
1 ARENA~
Characters may duel in the arena, which is located in Limbo, if supervised
! Characters may duel to the death in the arena if supervised by an
! immortal.
!
! Note that deadlies may attack peacefuls inside the arena, and that
! equipment will not scrap while in the arena.
~
0 ARMOR~
***************
*** 439,451 ****
'Portal' forms a temporary tunnel through space to the victim. A portal
will not succeed if a portal already exists in either the caster's or
! the victim's location.
'Helical Flow' morphs an Augurer into a coil of colour which instantly
travels to the victim's location.
These spells may fail if either the victim or the caster is in a location
which blocks their use, such as no-recall areas, no-summon areas, etc.
~
52 AT~
--- 464,478 ----
'Portal' forms a temporary tunnel through space to the victim. A portal
will not succeed if a portal already exists in either the caster's or
! the victim's location. If you able to scry, you can look into a portal
! with 'look portal.'
'Helical Flow' morphs an Augurer into a coil of colour which instantly
travels to the victim's location.
These spells may fail if either the victim or the caster is in a location
which blocks their use, such as no-recall areas, no-summon areas, etc.
+
~
52 AT~
***************
*** 619,631 ****
your own choosing using the BAMFIN and BAMFOUT commands.
~
0 BASH~
! Syntax: bash <mob>
! Bash is a skill which can only be used once a fight has started. It will
! temporarily stun your opponent. It will also cause you to lag about one
! to three rounds. This skill will inflict damage on the target.
~
60 BESTOW BESTOWMENTS~
--- 646,680 ----
your own choosing using the BAMFIN and BAMFOUT commands.
~
+ 51 BANNED~
+ The following sites have been banned:
+
+ 156.29.1.x
+ 204.225.103.222 (for players level 50 and under)
+ ~
0 BASH~
! Syntax: bash
!
! Bash can only be used once a fight has started. It will inflict damage and
! temporarily daze both yourself and your opponent for approximately two rounds
! during which you cannot heal, flee or perform other extraneous combat actions
! (i.e. you will be able to dodge/parry/attack but nothing else). These same
! consequences are inflicted on your opponent if it is a player character,
! otherwise the skill only inflicts damage.
!
! Note that bash has a drastically reduced chance of hitting if the basher is
! not one of the primary targets (i.e. is not tanking).
!
! ~
! 1 BERSERK~
! Syntax: berserk
!
! Going berserk sends your warrior into a frenzied state, increasing its
! attacks per round to a maximum of six and your strength by one. While
! you are berserking you cannot flee.
!
~
60 BESTOW BESTOWMENTS~
***************
*** 663,668 ****
--- 712,740 ----
See AASSIGN
~
+ 1 'BLACK FIST'~
+ The spell 'Black Fist' calls from the Ethereal Plane a disembodied clenched
+ fist to pummel the calling Mage's opponents in combat. The fist may
+ be called once per combat round.
+
+ ~
+
+ 1 'BLACK HAND'~
+ The spell 'Black Hand' calls from the Ethereal Plane a disembodied hand
+ to pummel the calling Mage's opponents in combat. The hand may be called
+ once per combat round.
+
+ ~
+
+ 1 'BLACK LIGHTNING'~
+ The spell 'Black Lightning' calls from the Ethereal Plane a higly
+ organized spike of the Ethereal analogue to electricity. This spike
+ orients itself on the calling Mage's main opponent in combat, onto
+ whom it unleashes its awesome destructive power. The Black Lightning
+ may be called once per combat round.
+
+ ~
+
0 BLAZEBANE~
Syntax: cast 'blazebane' <mob>
Syntax: cast 'blazebane' <player>
***************
*** 735,740 ****
--- 807,813 ----
Bodybag retrieves all of <character's> corpses and places them into your
inventory, as well as removes the decay timer on each. This is primarily
used for performing corpse retrievals and the like.
+
~
1 'BP'~
***************
*** 769,784 ****
See EAT, BACKFIRE, RECHARGE
~
! 59 BSET BSTAT~
! Syntax: bset <board filename> <command> <argument>
! Example: bset immortal.brd vnum 1200
BSET is used to set fields governing an individual board's operation.
- Syntax: bstat <board filename>
-
- BSTAT is used to display the fields of an individual board.
-
Filename - filename to store the board's information (should be set first)
Vnum - object vnum assigned to the board (see 'help boards')
Read - the mininum level required to read the board
--- 842,853 ----
See EAT, BACKFIRE, RECHARGE
~
! 61 BSET~
! Syntax: bset <board filename> <command> <argument>
! Example: bset immortal.brd vnum 1200
BSET is used to set fields governing an individual board's operation.
Filename - filename to store the board's information (should be set first)
Vnum - object vnum assigned to the board (see 'help boards')
Read - the mininum level required to read the board
***************
*** 792,802 ****
Board groups: (example: bset druid.brd read_group guild of druids)
read_group - group that may read that board, regardless of level
post_group - group that may post to that board, regardless of level
! extra_readers - characters who may read the board regardless f their level
See BOARDS
~
0 BUG IDEA TYPO~
Syntax: bug <message>
Syntax: idea <message>
--- 861,883 ----
Board groups: (example: bset druid.brd read_group guild of druids)
read_group - group that may read that board, regardless of level
post_group - group that may post to that board, regardless of level
! extra_readers - characters who may read the board regardless of their level
! extra_removers- characters who may remove notes from this board regardless
! of their level or membership in a reader_group
See BOARDS
~
+ 59 BSTAT~
+ Syntax: bstat <board filename>
+
+ BSTAT is used to display the fields of an individual board.
+
+ (see 'help bset' for an explanation of each field)
+
+ See BSET
+ ~
+
0 BUG IDEA TYPO~
Syntax: bug <message>
Syntax: idea <message>
***************
*** 853,858 ****
--- 934,942 ----
*FILL/EMPTY <object> - fills/empties the container with water
~
+ 60 CALL LIGHTING~
+ ~
+
0 'CALL LIGHTNING'~
Syntax: cast 'call lightning'
***************
*** 894,899 ****
--- 978,992 ----
more damage.
~
+ 1 'CAUSTIC FOUNT'~
+ The second discipline of acid mastery, 'Caustic Fount' causes a
+ fountain of acid to levitate about the casting Mage's victim, bathing
+ him in a malodorous and painful concoction. The combination of magical
+ and physical attack gives this spell appreciable effect in combat versus
+ a wide variety of physical types.
+
+ ~
+
61 CEDIT~
Syntax: cedit save
Syntax: cedit <command> create [code]
***************
*** 924,930 ****
~
0 CHANGES~
! * Online building is now implemented.
* This includes rooms, mobiles, objects and resets.
--- 1017,1024 ----
~
0 CHANGES~
! CHANGES
! * Online building is now implemented.
* This includes rooms, mobiles, objects and resets.
***************
*** 1075,1080 ****
--- 1169,1175 ----
h) Augurer
To get more information on each class, type "help <class name>".
+
~
0 CLEAR~
***************
*** 1091,1096 ****
--- 1186,1192 ----
one's chances in battle, and one's armor. Clerics do possess some combat
spells and skills, but combat is far from the focus of the class. The
cleric is a fountain of wisdom and healing that many players rely on.
+
~
57 'CLIMB'~
***************
*** 1114,1120 ****
~
55 COINDUCT COOUTCAST~
! Syntax: coinduct <player>
Syntax: cooutcast <player>
Coinduct and cooutcast are similar to the 'clan' commands of induct and
--- 1210,1216 ----
~
55 COINDUCT COOUTCAST~
! 'Syntax: coinduct <player>
Syntax: cooutcast <player>
Coinduct and cooutcast are similar to the 'clan' commands of induct and
***************
*** 1122,1130 ****
--- 1218,1228 ----
Coinduct will bring a new player into the council.
Cooutcast will remove them from the council.
+
~
52 COLOR~
+ .
The following 16 colors are supported in the commands echo, recho,
mpecho, mpechoat and mpechoaround.
***************
*** 1160,1165 ****
--- 1258,1264 ----
uniquely identify it.
mpe _r This is an example of mpecho in red.
+
~
1 COMBAT~
***************
*** 1182,1187 ****
--- 1281,1287 ----
WIMPY or WIMPY <number of hitpoints>. Leaving a fight with wimpy, flee, and
recall WILL cost you a loss of experience, with recall causing the greatest
loss.
+
~
51 COMMENT~
***************
*** 1230,1235 ****
--- 1330,1336 ----
TELNTGA You receive a telnet GA sequence.
NOINTRO Toggle whether you see the graphic screen at login
GAG Toggle whether you see battle details in full or brief form.
+
~
0 CONSIDER~
***************
*** 1297,1302 ****
--- 1398,1404 ----
possible, until the container is full.
PUT ALL.<item> <container> will put as much of one type of item into the
container as possible, until the container is full.
+
~
0 'CONTINUAL LIGHT'~
***************
*** 1412,1417 ****
--- 1514,1520 ----
~
1 'CURE LIGHT' 'CURE SERIOUS' 'CURE CRITICAL' HEAL~
+ .
1) Syntax: cast heal <character>
2) Syntax: cast 'cure critical' <character>
3) Syntax: cast 'cure serious' <character>
***************
*** 1527,1540 ****
(15 minutes of real time). Only the player who died or someone in the same
group can retrieve objects from a player's corpse. The only exceptions are
for deadly characters, who can loot each other's corpses at will.
~
-1 DEBUG DEBUGGING BUGS THORIC CODING SOURCE CODE DEVELOPMENT~
. @%#$%&&*!@#!?!?!
.-------------=======[ Debugging / Coding Credits ]=======-------------.
| |
! | Most of the extensive debugging and coding of SMAUG was done |
! | by Thoric in what little spare time he could set aside. |
| |
| Other credits go out to Haus for debugging work on the online |
| building, and also to Strahd, Caine and all the gods who reported |
--- 1630,1644 ----
(15 minutes of real time). Only the player who died or someone in the same
group can retrieve objects from a player's corpse. The only exceptions are
for deadly characters, who can loot each other's corpses at will.
+
~
-1 DEBUG DEBUGGING BUGS THORIC CODING SOURCE CODE DEVELOPMENT~
. @%#$%&&*!@#!?!?!
.-------------=======[ Debugging / Coding Credits ]=======-------------.
| |
! | Most of the extensive debugging and coding of Realms of Despair |
! | was done by Thoric in what little spare time he could set aside. |
| |
| Other credits go out to Haus for debugging work on the online |
| building, and also to Strahd, Caine and all the gods who reported |
***************
*** 1559,1564 ****
--- 1663,1669 ----
argument will display the target deity's description.
SEE ALSO: supplicate, favor, devote.
+
~
0 DEMONSKIN~
***************
*** 1579,1584 ****
--- 1684,1690 ----
FREEZE <character> is a toggle which prevents a character from issuing any
commands at all.
+
~
0 DESCRIPTION BIO~
***************
*** 1728,1734 ****
~
-1 DIKU~
! This SMAUG mud was originally based on the Merc 2.1 code which was
based on the orignal DIKUMud code created by:
The Original DIKUMud Team:
--- 1834,1840 ----
~
-1 DIKU~
! Realms of Despair was originally based on the Merc 2.1 code which was
based on the orignal DIKUMud code created by:
The Original DIKUMud Team:
***************
*** 1774,1779 ****
--- 1880,1895 ----
appear under the 'deadly characters' section of the who list!
~
+ 1 DISRUPTION~
+ With the spell 'Disruption,' the casting Mage causes his opponent to
+ be enveloped in a weird energy field that momentarily alters the plane
+ which the victim inhabits. The spell was an early attempt by the Dark
+ Mage Thanatos to cause teleportation, but it was a failed attempt.
+ Instead of teleporting it causes a horrendous nerve-wracking pain as
+ the victim exits and reenters his current plane of existence.
+
+ ~
+
57 DMESG~
Syntax: dmesg
***************
*** 2115,2120 ****
--- 2231,2248 ----
INVENTORY lists your inventory.
~
+ 1 'ETHEREAL FIST'~
+ 'Ethereal Fist' is an odylic enchantment in which the casting Mage
+ conjures from the ether about himself a solid manifestation of a
+ cubical volume of ether. As if this weren't great fun in and of
+ itself, the final syllables of the spell cause the fist to
+ repeatedly and mercilessly pound into a victim of the caster's choice.
+
+ Fun to cast in a room by yourself, and always a hit at parties,
+ 'Ethereal Fist' is a low-level Mage's best friend.
+
+ ~
+
0 'ETHEREAL FUNNEL' ETHEREAL FUNNEL~
This spell increases the damage done to the victim by energy attacks.
~
***************
*** 2247,2252 ****
--- 2375,2397 ----
advantage over you in combat.
~
+ 1 'EXTRADIMENSIONAL PORTAL'~
+ The Great Wizard Thanatos, after creating his fabled WarMagicks,
+ found himself snubbed and abused in and about The Realms for his
+ researches. Much time would pass before mages and other classes
+ alike would learn the true power of these spells.
+
+ In the interim, disguised as an assassin, Thanatos became interested
+ in a more minor problem: that of carrying off the loot he gained
+ from all those he slew with Quantum Spike. Realising that such a
+ forumla would be easily grasped by his class, he thought to extend
+ it freely.
+
+ As a final touch to the spell, he thought he would spite those of
+ other classes by inbuing into these containers a quality which made
+ them unobtainable by the other classes.
+ ~
+
1 F~
. COMMANDS FOR COMBAT
---------------------
***************
*** 2568,2573 ****
--- 2713,2735 ----
Glance may be abbreviated as 'gl'.
~
+ 1 GLORY~
+ Glory is a measure of how valiant you are, and is accumulated by taking part
+ in quests and the like by the immortals. It appears in 'score' as:
+
+ Glory: 264(430)
+
+ The number in parentheses is the total lifetime glory attained by a character,
+ and the other number is your current glory. Glory can be "spent" to improve
+ items, weapons and the like.
+ ~
+
+ 1 GOLD~
+ Syntax: gold
+
+ Displays the current total gold you are carrying.
+ ~
+
52 GOTO~
Syntax: goto <location>
***************
*** 2613,2618 ****
--- 2775,2864 ----
you are engaged in fights where someone is attempting to disarm you.
~
+ 54 GRUB~
+ Here is some reference data you will need in order to use GRUB.
+
+ Sex Class Race Fields Clans Councils
+ 0 Neutral 0 Mage 0 Human Name 1 1st Guild 1 1st Council
+ 1 Male 1 Cleric 1 Elf Sex 2 2nd Guild 2 2nd Council
+ 2 Female 2 Thief 2 Dwarf Class 3 ... so on 3 ... so on
+ 3 Warrior 3 Halfling Race
+ 4 Vampire 4 Pixie Level
+ 5 Druid 5 Vampire Room
+ 6 Ranger 6 Half Ogre Gold
+ 7 Augurer 7 Half Orc Clan
+ 8 Half Troll Council
+ 9 Half Elf Site
+ 10 Gith Last
+ Pkill
+
+ Here are some sample uses of GRUB:
+
+ grub 20 pkill=y class=5 Display 20 Druid pkillers
+ grub 20 level=2 last<=970120 Display 20 L2 players absent since 970120
+ grub 20 level>=20 level<=30 Display 20 players levels 20 thru 30
+ grub 0 level=2 Count the number of level 2 players
+ grub 20 level>50 gold>100000 Display 20 imms with more than 100k gold
+ grub 50 damroll>100 sex=2 Display 50 females with damroll>150
+ grub 0 class=5 damroll>150 Count the number of druids with damroll>100
+ grub 20 site=123.456.789 Display 20 players from site 123.456.789
+ grub 10 class=0 race=2 Display 10 dwarven mages
+ grub 1 name=Joe Display Joe's info
+ grub 20 room=7070 class=0 Display 20 mages who logged off in 7070
+ grub 0 class!=2 class!=3 class!=4 Count the number of mana users
+
+ You always need to specify the number of lines you want displayed. The
+ reason for that is that we don't want to ask for a list and then get
+ surprised to find that it's 15,000 lines long. You can get a count
+ of the players that match your criteria by requesting zero lines.
+
+ GRUB will tell you how many lines there are in the list n matter how
+ many you ask to display. So if there are 15,000 players that meet yur
+ criteria and you ask for the first ten, GRUB will tell you there are
+ 15,000 in total but will only show you the first ten.
+
+ See also: HELP 'GRUB EXAMPLES'
+ ~
+
+ 54 'GRUB EXAMPLES~
+ Here are some examples illustrating common usages:
+
+ Example:
+
+ grub 20 or hitroll>150 damroll>150 gold>200000000
+
+ Suppose you want to search for "suspicious players". Suppose you want
+ to see players who have more than 200 million gold or whose damroll
+ exceeds 150 or whose hitroll exceeds 150 you can do that as follows:
+
+ Normally GRUB lists players who satisfy all the conditions you specify.
+ But it can also be used like this to list players who satisfy any one of
+ the conditions.
+
+ The operand "or" ensures GRUB will list players who satisfy any one of
+ the conditions.
+
+ If you had specified:
+
+ grub 20 hitroll>150 damroll>150 gold>200000000
+
+ That would show you players whose hitroll exceeds 150 and whose damroll
+ exceeds 150 and whose gold exceeds 200 million. It would be a much
+ smaller list and you would miss many suspicous players.
+
+ Example:
+
+ grub 20 name>ska name<skb room>=21000 room<=21499
+
+ Suppose someone complains that a player with a name like "Skathamaga"
+ picked up some of their eq and promptly quit the game. The player isn't
+ sure of the exact name of the thief but is sure it starts with "Ska".
+ The thief quit the game somewhere in New Darkhaven (vnums 21000-21499).
+
+ This example will show you players whose name starts with "Ska" and who
+ last quit the mud somewhere in New Darkhaven.
+ ~
+
0 GTELL ; REPLY SAY TELL~
Syntax: gtell <message>
Syntax: say <message>
***************
*** 2808,2814 ****
all the commands, spells, and skills listed in the game.
~
! -1 SUMMARY~
|--------------------------------------|--------------------------------------|
| MOVEMENT | GROUP |
| north east west south northeast exit | follow group gtell ; split |
--- 3054,3060 ----
all the commands, spells, and skills listed in the game.
~
! 1 HELP SUMMARY~
|--------------------------------------|--------------------------------------|
| MOVEMENT | GROUP |
| north east west south northeast exit | follow group gtell ; split |
***************
*** 2929,2936 ****
10 HOMEPAGE~
syntax: homepage <url>
! example: homepage http://www.game.org/index.html
To remove your homepage setting, type 'homepage clear'.
~
--- 3175,3187 ----
10 HOMEPAGE~
syntax: homepage <url>
! example: homepage http://www.idirect.com/test.html
+ If you have a web page somewhere, you can use the homepage
+ command to show people a link to that page whenever they
+ select the 'see who's on' link from the Realms of Despair
+ home page.
+
To remove your homepage setting, type 'homepage clear'.
~
***************
*** 3113,3119 ****
~
50 IMOTD~
! Immortal Message of the Day
~
1 'IN THE AIR'~
--- 3364,3370 ----
~
50 IMOTD~
! IMOTD
~
1 'IN THE AIR'~
***************
*** 3175,3180 ****
--- 3426,3435 ----
Installs a prototype area into the mud as a non-prototype area. The
filename can be fixed with aset (don't forget to foldarea afterwards).
+
+ Installarea renames the installed area file from 'author.are.file' to
+ 'author.are.installed' so that the builder may be assigned new vnums.
+
~
54 INSTAROOM INSTAZONE~
***************
*** 3356,3361 ****
--- 3611,3625 ----
WEAPONTYPES, VARIABLES, ARMORCLASS, LAYERS, and OMENU.
~
+ 56 LEVEL 1 'IMM SNOOP'~
+ ~
+
+ 56 LEVEL 1 CHANNELS~
+ ~
+
+ 56 LEVEL 51 COMMENT~
+ ~
+
52 LEVERFLAGS SWITCHFLAGS BUTTONFLAGS PULLCHAINFLAGS DIALFLAGS~
FLAG NAME | BITVECTOR | DESCRIPTION
----------------------------------------------------------------------
***************
*** 3489,3494 ****
--- 3753,3768 ----
~
+ 1 'MAGNETIC THRUST'~
+ 'Magnetic Thrust,' much like 'Sonic Resonance,' allows the casting
+ Mage to control the nature of space and time in the immediate locale
+ of his victim. In this sorcery, the Mage forms a wedge of magnetic
+ energy within the body of the victim. As the spell progresses, the
+ victims organs are violently rent and internal tissues are torn. The
+ resulting pain and damage are formidible, indeed.
+
+ ~
+
0 MAIL~
Syntax: mail list
Syntax: mail read <number>
***************
*** 3653,3658 ****
--- 3927,3936 ----
See MSET or OSET.
~
+ 56 'ME I'M A MORON'~
+ We all know this, but put up with you anyways!
+ ~
+
65 MEM~
~
***************
*** 3665,3676 ****
ExtDes (# of exdescs) Exits (# of exits)
Helps (# of help files) Resets (# of resets)
IdxMobs (# of unique mob indexes) Mobs (# of mobs in game total)
! IdxObjs (# of unique obj indexes) Objs (total obj_data) (total items)
Rooms (# of rooms in the game) VRooms (# of virtual rooms present)
Shops (# of shops defined) RepShps (# of repair shops defined)
! CurOq's (# of objs to be deleted) CurCq's (# of chars to be deleted)
Players (Current # link-live players) Maxplrs (max players this reboot)
! MaxEver (Max # of players ever) Topsn (top sn used) (max sn)
MaxEver time recorded at: (date and time max users was reached)
~
--- 3943,3954 ----
ExtDes (# of exdescs) Exits (# of exits)
Helps (# of help files) Resets (# of resets)
IdxMobs (# of unique mob indexes) Mobs (# of mobs in game total)
! IdxObjs (# of unique obj indexes) Objs (unique items) (total items)
Rooms (# of rooms in the game) VRooms (# of virtual rooms present)
Shops (# of shops defined) RepShps (# of repair shops defined)
! CurOq's (Not used) CurCq's (Not used)
Players (Current # link-live players) Maxplrs (max players this reboot)
! MaxEver (Max # of players ever) Topsn (top sn used) (top sn open)
MaxEver time recorded at: (date and time max users was reached)
~
***************
*** 3692,3699 ****
Originally based on the Merc 2.1 code which was created by Furey,
Hatchet, and Kahn.
This original code base is available as Merc_21.tar.gz via FTP from:
! ftp.tcp.com, ftp.math.okstate.edu and ftp.game.org.
! E-mail to 'merc-request@webnexus.com' to join the merc mailing list.
Merc would like to thank ...
... Diku Mud for their code base.
--- 3970,3977 ----
Originally based on the Merc 2.1 code which was created by Furey,
Hatchet, and Kahn.
This original code base is available as Merc_21.tar.gz via FTP from:
! ftp.tcp.com, ftp.math.okstate.edu and game.org.
! E-mail to 'merc-request@kpc.com' to join the merc mailing list.
Merc would like to thank ...
... Diku Mud for their code base.
***************
*** 3722,3727 ****
--- 4000,4013 ----
OFIND finds all object types with a particular name.
~
+ 1 'MIDAS TOUCH'~
+ Syntax: cast 'midas touch' obj
+
+ [where obj is in your inventory]
+
+ Turns an object in your inventory into gold.
+ ~
+
53 MINVOKE OINVOKE~
Syntax: minvoke <vnum>
minvoke <keyword of mob>
***************
*** 3807,3812 ****
--- 4093,4119 ----
Message of the Day
~
+ 51 MOTDS~
+ The motds are 'messages of the day', and there are several:
+
+ New characters will see the 'nmotd', containing info relevant only to
+ new characters (level 1).
+
+ Leveling characters (2 through 49) will see the 'motd', containing
+ information relevant to those who are still playing to level.
+
+ Avatars (level 50) will see the 'amotd', containing information
+ relevant to avatar characters.
+
+ Immortals (level 51 and higher) will see the 'imotd', containing
+ information specifically relevant to all immortals.
+
+ Any of the motds may be seen with 'help <name of motd>' ... for
+ example: 'help nmotd'
+
+ The motds are edited with hedit and saved with hset like all helpfiles.
+ ~
+
0 MOUNT DISMOUNT~
Syntax: mount <mob>
Syntax: dismount
***************
*** 3972,3978 ****
associated with that trigger.
For complete infomation, reference the mob program documentation available
! via FTP on ftp.game.org: (building.tar.gz/building.tar.Z/building.zip )
See MPSTAT, TRIGGER, MPTRIGGERS, MPCOMMANDS, IFCHECKS, IFCHECKS2, VARIABLES
~
--- 4279,4285 ----
associated with that trigger.
For complete infomation, reference the mob program documentation available
! via FTP on realms.game.org: (building.tar.gz/building.tar.Z/building.zip )
See MPSTAT, TRIGGER, MPTRIGGERS, MPCOMMANDS, IFCHECKS, IFCHECKS2, VARIABLES
~
***************
*** 4176,4197 ****
Mercifully, everything goes black as it moves its widening maw towards your
head...
~
-1 M_GODLVL10_~
- You suddenly feel much more powerful!
- ~
- -1 M_GODLVL11_~
- You suddenly feel much more powerful!
- ~
- -1 M_GODLVL12_~
- You suddenly feel much more powerful!
- ~
- -1 M_GODLVL13_~
- You suddenly feel much more powerful!
- ~
- -1 M_GODLVL14_~
- You suddenly feel much more powerful!
- ~
- -1 M_GODLVL15_~
You are all powerful!
~
--- 4483,4490 ----
Mercifully, everything goes black as it moves its widening maw towards your
head...
~
+
-1 M_GODLVL10_~
You are all powerful!
~
***************
*** 4326,4331 ****
--- 4619,4652 ----
loaded.
~
+ -1 NMOTD~
+ .
+ &B __________________________________________________________________________
+ / \
+ &B[&w=&B] &wNMOTD, Updated January 24th, 1997 &B[&w=&B]&w
+
+ &W"&wYou will enter the Realms at the Spectral Gates, an area to explore while
+ awaiting authorization. You will enter the Realms at this area's end...&W"&w
+
+ &B[>&w Consult your Guide for detailed information on all topics
+ &W\>&w See &W'help start'&w for a list of helpful files
+
+ &B[>&w See &W'help pager'&w for screen pausing information
+ &B[>&w See &W'help deities'&w for information on devoting (&W'deities'&w)
+
+ &B[>&w Enjoy your stay within the Realms, but don't ruin it for the others:
+ &W\>&w Do not attack another character unless you are both pkillers
+ &W\>&w Everyone must abide by the laws - no exceptions (&W'help rules'&w)
+
+ &B[>&w Read &W'help news'&w often to keep aprised of changes in the Realms
+
+ &B\__________________________________________________________________________/
+ / \
+ &w... And in the time which passed, great tumult and misery was wreaked upon
+ the stronghold of Darkhaven by the dark gods, and much change visited upon
+ the carnage which remained by the gods of the light ...
+ &B\__________________________________________________________________________/~
+
61 NORESOLVE~
Syntax: noresolve
***************
*** 4482,4496 ****
~
53 OBJECTTYPES~
! Object types:
! none light scroll wand staff weapon treasure
! armor potion furniture trash container drinkcon key
! food money boat corpse corpse_pc fountain pill
! blood bloodstain scraps pipe herbcon herb incense
! fire book switch lever pullchain button dial
! rune runepouch match trap
!
Not all are implemented.
~
53 OBJTRIGGERS OPTRIGGERS~
--- 4803,4825 ----
~
53 OBJECTTYPES~
! Object types listed in bit order:
!
! None Light Scroll Wand Staff Weapon
! Fireweapon Missile Treasure Armor Potion Worn
! Furniture Trash Oldtrap Container Note Drink_con
! Key Food Money Pen Boat Corpse_npc
! Corpse_pc Fountain Pill Blood Bloodstain Scraps
! Pipe Herb_con Herb Incense Fire Book
! Switch Lever Pullchain Button Dial Rune
! Runepouch Match Trap Map Portal Paper
! Tinder Lockpick Spike Disease Oil Fuel
! Short_bow Long_bow Crossbow Projectile Quiver Shovel
! Salve
!
Not all are implemented.
+
+ See OSET ITEMVALUES ARMORCLASS.
~
53 OBJTRIGGERS OPTRIGGERS~
***************
*** 4516,4521 ****
--- 4845,4935 ----
For objects see also: OPSTAT, OPEDIT, TRIGGER, OPCOMMANDS, IFCHECKS, VARIABLES.
~
+ 54 OGRUB~
+ Syntax: ogrub <num of lines> <sort order> [keywords] [operands]
+
+ ogrub 20 level<8 avg>12
+ Display weapons below level 8 that do more than 12 average damage.
+
+ ogrub 20 +wear type=armor hp>100 dr>20
+ Display armor with more than 100 added hp and 20 added dam roll. Sort
+ by wear location.
+
+ ogrub 20 +type nm ng vnum>=900 vnum<=951 level>45 hp>0
+ Display all eq from Olympus that is above level 45 and affects hp.
+ Sort by object type in ascending order. Display only that eq held
+ by players - ignore any on mobs or on thee ground.
+
+ ogrub 20 +name name<>gloves
+ Display all eq with the substring "gloves" in the name field. Sort
+ by object name. Note that often objects are named with two or three
+ keywords like "gauntlets steel gloves". The substring operator <>
+ is used to search fields for substrings.
+
+ ogrub 20 +cname np ng type=light int>0
+ Display lights on mobs that raise intelligence. Sort by character name.
+ Ignore any lights on players or on theground.
+
+ ogrub 20 -dr np ng luck>0 level>=10 level<=20
+ Display eq that raises luck and is between levels 10 thru 20. Sort by
+ object damroll in descending order. Only display eq on mobs.
+
+ ogrub 20 +level or hr>25 dr>25 hp>100 mp>100 ac<-100
+ Display eq that raises hit roll more than 25 or dam roll more than 25
+ or hit points more than 100 or mana points more than 100 or lowers
+ armor class by more than 100 (remember the lower the AC the better)
+ Sort by object level in ascending order.
+
+ ogrub 20 or d2 sav0>1 sav1>1 sav2>1 sav3>1 sav4>1
+ Display equipment that have affects resulting in any saving throws that are
+ greater than one. Note that positive saving throws are bad for characters
+ and negative ones are good. The more negative the better. The d2 keyword
+ requests an alternate form of display which shows the saving throws.
+
+ ogrub 20 nm cname=joe type=weapon Display Joe the player's weapons
+ ogrub 20 np cname=joe type=armor Display Joe the mob's armor
+
+ See Also: HELP OGRUB DATA
+ ~
+
+ 65 'OGRUB DATA~
+ Syntax: ogrub <num of lines> <sort order> [keywords] [operands]
+
+ Here is some reference data you will need in order to use OGRUB.
+
+ FIELDS TYPES WEAR MODIFIERS
+ cname - chr name 1 light 1 take or - select any
+ count - obj count 2 scroll 2 finger +field - sort up
+ vnum - obj vnum 3 wand 3 neck -field - sort down
+ type - obj type 4 staff 4 body np - no players
+ name - obj name 5 weapon 5 head nm - no mobs
+ level - obj level 9 armor 6 legs ng - not on the ground
+ wear - obj wear locn 10 potion 7 feet d2 - display saving throws
+ avg - obj avg dam 15 container 8 hands
+ hr - obj hit roll 16 note 9 arms OPERATORS
+ dr - ojj dam roll 18 key 10 shield = equals
+ hp - obj hit pts 19 food 11 about != not equal
+ mp - obj mana pts 23 mcorpse 12 waist > greater than
+ ac - obj armor class 24 pcorpse 13 wrist >= greater than or equal
+ str - obj str affect 26 pill 14 wield < less than
+ dex - obj dex affect 24 book 15 hold <= less than or equal
+ con - obj con affect 16 dual <> substring
+ wis - obj wis affect 17 ears
+ int - obj int affect 18 eyes
+ luck - obj luck affect 19 missile
+ sav0 - save_poison
+ sav1 - save_rod
+ sav2 - save_para
+ sav3 - save_breath
+ sav4 - save_spell
+
+ Don't be scared by the fact that things like "pill" are referenced by
+ a number like 26. If you want info about pills, you can request the
+ info either by the name "pill" or the number "26". ***SMILE***
+
+ See also: HELP OGRUB
+ ~
+
0 OLDSCORE~
Syntax: oldscore
***************
*** 4967,4972 ****
--- 5381,5409 ----
PURGE will not get rid of PC's.
~
+ 51 QPSET~
+ This command is used for giving/taking Glory from players. The syntax
+ is as follows:
+
+ qpset <player> <give|take> <amount>
+
+ Where one of give or take is used, and the amount is always a positive
+ integer.
+ ~
+
+ 1 'QUANTUM SPIKE'~
+ The 'Quantum Spike' is one of the Sorceror's most awesome attacks. With
+ this spell, the casting Mage is able to form, within the body of his
+ victim, a sphere of Quantum probability optimized in such a way as to
+ cause the most bizarre contortion of bodily order imaginable. Organs
+ and tissues are rendered into unrecognizable blobs interconnected in
+ fiendish, unknowable geometries.
+
+ Obviously, such an attack has astonishing effects on any physical
+ creature, as well as any entity which has an extention into the
+ physical world.
+ ~
+
0 QUEST~
Syntax: QUEST <message>
***************
*** 5097,5109 ****
save all of the players.
~
! 0 RECALL /~
! Syntax: recite recall
! With a scroll of recall you can get yourself back to your home town when you
! are lost or stuck. These scrolls are available at the wizard's shop in
! Darkhaven.
!
! See WORD OF RECALL.
~
0 'RECHARGE'~
--- 5534,5547 ----
save all of the players.
~
! 1 RECALL 'WORD OF RECALL'~
! Syntax: recite <name of scroll with 'word of recall'>
! Syntax: c 'word of recall'
!
! The 'word of recall' spell will return you from most areas to your home
! sanctuary. Scrolls with this spell are available at the wizard's shop
! in Darkhaven...
!
~
0 'RECHARGE'~
***************
*** 5149,5155 ****
See REFRESH.
~
! 0 REFRESH~
Syntax: cast refresh <character>
This spell refreshes the movement points of a character who is out of movement
--- 5587,5593 ----
See REFRESH.
~
! 1 REFRESH~
Syntax: cast refresh <character>
This spell refreshes the movement points of a character who is out of movement
***************
*** 5442,5451 ****
LOGSPEECH | 131072 | All speech in this room is logged
NODROP | 262144 | Nothing can be dropped in this room
CLANSTOREROOM | 524288 | Clan storage room
! NOSUMMON | 1048567 | Player cannot be summoned out of this room
! TELEPORT | | People in this room will be teleported out
! TELESHOWDESC | | Players will see the room desc of the dest room
! NOFLOOR | | Room has no floor: exit down + no fly = fall
PROTOTYPE | 1073741824 | Room is a prototype, (under construction)
~
--- 5880,5890 ----
LOGSPEECH | 131072 | All speech in this room is logged
NODROP | 262144 | Nothing can be dropped in this room
CLANSTOREROOM | 524288 | Clan storage room
! NOSUMMON | 1048576 | Player cannot be summoned out of this room
! NOASTRAL | 2097152 | People cannot astral to this room
! TELEPORT | 4194304 | People in this room will be teleported out
! TELESHOWDESC | 8388608 | Players will see the room desc of the dest room
! NOFLOOR | 16777216 | Room has no floor: exit down + no fly = fall
PROTOTYPE | 1073741824 | Room is a prototype, (under construction)
~
***************
*** 5998,6012 ****
taken on several assistants in expanding and improving the code.
Thoric Altrag Blodkai Narn Haus Scryn Swordbearer Rennard Tricops Gorog
- -----------------------------------------------------------------------
-
-
- The primary implementation of SMAUG is Realms of Despair, running at:
- realms.game.org 4000 (see: http://www.game.org ftp://ftp.game.org/pub/realms)
-
- Mailing list: smaug@realms.game.org (to join: smaug-request@realms.game.org)
- Web page: http://www.game.org/smaug/ FTP site: ftp://ftp.game.org/pub/smaug
-
~
55 SMAUGSPELLS~
--- 6437,6442 ----
***************
*** 6056,6061 ****
--- 6486,6500 ----
not succeed in bad weather).
~
+ 1 'SONIC RESONANCE'~
+ The magick of 'Sonic Resonance' allows the casting Mage to realign
+ the component particles of his foe in such a way that they are
+ susceptible to a certain mystical tone. By the completion of the
+ spell, this tone is conjured, causing the particles to vibrate
+ violently causing intense pain and tissue damage.
+
+ ~
+
0 SPEAK~
Syntax: speak
Syntax: speak <language>
***************
*** 6239,6244 ****
--- 6678,6693 ----
stun your opponent if successful.
~
+ 1 'SULFUROUS SPRAY'~
+ With the incantation 'Sulfurous Spray,' the casting mage culls from
+ the air the elements necessary to form a strong acid which rains
+ down upon his opponent or opponents. This strength and velocity
+ of the spray is such that it can work its way into various forms
+ of armor and clothing, and it is also able to harm opponents one
+ might think resistant to such attacks, due to its magical nature.
+
+ ~
+
51 SUMMARY~
|--------------------------------------|--------------------------------------|
| MOVEMENT | GROUP |
***************
*** 6263,6268 ****
--- 6712,6718 ----
Also see help on: !, save, quit, pagelength, and practice.
To use the help menu, just type "help <topic>".
To see help on individual areas, you can now type "help <full area name>".
+ If you are new to the game, type HELP NEWBIE to see a special help series.
~
1 SUMMON SUMMONING~
***************
*** 6424,6429 ****
--- 6874,6886 ----
attributes and can modify them with objects.
~
+ 1 TRANCE~
+ Syntax: trance
+
+ A character in possession of this skill may use it to briefly focus its
+ energies toward restoring a small burst of mana.
+ ~
+
52 TRANSFER~
Syntax: transfer <character>
Syntax: transfer all
***************
*** 6859,6870 ****
Syntax: wizlist
Displays a hierarchical list of immortals.
- ~
-
- 0 'WORD OF RECALL'~
- Syntax: cast 'word of recall'
-
- This spell will recall the caster to his or her home sanctuary.
~
56 'WYVERN'S TOWER'~
--- 7316,7321 ----
diff -cr tmp/dist/doc/contrib.txt dist/doc/contrib.txt
*** tmp/dist/doc/contrib.txt Mon Jan 13 10:48:39 1997
--- dist/doc/contrib.txt Thu Feb 6 09:40:27 1997
***************
*** 98,111 ****
Altrag started coding early in 1996.
! Has done a lot of major code work including the vnums command, tongues,
! the mposet, mpmset mudprog commands (mpxset.c), rewrote mprog_do_ifcheck
! from a big mess of redundant code into something nice and clean :),
! the screen pager, the configurable prompt code, the reset code (reset.c),
! the command timing/lag detection code, a lot of "safeguard" coding, the
! fancier "echo" command, the new owhere command, corpse saving, hell/unhell
! commands, ban saving and loading, some work on the RIS stuff, some skills
! and spells, as well as the retrans and regoto commands.
-----------------------------------------------------------------------------
--- 98,111 ----
Altrag started coding early in 1996.
! Has done a lot of major code work including the vnums command, tongues, the
! mposet, mpmset mudprog commands (mpxset.c), rewrote mprog_do_ifcheck from a
! big mess of redundant code into something nice and clean :), the screen
! pager, the configurable prompt code, the inline color codes, the reset code
! (reset.c), the command timing/lag detection code, a lot of "safeguard"
! coding, the fancier "echo" command, the new owhere command, corpse saving,
! hell/unhell commands, ban saving and loading, some work on the RIS stuff,
! some skills and spells, as well as the retrans and regoto commands.
-----------------------------------------------------------------------------
Only in tmp/dist/gods: Blodkai
diff -cr tmp/dist/src/Makefile dist/src/Makefile
*** tmp/dist/src/Makefile Wed Dec 18 10:51:35 1996
--- dist/src/Makefile Thu Feb 6 09:38:20 1997
***************
*** 6,22 ****
C_FLAGS = -g3 -Wall $(PROF) $(NOCRYPT) $(DBUGFLG)
L_FLAGS = $(PROF)
! O_FILES = comments.o player.o ibuild.o act_comm.o act_info.o \
! act_move.o act_obj.o act_wiz.o boards.o clans.o comm.o const.o db.o \
! fight.o handler.o interp.o magic.o makeobjs.o misc.o mud_comm.o \
! mud_prog.o mpxset.o requests.o save.o shops.o skills.o special.o track.o \
! update.o mapout.o build.o id.o hashstr.o tables.o reset.o deity.o
! C_FILES = comments.c player.c ibuild.c act_comm.c act_info.c \
! act_move.c act_obj.c act_wiz.c boards.c clans.c comm.c const.c db.c \
! fight.c handler.c interp.c magic.c makeobjs.c misc.c mud_comm.c \
! mud_prog.c mpxset.c requests.c save.c shops.c skills.c special.c track.c \
! update.c mapout.c build.c id.c hashstr.c tables.c reset.c deity.c
H_FILES = mud.h bet.h
--- 6,24 ----
C_FLAGS = -g3 -Wall $(PROF) $(NOCRYPT) $(DBUGFLG)
L_FLAGS = $(PROF)
! O_FILES = act_comm.o act_info.o act_move.o act_obj.o act_wiz.o boards.o \
! build.o clans.o comm.o comments.o const.o db.o deity.o fight.o \
! handler.o hashstr.o ibuild.o id.o interp.o magic.o makeobjs.o \
! mapout.o misc.o mpxset.o mud_comm.o mud_prog.o player.o requests.o \
! reset.o save.o shops.o skills.o special.o tables.o track.o update.o \
! grub.o
! C_FILES = act_comm.c act_info.c act_move.c act_obj.c act_wiz.c boards.c \
! build.c clans.c comm.c comments.c const.c db.c deity.c fight.c \
! handler.c hashstr.c ibuild.c id.c interp.c magic.c makeobjs.c \
! mapout.c misc.c mpxset.c mud_comm.c mud_prog.c player.c requests.c \
! reset.c save.c shops.c skills.c special.c tables.c track.c update.c \
! grub.c
H_FILES = mud.h bet.h
diff -cr tmp/dist/src/act_comm.c dist/src/act_comm.c
*** tmp/dist/src/act_comm.c Mon Dec 16 12:43:35 1996
--- dist/src/act_comm.c Thu Feb 6 09:22:47 1997
***************
*** 986,992 ****
char *sbuf = buf;
if ( !knows_language( vch, ch->speaking, ch ) &&
! (!IS_NPC(ch) || ch->speaking != 0) )
sbuf = scramble(buf, ch->speaking);
MOBtrigger = FALSE;
act( AT_ACTION, "$n $t", ch, sbuf, vch, (vch == ch ? TO_CHAR : TO_VICT) );
--- 986,992 ----
char *sbuf = buf;
if ( !knows_language( vch, ch->speaking, ch ) &&
! (!IS_NPC(ch) && ch->speaking != 0) )
sbuf = scramble(buf, ch->speaking);
MOBtrigger = FALSE;
act( AT_ACTION, "$n $t", ch, sbuf, vch, (vch == ch ? TO_CHAR : TO_VICT) );
***************
*** 1375,1380 ****
--- 1375,1397 ----
send_to_char( "You must be at least second level to save.\n\r", ch );
return;
}
+
+ if ( !IS_SET( ch->affected_by, race_table[ch->race].affected ) )
+ SET_BIT( ch->affected_by, race_table[ch->race].affected );
+ if ( !IS_SET( ch->resistant, race_table[ch->race].resist ) )
+ SET_BIT( ch->resistant, race_table[ch->race].resist );
+ if ( !IS_SET( ch->susceptible, race_table[ch->race].suscept ) )
+ SET_BIT( ch->susceptible, race_table[ch->race].suscept );
+
+ if ( ch->pcdata->deity )
+ {
+ if ( !IS_SET( ch->affected_by, ch->pcdata->deity->affected ) )
+ SET_BIT( ch->affected_by, ch->pcdata->deity->affected );
+ if ( !IS_SET( ch->resistant, ch->pcdata->deity->element ) )
+ SET_BIT( ch->resistant, ch->pcdata->deity->element );
+ if ( !IS_SET( ch->susceptible, ch->pcdata->deity->suscept ) )
+ SET_BIT( ch->susceptible, ch->pcdata->deity->suscept );
+ }
save_char_obj( ch );
saving_char = NULL;
send_to_char( "Ok.\n\r", ch );
***************
*** 1669,1674 ****
--- 1686,1755 ----
}
}
return;
+ }
+
+ if ( !strcmp( arg, "disband" ))
+ {
+ CHAR_DATA *gch;
+ int count = 0;
+
+ if ( ch->leader || ch->master )
+ {
+ send_to_char( "You cannot disband a group if you're following someone.\n\r", ch );
+ return;
+ }
+
+ for ( gch = first_char; gch; gch = gch->next )
+ {
+ if ( is_same_group( ch, gch )
+ && ( ch != gch ) )
+ {
+ gch->leader = NULL;
+ gch->master = NULL;
+ count++;
+ send_to_char( "Your group is disbanded.\n\r", gch );
+ }
+ }
+
+ if ( count == 0 )
+ send_to_char( "You have no group members to disband.\n\r", ch );
+ else
+ send_to_char( "You disband your group.\n\r", ch );
+
+ return;
+ }
+
+ if ( !strcmp( arg, "all" ) )
+ {
+ CHAR_DATA *rch;
+ int count = 0;
+
+ for ( rch = ch->in_room->first_person; rch; rch = rch->next_in_room )
+ {
+ if ( ch != rch
+ && !IS_NPC( rch )
+ && can_see( ch, rch )
+ && rch->master == ch
+ && !ch->master
+ && !ch->leader
+ && abs( ch->level - rch->level ) < 8
+ && !is_same_group( rch, ch )
+ && IS_PKILL( ch ) == IS_PKILL( rch )
+ )
+ {
+ rch->leader = ch;
+ count++;
+ }
+ }
+
+ if ( count == 0 )
+ send_to_char( "You have no eligible group members.\n\r", ch );
+ else
+ {
+ act( AT_ACTION, "$n groups $s followers.", ch, NULL, victim, TO_ROOM );
+ send_to_char( "You group your followers.\n\r", ch );
+ }
+ return;
}
if ( ( victim = get_char_room( ch, arg ) ) == NULL )
diff -cr tmp/dist/src/act_info.c dist/src/act_info.c
*** tmp/dist/src/act_info.c Tue Dec 17 01:55:55 1996
--- dist/src/act_info.c Thu Feb 6 09:22:47 1997
***************
*** 75,80 ****
--- 75,82 ----
if ( IS_OBJ_STAT(obj, ITEM_HUM) ) strcat( buf, "(Humming) " );
if ( IS_OBJ_STAT(obj, ITEM_HIDDEN) ) strcat( buf, "(Hidden) " );
if ( IS_OBJ_STAT(obj, ITEM_BURRIED) ) strcat( buf, "(Burried) " );
+ if ( IS_IMMORTAL(ch)
+ && IS_OBJ_STAT(obj, ITEM_PROTOTYPE) ) strcat( buf, "(PROTO) " );
if ( IS_AFFECTED(ch, AFF_DETECTTRAPS)
&& is_trapped(obj) ) strcat( buf, "(Trap) " );
***************
*** 452,457 ****
--- 454,461 ----
strcat( buf, "(THIEF) " );
if ( !IS_NPC(victim) && IS_SET(victim->act, PLR_LITTERBUG ) )
strcat( buf, "(LITTERBUG) " );
+ if ( IS_NPC(victim) && IS_IMMORTAL(ch)
+ && IS_SET(victim->act, ACT_PROTOTYPE) ) strcat( buf, "(PROTO) " );
if ( victim->desc && victim->desc->connected == CON_EDITING )
strcat( buf, "(Writing) " );
***************
*** 691,697 ****
return door;
}
-
void do_look( CHAR_DATA *ch, char *argument )
{
char arg [MAX_INPUT_LENGTH];
--- 695,700 ----
***************
*** 1292,1301 ****
--- 1295,1306 ----
send_to_char( "You notice that it is not depressed.\n\r", ch );
break;
+ /* Not needed due to check in do_look already
case ITEM_PORTAL:
sprintf( buf, "in %s noprog", arg );
do_look( ch, buf );
break;
+ */
case ITEM_CORPSE_PC:
case ITEM_CORPSE_NPC:
***************
*** 1664,1670 ****
fprintf( fpout, "0 $~\n\n\n#$\n" );
fclose( fpout );
fpReserve = fopen( NULL_FILE, "r" );
! send_to_char( "Saved.\n", ch );
return;
}
if ( str_cmp( arg1, "remove" ) )
--- 1669,1675 ----
fprintf( fpout, "0 $~\n\n\n#$\n" );
fclose( fpout );
fpReserve = fopen( NULL_FILE, "r" );
! send_to_char( "Saved.\n\r", ch );
return;
}
if ( str_cmp( arg1, "remove" ) )
***************
*** 2508,2514 ****
sprintf( buf, "%d", mob->pIndexData->vnum );
if ( !is_name( buf, skill_table[sn]->teachers ) )
{
! act( AT_TELL, "$n tells you 'I no not know how to teach that.'",
mob, NULL, ch, TO_VICT );
return;
}
--- 2513,2519 ----
sprintf( buf, "%d", mob->pIndexData->vnum );
if ( !is_name( buf, skill_table[sn]->teachers ) )
{
! act( AT_TELL, "$n tells you, 'I know not know how to teach that.'",
mob, NULL, ch, TO_VICT );
return;
}
***************
*** 3622,3764 ****
ch_printf( ch, "Page pausing set to %d lines.\n\r", ch->pcdata->pagerlen );
return;
}
-
- /*
- * Sorts the arrays "vnums" and "count" based on the order in "count"
- */
- void zero_sort( int *vnums, int *count, int left, int right )
- {
- int i=left, j=right, swap, test;
- test = count[(left + right) / 2];
- do {
- while (count[i] > test) i++;
- while (test > count[j]) j--;
- if (i <= j) {
- swap=count[i]; count[i] = count[j]; count[j] = swap;
- swap=vnums[i]; vnums[i] = vnums[j]; vnums[j] = swap;
- i++; j--;
- }
- }
- while (i <= j);
- if (left < j) zero_sort (vnums, count, left, j);
- if (i < right) zero_sort (vnums, count, i, right);
- }
-
- /*
- * Displays the help screen for the "diagnose" command
- */
- void diagnose_help (CHAR_DATA *ch)
- {
- send_to_char( "Syntax:\n\r", ch);
- send_to_char( "diagnose of n - object frequency top n objects\n\r", ch );
- send_to_char( "diagnose zero - count objects with zero weight\n\r", ch );
- send_to_char( "diagnose zero n - list n objects with zero weight\n\r", ch );
- }
-
- /*
- * Takes an object vnum and the count of the number of times
- * that object occurs and decides whether or not to include it in the
- * frequency table which contains the "top n" frequently occurring objects.
- */
-
- void diag_ins (OBJ_INDEX_DATA *p, int siz, OBJ_INDEX_DATA **f, CHAR_DATA *ch)
- {
- int cou = 0; /* temporary counter */
- int ins = -1; /* insert pos in dynamic f array */
-
- if (!f[siz-1] || p->count>f[siz-1]->count) /* don't bother looping thru f */
- while ( cou<siz && ins<0 ) /* should this vnum be insertted? */
- if ( !f[cou++] || p->count > f[cou-1]->count )
- ins = cou-1; /* needs to go into pos "cou" */
-
- if ( ins>=0 ) /* if vnum occurs more frequently */
- {
- for (cou = siz-1; cou > ins; cou--) /* open a slot in the table */
- f[cou] = f[cou-1];
- f[ins] = p; /* insert pointer in empty slot */
- }
- }
-
- /*
- * The "diagnose" command is designed to be expandable and take different
- * parameters to handle different diagnostic routines.
- * The only parameter it takes at present is "of" (object frequencies).
- */
-
- void do_diagnose( CHAR_DATA *ch, char *argument )
- {
- #define DIAG_MAX_SIZE 1000
- extern OBJ_INDEX_DATA *obj_index_hash[MAX_KEY_HASH];
- OBJ_INDEX_DATA *pObj;
- OBJ_INDEX_DATA **freq; /* dynamic array of pointers */
- char arg1 [MAX_INPUT_LENGTH];
- char arg2 [MAX_INPUT_LENGTH];
- int num = 20; /* display lines requested */
- int cou;
-
- argument = one_argument( argument, arg1 );
- argument = one_argument( argument, arg2 );
- if (!*arg1) { /* empty arg gets help screen */
- diagnose_help(ch);
- return;
- }
- if (!str_cmp(arg1, "of")) {
- if (*arg2) /* empty arg gets dft number */
- num = atoi (arg2);
- if (num > DIAG_MAX_SIZE || num < 1) { /* display num out of bounds */
- diagnose_help(ch);
- return;
- }
- CREATE(freq, OBJ_INDEX_DATA *, num); /* dynamic freq array */
- for (cou = 0; cou < num; cou++) /* initialize freq array */
- freq[cou] = NULL; /* to NULL pointers */
- for (cou = 0; cou < MAX_KEY_HASH; cou++) { /* loop thru obj_index_hash */
- if ( obj_index_hash[cou] ) /* safety check */
- for (pObj=obj_index_hash[cou]; /* loop thru all pObjInd */
- pObj; pObj=pObj->next)
- diag_ins (pObj, num, freq, ch); /* insert pointer into list */
- }
- ch_printf (ch, "\n\rObject Frequencies\n\r"); /* send results to char */
- for (cou = 0; cou < num && freq[cou]; cou++)
- ch_printf(ch, "%3d%8d%8d\n\r", cou+1,freq[cou]->vnum,freq[cou]->count);
- DISPOSE(freq);
- return;
- }
- if (!str_cmp(arg1, "zero"))
- {
- #define ZERO_MAX 1500
- int vnums[ZERO_MAX];
- int count[ZERO_MAX];
- int zero_obj_ind = 0; /* num of obj_ind's with 0 wt */
- int zero_obj = 0; /* num of objs with 0 wt */
- int zero_num = -1; /* num of lines requested */
-
- if (*arg2)
- zero_num = atoi (arg2);
- for (cou = 0; cou < MAX_KEY_HASH; cou++) /* loop thru obj_index_hash */
- if ( obj_index_hash[cou] )
- for (pObj=obj_index_hash[cou]; pObj; pObj=pObj->next)
- if (pObj->weight == 0) {
- zero_obj_ind++;
- zero_obj += pObj->count;
- if (zero_obj_ind <= ZERO_MAX) {
- vnums[zero_obj_ind - 1] = pObj->vnum;
- count[zero_obj_ind - 1] = pObj->count;
- }
- }
- if (zero_num > 0) {
- zero_sort (vnums, count, 0, zero_obj_ind - 1);
- zero_num = UMIN (zero_num, ZERO_MAX);
- zero_num = UMIN (zero_num, zero_obj_ind);
- for (cou=0; cou<zero_num; cou++)
- ch_printf (ch, "%6d %6d %6d\n\r",
- cou+1, vnums[cou], count[cou]);
- }
- ch_printf (ch, "%6d %6d\n\r", zero_obj_ind, zero_obj);
- return;
- }
- diagnose_help( ch );
- }
-
-
-
--- 3627,3629 ----
diff -cr tmp/dist/src/act_obj.c dist/src/act_obj.c
*** tmp/dist/src/act_obj.c Mon Dec 16 12:43:35 1996
--- dist/src/act_obj.c Thu Feb 6 09:22:47 1997
***************
*** 269,275 ****
if ( fAll )
send_to_char( "I see nothing here.\n\r", ch );
else
! act( AT_PLAIN, "I see no $T here.", ch, NULL, &arg1[4], TO_CHAR );
}
else
if ( IS_SET( sysdata.save_flags, SV_GET ) )
--- 269,275 ----
if ( fAll )
send_to_char( "I see nothing here.\n\r", ch );
else
! act( AT_PLAIN, "I see no $T here.", ch, NULL, chk, TO_CHAR );
}
else
if ( IS_SET( sysdata.save_flags, SV_GET ) )
***************
*** 1857,1865 ****
if ( arg[0] == '\0' || !str_cmp( arg, ch->name ) )
{
! act( AT_ACTION, "$n offers $mself to Thoric, who graciously declines.",
ch, NULL, NULL, TO_ROOM );
! send_to_char( "Thoric appreciates your offer and may accept it later.", ch );
return;
}
--- 1857,1865 ----
if ( arg[0] == '\0' || !str_cmp( arg, ch->name ) )
{
! act( AT_ACTION, "$n offers $mself to $s deity, who graciously declines.",
ch, NULL, NULL, TO_ROOM );
! send_to_char( "Your deity appreciates your offer and may accept it later.", ch );
return;
}
***************
*** 1912,1921 ****
extract_obj( obj );
return;
}
-
-
-
-
void do_brandish( CHAR_DATA *ch, char *argument )
{
--- 1912,1917 ----
diff -cr tmp/dist/src/act_wiz.c dist/src/act_wiz.c
*** tmp/dist/src/act_wiz.c Wed Dec 18 15:19:08 1996
--- dist/src/act_wiz.c Thu Feb 6 09:22:47 1997
***************
*** 19,26 ****
#include <time.h>
#include <unistd.h>
#include <ctype.h>
- #include <sys/stat.h>
#include <sys/types.h>
#include <errno.h>
#include "mud.h"
--- 19,26 ----
#include <time.h>
#include <unistd.h>
#include <ctype.h>
#include <sys/types.h>
+ #include <sys/stat.h>
#include <errno.h>
#include "mud.h"
***************
*** 1283,1293 ****
victim->leader ? victim->leader->name : "(none)" );
if ( !IS_NPC(victim) )
ch_printf( ch,
! "Thirst: %d Full: %d Drunk: %d Favor: %d\n\r",
victim->pcdata->condition[COND_THIRST],
victim->pcdata->condition[COND_FULL],
victim->pcdata->condition[COND_DRUNK],
! victim->pcdata->favor );
else
ch_printf( ch, "Hit dice: %dd%d+%d. Damage dice: %dd%d+%d.\n\r",
victim->pIndexData->hitnodice,
--- 1283,1295 ----
victim->leader ? victim->leader->name : "(none)" );
if ( !IS_NPC(victim) )
ch_printf( ch,
! "Thirst: %d Full: %d Drunk: %d Favor: %d Glory: %d/%d\n\r",
victim->pcdata->condition[COND_THIRST],
victim->pcdata->condition[COND_FULL],
victim->pcdata->condition[COND_DRUNK],
! victim->pcdata->favor,
! victim->pcdata->quest_curr,
! victim->pcdata->quest_accum );
else
ch_printf( ch, "Hit dice: %dd%d+%d. Damage dice: %dd%d+%d.\n\r",
victim->pIndexData->hitnodice,
***************
*** 1997,2010 ****
if ( get_trust(ch) < LEVEL_DEMI )
{
if ( IS_NPC(ch) )
{
send_to_char( "Huh?\n\r", ch );
return;
}
!
! if ( vnum < ch->pcdata->m_range_lo
! || vnum > ch->pcdata->m_range_hi )
{
send_to_char( "That number is not in your allocated range.\n\r", ch );
return;
--- 1999,2019 ----
if ( get_trust(ch) < LEVEL_DEMI )
{
+ AREA_DATA *pArea;
+
if ( IS_NPC(ch) )
{
send_to_char( "Huh?\n\r", ch );
return;
}
!
! if ( !ch->pcdata || !(pArea=ch->pcdata->area) )
! {
! send_to_char( "You must have an assigned area to invoke this mobile.\n\r", ch );
! return;
! }
! if ( vnum < pArea->low_m_vnum
! && vnum > pArea->hi_m_vnum )
{
send_to_char( "That number is not in your allocated range.\n\r", ch );
return;
***************
*** 2100,2113 ****
if ( get_trust(ch) < LEVEL_DEMI )
{
if ( IS_NPC(ch) )
{
send_to_char( "Huh?\n\r", ch );
return;
}
! if ( vnum < ch->pcdata->o_range_lo
! || vnum > ch->pcdata->o_range_hi )
{
send_to_char( "That number is not in your allocated range.\n\r", ch );
return;
--- 2109,2129 ----
if ( get_trust(ch) < LEVEL_DEMI )
{
+ AREA_DATA *pArea;
+
if ( IS_NPC(ch) )
{
send_to_char( "Huh?\n\r", ch );
return;
}
! if ( !ch->pcdata || !(pArea=ch->pcdata->area) )
! {
! send_to_char( "You must have an assigned area to invoke this object.\n\r", ch );
! return;
! }
! if ( vnum < pArea->low_o_vnum
! && vnum > pArea->hi_o_vnum )
{
send_to_char( "That number is not in your allocated range.\n\r", ch );
return;
***************
*** 2280,2286 ****
--- 2296,2304 ----
{
char arg[MAX_INPUT_LENGTH];
char buf[MAX_STRING_LENGTH];
+ char buf2[MAX_STRING_LENGTH];
CHAR_DATA *victim;
+ AREA_DATA *pArea;
int sn;
argument = one_argument( argument, arg );
***************
*** 2328,2333 ****
--- 2346,2390 ----
victim->hit = victim->max_hit;
victim->mana = victim->max_mana;
victim->move = victim->max_move;
+
+
+ sprintf( buf, "%s%s", GOD_DIR, capitalize(victim->name) );
+
+ if ( !remove( buf ) )
+ send_to_char( "Player's immortal data destroyed.\n\r", ch );
+ else if ( errno != ENOENT )
+ {
+ ch_printf( ch, "Unknown error #%d - %s (immortal data). Report to
+ Thoric\n\r",
+ errno, strerror( errno ) );
+ sprintf( buf2, "%s balzhuring %s", ch->name, buf );
+ perror( buf2 );
+ }
+ sprintf( buf2, "%s.are", capitalize(arg) );
+ for ( pArea = first_build; pArea; pArea = pArea->next )
+ if ( !strcmp( pArea->filename, buf2 ) )
+ {
+ sprintf( buf, "%s%s", BUILD_DIR, buf2 );
+ if ( IS_SET( pArea->status, AREA_LOADED ) )
+ fold_area( pArea, buf, FALSE );
+ close_area( pArea );
+ sprintf( buf2, "%s.bak", buf );
+ set_char_color( AT_RED, ch ); /* Log message changes colors */
+ if ( !rename( buf, buf2 ) )
+ send_to_char( "Player's area data destroyed. Area saved as
+ backup.\n\r", ch);
+ else if ( errno != ENOENT )
+ {
+ ch_printf( ch, "Unknown error #%d - %s (area data). Report to
+ Thoric.\n\r",
+ errno, strerror( errno ) );
+ sprintf( buf2, "%s destroying %s", ch->name, buf );
+ perror( buf2 );
+ }
+ }
+
+
+ make_wizlist();
advance_level( victim );
do_help(victim, "M_BALZHUR_" );
set_char_color( AT_WHITE, victim );
***************
*** 2991,2996 ****
--- 3048,3104 ----
}
+ void do_notitle( CHAR_DATA *ch, char *argument )
+ {
+ char buf[MAX_STRING_LENGTH];
+ char arg[MAX_INPUT_LENGTH];
+ CHAR_DATA *victim;
+
+ one_argument( argument, arg );
+
+ if ( arg[0] == '\0' )
+ {
+ send_to_char( "Notitle whom?\n\r", ch );
+ return;
+ }
+
+ if ( ( victim = get_char_world( ch, arg ) ) == NULL )
+ {
+ send_to_char( "They aren't here.\n\r", ch );
+ return;
+ }
+
+ if ( IS_NPC(victim) )
+ {
+ send_to_char( "Not on NPC's.\n\r", ch );
+ return;
+ }
+
+ if ( get_trust( victim ) >= get_trust( ch ) )
+ {
+ send_to_char( "You failed.\n\r", ch );
+ return;
+ }
+
+ if ( IS_SET(victim->pcdata->flags, PCFLAG_NOTITLE) )
+ {
+ REMOVE_BIT(victim->pcdata->flags, PCFLAG_NOTITLE);
+ send_to_char( "You can set your own title again.\n\r", victim );
+ send_to_char( "NOTITLE removed.\n\r", ch );
+ }
+ else
+ {
+ SET_BIT(victim->pcdata->flags, PCFLAG_NOTITLE);
+ sprintf( buf, "the %s",
+ title_table [victim->class] [victim->level]
+ [victim->sex == SEX_FEMALE ? 1 : 0] );
+ set_title( victim, buf );
+ send_to_char( "You can't set your own title!\n\r", victim );
+ send_to_char( "NOTITLE set.\n\r", ch );
+ }
+
+ return;
+ }
void do_silence( CHAR_DATA *ch, char *argument )
{
***************
*** 3046,3052 ****
if ( arg[0] == '\0' )
{
! send_to_char( "Silence whom?", ch );
return;
}
--- 3154,3160 ----
if ( arg[0] == '\0' )
{
! send_to_char( "Unsilence whom?\n\r", ch );
return;
}
***************
*** 3890,3895 ****
--- 3998,4132 ----
return;
}
+ /*
+ * Extract area names from "input" string and place result in "output" string
+ * e.g. "aset joe.are sedit susan.are cset" --> "joe.are susan.are"
+ * - Gorog
+ */
+ void extract_area_names (char *inp, char *out)
+ {
+ char buf[MAX_INPUT_LENGTH], *pbuf=buf;
+ int len;
+
+ *out='\0';
+ while (inp && *inp)
+ {
+ inp = one_argument(inp, buf);
+ if ( (len=strlen(buf)) >= 5 && !strcmp(".are", pbuf+len-4) )
+ {
+ if (*out) strcat (out, " ");
+ strcat (out, buf);
+ }
+ }
+ }
+
+ /*
+ * Remove area names from "input" string and place result in "output" string
+ * e.g. "aset joe.are sedit susan.are cset" --> "aset sedit cset"
+ * - Gorog
+ */
+ void remove_area_names (char *inp, char *out)
+ {
+ char buf[MAX_INPUT_LENGTH], *pbuf=buf;
+ int len;
+
+ *out='\0';
+ while (inp && *inp)
+ {
+ inp = one_argument(inp, buf);
+ if ( (len=strlen(buf)) < 5 || strcmp(".are", pbuf+len-4) )
+ {
+ if (*out) strcat (out, " ");
+ strcat (out, buf);
+ }
+ }
+ }
+
+ /*
+ * Allows members of the Area Council to add Area names to the bestow field.
+ * Area names mus end with ".are" so that no commands can be bestowed.
+ */
+ void do_bestowarea( CHAR_DATA *ch, char *argument )
+ {
+ char arg[MAX_INPUT_LENGTH];
+ char buf[MAX_STRING_LENGTH];
+ CHAR_DATA *victim;
+ int arg_len;
+
+ argument = one_argument( argument, arg );
+
+ if ( str_cmp( ch->pcdata->council_name, "Area Council" )
+ && get_trust (ch) < LEVEL_SUB_IMPLEM )
+ {
+ send_to_char( "Sorry. You are not on the Area Council.\n\r", ch );
+ return;
+ }
+
+ if ( !*arg )
+ {
+ send_to_char(
+ "Syntax:\n\r"
+ "bestowarea <victim> <filename>.are\n\r"
+ "bestowarea <victim> none removes bestowed areas\n\r"
+ "bestowarea <victim> list lists bestowed areas\n\r"
+ "bestowarea <victim> lists bestowed areas\n\r", ch);
+ return;
+ }
+
+ if ( !(victim = get_char_world( ch, arg )) )
+ {
+ send_to_char( "They aren't here.\n\r", ch );
+ return;
+ }
+
+ if ( IS_NPC( victim ) )
+ {
+ send_to_char( "You can't give special abilities to a mob!\n\r", ch );
+ return;
+ }
+
+ if ( get_trust(victim) < LEVEL_IMMORTAL )
+ {
+ send_to_char( "They aren't an immortal.\n\r", ch );
+ return;
+ }
+
+ if (!victim->pcdata->bestowments)
+ victim->pcdata->bestowments = str_dup("");
+
+ if ( !*argument || !str_cmp (argument, "list") )
+ {
+ extract_area_names (victim->pcdata->bestowments, buf);
+ ch_printf( ch, "Bestowed areas: %s\n\r", buf);
+ return;
+ }
+
+ if ( !str_cmp (argument, "none") )
+ {
+ remove_area_names (victim->pcdata->bestowments, buf);
+ DISPOSE( victim->pcdata->bestowments );
+ victim->pcdata->bestowments = str_dup( buf );
+ send_to_char( "Done.\n\r", ch);
+ return;
+ }
+
+ arg_len = strlen(argument);
+ if ( arg_len < 5
+ || argument[arg_len-4] != '.' || argument[arg_len-3] != 'a'
+ || argument[arg_len-2] != 'r' || argument[arg_len-1] != 'e' )
+ {
+ send_to_char( "You can only bestow an area name\n\r", ch );
+ send_to_char( "E.G. bestow joe sam.are\n\r", ch );
+ return;
+ }
+
+ sprintf( buf, "%s %s", victim->pcdata->bestowments, argument );
+ DISPOSE( victim->pcdata->bestowments );
+ victim->pcdata->bestowments = str_dup( buf );
+ ch_printf( victim, "%s has bestowed on you the area: %s\n\r",
+ ch->name, argument );
+ send_to_char( "Done.\n\r", ch );
+ }
void do_bestow( CHAR_DATA *ch, char *argument )
{
***************
*** 3917,3923 ****
return;
}
! if ( get_trust( victim ) >= get_trust( ch ) )
{
send_to_char( "You aren't powerful enough...\n\r", ch );
return;
--- 4154,4160 ----
return;
}
! if ( get_trust( victim ) > get_trust( ch ) )
{
send_to_char( "You aren't powerful enough...\n\r", ch );
return;
***************
*** 4040,4046 ****
new_boot_time = update_time(now_time);
new_boot_struct = *new_boot_time;
new_boot_time = &new_boot_struct;
! reboot_check("reset");
get_reboot_string();
ch_printf(ch, "Boot time set to %s\n\r", reboot_time);
--- 4277,4283 ----
new_boot_time = update_time(now_time);
new_boot_struct = *new_boot_time;
new_boot_time = &new_boot_struct;
! reboot_check(mktime(new_boot_time));
get_reboot_string();
ch_printf(ch, "Boot time set to %s\n\r", reboot_time);
***************
*** 5005,5016 ****
ctime(&victim->pcdata->release_date));
act(AT_MAGIC, "$n disappears in a cloud of hellish light.", victim, NULL, ch, TO_NOTVICT);
char_from_room(victim);
! char_to_room(victim, get_room_index(6));
act(AT_MAGIC, "$n appears in a could of hellish light.", victim, NULL, ch, TO_NOTVICT);
do_look(victim, "auto");
ch_printf(victim, "The immortals are not pleased with your actions.\n\r"
"You shall remain in hell for %d %s%s.\n\r", time,
! (h_d ? "hour" : "day"), (time == 1 ? "s" : ""));
save_char_obj(victim); /* used to save ch, fixed by Thoric 09/17/96 */
return;
}
--- 5242,5253 ----
ctime(&victim->pcdata->release_date));
act(AT_MAGIC, "$n disappears in a cloud of hellish light.", victim, NULL, ch, TO_NOTVICT);
char_from_room(victim);
! char_to_room(victim, get_room_index(8));
act(AT_MAGIC, "$n appears in a could of hellish light.", victim, NULL, ch, TO_NOTVICT);
do_look(victim, "auto");
ch_printf(victim, "The immortals are not pleased with your actions.\n\r"
"You shall remain in hell for %d %s%s.\n\r", time,
! (h_d ? "hour" : "day"), (time == 1 ? "" : "s"));
save_char_obj(victim); /* used to save ch, fixed by Thoric 09/17/96 */
return;
}
***************
*** 5028,5037 ****
return;
}
location = ch->in_room;
! ch->in_room = get_room_index(6);
victim = get_char_room(ch, arg);
ch->in_room = location; /* The case of unhell self, etc. */
! if ( !victim || IS_NPC(victim) || victim->in_room->vnum != 6 )
{
send_to_char( "No one like that is in hell.\n\r", ch );
return;
--- 5265,5274 ----
return;
}
location = ch->in_room;
! ch->in_room = get_room_index(8);
victim = get_char_room(ch, arg);
ch->in_room = location; /* The case of unhell self, etc. */
! if ( !victim || IS_NPC(victim) || victim->in_room->vnum != 8 )
{
send_to_char( "No one like that is in hell.\n\r", ch );
return;
***************
*** 5973,5976 ****
--- 6210,6297 ----
title_table[cl][x-1][1] = str_dup( argument );
}
do_setclass( ch, "" );
+ }
+
+ /*
+ * quest point set - TRI
+ * syntax is: qpset char give/take amount
+ */
+
+ void do_qpset( CHAR_DATA *ch, char *argument )
+ {
+ char arg[MAX_INPUT_LENGTH];
+ char arg2[MAX_INPUT_LENGTH];
+ char arg3[MAX_INPUT_LENGTH];
+ CHAR_DATA *victim;
+ int amount;
+ bool give = TRUE;
+
+ if ( IS_NPC(ch) )
+ {
+ send_to_char( "Cannot qpset as an NPC.\n\r", ch );
+ return;
+ }
+
+ if ( get_trust( ch ) < LEVEL_IMMORTAL )
+ {
+ send_to_char( "Huh?\n\r", ch );
+ return;
+ }
+ else if ( str_cmp( ch->pcdata->council_name, "Quest Council" )
+ && ( get_trust( ch ) < LEVEL_DEMI ) )
+ {
+ send_to_char( "You must be a member of Quest Council to give or remove qp from players.\n\r", ch );
+ return;
+ }
+
+ set_char_color( AT_LOG, ch );
+ argument = one_argument( argument, arg );
+ argument = one_argument( argument, arg2 );
+ argument = one_argument( argument, arg3 );
+ amount = atoi( arg3 );
+
+ if ( arg[0] == '\0' || arg2[0] == '\0' || amount <= 0 )
+ {
+ send_to_char( "Syntax: qpset <character> <give/take> <amount>\n\r", ch );
+ send_to_char( "Amount must be a positive number greater than 0.\n\r", ch );
+ return;
+ }
+
+ if ( ( victim = get_char_world( ch, arg ) ) == NULL )
+ {
+ send_to_char( "There is no such player currently playing.\n\r", ch );
+ return;
+ }
+
+ if ( IS_NPC( victim ) )
+ {
+ send_to_char( "Glory cannot be given to or taken from a "
+ "mob.\n\r", ch );
+ return;
+ }
+
+ if ( nifty_is_name_prefix( arg2, "give" ) )
+ give = TRUE;
+ else if ( nifty_is_name_prefix( arg2, "take" ) )
+ give = FALSE;
+ else
+ {
+ do_qpset( ch, "" );
+ return;
+ }
+
+ if ( give )
+ {
+ victim->pcdata->quest_curr += amount;
+ victim->pcdata->quest_accum += amount;
+ ch_printf( victim, "Your glory has been increased by %d.\n\r", amount );
+ }
+ else
+ {
+ victim->pcdata->quest_curr -= amount;
+ ch_printf( victim, "Your glory has been decreased by %d.\n\r", amount );
+ }
+
+ send_to_char( "Ok.\n\r", ch );
+ return;
}
diff -cr tmp/dist/src/boards.c dist/src/boards.c
*** tmp/dist/src/boards.c Mon Dec 16 12:43:35 1996
--- dist/src/boards.c Thu Feb 6 09:22:47 1997
***************
*** 38,43 ****
--- 38,57 ----
+ bool can_remove( CHAR_DATA *ch, BOARD_DATA *board )
+ {
+ /* If your trust is high enough, you can remove it. */
+ if ( get_trust( ch ) >= board->min_remove_level )
+ return TRUE;
+
+ if ( board->extra_removers[0] != '\0' )
+ {
+ if ( is_name( ch->name, board->extra_removers ) )
+ return TRUE;
+ }
+ return FALSE;
+ }
+
bool can_read( CHAR_DATA *ch, BOARD_DATA *board )
{
/* If your trust is high enough, you can read it. */
***************
*** 107,112 ****
--- 121,128 ----
fprintf( fpout, "Read_group %s~\n", tboard->read_group );
fprintf( fpout, "Post_group %s~\n", tboard->post_group );
fprintf( fpout, "Extra_readers %s~\n", tboard->extra_readers );
+ fprintf( fpout, "Extra_removers %s~\n", tboard->extra_removers );
+
fprintf( fpout, "End\n" );
}
fclose( fpout );
***************
*** 1026,1032 ****
else if (!IS_MAIL)
vnum++;
if ( ( is_note_to( ch, pnote )
! || board->min_remove_level <= get_trust( ch ) )
&& ( vnum == anum ) )
{
if ( (is_name("all", pnote->to_list))
--- 1042,1048 ----
else if (!IS_MAIL)
vnum++;
if ( ( is_note_to( ch, pnote )
! || can_remove (ch, board))
&& ( vnum == anum ) )
{
if ( (is_name("all", pnote->to_list))
***************
*** 1169,1174 ****
--- 1185,1191 ----
break;
case 'E':
KEY( "Extra_readers", board->extra_readers, fread_string_nohash( fp ) );
+ KEY( "Extra_removers", board->extra_removers, fread_string_nohash( fp ) );
if ( !str_cmp( word, "End" ) )
{
board->num_posts = 0;
***************
*** 1182,1187 ****
--- 1199,1206 ----
board->post_group = str_dup( "" );
if ( !board->extra_readers )
board->extra_readers = str_dup( "" );
+ if ( !board->extra_removers )
+ board->extra_removers = str_dup( "" );
return board;
}
case 'F':
***************
*** 1341,1346 ****
--- 1360,1366 ----
board->read_group = str_dup( "" );
board->post_group = str_dup( "" );
board->extra_readers = str_dup( "" );
+ board->extra_removers = str_dup( "" );
}
void do_bset( CHAR_DATA *ch, char *argument )
***************
*** 1360,1366 ****
send_to_char( "Usage: bset <board filename> <field> value\n\r", ch );
send_to_char( "\n\rField being one of:\n\r", ch );
send_to_char( " vnum read post remove maxpost filename type\n\r", ch );
! send_to_char( " read_group post_group extra_readers\n\r", ch );
return;
}
--- 1380,1386 ----
send_to_char( "Usage: bset <board filename> <field> value\n\r", ch );
send_to_char( "\n\rField being one of:\n\r", ch );
send_to_char( " vnum read post remove maxpost filename type\n\r", ch );
! send_to_char( " read_group post_group extra_readers extra_removers\n\r", ch );
return;
}
***************
*** 1438,1443 ****
--- 1458,1481 ----
return;
}
+ if ( !str_cmp( arg2, "extra_removers" ) )
+ {
+ if ( !argument || argument[0] == '\0' )
+ {
+ send_to_char( "No names specified.\n\r", ch );
+ return;
+ }
+ if ( !str_cmp( argument, "none" ) )
+ buf[0] = '\0';
+ else
+ sprintf( buf, "%s %s", board->extra_removers, argument );
+ DISPOSE( board->extra_removers );
+ board->extra_removers = str_dup( buf );
+ write_boards_txt( );
+ send_to_char( "Done.\n\r", ch );
+ return;
+ }
+
if ( !str_cmp( arg2, "extra_readers" ) )
{
if ( !argument || argument[0] == '\0' )
diff -cr tmp/dist/src/build.c dist/src/build.c
*** tmp/dist/src/build.c Mon Dec 16 12:43:36 1996
--- dist/src/build.c Thu Feb 6 09:22:47 1997
***************
*** 19,24 ****
--- 19,25 ----
#include <stdio.h>
#include <string.h>
#include <time.h>
+ #include <unistd.h>
#include "mud.h"
***************
*** 121,127 ****
char * const pc_flags [] =
{
"r1", "deadly", "unauthed", "norecall", "nointro", "gag", "retired", "guest",
! "r2", "r3", "r4", "r5", "r6", "r7", "r8", "r9", "r10", "r11", "r12", "r13",
"r14", "r15", "r16", "r17", "r18", "r19", "r20", "r21", "r22", "r23", "r24",
"r25"
};
--- 122,128 ----
char * const pc_flags [] =
{
"r1", "deadly", "unauthed", "norecall", "nointro", "gag", "retired", "guest",
! "r2", "r3", "notitled", "r5", "r6", "r7", "r8", "r9", "r10", "r11", "r12", "r13",
"r14", "r15", "r16", "r17", "r18", "r19", "r20", "r21", "r22", "r23", "r24",
"r25"
};
***************
*** 237,245 ****
bool can_rmodify( CHAR_DATA *ch, ROOM_INDEX_DATA *room )
{
! sh_int vnum;
!
! vnum = room->vnum;
if ( IS_NPC( ch ) )
return FALSE;
--- 238,245 ----
bool can_rmodify( CHAR_DATA *ch, ROOM_INDEX_DATA *room )
{
! sh_int vnum = room->vnum;
! AREA_DATA *pArea;
if ( IS_NPC( ch ) )
return FALSE;
***************
*** 250,257 ****
send_to_char( "You cannot modify this room.\n\r", ch );
return FALSE;
}
! if ( vnum >= ch->pcdata->r_range_lo
! && vnum <= ch->pcdata->r_range_hi )
return TRUE;
send_to_char( "That room is not in your allocated range.\n\r", ch );
--- 250,262 ----
send_to_char( "You cannot modify this room.\n\r", ch );
return FALSE;
}
! if ( !ch->pcdata || !(pArea=ch->pcdata->area) )
! {
! send_to_char( "You must have an assigned area to modify this room.\n\r", ch );
! return FALSE;
! }
! if ( vnum >= pArea->low_r_vnum
! && vnum <= pArea->hi_r_vnum )
return TRUE;
send_to_char( "That room is not in your allocated range.\n\r", ch );
***************
*** 260,269 ****
bool can_omodify( CHAR_DATA *ch, OBJ_DATA *obj )
{
! sh_int vnum;
- vnum = obj->pIndexData->vnum;
-
if ( IS_NPC( ch ) )
return FALSE;
if ( get_trust( ch ) >= sysdata.level_modify_proto )
--- 265,273 ----
bool can_omodify( CHAR_DATA *ch, OBJ_DATA *obj )
{
! sh_int vnum = obj->pIndexData->vnum;
! AREA_DATA *pArea;
if ( IS_NPC( ch ) )
return FALSE;
if ( get_trust( ch ) >= sysdata.level_modify_proto )
***************
*** 273,280 ****
send_to_char( "You cannot modify this object.\n\r", ch );
return FALSE;
}
! if ( vnum >= ch->pcdata->o_range_lo
! && vnum <= ch->pcdata->o_range_hi )
return TRUE;
send_to_char( "That object is not in your allocated range.\n\r", ch );
--- 277,289 ----
send_to_char( "You cannot modify this object.\n\r", ch );
return FALSE;
}
! if ( !ch->pcdata || !(pArea=ch->pcdata->area) )
! {
! send_to_char( "You must have an assigned area to modify this object.\n\r", ch );
! return FALSE;
! }
! if ( vnum >= pArea->low_o_vnum
! && vnum <= pArea->hi_o_vnum )
return TRUE;
send_to_char( "That object is not in your allocated range.\n\r", ch );
***************
*** 283,292 ****
bool can_oedit( CHAR_DATA *ch, OBJ_INDEX_DATA *obj )
{
! sh_int vnum;
!
! vnum = obj->vnum;
!
if ( IS_NPC( ch ) )
return FALSE;
if ( get_trust( ch ) >= LEVEL_GOD )
--- 292,300 ----
bool can_oedit( CHAR_DATA *ch, OBJ_INDEX_DATA *obj )
{
! sh_int vnum = obj->vnum;
! AREA_DATA *pArea;
!
if ( IS_NPC( ch ) )
return FALSE;
if ( get_trust( ch ) >= LEVEL_GOD )
***************
*** 296,303 ****
send_to_char( "You cannot modify this object.\n\r", ch );
return FALSE;
}
! if ( vnum >= ch->pcdata->o_range_lo
! && vnum <= ch->pcdata->o_range_hi )
return TRUE;
send_to_char( "That object is not in your allocated range.\n\r", ch );
--- 304,316 ----
send_to_char( "You cannot modify this object.\n\r", ch );
return FALSE;
}
! if ( !ch->pcdata || !(pArea=ch->pcdata->area) )
! {
! send_to_char( "You must have an assigned area to modify this object.\n\r", ch );
! return FALSE;
! }
! if ( vnum >= pArea->low_o_vnum
! && vnum <= pArea->hi_o_vnum )
return TRUE;
send_to_char( "That object is not in your allocated range.\n\r", ch );
***************
*** 308,313 ****
--- 321,327 ----
bool can_mmodify( CHAR_DATA *ch, CHAR_DATA *mob )
{
sh_int vnum;
+ AREA_DATA *pArea;
if ( mob == ch )
return TRUE;
***************
*** 333,340 ****
send_to_char( "You cannot modify this mobile.\n\r", ch );
return FALSE;
}
! if ( vnum >= ch->pcdata->m_range_lo
! && vnum <= ch->pcdata->m_range_hi )
return TRUE;
send_to_char( "That mobile is not in your allocated range.\n\r", ch );
--- 347,359 ----
send_to_char( "You cannot modify this mobile.\n\r", ch );
return FALSE;
}
! if ( !ch->pcdata || !(pArea=ch->pcdata->area) )
! {
! send_to_char( "You must have an assigned area to modify this mobile.\n\r", ch );
! return FALSE;
! }
! if ( vnum >= pArea->low_m_vnum
! && vnum <= pArea->hi_m_vnum )
return TRUE;
send_to_char( "That mobile is not in your allocated range.\n\r", ch );
***************
*** 343,351 ****
bool can_medit( CHAR_DATA *ch, MOB_INDEX_DATA *mob )
{
! sh_int vnum;
!
! vnum = mob->vnum;
if ( IS_NPC( ch ) )
return FALSE;
--- 362,369 ----
bool can_medit( CHAR_DATA *ch, MOB_INDEX_DATA *mob )
{
! sh_int vnum = mob->vnum;
! AREA_DATA *pArea;
if ( IS_NPC( ch ) )
return FALSE;
***************
*** 356,363 ****
send_to_char( "You cannot modify this mobile.\n\r", ch );
return FALSE;
}
! if ( vnum >= ch->pcdata->m_range_lo
! && vnum <= ch->pcdata->m_range_hi )
return TRUE;
send_to_char( "That mobile is not in your allocated range.\n\r", ch );
--- 374,386 ----
send_to_char( "You cannot modify this mobile.\n\r", ch );
return FALSE;
}
! if ( !ch->pcdata || !(pArea=ch->pcdata->area) )
! {
! send_to_char( "You must have an assigned area to modify this mobile.\n\r", ch );
! return FALSE;
! }
! if ( vnum >= pArea->low_m_vnum
! && vnum <= pArea->hi_m_vnum )
return TRUE;
send_to_char( "That mobile is not in your allocated range.\n\r", ch );
***************
*** 734,743 ****
{
char arg[MAX_INPUT_LENGTH];
ROOM_INDEX_DATA *location;
-
CHAR_DATA *fch;
CHAR_DATA *fch_next;
ROOM_INDEX_DATA *in_room;
sh_int vnum;
one_argument( argument, arg );
--- 757,766 ----
{
char arg[MAX_INPUT_LENGTH];
ROOM_INDEX_DATA *location;
CHAR_DATA *fch;
CHAR_DATA *fch_next;
ROOM_INDEX_DATA *in_room;
+ AREA_DATA *pArea;
sh_int vnum;
one_argument( argument, arg );
***************
*** 761,771 ****
send_to_char( "No such location.\n\r", ch );
return;
}
! if ( get_trust( ch ) < sysdata.level_modify_proto
! && ( vnum < ch->pcdata->r_range_lo || vnum > ch->pcdata->r_range_hi ) )
{
! send_to_char( "That room is not in your assigned range.\n\r", ch );
! return;
}
location = make_room( vnum );
if ( !location )
--- 784,802 ----
send_to_char( "No such location.\n\r", ch );
return;
}
! if ( get_trust( ch ) < sysdata.level_modify_proto )
{
! if ( !ch->pcdata || !(pArea=ch->pcdata->area) )
! {
! send_to_char( "You must have an assigned area to create rooms.\n\r", ch );
! return;
! }
! if ( vnum < pArea->low_r_vnum
! || vnum > pArea->hi_r_vnum )
! {
! send_to_char( "That room is not within your assigned range.\n\r", ch );
! return;
! }
}
location = make_room( vnum );
if ( !location )
***************
*** 1898,1903 ****
--- 1929,1935 ----
pcflag = FALSE;
argument = one_argument( argument, arg3 );
value = IS_NPC( victim) ? get_actflag( arg3 ) : get_plrflag( arg3 );
+
if ( !IS_NPC( victim ) && ( value < 0 || value > 31 ) )
{
pcflag = TRUE;
***************
*** 1907,1922 ****
ch_printf( ch, "Unknown flag: %s\n\r", arg3 );
else
{
! if ( 1 << value == ACT_PROTOTYPE
&& get_trust( ch ) < LEVEL_GREATER
! && !is_name ("protoflag", ch->pcdata->bestowments)
! && !pcflag )
send_to_char( "You cannot change the prototype flag.\n\r", ch );
else
! if ( 1 << value == ACT_IS_NPC && !pcflag )
send_to_char( "If that could be changed, it would cause many problems.\n\r", ch );
else
! if ( 1 << value == ACT_POLYMORPHED && !pcflag )
send_to_char( "Changing that would be a _bad_ thing.\n\r", ch);
else
{
--- 1939,1954 ----
ch_printf( ch, "Unknown flag: %s\n\r", arg3 );
else
{
! if ( IS_NPC(victim)
! && 1 << value == ACT_PROTOTYPE
&& get_trust( ch ) < LEVEL_GREATER
! && !is_name ("protoflag", ch->pcdata->bestowments) )
send_to_char( "You cannot change the prototype flag.\n\r", ch );
else
! if ( IS_NPC(victim) && 1 << value == ACT_IS_NPC )
send_to_char( "If that could be changed, it would cause many problems.\n\r", ch );
else
! if ( IS_NPC(victim) && 1 << value == ACT_POLYMORPHED )
send_to_char( "Changing that would be a _bad_ thing.\n\r", ch);
else
{
***************
*** 1925,1937 ****
else
{
TOGGLE_BIT( victim->act, 1 << value );
! if ( 1 << value == ACT_PROTOTYPE )
victim->pIndexData->act = victim->act;
}
}
}
}
! if ( IS_NPC( victim ) && IS_SET( victim->act, ACT_PROTOTYPE ) )
victim->pIndexData->act = victim->act;
return;
}
--- 1957,1970 ----
else
{
TOGGLE_BIT( victim->act, 1 << value );
! /* NPC check added by Gorog */
! if ( IS_NPC(victim) && (1 << value == ACT_PROTOTYPE) )
victim->pIndexData->act = victim->act;
}
}
}
}
! if ( IS_NPC(victim) && IS_SET( victim->act, ACT_PROTOTYPE ) )
victim->pIndexData->act = victim->act;
return;
}
***************
*** 3752,3761 ****
return buf;
}
- #undef DONE
- #define DONE( ch ) \
- while (
-
void do_redit( CHAR_DATA *ch, char *argument )
{
char arg [MAX_INPUT_LENGTH];
--- 3785,3790 ----
***************
*** 4629,4636 ****
return;
if ( get_trust( ch ) < LEVEL_LESSER )
{
! if ( vnum < ch->pcdata->o_range_lo
! || vnum > ch->pcdata->o_range_hi )
{
send_to_char( "That number is not in your allocated range.\n\r", ch );
return;
--- 4658,4672 ----
return;
if ( get_trust( ch ) < LEVEL_LESSER )
{
! AREA_DATA *pArea;
!
! if ( !ch->pcdata || !(pArea=ch->pcdata->area) )
! {
! send_to_char( "You must have an assigned area to create objects.\n\r", ch );
! return;
! }
! if ( vnum < pArea->low_o_vnum
! && vnum > pArea->hi_o_vnum )
{
send_to_char( "That number is not in your allocated range.\n\r", ch );
return;
***************
*** 4697,4704 ****
return;
if ( get_trust( ch ) < LEVEL_LESSER )
{
! if ( vnum < ch->pcdata->m_range_lo
! || vnum > ch->pcdata->m_range_hi )
{
send_to_char( "That number is not in your allocated range.\n\r", ch );
return;
--- 4733,4747 ----
return;
if ( get_trust( ch ) < LEVEL_LESSER )
{
! AREA_DATA *pArea;
!
! if ( !ch->pcdata || !(pArea=ch->pcdata->area) )
! {
! send_to_char( "You must have an assigned area to create mobiles.\n\r", ch );
! return;
! }
! if ( vnum < pArea->low_m_vnum
! && vnum > pArea->hi_m_vnum )
{
send_to_char( "That number is not in your allocated range.\n\r", ch );
return;
***************
*** 5084,5091 ****
if ( IS_NPC( ch ) )
return;
if ( !str_cmp( "none", argument )
! || !str_cmp( "null", argument ) )
{
ch->pcdata->area = NULL;
assign_area( ch );
--- 5127,5141 ----
if ( IS_NPC( ch ) )
return;
+ if ( argument[0] == '\0' )
+ {
+ send_to_char( "Syntax: aassign <filename.are>\n\r", ch );
+ return;
+ }
+
if ( !str_cmp( "none", argument )
! || !str_cmp( "null", argument )
! || !str_cmp( "clear", argument ) )
{
ch->pcdata->area = NULL;
assign_area( ch );
***************
*** 5098,5113 ****
sprintf( buf, "%s", argument );
tarea = NULL;
! for ( tmp = first_area; tmp; tmp = tmp->next )
! if ( !str_cmp( buf, tmp->filename ) )
! {
! tarea = tmp;
! break;
! }
if ( !tarea )
{
! send_to_char( "No such area. Use 'zones'.\n\r", ch );
return;
}
ch->pcdata->area = tarea;
--- 5148,5190 ----
sprintf( buf, "%s", argument );
tarea = NULL;
!
! /* if ( get_trust(ch) >= sysdata.level_modify_proto ) */
!
! if ( get_trust(ch) >= LEVEL_SUB_IMPLEM
! || (is_name( buf, ch->pcdata->bestowments )
! && get_trust(ch) >= sysdata.level_modify_proto) )
! for ( tmp = first_area; tmp; tmp = tmp->next )
! if ( !str_cmp( buf, tmp->filename ) )
! {
! tarea = tmp;
! break;
! }
!
! if ( !tarea )
! for ( tmp = first_build; tmp; tmp = tmp->next )
! if ( !str_cmp( buf, tmp->filename ) )
! {
! /* if ( get_trust(ch) >= sysdata.level_modify_proto */
! if ( get_trust(ch) >= LEVEL_GREATER
! || is_name( tmp->filename, ch->pcdata->bestowments ) )
! {
! tarea = tmp;
! break;
! }
! else
! {
! send_to_char( "You do not have permission to use that area.\n\r", ch );
! return;
! }
! }
if ( !tarea )
{
! if ( get_trust(ch) >= sysdata.level_modify_proto )
! send_to_char( "No such area. Use 'zones'.\n\r", ch );
! else
! send_to_char( "No such area. Use 'newzones'.\n\r", ch );
return;
}
ch->pcdata->area = tarea;
***************
*** 5841,5846 ****
--- 5918,5924 ----
{
AREA_DATA *tarea;
char arg[MAX_INPUT_LENGTH];
+ char buf[MAX_STRING_LENGTH];
int num;
DESCRIPTOR_DATA *d;
***************
*** 5896,5901 ****
--- 5974,5983 ----
tarea->nplayer = 0;
reset_area( tarea );
tarea->nplayer = num;
+ send_to_char( "Renaming author's building file.\n\r", ch );
+ sprintf( buf, "%s%s.installed", BUILD_DIR, tarea->filename );
+ sprintf( arg, "%s%s", BUILD_DIR, tarea->filename );
+ rename( arg, buf );
send_to_char( "Done.\n\r", ch );
return;
}
diff -cr tmp/dist/src/clans.c dist/src/clans.c
*** tmp/dist/src/clans.c Mon Dec 16 12:51:27 1996
--- dist/src/clans.c Thu Feb 6 09:22:47 1997
***************
*** 881,892 ****
return;
}
}
-
- if ( clan->clan_type != CLAN_GUILD && IS_SET(victim->act, PLR_OUTCAST))
- {
- send_to_char( "That player is an outcast!\n\r", ch);
- return;
- }
clan->members++;
if ( clan->clan_type != CLAN_ORDER && clan->clan_type != CLAN_GUILD )
SET_BIT(victim->speaks, LANG_CLAN);
--- 881,886 ----
***************
*** 1991,2001 ****
--- 1985,2002 ----
send_to_char("You take yourself by the scruff of your neck, but go nowhere.\n\r", ch);
return;
}
+
if ( IS_NPC(victim)
|| !IS_SET( victim->pcdata->flags, PCFLAG_DEADLY ) )
{
send_to_char("You can only drag deadly characters.\n\r", ch);
return;
+ }
+
+ if ( victim->fighting )
+ {
+ send_to_char( "You try, but can't get close enough.\n\r", ch);
+ return;
}
if ( arg2[0] == '\0' )
diff -cr tmp/dist/src/comm.c dist/src/comm.c
*** tmp/dist/src/comm.c Thu Jan 16 10:54:22 1997
--- dist/src/comm.c Thu Feb 6 09:22:48 1997
***************
*** 408,414 ****
struct timeval last_time;
char cmdline[MAX_INPUT_LENGTH];
DESCRIPTOR_DATA *d;
! time_t last_check = 0;
signal( SIGPIPE, SIG_IGN );
signal( SIGALRM, caught_alarm );
--- 408,414 ----
struct timeval last_time;
char cmdline[MAX_INPUT_LENGTH];
DESCRIPTOR_DATA *d;
! /* time_t last_check = 0; */
signal( SIGPIPE, SIG_IGN );
signal( SIGALRM, caught_alarm );
***************
*** 631,637 ****
gettimeofday( &last_time, NULL );
current_time = (time_t) last_time.tv_sec;
! /* Check every 5 seconds..
if ( last_check+5 < current_time )
{
CHECK_LINKS(first_descriptor, last_descriptor, next, prev,
--- 631,638 ----
gettimeofday( &last_time, NULL );
current_time = (time_t) last_time.tv_sec;
!
! /* Check every 5 seconds... (don't need it right now)
if ( last_check+5 < current_time )
{
CHECK_LINKS(first_descriptor, last_descriptor, next, prev,
***************
*** 1505,1511 ****
free_char( d->character );
fOld = load_char_obj( d, buf, FALSE );
ch = d->character;
! sprintf( log_buf, "%s@%s has connected.", ch->name, d->host );
if ( ch->level < LEVEL_DEMI )
{
/*to_channel( log_buf, CHANNEL_MONITOR, "Monitor", ch->level );*/
--- 1506,1513 ----
free_char( d->character );
fOld = load_char_obj( d, buf, FALSE );
ch = d->character;
! sprintf( log_buf, "%s@%s(%s) has connected.", ch->name, d->host,
! d->user );
if ( ch->level < LEVEL_DEMI )
{
/*to_channel( log_buf, CHANNEL_MONITOR, "Monitor", ch->level );*/
***************
*** 1843,1859 ****
else
send_to_pager( "\014", ch );
set_pager_color( AT_LBLUE, ch );
! if ( IS_HERO(ch) )
! do_help( ch, "imotd" );
! do_help( ch, "motd" );
send_to_pager( "\n\rPress [ENTER] ", ch );
! d->connected = CON_READ_MOTD;
! break;
case CON_READ_MOTD:
! write_to_buffer( d,
! "\n\rWelcome to Realms of Despair...\n\r",
! 0 );
add_char( ch );
d->connected = CON_PLAYING;
--- 1845,1864 ----
else
send_to_pager( "\014", ch );
set_pager_color( AT_LBLUE, ch );
! if ( IS_IMMORTAL(ch) )
! do_help( ch, "imotd" );
! if ( ch->level == 50)
! do_help( ch, "amotd" );
! if ( ch->level < 50 && ch->level > 0 )
! do_help( ch, "motd" );
! if ( ch->level == 0 )
! do_help( ch, "nmotd" );
send_to_pager( "\n\rPress [ENTER] ", ch );
! d->connected = CON_READ_MOTD;
! break;
case CON_READ_MOTD:
! write_to_buffer( d, "\n\rWelcome to Realms of Despair...\n\r", 0 );
add_char( ch );
d->connected = CON_PLAYING;
***************
*** 1966,1972 ****
else
if ( !IS_IMMORTAL(ch) && ch->pcdata->release_date > current_time )
{
! char_to_room( ch, get_room_index(6) );
}
else
if ( ch->in_room && ( IS_IMMORTAL( ch )
--- 1971,1977 ----
else
if ( !IS_IMMORTAL(ch) && ch->pcdata->release_date > current_time )
{
! char_to_room( ch, get_room_index(8) );
}
else
if ( ch->in_room && ( IS_IMMORTAL( ch )
***************
*** 2113,2119 ****
ch->timer = 0;
send_to_char( "Reconnecting.\n\r", ch );
act( AT_ACTION, "$n has reconnected.", ch, NULL, NULL, TO_ROOM );
! sprintf( log_buf, "%s@%s reconnected.", ch->name, d->host );
log_string_plus( log_buf, LOG_COMM, UMAX( sysdata.log_level, ch->level ) );
/*
if ( ch->level < LEVEL_SAVIOR )
--- 2118,2124 ----
ch->timer = 0;
send_to_char( "Reconnecting.\n\r", ch );
act( AT_ACTION, "$n has reconnected.", ch, NULL, NULL, TO_ROOM );
! sprintf( log_buf, "%s@%s(%s) reconnected.", ch->name, d->host, d->user );
log_string_plus( log_buf, LOG_COMM, UMAX( sysdata.log_level, ch->level ) );
/*
if ( ch->level < LEVEL_SAVIOR )
***************
*** 2339,2345 ****
if ( !ch )
{
! bug( "Send_to_pager_colors: NULL *ch" );
return;
}
if ( !txt || !ch->desc )
--- 2344,2350 ----
if ( !ch )
{
! bug( "Send_to_pager_color: NULL *ch" );
return;
}
if ( !txt || !ch->desc )
***************
*** 2355,2361 ****
/* make_color_sequence(NULL, NULL, NULL);*/
while ( (colstr = strpbrk(prevstr, "&^")) != NULL )
{
! write_to_pager(d, prevstr, (colstr-prevstr));
ln = make_color_sequence(colstr, colbuf, d);
if ( ln < 0 )
{
--- 2360,2367 ----
/* make_color_sequence(NULL, NULL, NULL);*/
while ( (colstr = strpbrk(prevstr, "&^")) != NULL )
{
! if ( colstr > prevstr )
! write_to_pager(d, prevstr, (colstr-prevstr));
ln = make_color_sequence(colstr, colbuf, d);
if ( ln < 0 )
{
***************
*** 2841,2846 ****
--- 2847,2858 ----
strcpy(pbuf, "evil");
else
strcpy(pbuf, "neutral");
+ break;
+ case 'f':
+ if ( ch->pcdata->deity )
+ stat = ch->pcdata->favor;
+ else
+ strcpy(pbuf, "no favor");
break;
case 'h':
stat = ch->hit;
diff -cr tmp/dist/src/db.c dist/src/db.c
*** tmp/dist/src/db.c Mon Dec 16 12:43:37 1996
--- dist/src/db.c Thu Feb 6 09:22:48 1997
***************
*** 1141,1146 ****
--- 1141,1147 ----
pObjIndex->value[4] = x5;
pObjIndex->value[5] = x6;
pObjIndex->weight = fread_number( fp );
+ pObjIndex->weight = UMAX( 1, pObjIndex->weight );
pObjIndex->cost = fread_number( fp );
pObjIndex->rent = fread_number( fp ); /* unused */
***************
*** 2659,2665 ****
if ( !isdigit(c) )
{
! bug( "Fread_number: bad format." );
if ( fBootDb )
exit( 1 );
return 0;
--- 2660,2666 ----
if ( !isdigit(c) )
{
! bug( "Fread_number: bad format. (%c)", c );
if ( fBootDb )
exit( 1 );
return 0;
***************
*** 2695,2711 ****
*/
char *str_dup( char const *str )
{
! static char *ret;
! int len;
! if ( !str )
! return NULL;
! len = strlen(str)+1;
! CREATE( ret, char, len );
! strcpy( ret, str );
! return ret;
}
/*
--- 2696,2712 ----
*/
char *str_dup( char const *str )
{
! static char *ret;
! int len;
! if ( !str )
! return NULL;
! len = strlen(str)+1;
! CREATE( ret, char, len );
! strcpy( ret, str );
! return ret;
}
/*
***************
*** 2728,2740 ****
*/
do
{
! if ( feof(fp) )
! {
! bug("fread_string: EOF encountered on read.\n\r");
! if ( fBootDb )
! exit(1);
! return STRALLOC("");
! }
c = getc( fp );
}
while ( isspace(c) );
--- 2729,2741 ----
*/
do
{
! if ( feof(fp) )
! {
! bug("fread_string: EOF encountered on read.\n\r");
! if ( fBootDb )
! exit(1);
! return STRALLOC("");
! }
c = getc( fp );
}
while ( isspace(c) );
***************
*** 2746,2754 ****
{
if ( ln >= (MAX_STRING_LENGTH - 1) )
{
! bug( "fread_string: string too long" );
! *plast = '\0';
! return STRALLOC( buf );
}
switch ( *plast = getc( fp ) )
{
--- 2747,2755 ----
{
if ( ln >= (MAX_STRING_LENGTH - 1) )
{
! bug( "fread_string: string too long" );
! *plast = '\0';
! return STRALLOC( buf );
}
switch ( *plast = getc( fp ) )
{
***************
*** 2780,2786 ****
}
/*
! * Read a string from file fp using str_dup
*/
char *fread_string_nohash( FILE *fp )
{
--- 2781,2787 ----
}
/*
! * Read a string from file fp using str_dup (ie: no string hashing)
*/
char *fread_string_nohash( FILE *fp )
{
***************
*** 2799,2811 ****
*/
do
{
! if ( feof(fp) )
! {
! bug("fread_string_no_hash: EOF encountered on read.\n\r");
! if ( fBootDb )
! exit(1);
! return str_dup("");
! }
c = getc( fp );
}
while ( isspace(c) );
--- 2800,2812 ----
*/
do
{
! if ( feof(fp) )
! {
! bug("fread_string_no_hash: EOF encountered on read.\n\r");
! if ( fBootDb )
! exit(1);
! return str_dup("");
! }
c = getc( fp );
}
while ( isspace(c) );
***************
*** 2861,2873 ****
do
{
! if ( feof(fp) )
! {
! bug("fread_to_eol: EOF encountered on read.\n\r");
! if ( fBootDb )
! exit(1);
! return;
! }
c = getc( fp );
}
while ( c != '\n' && c != '\r' );
--- 2862,2874 ----
do
{
! if ( feof(fp) )
! {
! bug("fread_to_eol: EOF encountered on read.\n\r");
! if ( fBootDb )
! exit(1);
! return;
! }
c = getc( fp );
}
while ( c != '\n' && c != '\r' );
***************
*** 2902,2915 ****
*/
do
{
! if ( feof(fp) )
! {
! bug("fread_line: EOF encountered on read.\n\r");
! if ( fBootDb )
! exit(1);
! strcpy(line, "");
! return line;
! }
c = getc( fp );
}
while ( isspace(c) );
--- 2903,2916 ----
*/
do
{
! if ( feof(fp) )
! {
! bug("fread_line: EOF encountered on read.\n\r");
! if ( fBootDb )
! exit(1);
! strcpy(line, "");
! return line;
! }
c = getc( fp );
}
while ( isspace(c) );
***************
*** 2917,2936 ****
ungetc( c, fp );
do
{
! if ( feof(fp) )
! {
! bug("fread_line: EOF encountered on read.\n\r");
! if ( fBootDb )
! exit(1);
! *pline = '\0';
! return line;
! }
c = getc( fp );
*pline++ = c; ln++;
if ( ln >= (MAX_STRING_LENGTH - 1) )
{
! bug( "fread_line: line too long" );
! break;
}
}
while ( c != '\n' && c != '\r' );
--- 2918,2937 ----
ungetc( c, fp );
do
{
! if ( feof(fp) )
! {
! bug("fread_line: EOF encountered on read.\n\r");
! if ( fBootDb )
! exit(1);
! *pline = '\0';
! return line;
! }
c = getc( fp );
*pline++ = c; ln++;
if ( ln >= (MAX_STRING_LENGTH - 1) )
{
! bug( "fread_line: line too long" );
! break;
}
}
while ( c != '\n' && c != '\r' );
***************
*** 2959,2972 ****
do
{
! if ( feof(fp) )
! {
! bug("fread_word: EOF encountered on read.\n\r");
! if ( fBootDb )
! exit(1);
! strcpy(word, "");
! return word;
! }
cEnd = getc( fp );
}
while ( isspace( cEnd ) );
--- 2960,2973 ----
do
{
! if ( feof(fp) )
! {
! bug("fread_word: EOF encountered on read.\n\r");
! if ( fBootDb )
! exit(1);
! word[0] = '\0';
! return word;
! }
cEnd = getc( fp );
}
while ( isspace( cEnd ) );
***************
*** 2984,2997 ****
for ( ; pword < word + MAX_INPUT_LENGTH; pword++ )
{
! if ( feof(fp) )
! {
! bug("fread_word: EOF encountered on read.\n\r");
! if ( fBootDb )
! exit(1);
! *pword = '\0';
! return word;
! }
*pword = getc( fp );
if ( cEnd == ' ' ? isspace(*pword) : *pword == cEnd )
{
--- 2985,2998 ----
for ( ; pword < word + MAX_INPUT_LENGTH; pword++ )
{
! if ( feof(fp) )
! {
! bug("fread_word: EOF encountered on read.\n\r");
! if ( fBootDb )
! exit(1);
! *pword = '\0';
! return word;
! }
*pword = getc( fp );
if ( cEnd == ' ' ? isspace(*pword) : *pword == cEnd )
{
***************
*** 3069,3076 ****
{
switch ( number_bits( 2 ) )
{
! case 0: number -= 1; break;
! case 3: number += 1; break;
}
return UMAX( 1, number );
--- 3070,3077 ----
{
switch ( number_bits( 2 ) )
{
! case 0: number -= 1; break;
! case 3: number += 1; break;
}
return UMAX( 1, number );
***************
*** 3232,3241 ****
void smash_tilde( char *str )
{
for ( ; *str != '\0'; str++ )
- {
if ( *str == '~' )
*str = '-';
- }
return;
}
--- 3233,3240 ----
***************
*** 3247,3256 ****
void hide_tilde( char *str )
{
for ( ; *str != '\0'; str++ )
- {
if ( *str == '~' )
*str = HIDDEN_TILDE;
- }
return;
}
--- 3246,3253 ----
***************
*** 3358,3367 ****
sstr2 = strlen(bstr);
for ( ichar = 0; ichar <= sstr2 - sstr1; ichar++ )
- {
if ( c0 == LOWER(bstr[ichar]) && !str_prefix( astr, bstr + ichar ) )
return FALSE;
- }
return TRUE;
}
--- 3355,3362 ----
***************
*** 3636,3641 ****
--- 3631,3639 ----
}
}
+ /*
+ * Show the boot log file -Thoric
+ */
void do_dmesg( CHAR_DATA *ch, char *argument )
{
set_pager_color( AT_LOG, ch );
***************
*** 3747,3752 ****
--- 3745,3753 ----
return;
}
+ /*
+ * Wizlist builder -Thoric
+ */
void make_wizlist( )
{
DIR *dp;
***************
*** 4665,4671 ****
pObjIndex->value[1] = 0;
pObjIndex->value[2] = 0;
pObjIndex->value[3] = 0;
! pObjIndex->weight = 0;
pObjIndex->cost = 0;
}
else
--- 4666,4672 ----
pObjIndex->value[1] = 0;
pObjIndex->value[2] = 0;
pObjIndex->value[3] = 0;
! pObjIndex->weight = 1;
pObjIndex->cost = 0;
}
else
***************
*** 4944,4950 ****
void load_area_file( AREA_DATA *tarea, char *filename )
{
! FILE *fpin;
if ( fBootDb )
tarea = last_area;
--- 4945,4956 ----
void load_area_file( AREA_DATA *tarea, char *filename )
{
! /* FILE *fpin;
! what intelligent person stopped using fpArea?????
! if fpArea isn't being used, then no filename or linenumber
! is printed when an error occurs during loading the area..
! (bug uses fpArea)
! --TRI */
if ( fBootDb )
tarea = last_area;
***************
*** 4954,4960 ****
return;
}
! if ( ( fpin = fopen( filename, "r" ) ) == NULL )
{
perror( filename );
bug( "load_area: error loading file (can't open)" );
--- 4960,4966 ----
return;
}
! if ( ( fpArea = fopen( filename, "r" ) ) == NULL )
{
perror( filename );
bug( "load_area: error loading file (can't open)" );
***************
*** 4966,5010 ****
{
char *word;
! if ( fread_letter( fpin ) != '#' )
{
bug( tarea->filename );
bug( "load_area: # not found." );
exit( 1 );
}
! word = fread_word( fpin );
if ( word[0] == '$' ) break;
else if ( !str_cmp( word, "AREA" ) )
{
if ( fBootDb )
{
! load_area (fpin);
tarea = last_area;
}
else
{
DISPOSE( tarea->name );
! tarea->name = fread_string_nohash( fpin );
}
}
! else if ( !str_cmp( word, "AUTHOR" ) ) load_author (tarea, fpin);
! else if ( !str_cmp( word, "FLAGS" ) ) load_flags (tarea, fpin);
! else if ( !str_cmp( word, "RANGES" ) ) load_ranges (tarea, fpin);
! else if ( !str_cmp( word, "ECONOMY" ) ) load_economy (tarea, fpin);
! else if ( !str_cmp( word, "RESETMSG" ) ) load_resetmsg(tarea, fpin);
/* Rennard */
! else if ( !str_cmp( word, "HELPS" ) ) load_helps (tarea, fpin);
! else if ( !str_cmp( word, "MOBILES" ) ) load_mobiles (tarea, fpin);
! else if ( !str_cmp( word, "MUDPROGS" ) ) load_mudprogs(tarea, fpin);
! else if ( !str_cmp( word, "OBJECTS" ) ) load_objects (tarea, fpin);
! else if ( !str_cmp( word, "OBJPROGS" ) ) load_objprogs(tarea, fpin);
! else if ( !str_cmp( word, "RESETS" ) ) load_resets (tarea, fpin);
! else if ( !str_cmp( word, "ROOMS" ) ) load_rooms (tarea, fpin);
! else if ( !str_cmp( word, "SHOPS" ) ) load_shops (tarea, fpin);
! else if ( !str_cmp( word, "REPAIRS" ) ) load_repairs (tarea, fpin);
! else if ( !str_cmp( word, "SPECIALS" ) ) load_specials(tarea, fpin);
else
{
bug( tarea->filename );
--- 4972,5016 ----
{
char *word;
! if ( fread_letter( fpArea ) != '#' )
{
bug( tarea->filename );
bug( "load_area: # not found." );
exit( 1 );
}
! word = fread_word( fpArea );
if ( word[0] == '$' ) break;
else if ( !str_cmp( word, "AREA" ) )
{
if ( fBootDb )
{
! load_area (fpArea);
tarea = last_area;
}
else
{
DISPOSE( tarea->name );
! tarea->name = fread_string_nohash( fpArea );
}
}
! else if ( !str_cmp( word, "AUTHOR" ) ) load_author (tarea, fpArea);
! else if ( !str_cmp( word, "FLAGS" ) ) load_flags (tarea, fpArea);
! else if ( !str_cmp( word, "RANGES" ) ) load_ranges (tarea, fpArea);
! else if ( !str_cmp( word, "ECONOMY" ) ) load_economy (tarea, fpArea);
! else if ( !str_cmp( word, "RESETMSG" ) ) load_resetmsg(tarea, fpArea);
/* Rennard */
! else if ( !str_cmp( word, "HELPS" ) ) load_helps (tarea, fpArea);
! else if ( !str_cmp( word, "MOBILES" ) ) load_mobiles (tarea, fpArea);
! else if ( !str_cmp( word, "MUDPROGS" ) ) load_mudprogs(tarea, fpArea);
! else if ( !str_cmp( word, "OBJECTS" ) ) load_objects (tarea, fpArea);
! else if ( !str_cmp( word, "OBJPROGS" ) ) load_objprogs(tarea, fpArea);
! else if ( !str_cmp( word, "RESETS" ) ) load_resets (tarea, fpArea);
! else if ( !str_cmp( word, "ROOMS" ) ) load_rooms (tarea, fpArea);
! else if ( !str_cmp( word, "SHOPS" ) ) load_shops (tarea, fpArea);
! else if ( !str_cmp( word, "REPAIRS" ) ) load_repairs (tarea, fpArea);
! else if ( !str_cmp( word, "SPECIALS" ) ) load_specials(tarea, fpArea);
else
{
bug( tarea->filename );
***************
*** 5013,5024 ****
exit( 1 );
else
{
! fclose( fpin );
return;
}
}
}
! fclose( fpin );
if ( tarea )
{
if ( fBootDb )
--- 5019,5030 ----
exit( 1 );
else
{
! fclose( fpArea );
return;
}
}
}
! fclose( fpArea );
if ( tarea )
{
if ( fBootDb )
diff -cr tmp/dist/src/deity.c dist/src/deity.c
*** tmp/dist/src/deity.c Mon Dec 16 12:43:48 1996
--- dist/src/deity.c Thu Feb 6 09:22:48 1997
***************
*** 31,36 ****
--- 31,38 ----
void fread_deity args( ( DEITY_DATA *deity, FILE *fp ) );
bool load_deity_file args( ( char *deityfile ) );
void write_deity_list args( ( void ) );
+ int get_risflag args( ( char *flag ) );
+ int get_npc_race args( ( char *type ) );
/* Get pointer to deity structure from deity name */
***************
*** 103,110 ****
--- 105,114 ----
fprintf( fp, "Worshippers %d\n", deity->worshippers );
fprintf( fp, "Flee %d\n", deity->flee );
fprintf( fp, "Flee_npcrace %d\n", deity->flee_npcrace );
+ fprintf( fp, "Flee_npcfoe %d\n", deity->flee_npcfoe );
fprintf( fp, "Kill %d\n", deity->kill );
fprintf( fp, "Kill_npcrace %d\n", deity->kill_npcrace );
+ fprintf( fp, "Kill_npcfoe %d\n", deity->kill_npcfoe );
fprintf( fp, "Kill_magic %d\n", deity->kill_magic );
fprintf( fp, "Sac %d\n", deity->sac );
fprintf( fp, "Bury_corpse %d\n", deity->bury_corpse );
***************
*** 114,119 ****
--- 118,124 ----
fprintf( fp, "Backstab %d\n", deity->backstab );
fprintf( fp, "Die %d\n", deity->die );
fprintf( fp, "Die_npcrace %d\n", deity->die_npcrace );
+ fprintf( fp, "Die_npcfoe %d\n", deity->die_npcfoe );
fprintf( fp, "Spell_aid %d\n", deity->spell_aid );
fprintf( fp, "Dig_corpse %d\n", deity->dig_corpse );
fprintf( fp, "Scorpse %d\n", deity->scorpse );
***************
*** 128,133 ****
--- 133,140 ----
fprintf( fp, "Deityobj %d\n", deity->deityobj );
fprintf( fp, "Affected %d\n", deity->affected );
fprintf( fp, "Npcrace %d\n", deity->npcrace );
+ fprintf( fp, "Npcfoe %d\n", deity->npcfoe );
+ fprintf( fp, "Suscept %d\n", deity->suscept );
fprintf( fp, "End\n\n" );
fprintf( fp, "#END\n" );
fclose(fp);
***************
*** 190,195 ****
--- 197,203 ----
KEY( "Description", deity->description, fread_string( fp ) );
KEY( "Die", deity->die, fread_number( fp ) );
KEY( "Die_npcrace", deity->die_npcrace, fread_number( fp ) );
+ KEY( "Die_npcfoe", deity->die_npcfoe, fread_number( fp ) );
KEY( "Dig_corpse", deity->dig_corpse, fread_number( fp ) );
break;
***************
*** 209,224 ****
--- 217,235 ----
KEY( "Filename", deity->filename, fread_string_nohash( fp ) );
KEY( "Flee", deity->flee, fread_number( fp ) );
KEY( "Flee_npcrace",deity->flee_npcrace, fread_number( fp ) );
+ KEY( "Flee_npcfoe", deity->flee_npcfoe, fread_number( fp ) );
break;
case 'K':
KEY( "Kill", deity->kill, fread_number( fp ) );
KEY( "Kill_npcrace",deity->kill_npcrace, fread_number( fp ) );
+ KEY( "Kill_npcfoe", deity->kill_npcfoe, fread_number( fp ) );
KEY( "Kill_magic", deity->kill_magic, fread_number( fp ) );
break;
case 'N':
KEY( "Name", deity->name, fread_string( fp ) );
+ KEY( "Npcfoe", deity->npcfoe, fread_number( fp ) );
KEY( "Npcrace", deity->npcrace, fread_number( fp ) );
break;
***************
*** 235,240 ****
--- 246,252 ----
KEY( "Sex", deity->sex, fread_number( fp ) );
KEY( "Spell_aid", deity->spell_aid, fread_number( fp ) );
KEY( "Steal", deity->steal, fread_number( fp ) );
+ KEY( "Suscept", deity->suscept, fread_number( fp ) );
break;
case 'W':
***************
*** 349,354 ****
--- 361,367 ----
char arg2[MAX_INPUT_LENGTH];
char arg3[MAX_INPUT_LENGTH];
DEITY_DATA *deity;
+ int value;
if ( IS_NPC( ch ) )
{
***************
*** 382,393 ****
{
send_to_char( "Usage: setdeity <deity> <field> <toggle>\n\r", ch );
send_to_char( "\n\rField being one of:\n\r", ch );
! send_to_char( "filename name description type alignment worshippers\n\r", ch );
! send_to_char( "deityobj race npcrace class element avatar sex affected\n\r", ch );
send_to_char( "\n\rFavor adjustments:\n\r", ch );
send_to_char( "flee flee_npcrace kill kill_npcrace kill_magic\n\r", ch );
send_to_char( "die die_npcrace dig_corpse bury_corpse spell_aid\n\r", ch);
! send_to_char( "steal backstab aid aid_spell sac\n\r", ch );
send_to_char( "\n\rFavor requirements for supplicate:\n\r", ch );
send_to_char( "scorpse savatar sdeityobj srecall\n\r", ch );
return;
--- 395,407 ----
{
send_to_char( "Usage: setdeity <deity> <field> <toggle>\n\r", ch );
send_to_char( "\n\rField being one of:\n\r", ch );
! send_to_char( "filename name description type alignment worshippers npcfoe\n\r", ch );
! send_to_char( "deityobj race npcrace class element avatar sex affected suscept\n\r", ch );
send_to_char( "\n\rFavor adjustments:\n\r", ch );
send_to_char( "flee flee_npcrace kill kill_npcrace kill_magic\n\r", ch );
send_to_char( "die die_npcrace dig_corpse bury_corpse spell_aid\n\r", ch);
! send_to_char( "steal backstab aid aid_spell sac kill_npcfoe\n\r", ch );
! send_to_char( "die_npcfoe flee_npcfoe\n\r", ch );
send_to_char( "\n\rFavor requirements for supplicate:\n\r", ch );
send_to_char( "scorpse savatar sdeityobj srecall\n\r", ch );
return;
***************
*** 455,460 ****
--- 469,482 ----
return;
}
+ if ( !strcmp( arg2, "flee_npcfoe" ) )
+ {
+ deity->flee_npcfoe = atoi( argument );
+ send_to_char( "Done.\n\r", ch );
+ save_deity( deity );
+ return;
+ }
+
if ( !strcmp( arg2, "kill" ) )
{
deity->kill = atoi( argument );
***************
*** 471,476 ****
--- 493,506 ----
return;
}
+ if ( !strcmp( arg2, "kill_npcfoe" ) )
+ {
+ deity->kill_npcfoe = atoi( argument );
+ send_to_char( "Done.\n\r", ch );
+ save_deity( deity );
+ return;
+ }
+
if ( !strcmp( arg2, "kill_magic" ) )
{
deity->kill_magic = atoi( argument );
***************
*** 543,548 ****
--- 573,586 ----
return;
}
+ if ( !strcmp( arg2, "die_npcfoe" ) )
+ {
+ deity->die_npcfoe = atoi( argument );
+ send_to_char( "Done.\n\r", ch );
+ save_deity( deity );
+ return;
+ }
+
if ( !strcmp( arg2, "spell_aid" ) )
{
deity->spell_aid = atoi( argument );
***************
*** 609,615 ****
if ( !strcmp( arg2, "race" ) )
{
! deity->race = atoi( argument );
send_to_char( "Done.\n\r", ch );
save_deity( deity );
return;
--- 647,661 ----
if ( !strcmp( arg2, "race" ) )
{
! value = get_npc_race( argument );
! if ( value < 0 ) value = atoi( argument );
! if ( ( value < 0 ) || ( value >= MAX_RACE ) )
! {
! deity->race = -1;
! send_to_char( "No race set.\n\r", ch );
! return;
! }
! deity->race = value;
send_to_char( "Done.\n\r", ch );
save_deity( deity );
return;
***************
*** 617,642 ****
if ( !strcmp( arg2, "npcrace" ) )
{
! deity->npcrace = atoi( argument );
send_to_char( "Done.\n\r", ch );
save_deity( deity );
return;
}
! if ( !strcmp( arg2, "class" ) )
{
! deity->class = atoi( argument );
send_to_char( "Done.\n\r", ch );
save_deity( deity );
return;
}
if ( !strcmp( arg2, "element" ) )
{
! deity->element = atoi( argument );
! send_to_char( "Done.\n\r", ch );
! save_deity( deity );
! return;
}
if ( !strcmp( arg2, "avatar" ) )
--- 663,763 ----
if ( !strcmp( arg2, "npcrace" ) )
{
! value = get_npc_race( argument );
! if ( value < 0 ) value = atoi( argument );
! if ( ( value < 0 ) || ( value >= MAX_NPC_RACE ) )
! {
! send_to_char( "Invalid npc race.\n\r", ch );
! return;
! }
! deity->npcrace = value;
send_to_char( "Done.\n\r", ch );
save_deity( deity );
return;
}
! if ( !strcmp( arg2, "npcfoe" ) )
{
! value = get_npc_race( argument );
! if ( value < 0 ) value = atoi( argument );
! if ( ( value < 0 ) || ( value >= MAX_NPC_RACE ) )
! {
! send_to_char( "Invalid npc race.\n\r", ch );
! return;
! }
! deity->npcfoe = value;
send_to_char( "Done.\n\r", ch );
save_deity( deity );
return;
}
+ if ( !strcmp( arg2, "class" ) )
+ {
+ deity->class = atoi( argument );
+ if ( ( deity->class < 0 ) || ( deity->class >= MAX_CLASS ) ) deity->class = -1;
+ send_to_char( "Done.\n\r", ch );
+ save_deity( deity );
+ return;
+ }
+
+ if ( !strcmp( arg2, "suscept" ) )
+ {
+ bool fMatch = FALSE;
+
+ while ( argument[0] != '\0' )
+ {
+ argument = one_argument( argument, arg3 );
+ if ( !str_cmp ( arg3, "none" ) )
+ {
+ fMatch = TRUE;
+ deity->suscept = 0;
+ }
+ else
+ {
+ value = get_risflag( arg3 );
+ if ( value < 0 || value > 31 )
+ ch_printf( ch, "Unknown flag: %s\n\r", arg3 );
+ else
+ {
+ TOGGLE_BIT( deity->suscept, 1 << value );
+ fMatch = TRUE;
+ }
+ }
+ }
+
+ if ( fMatch ) ch_printf( ch, "Done.\n\r" );
+ save_deity( deity );
+ return;
+ }
+
if ( !strcmp( arg2, "element" ) )
{
! bool fMatch = FALSE;
!
! while ( argument[0] != '\0' )
! {
! argument = one_argument( argument, arg3 );
! if ( !str_cmp ( arg3, "none" ) )
! {
! fMatch = TRUE;
! deity->element = 0;
! }
! else
! {
! value = get_risflag( arg3 );
! if ( value < 0 || value > 31 )
! ch_printf( ch, "Unknown flag: %s\n\r", arg3 );
! else
! {
! TOGGLE_BIT( deity->element, 1 << value );
! fMatch = TRUE;
! }
! }
! }
!
! if ( fMatch ) ch_printf( ch, "Done.\n\r" );
! save_deity( deity );
! return;
}
if ( !strcmp( arg2, "avatar" ) )
***************
*** 657,663 ****
if ( !strcmp( arg2, "affected" ) )
{
- int value;
bool fMatch = FALSE;
while ( argument[0] != '\0' )
--- 778,783 ----
***************
*** 715,726 ****
}
ch_printf( ch, "Deity: %s\n\rFilename: %s\n\rDescription:\n\r%s\n\r", deity->name, deity->filename, deity->description );
! ch_printf( ch, "Alignment: %-6dWorshippers: %-5dNpcrace: %d\n\r",
! deity->alignment, deity->worshippers, deity->npcrace );
! ch_printf( ch, "Race: %-11dClass: %-11dElement: %-9dSex: %d\n\r",
! deity->race, deity->class, deity->element, deity->sex );
! ch_printf( ch, "Object: %-9dAvatar: %-10dAffected: %s\n\r",
! deity->deityobj,deity->avatar, affect_bit_name( deity->affected ));
ch_printf( ch, "\n\rFlee: %-11dFlee_npcrace: %-4dKill_npcrace: "
"%-4dKill: %d\n\r", deity->flee, deity->flee_npcrace,
deity->kill_npcrace, deity->kill );
--- 835,855 ----
}
ch_printf( ch, "Deity: %s\n\rFilename: %s\n\rDescription:\n\r%s\n\r", deity->name, deity->filename, deity->description );
! ch_printf( ch, "Alignment: %-6dNpcrace: %-9sNpcfoe: %s\n\r",
! deity->alignment,
! ( deity->npcrace < 0 || deity->npcrace > MAX_NPC_RACE ) ? "none" : npc_race[deity->npcrace],
! ( deity->npcfoe < 0 || deity->npcfoe > MAX_NPC_RACE ) ? "none" : npc_race[deity->npcfoe] );
! ch_printf( ch, "Race: %-11sClass: %-11sSex: %s\n\r",
! ( deity->race < 0 || deity->race > MAX_RACE ) ? "none" : npc_race[deity->race],
! ( deity->class < 0 || deity->class > MAX_CLASS ) ? "none" : npc_class[deity->class],
! deity->sex == -1 ? "none" :
! deity->sex == SEX_MALE ? "male" :
! deity->sex == SEX_FEMALE ? "female" : "neutral" );
! ch_printf( ch, "Object: %-9dAvatar: %-10dWorshippers: %d\n\r",
! deity->deityobj, deity->avatar, deity->worshippers );
! ch_printf( ch, "\n\rAffected: %s\n\r", affect_bit_name( deity->affected ));
! ch_printf( ch, "Suscept: %s\n\r", flag_string( deity->suscept, ris_flags ));
! ch_printf( ch, "Element: %s\n\r", flag_string( deity->element, ris_flags ));
ch_printf( ch, "\n\rFlee: %-11dFlee_npcrace: %-4dKill_npcrace: "
"%-4dKill: %d\n\r", deity->flee, deity->flee_npcrace,
deity->kill_npcrace, deity->kill );
***************
*** 729,736 ****
deity->aid_spell );
ch_printf( ch, "Aid: %-12dSteal: %-11dBackstab: %-8dDie: %d\n\r",
deity->aid, deity->steal, deity->backstab, deity->die );
! ch_printf( ch, "Die_npcrace: %-4dDig_corpse: %-6dSpell_aid %d\n\r",
! deity->die_npcrace, deity->dig_corpse, deity->spell_aid );
ch_printf( ch, "\n\rScorpse: %-8dSavatar: %-9dSdeityobj: %-7d"
"Srecall: %d\n\r", deity->scorpse, deity->savatar,
deity->sdeityobj, deity->srecall );
--- 858,867 ----
deity->aid_spell );
ch_printf( ch, "Aid: %-12dSteal: %-11dBackstab: %-8dDie: %d\n\r",
deity->aid, deity->steal, deity->backstab, deity->die );
! ch_printf( ch, "Die_npcrace: %-4dDig_corpse: %-6dSpell_aid: %-7dKill_npcfoe: %d\n\r",
! deity->die_npcrace, deity->dig_corpse, deity->spell_aid, deity->kill_npcfoe );
! ch_printf( ch, "Die_npcfoe: %-5dFlee_npcfoe: %d\n\r",
! deity->die_npcfoe, deity->flee_npcfoe );
ch_printf( ch, "\n\rScorpse: %-8dSavatar: %-9dSdeityobj: %-7d"
"Srecall: %d\n\r", deity->scorpse, deity->savatar,
deity->sdeityobj, deity->srecall );
***************
*** 805,810 ****
--- 936,945 ----
{
REMOVE_BIT( ch->resistant, ch->pcdata->deity->element );
}
+ if ( IS_SET( ch->susceptible, ch->pcdata->deity->suscept ) )
+ {
+ REMOVE_BIT( ch->susceptible, ch->pcdata->deity->suscept );
+ }
if ( is_affected( ch, gsn_blindness ) ) affect_strip( ch, gsn_blindness );
af.type = gsn_blindness;
af.location = APPLY_HITROLL;
***************
*** 855,860 ****
--- 990,996 ----
return;
}
+ /*
if ( ch->pcdata->deity )
{
AFFECT_DATA af;
***************
*** 869,874 ****
--- 1005,1011 ----
{
REMOVE_BIT( ch->resistant, ch->pcdata->deity->element );
}
+
if ( is_affected( ch, gsn_blindness ) ) affect_strip( ch, gsn_blindness );
af.type = gsn_blindness;
af.location = APPLY_HITROLL;
***************
*** 878,883 ****
--- 1015,1021 ----
affect_to_char( ch, &af );
save_deity(ch->pcdata->deity);
}
+ */
STRFREE(ch->pcdata->deity_name);
ch->pcdata->deity_name = QUICKLINK( deity->name );
***************
*** 890,895 ****
--- 1028,1037 ----
{
SET_BIT( ch->resistant, ch->pcdata->deity->element );
}
+ if ( !IS_SET( ch->susceptible, ch->pcdata->deity->suscept ) )
+ {
+ SET_BIT( ch->susceptible, ch->pcdata->deity->suscept );
+ }
act( AT_MAGIC, "Body and soul, you devote yourself to $t!", ch, ch->pcdata->deity_name, NULL, TO_CHAR );
++ch->pcdata->deity->worshippers;
save_deity(ch->pcdata->deity);
***************
*** 1057,1062 ****
--- 1199,1211 ----
return;
}
+ if ( ( ch->in_room == get_room_index(6) )
+ || ( ch->in_room == get_room_index(8) ) )
+ {
+ send_to_char( "You have been forsaken!\n\r", ch );
+ return;
+ }
+
location = NULL;
if ( !IS_NPC(ch) && ch->pcdata->clan )
***************
*** 1099,1106 ****
0 = flee 5 = sac 10 = backstab
1 = flee_npcrace 6 = bury_corpse 11 = die
2 = kill 7 = aid_spell 12 = die_npcrace
! 3 = kil_npcrace 8 = aid 13 = spell_aid
4 = kill_magic 9 = steal 14 = dig_corpse
*/
void adjust_favor( CHAR_DATA *ch, int field, int mod )
{
--- 1248,1256 ----
0 = flee 5 = sac 10 = backstab
1 = flee_npcrace 6 = bury_corpse 11 = die
2 = kill 7 = aid_spell 12 = die_npcrace
! 3 = kill_npcrace 8 = aid 13 = spell_aid
4 = kill_magic 9 = steal 14 = dig_corpse
+ 15 = die_npcfoe 16 = flee_npcfoe 17 = kill_npcfoe
*/
void adjust_favor( CHAR_DATA *ch, int field, int mod )
{
***************
*** 1117,1139 ****
return;
}
switch ( field )
{
! case 0: ch->pcdata->favor += ch->pcdata->deity->flee / mod; break;
! case 1: ch->pcdata->favor += ch->pcdata->deity->flee_npcrace / mod; break;
! case 2: ch->pcdata->favor += ch->pcdata->deity->kill / mod; break;
! case 3: ch->pcdata->favor += ch->pcdata->deity->kill_npcrace / mod; break;
! case 4: ch->pcdata->favor += ch->pcdata->deity->kill_magic / mod; break;
! case 5: ch->pcdata->favor += ch->pcdata->deity->sac / mod; break;
! case 6: ch->pcdata->favor += ch->pcdata->deity->bury_corpse / mod; break;
! case 7: ch->pcdata->favor += ch->pcdata->deity->aid_spell / mod; break;
! case 8: ch->pcdata->favor += ch->pcdata->deity->aid / mod; break;
! case 9: ch->pcdata->favor += ch->pcdata->deity->steal / mod; break;
! case 10: ch->pcdata->favor += ch->pcdata->deity->backstab / mod; break;
! case 11: ch->pcdata->favor += ch->pcdata->deity->die / mod; break;
! case 12: ch->pcdata->favor += ch->pcdata->deity->die_npcrace / mod; break;
! case 13: ch->pcdata->favor += ch->pcdata->deity->spell_aid / mod; break;
! case 14: ch->pcdata->favor += ch->pcdata->deity->dig_corpse / mod; break;
}
ch->pcdata->favor = URANGE( -1000, ch->pcdata->favor, 1000 );
return;
--- 1267,1293 ----
return;
}
+ if ( mod < 1 ) mod = 1;
switch ( field )
{
! case 0: ch->pcdata->favor += number_fuzzy(ch->pcdata->deity->flee / mod); break;
! case 1: ch->pcdata->favor += number_fuzzy(ch->pcdata->deity->flee_npcrace / mod); break;
! case 2: ch->pcdata->favor += number_fuzzy(ch->pcdata->deity->kill / mod); break;
! case 3: ch->pcdata->favor += number_fuzzy(ch->pcdata->deity->kill_npcrace / mod); break;
! case 4: ch->pcdata->favor += number_fuzzy(ch->pcdata->deity->kill_magic / mod); break;
! case 5: ch->pcdata->favor += number_fuzzy(ch->pcdata->deity->sac / mod); break;
! case 6: ch->pcdata->favor += number_fuzzy(ch->pcdata->deity->bury_corpse / mod); break;
! case 7: ch->pcdata->favor += number_fuzzy(ch->pcdata->deity->aid_spell / mod); break;
! case 8: ch->pcdata->favor += number_fuzzy(ch->pcdata->deity->aid / mod); break;
! case 9: ch->pcdata->favor += number_fuzzy(ch->pcdata->deity->steal / mod); break;
! case 10: ch->pcdata->favor += number_fuzzy(ch->pcdata->deity->backstab / mod); break;
! case 11: ch->pcdata->favor += number_fuzzy(ch->pcdata->deity->die / mod); break;
! case 12: ch->pcdata->favor += number_fuzzy(ch->pcdata->deity->die_npcrace / mod); break;
! case 13: ch->pcdata->favor += number_fuzzy(ch->pcdata->deity->spell_aid / mod); break;
! case 14: ch->pcdata->favor += number_fuzzy(ch->pcdata->deity->dig_corpse / mod); break;
! case 15: ch->pcdata->favor += number_fuzzy(ch->pcdata->deity->die_npcfoe / mod); break;
! case 16: ch->pcdata->favor += number_fuzzy(ch->pcdata->deity->flee_npcfoe / mod); break;
! case 17: ch->pcdata->favor += number_fuzzy(ch->pcdata->deity->kill_npcfoe / mod); break;
}
ch->pcdata->favor = URANGE( -1000, ch->pcdata->favor, 1000 );
return;
diff -cr tmp/dist/src/fight.c dist/src/fight.c
*** tmp/dist/src/fight.c Mon Dec 16 12:43:37 1996
--- dist/src/fight.c Thu Feb 6 09:22:48 1997
***************
*** 1242,1248 ****
if ( IS_ENERGY(dt) )
dam = ris_damage(victim, dam, RIS_ENERGY);
else
! if ( dt == gsn_poison )
dam = ris_damage(victim, dam, RIS_POISON);
else
if ( dt == (TYPE_HIT + 7) || dt == (TYPE_HIT + 8) )
--- 1242,1251 ----
if ( IS_ENERGY(dt) )
dam = ris_damage(victim, dam, RIS_ENERGY);
else
! if ( IS_DRAIN(dt) )
! dam = ris_damage(victim, dam, RIS_DRAIN);
! else
! if ( dt == gsn_poison || IS_POISON(dt) )
dam = ris_damage(victim, dam, RIS_POISON);
else
if ( dt == (TYPE_HIT + 7) || dt == (TYPE_HIT + 8) )
***************
*** 1945,1950 ****
--- 1948,1956 ----
return TRUE;
}
+ if ( ch->level > LEVEL_IMMORTAL )
+ return FALSE;
+
if( !IS_NPC( ch ) && !IS_NPC( victim )
&& ch != victim
&& IS_SET( victim->in_room->area->flags, AFLAG_NOPKILL ) )
***************
*** 2027,2041 ****
{
if ( !IS_NPC( ch ) )
{
if ( ch->pcdata->clan )
ch->pcdata->clan->mkills++;
ch->pcdata->mkills++;
ch->in_room->area->mkills++;
! if ( ( ch->pcdata->deity )
! && ( victim->race == ch->pcdata->deity->npcrace ) )
! adjust_favor( ch, 3, 1 );
! else
! adjust_favor( ch, 2, 1 );
}
return;
}
--- 2033,2054 ----
{
if ( !IS_NPC( ch ) )
{
+ int level_ratio;
+ level_ratio = URANGE( 1, ch->level / victim->level, 50);
if ( ch->pcdata->clan )
ch->pcdata->clan->mkills++;
ch->pcdata->mkills++;
ch->in_room->area->mkills++;
! if ( ch->pcdata->deity )
! {
! if ( victim->race == ch->pcdata->deity->npcrace )
! adjust_favor( ch, 3, level_ratio );
! else
! if ( victim->race == ch->pcdata->deity->npcfoe )
! adjust_favor( ch, 17, level_ratio );
! else
! adjust_favor( ch, 2, level_ratio );
! }
}
return;
}
***************
*** 2133,2147 ****
{
if ( !IS_NPC(victim) )
{
if ( victim->pcdata->clan )
victim->pcdata->clan->mdeaths++;
victim->pcdata->mdeaths++;
victim->in_room->area->mdeaths++;
! if ( ( victim->pcdata->deity )
! && ( ch->race == victim->pcdata->deity->npcrace ) )
! adjust_favor( victim, 12, 1 );
! else
! adjust_favor( victim, 11, 1 );
}
return;
}
--- 2146,2167 ----
{
if ( !IS_NPC(victim) )
{
+ int level_ratio;
if ( victim->pcdata->clan )
victim->pcdata->clan->mdeaths++;
victim->pcdata->mdeaths++;
victim->in_room->area->mdeaths++;
! level_ratio = URANGE( 1, ch->level / victim->level, 50 );
! if ( victim->pcdata->deity )
! {
! if ( ch->race == victim->pcdata->deity->npcrace )
! adjust_favor( victim, 12, level_ratio );
! else
! if ( ch->race == victim->pcdata->deity->npcfoe )
! adjust_favor( victim, 15, level_ratio );
! else
! adjust_favor( victim, 11, level_ratio );
! }
}
return;
}
***************
*** 2589,2596 ****
}
while ( victim->first_affect )
affect_remove( victim, victim->first_affect );
! victim->affected_by = race_table[victim->race].affected
! | (victim->pcdata->deity ? victim->pcdata->deity->affected : 0);
victim->carry_weight= 0;
victim->armor = 100;
victim->mod_str = 0;
--- 2609,2618 ----
}
while ( victim->first_affect )
affect_remove( victim, victim->first_affect );
! victim->affected_by = race_table[victim->race].affected;
! victim->resistant = 0;
! victim->susceptible = 0;
! victim->immune = 0;
victim->carry_weight= 0;
victim->armor = 100;
victim->mod_str = 0;
***************
*** 3213,3231 ****
if ( !IS_NPC(ch) )
{
CHAR_DATA *wf = who_fighting(ch);
!
los = (exp_level(ch, ch->level+1) - exp_level(ch, ch->level)) * 0.03;
sprintf(buf, "You flee from combat! You lose %d experience.", los );
act( AT_FLEE, buf, ch, NULL, NULL, TO_CHAR );
gain_exp( ch, 0 - los );
! if ( ( ch->pcdata->deity )
! && ( wf && wf->race == ch->pcdata->deity->npcrace ) )
! adjust_favor( ch, 1, 1 );
! else
! adjust_favor( ch, 0, 1 );
}
- if ( ch->fighting )
- WAIT_STATE( who_fighting( ch ), 0 );
stop_fighting( ch, TRUE );
return;
}
--- 3235,3257 ----
if ( !IS_NPC(ch) )
{
CHAR_DATA *wf = who_fighting(ch);
! int level_ratio;
los = (exp_level(ch, ch->level+1) - exp_level(ch, ch->level)) * 0.03;
sprintf(buf, "You flee from combat! You lose %d experience.", los );
act( AT_FLEE, buf, ch, NULL, NULL, TO_CHAR );
gain_exp( ch, 0 - los );
! if ( wf ) level_ratio = URANGE( 1, wf->level / ch->level, 50 );
! if ( ch->pcdata->deity )
! {
! if ( wf && wf->race == ch->pcdata->deity->npcrace )
! adjust_favor( ch, 1, level_ratio );
! else
! if ( wf && wf->race == ch->pcdata->deity->npcfoe )
! adjust_favor( ch, 16, level_ratio );
! else
! adjust_favor( ch, 0, level_ratio );
! }
}
stop_fighting( ch, TRUE );
return;
}
***************
*** 3281,3296 ****
if ( !str_cmp( arg2, "immolate" ) )
{
! act( AT_IMMORT, "Your fireball turns $N into a blazing inferno.", ch, NULL, victim, TO_CHAR );
! act( AT_IMMORT, "$n releases a single fireball in your direction.", ch, NULL, victim, TO_VICT );
! act( AT_IMMORT, "$n points at $N, who bursts into flames.", ch, NULL, victim, TO_NOTVICT );
}
else if ( !str_cmp( arg2, "shatter" ) )
{
! act( AT_IMMORT, "You freeze $N with a glance and shatter the frozen corpse into tiny shards.", ch, NULL, victim, TO_CHAR );
! act( AT_IMMORT, "$n freezes you with a glance and shatters your frozen body into tiny shards.", ch, NULL, victim, TO_VICT );
! act( AT_IMMORT, "$n freezes $N with a glance and shatters the frozen body into tiny shards.", ch, NULL, victim, TO_NOTVICT );
}
else if ( !str_cmp( arg2, "demon" ) )
--- 3307,3322 ----
if ( !str_cmp( arg2, "immolate" ) )
{
! act( AT_FIRE, "Your fireball turns $N into a blazing inferno.", ch, NULL, victim, TO_CHAR );
! act( AT_FIRE, "$n releases a searing fireball in your direction.", ch, NULL, victim, TO_VICT );
! act( AT_FIRE, "$n points at $N, who bursts into a flaming inferno.", ch, NULL, victim, TO_NOTVICT );
}
else if ( !str_cmp( arg2, "shatter" ) )
{
! act( AT_LBLUE, "You freeze $N with a glance and shatter the frozen corpse into tiny shards.", ch, NULL, victim, TO_CHAR );
! act( AT_LBLUE, "$n freezes you with a glance and shatters your frozen body into tiny shards.", ch, NULL, victim, TO_VICT );
! act( AT_LBLUE, "$n freezes $N with a glance and shatters the frozen body into tiny shards.", ch, NULL, victim, TO_NOTVICT );
}
else if ( !str_cmp( arg2, "demon" ) )
***************
*** 3301,3306 ****
--- 3327,3346 ----
act( AT_IMMORT, "you with a horrible grin. You scream in panic before being eaten alive.", ch, NULL, victim, TO_VICT );
act( AT_IMMORT, "$n gestures, and a slavering demon appears. With a horrible grin, the", ch, NULL, victim, TO_NOTVICT );
act( AT_IMMORT, "foul creature turns on $N, who screams in panic before being eaten alive.", ch, NULL, victim, TO_NOTVICT );
+ }
+
+ else if ( !str_cmp( arg2, "pounce" ) && get_trust(ch) >= LEVEL_ASCENDANT )
+ {
+ act( AT_BLOOD, "Leaping upon $N with bared fangs, you tear open $S throat and toss the corpse to the ground...", ch, NULL, victim, TO_CHAR );
+ act( AT_BLOOD, "In a heartbeat, $n rips $s fangs through your throat! Your blood sprays and pours to the ground as your life ends...", ch, NULL, victim, TO_VICT );
+ act( AT_BLOOD, "Leaping suddenly, $n sinks $s fangs into $N's throat. As blood sprays and gushes to the ground, $n tosses $N's dying body away.", ch, NULL, victim, TO_NOTVICT );
+ }
+
+ else if ( !str_cmp( arg2, "slit" ) && get_trust(ch) >= LEVEL_ASCENDANT )
+ {
+ act( AT_BLOOD, "You calmly slit $N's throat.", ch, NULL, victim, TO_CHAR );
+ act( AT_BLOOD, "$n reaches out with a clawed finger and calmly slits your throat.", ch, NULL, victim, TO_VICT );
+ act( AT_BLOOD, "$n calmly slits $N's throat.", ch, NULL, victim, TO_NOTVICT );
}
else
Only in dist/src: grub.c
diff -cr tmp/dist/src/handler.c dist/src/handler.c
*** tmp/dist/src/handler.c Mon Dec 16 12:43:37 1996
--- dist/src/handler.c Thu Feb 6 09:22:48 1997
***************
*** 135,142 ****
if ( IS_NPC(ch) && ch->level >= LEVEL_AVATAR )
return LEVEL_AVATAR;
! if ( ch->level >= LEVEL_SAVIOR && IS_RETIRED( ch ) )
! return LEVEL_SAVIOR;
return ch->level;
}
--- 135,142 ----
if ( IS_NPC(ch) && ch->level >= LEVEL_AVATAR )
return LEVEL_AVATAR;
! if ( ch->level >= LEVEL_NEOPHYTE && IS_RETIRED( ch ) )
! return LEVEL_NEOPHYTE;
return ch->level;
}
***************
*** 3242,3248 ****
*/
if ( IS_DEVOTED( ch ) )
! deity_factor = abs( ch->pcdata->favor ) / -100;
else
deity_factor = 0;
--- 3242,3248 ----
*/
if ( IS_DEVOTED( ch ) )
! deity_factor = ch->pcdata->favor / -200;
else
deity_factor = 0;
***************
*** 3267,3273 ****
}
if ( IS_DEVOTED( ch ) )
! deity_factor = abs( ch->pcdata->favor ) / -100;
else
deity_factor = 0;
--- 3267,3273 ----
}
if ( IS_DEVOTED( ch ) )
! deity_factor = ch->pcdata->favor / -200;
else
deity_factor = 0;
diff -cr tmp/dist/src/hashstr.c dist/src/hashstr.c
*** tmp/dist/src/hashstr.c Mon Dec 16 12:43:37 1996
--- dist/src/hashstr.c Thu Feb 6 09:22:48 1997
***************
*** 50,56 ****
psize = sizeof(struct hashstr_data);
hash = len % STR_HASH_SIZE;
for (ptr = string_hash[hash]; ptr; ptr = ptr->next )
! if ( !strcmp(str,(char *)ptr+psize) )
{
if ( ptr->links < 65535 )
++ptr->links;
--- 50,56 ----
psize = sizeof(struct hashstr_data);
hash = len % STR_HASH_SIZE;
for (ptr = string_hash[hash]; ptr; ptr = ptr->next )
! if ( len == ptr->length && !strcmp(str,(char *)ptr+psize) )
{
if ( ptr->links < 65535 )
++ptr->links;
***************
*** 179,185 ****
psize = sizeof(struct hashstr_data);
hash = len % STR_HASH_SIZE;
for (fnd = NULL, ptr = string_hash[hash], c = 0; ptr; ptr = ptr->next, c++ )
! if ( !strcmp(str,(char *)ptr+psize) )
{
fnd = ptr;
p = c+1;
--- 179,185 ----
psize = sizeof(struct hashstr_data);
hash = len % STR_HASH_SIZE;
for (fnd = NULL, ptr = string_hash[hash], c = 0; ptr; ptr = ptr->next, c++ )
! if ( len == ptr->length && !strcmp(str,(char *)ptr+psize) )
{
fnd = ptr;
p = c+1;
diff -cr tmp/dist/src/interp.c dist/src/interp.c
*** tmp/dist/src/interp.c Thu Dec 19 14:06:26 1996
--- dist/src/interp.c Thu Feb 6 09:41:37 1997
***************
*** 548,554 ****
/* laggy command notice: command took longer than 1.5 seconds */
if ( tmptime > 1500000 )
{
! sprintf(log_buf, "[*****] LAG: %s: %s %s (R:%d S:%d.%06d)", ch->name,
cmd->name, (cmd->log == LOG_NEVER ? "XXX" : argument),
ch->in_room ? ch->in_room->vnum : 0,
time_used.tv_sec, time_used.tv_usec );
--- 548,554 ----
/* laggy command notice: command took longer than 1.5 seconds */
if ( tmptime > 1500000 )
{
! sprintf(log_buf, "[*****] LAG: %s: %s %s (R:%d S:%ld.%06ld)", ch->name,
cmd->name, (cmd->log == LOG_NEVER ? "XXX" : argument),
ch->in_room ? ch->in_room->vnum : 0,
time_used.tv_sec, time_used.tv_usec );
diff -cr tmp/dist/src/magic.c dist/src/magic.c
*** tmp/dist/src/magic.c Mon Dec 16 12:43:38 1996
--- dist/src/magic.c Thu Feb 6 09:22:49 1997
***************
*** 1163,1173 ****
return;
if ( !IS_NPC( ch ) && victim && !IS_NPC( victim )
! && CAN_PKILL( victim ) && !CAN_PKILL( ch ) )
{
! set_char_color( AT_MAGIC, ch );
! send_to_char( "You cannot cast spells on that player.\n\r", ch );
! return;
}
/*
--- 1163,1174 ----
return;
if ( !IS_NPC( ch ) && victim && !IS_NPC( victim )
! && CAN_PKILL( victim ) && !CAN_PKILL( ch )
! && !in_arena( ch ) && !in_arena( victim ) )
{
! set_char_color( AT_MAGIC, ch );
! send_to_char( "The gods will not permit you to cast spells on that character.\n\r", ch );
! return;
}
/*
***************
*** 3601,3606 ****
--- 3602,3609 ----
return rSPELL_FAILED;
}
+ separate_obj(obj); /* altrag shoots, haus alley-oops! */
+
if ( IS_OBJ_STAT( obj, ITEM_NODROP ) )
{
send_to_char( "You can't seem to let go of it.\n\r", ch );
***************
*** 4852,4861 ****
--- 4855,4870 ----
if ( chance == 1000 )
{
retcode = rVICT_IMMUNE;
+ if ( SPELL_FLAG(skill, SF_STOPONFAIL) )
+ return retcode;
continue;
}
if ( saves_poison_death( chance, victim ) )
+ {
+ if ( SPELL_FLAG(skill, SF_STOPONFAIL) )
+ return retcode;
continue;
+ }
victim->mental_state = URANGE( 30, victim->mental_state + 2, 100 );
break;
case AFF_BLIND: af.type = gsn_blindness; break;
***************
*** 4866,4871 ****
--- 4875,4882 ----
if ( chance == 1000 )
{
retcode = rVICT_IMMUNE;
+ if ( SPELL_FLAG(skill, SF_STOPONFAIL) )
+ return retcode;
continue;
}
break;
***************
*** 4874,4879 ****
--- 4885,4892 ----
if ( chance == 1000 )
{
retcode = rVICT_IMMUNE;
+ if ( SPELL_FLAG(skill, SF_STOPONFAIL) )
+ return retcode;
continue;
}
break;
***************
*** 5441,5445 ****
--- 5454,5869 ----
case TAR_OBJ_INV:
return spell_obj_inv( sn, level, ch, vo );
}
+ return rNONE;
+ }
+
+
+
+ /* Haus' new, new mage spells follow */
+
+ /*
+ * 4 Energy Spells
+ */
+ ch_ret spell_ethereal_fist( int sn, int level, CHAR_DATA *ch, void *vo )
+ {
+ CHAR_DATA *victim = (CHAR_DATA *) vo;
+ int dam;
+
+ level = UMAX(0, level);
+ level = UMIN(35, level);
+ dam = level*number_range( 1, 6 )-31;
+ dam = UMAX(0,dam);
+
+ if ( saves_spell_staff( level, victim ) )
+ dam = 0;
+
+ act( AT_MAGIC, "A fist of black, otherworldly ether rams into $N, leaving $M looking stunned!"
+ , ch, NULL,
+ victim, TO_NOTVICT );
+ return damage( ch, victim, dam, sn );
+ }
+
+
+ ch_ret spell_spectral_furor( int sn, int level, CHAR_DATA *ch, void *vo )
+ {
+ CHAR_DATA *victim = (CHAR_DATA *) vo;
+ int dam;
+
+ level = UMAX(0, level);
+ level = UMIN(16, level);
+ dam = level*number_range( 1, 7 )+7;
+ if ( saves_spell_staff( level, victim ) )
+ dam /= 2;
+ act( AT_MAGIC, "The fabric of the cosmos strains in fury about $N!"
+ , ch, NULL,
+ victim, TO_NOTVICT );
+ return damage( ch, victim, dam, sn );
+ }
+
+ ch_ret spell_hand_of_chaos( int sn, int level, CHAR_DATA *ch, void *vo )
+ {
+ CHAR_DATA *victim = (CHAR_DATA *) vo;
+ int dam;
+
+ level = UMAX(0, level);
+ level = UMIN(18, level);
+ dam = level*number_range( 1, 7 )+9;
+
+ if ( saves_spell_staff( level, victim ) )
+ dam = 0;
+ act( AT_MAGIC, "$N is grasped by an incomprehensible hand of chaos!"
+ , ch, NULL,
+ victim, TO_NOTVICT );
+ return damage( ch, victim, dam, sn );
+ }
+
+
+ ch_ret spell_disruption( int sn, int level, CHAR_DATA *ch, void *vo )
+ {
+ CHAR_DATA *victim = (CHAR_DATA *) vo;
+ int dam;
+
+ level = UMAX(0, level);
+ level = UMIN(14, level);
+ dam = level*number_range( 1, 6 )+8;
+
+ if ( saves_spell_staff( level, victim ) )
+ dam = 0;
+ act( AT_MAGIC, "A weird energy encompasses $N, causing you to question $S continued existence."
+ , ch, NULL,
+ victim, TO_NOTVICT );
+ return damage( ch, victim, dam, sn );
+ }
+
+ ch_ret spell_sonic_resonance( int sn, int level, CHAR_DATA *ch, void *vo )
+ {
+ CHAR_DATA *victim = (CHAR_DATA *) vo;
+ int dam;
+
+ level = UMAX(0, level);
+ level = UMIN(23, level);
+ dam = level*number_range( 1, 8 );
+
+ if ( saves_spell_staff( level, victim ) )
+ dam = dam*3/4;
+ act( AT_MAGIC, "A cylinder of kinetic energy enshrouds $N causing $S to resonate."
+ , ch, NULL,
+ victim, TO_NOTVICT );
+ return damage( ch, victim, dam, sn );
+ }
+
+ /*
+ * 3 Mentalstate spells
+ */
+ ch_ret spell_mind_wrack( int sn, int level, CHAR_DATA *ch, void *vo )
+ {
+ CHAR_DATA *victim = (CHAR_DATA *) vo;
+ int dam;
+
+ /* decrement mentalstate by up to 50 */
+
+ level = UMAX(0, level);
+ dam = number_range( 0, 0 );
+ if ( saves_spell_staff( level, victim ) )
+ dam /= 2;
+ act( AT_MAGIC, "$n stares intently at $N, causing $N to seem very lethargic."
+ , ch, NULL,
+ victim, TO_NOTVICT );
+ return damage( ch, victim, dam, sn );
+ }
+
+ ch_ret spell_mind_wrench( int sn, int level, CHAR_DATA *ch, void *vo )
+ {
+ CHAR_DATA *victim = (CHAR_DATA *) vo;
+ int dam;
+
+ /* increment mentalstate by up to 50 */
+
+ level = UMAX(0, level);
+ dam = number_range( 0, 0 );
+ if ( saves_spell_staff( level, victim ) )
+ dam /= 2;
+ act( AT_MAGIC, "$n stares intently at $N, causing $N to seem very hyperactive."
+ , ch, NULL,
+ victim, TO_NOTVICT );
+ return damage( ch, victim, dam, sn );
+ }
+
+
+ /* Non-offensive spell! */
+ ch_ret spell_revive( int sn, int level, CHAR_DATA *ch, void *vo )
+ {
+ CHAR_DATA *victim = (CHAR_DATA *) vo;
+ int dam;
+
+ /* set mentalstate to mentalstate/2 */
+ level = UMAX(0, level);
+ dam = number_range( 0, 0 );
+ if ( saves_spell_staff( level, victim ) )
+ dam /= 2;
+ act( AT_MAGIC, "$n concentrates intently, and begins looking more centered."
+ , ch, NULL,
+ victim, TO_NOTVICT );
+ return damage( ch, victim, dam, sn );
+ }
+
+ /*
+ * n Acid Spells
+ */
+ ch_ret spell_sulfurous_spray( int sn, int level, CHAR_DATA *ch, void *vo )
+ {
+ CHAR_DATA *victim = (CHAR_DATA *) vo;
+ int dam;
+
+ level = UMAX(0, level);
+ level = UMIN(19, level);
+ dam = 2*level*number_range( 1, 7 )+11;
+
+ if ( saves_spell_staff( level, victim ) )
+ dam /= 4;
+ act( AT_MAGIC, "A stinking spray of sulfurous liquid rains down on $N."
+ , ch, NULL,
+ victim, TO_NOTVICT );
+ return damage( ch, victim, dam, sn );
+ }
+
+ ch_ret spell_caustic_fount( int sn, int level, CHAR_DATA *ch, void *vo )
+ {
+ CHAR_DATA *victim = (CHAR_DATA *) vo;
+ int dam;
+
+ level = UMAX(0, level);
+ level = UMIN(42, level);
+ dam = 2*level*number_range( 1, 6 )-31;
+ dam = UMAX(0,dam);
+
+ if ( saves_spell_staff( level, victim ) )
+ dam = dam*3/4;
+ act( AT_MAGIC, "A fountain of caustic liquid forms below $N. The smell of $S degenerating tissues is revolting! "
+ , ch, NULL,
+ victim, TO_NOTVICT );
+ return damage( ch, victim, dam, sn );
+ }
+
+ ch_ret spell_acetum_primus( int sn, int level, CHAR_DATA *ch, void *vo )
+ {
+ CHAR_DATA *victim = (CHAR_DATA *) vo;
+ int dam;
+
+ level = UMAX(0, level);
+ dam = 2*level*number_range( 1, 4 )+7;
+
+ if ( saves_spell_staff( level, victim ) )
+ dam = 3*dam/4;
+ act( AT_MAGIC, "A cloak of primal acid enshrouds $N, sparks form as it consumes all it touches. "
+ , ch, NULL,
+ victim, TO_NOTVICT );
+ return damage( ch, victim, dam, sn );
Showing the first 150 KB. Download the file for the full text.