![]() ![]() |
BG Structures List for Hex Editing
For detailed information on BG item structures, visit:
ITMFileMain.html
or:
http://csoft.net/~loth/bg/index.shtml
To learn the basics of hex, go to:
http://webster.cs.ucr.edu/Page_asm/ArtofAssembly/ArtofAsm.html
Hex editing FAQ/Tutorial:
FAQHex.html
Hex editing message board (PLEASE READ PRIOR POSTINGS BEFORE ASKING
QUESTIONS):
http://www.insidetheweb.com/mbs.cgi/mb559600
-----------------------------------------------------------------------------------------
To add a structure to an item with one extended header (spells are
a
little more involving):
To add a structure that affects the character who equips your item,
you
first must get the value at 0x070. Then count that many structs into
the
feature table (the area with the structs) and insert your struct there
(if
0x070 is 5, then your struct should be the 6th struct). Lastly, increment
0x070.
To add a struct that affects a creature hit by the weapon or the target
of
a potion, spell, wand, etc, just add the struct to the end and increment
0x090.
=========================================================================================
Offset Size Data Type
------ ---- ---- ----
0000h 0002h Feature/Effect Word
0002h 0002h Target SubIdentifier
01 -> target Self
02 -> target PreTarget
03 -> target Party
04 -> Global Target
05 -> Global Target Without Party
0004h 0004h Parameter 1 Longint (Little-endian)
0008h 0004h Parameter 2 Longint (Little-endian,sometimes is bitmask)
000Ch Timing
Identifier
00 -> Duration
01 -> Permanent
02 -> EffectWhileEquipped
04 -> Delay
000Dh 0001h Effect Time Mode (Boolean)
Bit 1 TimeIsDuration
Bit 2 TimeIsDelay
000Eh 0004h EffectTime Longint (Little-endian)
0012h 0002h Probability Word (Little-endian)
0014h 0008h FileName Array[0..7] Of Char
001Ch 0004h Throws Longint (Little-endian)
0020h 0004h DiceSides Longint (Little-endian)
0024h 0004h SavingThrowType (Little-endian)
0028h 0004h SavingThrowBonus Longint (Little-endian)
002Ah 0004h ???
=========================================================================================
-----------------------------------------------------------------------------------------
Section 1: SFX
-----------------------------------------------------------------------------------------
Color Tint-Glow
Discovered By: Suryiel
34 00 ßß 00 00 RR GG BB LL 00 00 00 tt dd dd dd
dd 00 64 00 00 00 00 A4 14 4C 00 04 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ßß - TargetID
RR GG BB- RGB value
LL- location (see set color )
tt- timing ID
dd- duration
Tints avatar with bright color- dark colors do not work well, black
not at all
Back to top
-----------------------------------------------------------------------------------------
Color Tint-Solid
Discovered By: Suryiel
33 00 ßß 00 00 RR GG BB LL 00 00 00 tt dd dd dd
dd 00 64 00 00 00 00 A4 14 4C 00 04 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ßß - TargetID
RR GG BB- RGB value
LL- location (see set color )
tt- timing ID
dd- duration
Tints avatar with solid color as specified- dark colors work best- white does not at all
Back to top
-----------------------------------------------------------------------------------------
Force Animation Sequence
Discovered By: Graf Hohfels
8A 00 01 00 00 00 00 00 xx 00 00 00 01 00 00 00
00 00 64 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
xx -> AnimationSequence:
01 -> Lay down (short)
02 -> move hands (short)
03 -> move hands (long)
04 -> move shoulder (short)
05 -> move shoulder (long)
06 -> lay down (long)
07 -> breath rapidly (short)
08 -> breath rapidly (long)
Back to top
-----------------------------------------------------------------------------------------
Fade ( Stealth/ Invisibility)
Discovered By: Graf Hohfels
42 00 ßß 00 xx 00 00 00 00 00 00 00 yy 00 zz zz
zz zz 64 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 0000 00 00 00 00 00 00 00 00 00
ßß SubTargetIdentifier
xx Degree of fading:
00h = fully visible
3Fh = 25% fade
7Fh = 50% fade
BFh = 75% fade
FFh = nearly invisible
yy TimingIdentifier
zz EffectLength
Back to top
-----------------------------------------------------------------------------------------
Mirror Image(2)
Discovered By: Graf Hohfels
9F 00 xx 00 yy 00 00 00 00 00 00 00 zz 00 ßß ßß
ßß ßß 64 00 00 00 00 00 00 00 00 00 00 00 00
00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
with:
x -> Target Sub Identifier
y -> Number of Images
z -> Timing Identifier
ß -> Effect Length
Not the same as 77, since 77 checks the user's level. This one makes
as many Mirror Images as you want it to make!
Back to top
-----------------------------------------------------------------------------------------
Remove Icon
Discovered by: Burton Radons
A9 00 01 04 00 00 00 00 xx xx xx xx 00 01 yy yy
yy yy 64 00 00 00 00 A4 14 24 00 04 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
XX is the icon to remove.
YY is the duration in seconds
Back to top
-----------------------------------------------------------------------------------------.
Overlay web effect
Discovered by: Burton Radons
9D 00 02 02 00 00 00 00 00 00 00 00 00 01 xx xx
xx xx 64 00 00 00 80 1E 2C 00 04 00 00 00 00 00
00 00 00 00 01 00 00 00 FE FF FF FF 00 00 00 00
XX is the duration.
This puts the web effect over top of the character sprite
Back to top
-----------------------------------------------------------------------------------------.
Blur **Correction**
Discovered By: Legion
41 00 01 02 00 00 00 00 00 00 00 00 02 01 00 00
00 00 64 00 00 00 00 A4 14 24 00 04 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Back to top
-----------------------------------------------------------------------------------------
Burning Hands Effect
Discovered by: Burton Radons
**not sure here- does this cause damage, or just effect?**
A5 00 01 01 00 00 00 00 00 00 00 00 00 00 xx xx
xx xx 64 00 00 00 80 1E 2C 00 04 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
XX is the duration.
Hit the target with the burning hands effect.
Back to top
-----------------------------------------------------------------------------------------
Overlay Entangle
Discovered by: Burton Radons
9A 00 02 01 00 00 00 00 00 00 00 00 00 01 xx xx
xx xx 64 00 00 00 80 1E 2C 00 04 00 00 00 00 00
00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00
Place entangle display over character.
XX is the duration.
Back to top
-----------------------------------------------------------------------------------------
Grease Overlay (??)
Discovered by: Burton Radons
9E 00 02 01 00 00 00 00 00 00 00 00 00 01 xx xx
xx xx 64 00 00 00 80 1E 2C 00 04 00 00 00 00 00
00 00 00 00 01 00 00 00 02 00 00 00 00 00 00 00
XX is the duration.
Back to top
-----------------------------------------------------------------------------------------
Lighting Effects
Discovered By: ??
8D 00 02 01 00 00 00 00 xx 00 00 00 01 01 00 00
00 00 64 00 00 00 00 A4 14 24 00 04 00 00 00 00
00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00
Replace XX with the desired special effect.
Known Effects and an item or spell that uses it.
By: ViperSting
Priest spells ares marked with *P*
Wizard spells ares marked with *W*
Inate Abilities are marked with *I*
00 - Potion of Healing
01 - Chill Touch
02 - Potion of Healing
04 - Oil of Speed
05 - Potion of Invulnerability
06 - Potion of Cloud Giant Strength
08 - Potion of Genius
09 - Sleep *W*
0A - Antidote
0C - Potion of Absorbtion
0E - Arrow of Dispelling
09 - Hold Person *P*
10 - Potion of Invisibility
12 - Blindness *W*
14 - Chant *P*
16 - Bless *P*
18 - Magic Missile *W*
19 - Chromatic Orb *W*
1A - Spwi984 *W*
1C - Infravision *W*
1E - Detect Evil *I*
20 - Spwi983 *W*
21 - Animal Summoning I *P*
25 - Clairevoyance *W*
26 - Shadow Door *W*
Back to top
-----------------------------------------------------------------------------------------
Set Item Colors
Discovered By: Thalic
07 00 01 00 xx 00 00 00 yy 00 00 00 02 00 00 00
00 00 64 00 00 00 00 A4 14 24 00 04 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
XX is the color (see appendices).
YY controls which color to set.
Known values for YY:
Discovered By: Thalic (mainly) and ViperSting (With data from Drabur)
00 belt buckle (when on armor) and amulets (on robes)
01 minor color
02 major color
03 skin color
04 strap color (on armor) and minor triming (on robes - the center
strip
down a robe and the hem on some robes)
05 armor color (and major triming on robe - cross trim and cape trim
on
robe of archmagi)
06 hair color
10 quillons or crossguard
14 grip (usually not seeable as it's in the charcter's hand)
15 blade or major portion of weapon
20 shield hub
22 shield panelling
25 shield rim
30 helm ornamentation - i.e. wings
31 helm ornamentation - i.e. feathers/horsehair (by Graf)
34 unknown, but listed in helm01
35 helm - the main covering
Back to top
-----------------------------------------------------------------------------------------
Change Colors
Discovered By: Alanon
08 00 01 00 00 rr gg bb LL 00 00 00 02 00 00 00
00 00 64 00 00 00 00 A4 14 24 00 04 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
This struct changes the colors of your character's skin, hair, armor, etc.
RR red value
GG green value
BB blue value
LL location
Known Locations:
00 belt buckle (when on armor) and amulets (on robes)
01 minor color
02 major color
03 skin color
04 strap color (on armor) and minor triming (on robes - the center
strip
down a robe and the hem on some robes)
05 armor color (and major triming on robe - cross trim and cape trim
on
robe of archmagi)
06 hair color
10 quillons or crossguard
14 grip (usually not seeable as it's in the charcter's hand)
15 blade or major portion of weapon
20 shield hub
22 shield panelling
25 shield rim
30 helm ornamentation - i.e. wings
31 helm ornamentation - i.e. feathers/horsehair (by Graf)
34 unknown, but listed in helm01
35 helm - the main covering
Back to top
-----------------------------------------------------------------------------------------
Lighting Effect Around Caster
Discovered By: Alanon
xx 00 01 04 00 00 00 00 00 00 00 00 02 00 00 00
00 00 64 00 00 00 00 A4 14 24 00 04 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
XX controls the effect you see
9B minor globe
9C protection from normal missles cylinder
Back to top
-----------------------------------------------------------------------------------------
Icons for special effects (free action,
etc.)
Discovered By: Asgorath
8E 00 01 00 00 00 00 00 xx 00 00 00 02 00 00 00
00 00 64 00 00 00 00 A4 14 24 00 04 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
The 9th byte (shown here as XX) determines what icon is generated when
the
item is equipped.
Known Icons (Courtesy of Mr.Mark):
00 charm
01 dire charm
02 rigid thinking
03 confused
04 beserk
05 intoxicated
06 poisoned
07 nauseated
08 blind
09 protection from evil
0A protection from petrification
0B protection from missiles
0C magic armour
0D held
0E sleep
0F shielded
10 protection from fire
11 blessed
12 chant
13 free action
14 barkskin
15 strength
16 heroism
17 invulnerable
18 protection from acid
19 protection from cold
1A resist fire/cold
1B protection from electricity
1C protection from magic
1D protection from undead
1E protection from poison
1F non-detection
20 good luck
21 bad luck
22 silenced
23 cursed
24 panic
25 resist fear
26 haste
27 fatigue
28 bard song
29 slow
2A regenerate
2B domination
2C hopelessness
2D greater malison
2E spirit armour
2F chaos
30 feebleminded
31 defensive harmony
32 champions strength
33 dying
34 mind shield
35 energy drain
36 polymorph self
37 stun
38 regeneration
39 perception
Back to top
------------------------------------------------------------------------------------------
Shining Colors (A la clown.itm)
Discovered By: Ramza
Expanded By: Graf Hohfels
09 00 ßß 00 00 rr gg bb LL 00 tt 00 yy 00 zz zz
zz zz 64 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
tt = CycleDuration:
00 -> No Cycle
01 -> Fastest Cycle
FF -> Slowest Cycle
This struct makes the item flash. RR GG and BB are the RGB values of
the
flashing color, and LL is the location that flashes. this can apply
to
anything equipable.
Back to top
------------------------------------------------------------------------------------------
Character Colors (Like after recieving
Heal Minor Wounds)
Discovered By: Thalic
32 00 02 01 00 rr gg bb yy yy yy yy 00 00 03 00
00 00 64 00 00 00 00 A4 14 45 00 04 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Fades character color RR GG BB (color hex codes).
YY is the part to fade.
Back to top
-----------------------------------------------------------------------------------------
Sound Effects
Discovered By: ??
AE 00 02 00 00 00 00 00 00 00 00 00 01 01 00 00
00 00 64 00 xx xx xx xx xx xx xx xx 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Replace the XX bytes with the effect name (unused spaces get 00).
Known Sounds:
Expanded By: GMAN
EFF_E01 - Draw upon holy might
EFF_E02 - Armor / Free Action
EFF_E03 - Barkskin
EFF_E04 - Protection from evil
EFF_E05 - Hold
EFF_E06 - Silence
EFF_E08 - Hold
EFF_M02 - Blindness
EFF_M04 - Detect Evil
EFF_M05 - Sleep
EFF_M07 - Death spell/ Laroch's drain
EFF_M08 - Strength of One/ Tensers Transformation
EFF_M09 - Dimension Door
EFF_M10 - Dispel/Shapeshift
EFF_M11A - Protection from Petrification
EFF_M11B - Protection from Norm Missles
EFF_M12B - Minor Globe
EFF_M13 - Summon
EFF_M15 - Hold
EFF_M16 - Charm
EFF_M18D - Melf's Acid Arrow
EFF_M26 - Animate Dead
EFF_M28 - Haste/Slow
EFF_M29 - Haste/Slow
EFF_M31C - Grease
EFF_P01 - Remove Fear/Curse
EFF_P02 - Good Berries
EFF_P03 - Invisibility Purge
EFF_P04 - Command/Rigid Thinking
EFF_P07 - Resist Fire/Cold
EFF_P10 - Remove Paralysis
EFF_P11 - Hold Person Priest
EFF_P13 - Miscast Magic
EFF_P16 - Flame Strike
EFF_P18 - Raise Dead/Blindness
EFF_P21C - Sanctuary
EFF_P27 - Web
Back to top
-----------------------------------------------------------------------------------------
Mirror Image
Discovered By: Thorin
77 00 01 02 xx xx xx xx 00 00 00 00 02 01 00 00
00 00 64 00 00 00 00 A4 14 24 00 04 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
XX is the maximum number of mirror images to create (signed long integer,
Little-endian byte ordering, normally 08 00 00 00).
-----------------------------------------------------------------------------------------
***Section 2: Alteration***
-----------------------------------------------------------------------------------------
Remove Paralysis
Discovered By: Banelord
A2 00 02 03 00 00 00 00 00 00 00 00 01 01 00 00
00 00 64 00 00 00 80 1E 2C 00 04 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
(Back to top
-----------------------------------------------------------------------------------------
Hold Creature II
Discovered By: Banelord
B9 00 02 04 00 00 00 00 02 00 00 00 00 01 2A 00
00 00 64 00 00 00 80 1E 24 00 04 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Back to top
-----------------------------------------------------------------------------------------
Replace item
Discovered By: Graf Hohfels
8F 00 ßß 00 xx 00 00 00 00 00 00 00 yy 00 zz zz
zz zz 64 00 kk kk kk kk kk kk kk kk 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
k -> key, ItemReference (e.g. blun03)
x -> slot to create (taken from slot.ids)
Note: decimal values:
0 SLOT_AMULET
1 SLOT_ARMOR
2 SLOT_BELT
3 SLOT_BOOTS
4 SLOT_CLOAK
5 SLOT_GAUNTLETS
6 SLOT_HELMET
7 SLOT_RING_LEFT
8 SLOT_RING_RIGHT
9 SLOT_SHIELD
10 SLOT_FIST
11 SLOT_AMMO
15 SLOT_MISC
35 SLOT_WEAPON
11 SLOT_AMMO0
12 SLOT_AMMO1
13 SLOT_AMMO2
14 SLOT_AMMO3
15 SLOT_MISC0
16 SLOT_MISC1
17 SLOT_MISC2
18 SLOT_MISC3
19 SLOT_MISC4
20 SLOT_MISC5
21 SLOT_MISC6
22 SLOT_MISC7
23 SLOT_MISC8
24 SLOT_MISC9
25 SLOT_MISC10
26 SLOT_MISC11
27 SLOT_MISC12
28 SLOT_MISC13
29 SLOT_MISC14
30 SLOT_MISC15
31 SLOT_MISC16
32 SLOT_MISC17
33 SLOT_MISC18
34 SLOT_MISC19
35 SLOT_WEAPON0
36 SLOT_WEAPON1
37 SLOT_WEAPON2
38 SLOT_WEAPON3
Back to top
-----------------------------------------------------------------------------------------
Failed Morale:Flight
Discovered By: Graf Hohfels
6A 00 ßß 00 00 00 00 00 00 00 00 00
yy 00 zz zz
zz zz 64 00 00 00 00 00 00 00 00 00 00 00 00
00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00
Same effect as an failed morale throw would have
Back to top
-----------------------------------------------------------------------------------------
Set Reaction
Discovered by: Graf Hohfels
48 00 ßß 00 xx 00 00 00 00 00 00 00 yy 00 zz zz
zz zz 64 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
xx : SetState
00 -> friendly (no control, the target acts on script default)
40 -> neutral (blue circle)
FF -> hostile
Back to top
-----------------------------------------------------------------------------------------
Remove Inventory Item
Discovered By: Graf Hohfels
7B 00 01 00 00 00 00 00 00 00 00 0004 00 00 00
00 00 64 00 xx xx xx xx xx xx xx xx 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
x -> key w/ *.itm
Back to top
-----------------------------------------------------------------------------------------
Neutralize Poison
Discovered by: Burton Radons
0B 00 01 04 00 00 00 00 00 00 00 00 01 01 00 00
00 00 64 00 00 00 00 A4 14 24 00 04 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Back to top
-----------------------------------------------------------------------------------------
Remove Creature
Discovered by: Graf Hohfels
A8 00 xx 01 00 00 00 00 00 00 00 00 00 00 00 00
00 00 64 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
x -> 01 affect user
.....02 affect target
Changing the duration has no effect since remove is permanent - NO
XP given....
Back to top
-----------------------------------------------------------------------------------------
RemoveCreature(2)
Discovered By: Graf Hohfels
44 00 ßß 00 01 00 00 00 00 00 00 00 yy 00 zz zz
zz zz 64 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
removes creature and displays the end of summoning text
does not work on PCs
Back to top
-----------------------------------------------------------------------------------------
Remove Fear
Discovered by: Burton Radons
17 00 02 01 00 00 00 00 00 00 00 00 01 01 00 00
00 00 64 00 00 00 80 1E 2C 00 04 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Back to top
-----------------------------------------------------------------------------------------
Hold
Discovered by: Burton Radons
Expanded by: Graf Hohfels
6D 00 02 00 xx 00 00 00 04 00 00 00 00 01 yy yy
yy yy 64 00 00 00 00 A4 14 24 00 04 00 00 00 00
00 00 00 00 04 00 00 00 00 00 00 00 00 00 00 00
x -> Creature Type
.....00 -> probably all
.....01,02,04,05,06... need testing
y -> Duration
Back to top
-----------------------------------------------------------------------------------------
Create Hostile Creature
Discovered by: Graf Hohfels
97 00 02 03 00 00 00 00 00 00 00 00 04 00 01 00
00 00 64 00 xx xx xx xx xx xx xx xx 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
x -> CreatureName (*.cre)
Back to top
-----------------------------------------------------------------------------------------
Stone To Flesh
Discovered By: Graf Hohfels
2B 00 02 00 00 00 00 00 00 00 00 00 01 00 00 00 00
00 64 00 00 00 00 A4 14 24 00 04 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Back to top
-----------------------------------------------------------------------------------------
Slow Poison
Discovered by: Burton Radons
A4 00 02 00 00 00 00 00 00 00 00 00 01 01 00 00
00 00 64 00 00 00 80 1E 2C 00 04 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Back to top
-----------------------------------------------------------------------------------------
Raise Strength, Constitution, and Dexterity
Discovered by: Burton Radons
84 00 01 02 xx xx xx xx 00 00 00 00 00 yy yy yy
yy 00 64 00 00 00 80 1E 24 00 04 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
XX is the change.
YY is the duration.
Back to top
-----------------------------------------------------------------------------------------
Luck
Discovered by: Burton Radons
85 00 02 02 xx xx xx xx 00 00 00 00 00 01 yy yy
yy yy 64 00 00 00 80 1E 2C 00 04 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
XX is the degree multiplier; normal is 1.
YY is the duration.
Back to top
-----------------------------------------------------------------------------------------
Polymorph(2)
Discovered By: Graf Hohfels
***some creature selections may cause instability***
87 00 02 03 00 00 00 00 00 00 00 00 00 00 yy yy
yy yy 64 00 xx xx xx xx xx xx xx xx 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Polymorph into XXXXXXXX.cre
YY -> Duration
Back to top
-----------------------------------------------------------------------------------------
Create Inventory Item
Discovered By: ViperSting
7A 00 01 02 00 00 00 00 00 00 00 00 xx 00 01 00
00 00 64 00 yy yy yy yy yy yy yy yy 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
XX is the number to create.
Replace the YY's with the weapon's filename (e.g. sw1h01) make any
unused
spaces 00.
Back to top
-----------------------------------------------------------------------------------------
Create Weapon (A la Spiritual Hammer)
Discovered By: ViperSting
6F 00 01 02 00 00 00 00 00 00 00 00 00 01 xx xx
xx xx 64 00 yy yy yy yy yy yy yy yy 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
XX is the duration in seconds (signed long int, little-endian).
Replace the YY's with the weapon's filename (e.g. sw1h01) make any
unused
spaces 00.
Back to top
-----------------------------------------------------------------------------------------
Monster Summoning
Discovered By: ViperSting
7F 00 01 xx yy yy yy yy zz 00 00 00 00 00 3C 00
00 00 64 00 00 00 80 1E 2C 00 04 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Replace the XX with the spell level (3, 4, or 5)??
YY is the number of HD of monsters to summon times four.
ZZ is unknown but is always XX - 3.
Back to top
-----------------------------------------------------------------------------------------
Creature Summoning
Discovered By: Roach
Expanded By: Graf Hohfels
43 00 ßß 00 00 00 00 00 xx 00 00 00 yy 00 zz zz
zz zz 64 00 nn nn nn nn nn nn nn nn 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ßß -> Target SubIdentifier, but here it has a dfferent meaning:
01 creates 1 creature (default=friendly)
02 creates 2 creature (sometimes)(default=friendly)
03 creates as many creatures as partymembers extist(default=friendly)
04 creates as many creatures as people/creatures on the map (number
of partymembers: default=fiendly; rest: default=hostile)
05 creates as many creatures as people/creatures
on the map minus the number of partymembers (default=hostile)
x -> AI:
00 -> default
01 -> friendly
ff -> hostile
somewhere between -> neutral
The nn should be the creature's filename. Fill in unused spaces with 00.
Back to top
-----------------------------------------------------------------------------------------
Haste
Discovered By: Roach
10 00 01 03 00 00 00 00 00 00 00 00 02 01 00 00
00 00 64 00 00 00 00 A4 14 24 00 04 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Back to top
-----------------------------------------------------------------------------------------
Slow
Discovered By: Thorin
28 00 02 01 00 00 00 00 00 00 00 00 01 01 00 00
00 00 64 00 00 00 00 A4 14 24 00 04 00 00 00 00
00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00
Back to top
-----------------------------------------------------------------------------------------
Polymorphing
Discovered By: Mr.Mark, Thorin
35 00 01 00 00 xx 00 00 00 00 00 00 00 00 78 00
00 00 64 00 00 00 00 A4 14 24 00 04 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
To control the creature into which you will morph, replace the XX in
the
6th byte with one of the following:
08 smoke, can't move
10 wyvern
11 cool daemon
20 sirine
21 Volo
22 Ogre Mage
23 daemon knight
30 Ankheg
50 Human Cleric
51 human fighter
52 human mage
53 h/thief
64 Drizzt
70 half ogre
71 basilisk
72 black bear(pd)
74 dog
75 doppelganger
7A spider
7B wolf(pd)
7C Xart
7D Zombie
7E Werewolf
83 Gnoll (with paper doll)
90 ogre
A0 Baby Wyvern
A1 Carrion Crawler
B0 cow
D0 eagle11
Back to top
-----------------------------------------------------------------------------------------
Unlock (A la Knock)
Discovered By: ViperSting
7D 00 02 02 00 00 00 00 00 00 00 00 01 01 00 00
00 00 64 00 00 00 80 1E 2C 00 04 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Back to top
-----------------------------------------------------------------------------------------
Teleport (A la Dimension Door)
Discovered By: ViperSting
7C 00 01 04 00 00 00 00 00 00 00 00 04 01 01 00
00 00 64 00 00 00 80 1E 2C 00 04 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Back to top
-----------------------------------------------------------------------------------------
*** Section 3: Detection
/ Vision / Perception ***
-----------------------------------------------------------------------------------------
Confusion from cursed potion
Discovered by: Burton Radons
4C 00 01 04 00 00 00 00 00 00 00 00 00 01 2C 01
00 00 64 00 00 00 00 A4 14 24 00 04 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Back to top
-----------------------------------------------------------------------------------------
Invisibility Purge
Discovered By: ViperSting
Expanded by Graf Hohfels
74 00 04 03 00 00 00 00 00 00 00 00 01 xx yy yy
yy yy 64 00 00 00 80 1E 24 00 04 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
x -> TimeIdentifier
y -> TimeDuration
Back to top
-----------------------------------------------------------------------------------------
Identify
Discovered by: Burton Radons
15 00 03 01 00 00 00 00 02 00 00 00 02 01 00 00
00 00 64 00 00 00 80 1E 46 00 04 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Back to top
-----------------------------------------------------------------------------------------
Silence
Discovered by: Burton Radons
26 00 02 02 00 00 00 00 00 00 00 00 00 01 xx xx
xx xx 64 00 00 00 80 1E 24 00 04 00 00 00 00 00
00 00 00 00 01 00 00 00 FB FF FF FF 00 00 00 00
XX is the duration.
Back to top
-----------------------------------------------------------------------------------------
Vocalize
Discovered by: Burton Radons
30 00 01 02 00 00 00 00 00 00 00 00 01 01 00 00
00 00 64 00 00 00 80 1E 24 00 04 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Back to top
-----------------------------------------------------------------------------------------
Detect Invisibility
Discovered By: ViperSting
74 00 04 00 00 00 00 00 00 00 00 00 00 01 xx xx
xx xx 64 00 00 00 80 1E 24 00 04 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
XX is the duration in seconds (signed long int, little-endian).
Back to top
-----------------------------------------------------------------------------------------
Detect Alignment (A la Detect Evil, Know
Alignment)
Discovered By: ViperSting
73 00 04 02 00 00 00 00 xx 00 00 00 00 01 yy yy
yy yy 64 00 00 00 80 1E 24 00 04 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Replace the XX with the alignment to detect (three of these structs
make
up the functional part of know alignment).
YY is the duration in seconds (signed long int, little-endian).
Known XX Values:
00 ??
02 ??
04 Evil
Back to top
-----------------------------------------------------------------------------------------
Invisibility Purge
Discovered By: ViperSting
Expanded by Graf Hohfels
74 00 04 03 00 00 00 00 00 00 00 00 01 xx yy yy
yy yy 64 00 00 00 80 1E 24 00 04 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
x -> TimeIdentifier
y -> TimeDuration
Back to top
-----------------------------------------------------------------------------------------
Infravision
Discovered By: ViperSting
3F 00 01 00 00 00 00 00 00 00 00 00 02 00 00 00
00 00 64 00 00 00 00 A4 14 24 00 04 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Back to top
------------------------------------------------------------------------------------------
Find Traps
Discovered By: ViperSting
96 00 02 02 00 00 00 00 00 00 00 00 00 01 xx xx
xx xx 64 00 00 00 80 1E 24 00 04 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
XX is the duration in seconds (signed long int, little-endian).
Back to top
-----------------------------------------------------------------------------------------
Clairvoyance Effect
Discovered By: Graf Hohfels
75 00 01 03 00 00 00 00 00 00 00 00 00 00 0F 00
00 00 64 00 00 00 80 1E 24 00 04 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Back to top
-----------------------------------------------------------------------------------------
Stun
Discvered By: ViperSting
2D 00 02 08 00 00 00 00 00 00 00 00 00 01 xx xx
xx xx 64 00 00 00 00 A4 14 4B 00 04 00 00 00 00
00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00
Replace the XX bytes with the duration of the stun in seconds (singed
long
int, little-endian).
Back to top
-----------------------------------------------------------------------------------------
Unconsiousness
Discovered By: Thorin
27 00 02 01 00 00 00 00 00 00 00 00 01 01 00 00
00 00 64 00 00 00 00 A414 24 00 04 00 00 00 00
00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00
Back to top
-----------------------------------------------------------------------------------------
Confusion
Discovered By: ViperSting
80 00 02 xx 00 00 00 00 00 00 00 0000 01 yy yy
yy yy 64 00 00 00 80 1E 2C 00 04 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
XX Controls whether the effect is that of the Confusion spell (04) or
the
Rigid Thinking spell (03).
YY is the duration in seconds (signed long int, little-endian).
Back to top
-----------------------------------------------------------------------------------------
Blindness
Discovered By: ViperSting
4A 00 02 01 00 00 00 00 00 00 00 00 00 01 xx xx
xx xx 64 00 00 00 80 1E 24 00 04 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
XX is the duration in seconds (signed long int, little-endian).
Back to top
-----------------------------------------------------------------------------------------
Horror Effect
Discovered By: Graf Hofels
18 00 02 02 00 00 00 00 00 00 00 00 00 01 12 00
00 00 64 00 00 00 80 1E 24 00 04 00 00 00 00 00
00 00 00 00 01 00 00 00 02 00 00 00 00 00 00 00
Back to top
-----------------------------------------------------------------------------------------
Dire Charm
Discovered By: Thorin
Expanded By: Burton Radons
05 00 01 02 xx xx xx xx 00 00 00 00 02 01 00 00
00 00 64 00 00 00 00 A4 14 24 00 04 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
XX is the type to charm (general.ids, see "Hold Creature Type" for list)
Back to top
-----------------------------------------------------------------------------------------
Berserking
Discovered By: ViperSting
03 00 01 00 00 00 00 00 00 00 00 00 02 00 00 00
00 00 64 00 00 00 00 A4 14 45 00 04 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Back to top
-----------------------------------------------------------------------------------------
*** Section 4: Spellcasting***
-----------------------------------------------------------------------------------------
Magic Resistance II
Discovered By: Ingoman
A6 00 01 00 xx xx xx xx 00 00 00 00 02 00 00 00
00 00 64 00 00 00 00 A4 14 45 00 04 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
XX is the magic resistance % bonus, signed long integer
Back to top
-----------------------------------------------------------------------------------------
Spell Speed Factor
Discovered by: Trix and Graf Hohfels
BD 00 01 00 xx 00 00 00 00 00 00 00 yy 00 zz zz
zz zz 64 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
x -> value decreases specific Speed Factor
(note: values of [80..FF] are negative!)
Back to top
-----------------------------------------------------------------------------------------
Cast spell IV
Discovered by: Burton Radons
94 00 01 02 zz zz zz zz 00 00 00 00 04 01 xx xx
xx xx 64 00 yy yy yy yy yy yy yy yy 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ZZ is the level to cast as.
XX is the delay until the cast.
YY is the filename for the spell to cast (see
appendices).
This is used by the Find Traps spell to cast a sub-spell Find
Traps every six seconds and is used by all scrolls.
Back to top
-----------------------------------------------------------------------------------------
Increase Spellcasting Speed
Discovered by: Graf Hohfels
BC 00 01 04 00 00 00 00 01 00 00 00 02 00 00 00
00 00 64 00 00 00 00 00 00 00 00 77 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Back to top
-----------------------------------------------------------------------------------------
Give Innate Ability
Discovered by: Burton Radons
AB 00 01 00 00 00 00 00 00 00 00 00 01 00 00 00
00 00 64 00 xx xx xx xx xx xx xx xx 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
XX is the resource key (1006 type) of the spell to cast- must be innate ability
Back to top
-----------------------------------------------------------------------------------------
Remove Spell
Discovered By: Roach
AC 00 01 04 00 00 00 00 00 00 00 00 xx xx xx xx
64 00 yy yy yy yy yy yy yy 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
XX is the delay before the spell is removed
and YY is the spells filename (see appendices)
Back to top
-----------------------------------------------------------------------------------------
Bonus Spells (A la Amulet of Metaspell Influence,
Ring of Wizardry)
Discovered By: ViperSting (with data provided by Zoso) and
xx 00 01 00 yy yy yy yy zz 00 00 00 02 00 00 00
00 00 64 00 00 00 00 A4 14 24 00 04 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Replace XX with 2A to affect wizard spells or 3E to affect priest spells.
Replace the YY with the number of spells to add per level (long int,
little-endian).
To control which spell levels are affected, replace the ZZ in the 9th
byte
with a bitmask in which you set bit (n-1) to affect spell level n.
To double the number of spells in the affected levels, replace the first
byte of YY with a bitmask in which you set bit (n-1) to affect spell
level
n, and set ZZ to 00
Example:
00000001 - Only bit 0 (1-1) is set. Level 1 spells affected
00000101 - Bits 2 (3-1) and 0 are set. Levels 1 and 3 affected.
Back to top
------------------------------------------------------------------------------------------
Learn Spell
Discovered By: ViperSting
93 00 01 00 01 00 00 00 00 00 00 00 01 00 00 00
00 00 64 00 xx xx xx xx xx xx xx xx 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Replace the XX's with the spell filename.
See appendices for list of all spells.
Adds spell to spellbook..
Back to top
-----------------------------------------------------------------------------------------
Cast Spell
Discovered By: ViperSting
92 00 02 00 0A 00 00 00 00 00 00 00 01 00 00 00
00 00 64 00 xx xx xx xx xx xx xx xx 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Replace the XX's with the spell filename.
Increment 0x070 for it to be cast on the character who equips the item.
For weapons, increment 0x090 for it to be cast on hit.
Increment 0x090 for it to be cast when the item is used.
See spell list in appendices for all posible spells.
Back to top
-----------------------------------------------------------------------------------------
Can't Cast Spells
72 00 01 03 00 00 00 00 00 00 00 00 00 01 xx xx
xx xx 64 00 00 00 80 1E 2C 00 04 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
XX is the duration in seconds (signed long int, little-endian).
Back to top
-----------------------------------------------------------------------------------------
Remove Curse
Discovered By: ViperSting
1A 00 02 03 00 00 00 00 00 00 00 00 01 01 00 00
00 00 64 00 00 00 80 1E 24 00 04 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Back to top
-----------------------------------------------------------------------------------------
Dispel Magic
Discovered By: ViperSting
3A 00 02 00 00 00 00 00 00 00 00 00 01 00 00 00
00 00 64 00 00 00 80 1E 2C 00 04 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Note: This will not remove things like Spiritual Hammer, Flame Blade,
Chill Touch, etc.; use the following structure for that.
Back to top
-----------------------------------------------------------------------------------------
Remove Weapon (Used in Dispel Magic to
get rid of Spiritual Hammer, etc.)
Discovered By: ViperSting
70 00 02 00 00 00 00 00 00 00 00 00 01 00 00 00
00 00 64 00 xx xx xx xx xx xx xx xx 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Replace the XX's with the weapon's filename (e.g. sw1h01) make any unused
spaces 00.
Back to top
-----------------------------------------------------------------------------------------
Miscast Magic
Discovered By: ViperSting
3C 00 02 03 xx 00 00 00 01 00 00 00 00 01 yy yy
yy yy 64 00 00 00 80 1E 2C 00 04 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
XX is the percent chance that the spell casting will fail.
YY is the duration in seconds (signed long int, little-endian).
Back to top
-----------------------------------------------------------------------------------------
***Section 5: Defensive***
-----------------------------------------------------------------------------------------
Protection From Magic
Discovered by: Graf Hohfels
1F 00 01 01 xx xx xx xx 01 00 00 00 02 00 00 00
00 00 64 00 00 00 00 A4 14 45 00 04 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
x -> Amount [%] of removed damage
Back to top
-----------------------------------------------------------------------------------------
Protection from (Opcode)
Discovered by: Burton Radons and Thundarr
65 00 02 02 00 00 00 00 xx xx xx xx 00 01 yy yy
yy yy 64 00 00 00 80 1E 2C 00 04 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
XX is the opcode (Or struct index)
to "protect" from. The first two bytes of a struct are the opcode.
YY is the duration.
Back to top
-----------------------------------------------------------------------------------------
Protection from Heat
Discovered by: Burton Radons
54 00 02 03 xx xx xx xx 00 00 00 00 00 01 yy yy
yy yy 64 00 00 00 80 1E 24 00 04 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
XX is the percent to remove from any damage from heat.
YY is the duration.
Back to top
-----------------------------------------------------------------------------------------
Protection from Cold
Discovered by: Burton Radons
55 00 02 02 xx xx xx xx 00 00 00 00 00 01 yy yy
yy yy 64 00 00 00 80 1E 24 00 04 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
XX is the percent to remove from any damage from heat.
YY is the duration.
Back to top
-----------------------------------------------------------------------------------------
Aid
Discovered by: Burton Radons
81 00 02 02 xx xx xx xx 00 00 00 00 00 01 yy yy
yy yy 64 00 00 00 80 1E 2C 00 04 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
XX is the aid degree multiplier (1 for normal).
YY is the duration.
Back to top
-----------------------------------------------------------------------------------------
Bless
Discovered by: Burton Radons
82 00 02 01 xx xx xx xx 00 00 00 00 00 01 yy yy
yy yy 64 00 00 00 80 1E 2C 00 04 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
XX is the degree of blessing.
YY is the time to bless for.
Back to top
-----------------------------------------------------------------------------------------
Chant
Discovered by: Burton Radons
83 00 02 02 xx xx xx xx 00 00 00 00 00 01 yy yy
yy yy 64 00 00 00 80 1E 2C 00 04 00 00 00 00 00
00 00 00 0000 00 00 00 00 00 00 00 00 00 00 00
XX is the degree multiplier (1 for normal)
YY is the duration in seconds.
Back to top
-----------------------------------------------------------------------------------------
Bonus AC vs. Weapon Type
Discovered By: ViperSting
00 00 01 00 xx xx xx xx yy 00 00 00 02 00 00 00
00 00 64 00 00 00 00 A4 14 45 00 04 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
XX is the AC bonus or AC setting.
YY is the weapon type:
00h All Weapons.
01h Blunt Weapons.
02h Missile Weapons.
04h Piercing Weapons.
08h Slashing Weapons.
10h Base AC setting (As in bracers).
Back to top
------------------------------------------------------------------------------------------
Protection From Weapon Type
Discovered By: Alanon
53 00 01 04 00 00 00 00 xx 00 00 00 02 00 00 00
00 00 64 00 00 00 00 A414 24 00 04 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
XX controls which type of weapon this struct provides protection against.
04 arrow
09 axe
0e bolt
13 bullet
1a dagger (thrown)
22 dart
Back to top
-----------------------------------------------------------------------------------------
Protection from Spells (ala minor
globe of invulnerability)
Discovered By: Alanon
66 00 01 04 xx 00 00 00 00 00 00 0002 00 00 00
00 00 64 00 00 00 00 A4 14 24 00 04 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
XX controls the level, i.e...
01= level one spells
02= level two spells
etc...
Back to top
-----------------------------------------------------------------------------------------
Protection From Anything
Discovered By: Alanon
64 00 02 04 04 00 00 00 xx 00 00 0002 01 00 00
00 00 64 00 00 A4 14 24 00 04 00 00 00 00 00 00
00 00 00 0000 00 00 00 00 00 00 00 00 00 00 00
XX controls what you have protection from.
Know XX values:
00 Everything
03 Undead
Back to top
-----------------------------------------------------------------------------------------
Immunity to Non-magical Weapons
78 00 01 01 00 00 00 00 02 00 00 00 02 00 00 00
00 00 64 00 00 00 00 A4 14 46 00 04 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Back to top
-----------------------------------------------------------------------------------------
Non-Detection
Discovered By: ViperSting
45 00 02 03 00 00 00 00 00 00 00 00 00 01 xx xx
xx xx 64 00 00 00 80 1E 24 00 04 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
XX is the duration in seconds (signed long int, little-endian).
Back to top
-----------------------------------------------------------------------------------------
Sanctuary
Discovered By: Thorin
99 00 02 01 00 00 00 00 00 00 00 00 01 01 00 00
00 00 64 00 00 00 00 A4 14 24 00 04 00 00 00 00
00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00
Back to top
-----------------------------------------------------------------------------------------
Hold Creature Type
Discovered By: ViperSting
AF 00 02 03 xx 00 00 00 03 00 00 00 00 01 yy yy
yy yy 64 00 00 00 80 1E 24 00 04 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Replace XX with the creature type.
Replace the YY bytes with the duration of the hold in seconds (signed
long
int, little-endian).
Known XX values (from general.ids):
00 Any
01 HUMANOID
02 ANIMAL
03 DEAD
04 UNDEAD
05 GIANTHUMANOID
06 FROZEN
FF MONSTER
Back to top
-----------------------------------------------------------------------------------------
Invisibility
Discovered By: Thalic
14 00 01 00 00 00 00 00 00 00 00 00 02 01 xx xx
xx xx 64 00 00 00 00 A4 14 24 00 04 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Replace the XX's with the duration in seconds (00 00 00 00 for unlimited).
XX should be a signed long int, little-endian byte ordering.
Back to top
-----------------------------------------------------------------------------------------
*** Section 6: Combat***
-----------------------------------------------------------------------------------------
Attack Speed Factor
Discovered by: Trix and Graf Hohfels
BE 00 ßß 00 xx 00 00 00 00 00 00 00
yy 00 zz zz
zz zz 64 00 00 00 00 00 00 00 00 00 00 00 00
00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00
x -> value decreases specific Speed Factor
(note: values of [80..FF] are negative!)
Back to top
-----------------------------------------------------------------------------------------
Fixed Fire/Ice/Electric/etc
Damage
0C 00 02 08 xx xx xx xx xx 00 00 yy yy 01 01 00 00
00 00 64 00 00 00 00 A4 14 46 00 04 00 00 00 00
00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00
Replace the XX bytes with the desired ammount of damage (singed long
integer, little-endian).
Replace YY with the desired damage type (See
appendices).
Back to top
------------------------------------------------------------------------------------------
Random Fire/Ice/Electric/etc
Damage
0C 00 02 06 00 00 00 00 00 00 xx xx 01 01 00 00
00 00 64 00 00 00 00 A4 14 46 00 04 yy 00 00 00
zz 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00
Replace XX with the desired damage type (See
appendices).
Replace YY with the number of damage dice and ZZ with the number of
sides
per die (YY D ZZ damage- e.g. 1d6= 1 to 6 points).
Back to top
------------------------------------------------------------------------------------------
Bonus Damage or THACO
vs. Creature Types
Discovered By: Roach
B1 00 01 00 00 00 00 00 02 00 00 00 02 00 00 00
00 00 64 00 xx xx xx xx xx xx xx xx 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
The xx 's should be replaced with one of the below, unused spaces should
be
00.
One struct each for damage and THACO (see sw1h03.itm)
The different damage and hit types:
regenerating creatures: ft1dam
ft1hit
cold using creatures: ft2dam
ft2hit
Undead:
undeddam
undedhit
Gianttype creatures: giantdam
gianthit
? dont really know? monstdam
monsthit
Lycanthropes:
lycandam
lycanhit
Doppelgangers:
doppdam
dopphit
Back to top
-----------------------------------------------------------------------------------------
Poison
Discovered by: Roach
19 00 02 00 yy 00 00 00 02 00 00 00 00 00 zz 00
00 00 64 00 00 00 00 A4 14 24 00 04 00 00 00 00
00 00 00 00 xx 00 00 00 00 00 00 00 00 00 00 00
XX save type
YY amount of damage per second
ZZ duration in seconds
Back to top
-----------------------------------------------------------------------------------------
Petrification
Discovered By: Asgorath
86 00 02 00 00 00 00 00 00 00 00 00 01 00 00 00
00 00 64 00 00 00 00 A4 14 45 00 04 00 00 00 00
00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00
This structure actually has two uses, depending on where you update
the
block count.
If you increase the block count at 0x70, then this struct will turn
whoever equips the item to stone (save vs petrification allowed). Usable
on all equipable items.
If you increase the block count at 0x90, then this struct will turn
whoever is struck by the weapon to stone (save vs petrification allowed).
Usable on weapons only.
Back to top
------------------------------------------------------------------------------------------
Magical Trap (A la Skull Trap, Glyph of
Warding)
Discovered By: ViperSting
0C 00 02 03 00 00 00 00 00 00 xx xx 01 01 00 00
00 00 64 00 00 00 80 1E 2C 00 04 00 yy yy yy yy
zz zz zz zz 00 00 00 00 00 00 00 00 00 00 00 00
Replace XX with the desired damage type (See
appendices).
Replace YY with the number of damage dice and ZZ with the number of
sides
per die (YY D ZZ damage, both are signed long integers with little-endian
byte ordering).
Back to top
-----------------------------------------------------------------------------------------
Arrow of Slaying
Discovered by: Asgorath
37 00 02 00 xx 00 00 00 05 00 00 00 01 01 00 00
00 00 64 00 00 00 00 A4 14 24 00 04 yy yy yy yy
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
YY is the maximum hit dice of the creature to slay, or the maximum level.
XX controls what monster the struct slays.
Partial list for XX:
00 All
01 MAGE
02 FIGHTER
03 CLERIC
04 THIEF
05 BARD
06 PALADIN
0B DRUID
0C RANGER
65 ANKHEG
66 BASILISK
67 BASILISK_GREATER
68 BEAR_BLACK
69 BEAR_BROWN
6A BEAR_CAVE
6B BEAR_POLAR
6C CARRIONCRAWLER
6D DOG_WILD
6E DOG_WAR
6F DOPPLEGANGER
70 DOPPLEGANGER_GREATER
73 ETTERCAP
74 GHOUL
75 GHOUL_REVEANT
76 GHOUL_GHAST
77 GIBBERLING
78 GNOLL
79 HOBGOBLIN
7A KOBOLD
7B KOBOLD_TASLOI
7C KOBOLD_XVART
7D OGRE
7E OGRE_MAGE
7F OGRE_HALFOGRE
80 OGRE_OGRILLON
82 FAIRY_SIRINE
83 FAIRY_DRYAD
84 FAIRY_NEREID
85 FAIRY_NYMPH
86 SKELETON
87 SKELETON_WARRIOR
88 SKELETON_BANEGUARD
89 SPIDER_GIANT
8A SPIDER_HUGE
8B SPIDER_PHASE
8C SPIDER_SWORD
8D SPIDER_WRAITH
8F WOLF
90 WOLF_WORG
91 WOLF_DIRE
92 WOLF_WINTER
93 WOLF_VAMPIRIC
94 WOLF_DREAD
95 WYVERN
96 OLIVE_SLIME
97 MUSTARD_JELLY
98 OCRE_JELLY
99 GREY_OOZE
9A GREEN_SLIME
9D WEREWOLF (TotSC)
9E WOLFWERE (TotSC)
9F DEATHKNIGHT (TotSC)
A0 TANARI (TotSC)
Back to top
-----------------------------------------------------------------------------------------
Death (From Death Spell-TotSC)
Discovered By: ViperSting
0D 00 02 06 00 00 00 00 08 00 00 00 01 01 00 00
00 00 64 00 00 00 00 00 00 00 00 77 05 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Back to top
-----------------------------------------------------------------------------------------
*** Section
7: Character Stat Alteration***
-----------------------------------------------------------------------------------------
Set AI Script
Discovered By: Graf Hohfels
52 00 ßß 00 00 00 00 00 00 00 00 00 yy 00 zz zz
zz zz 64 00 kk kk kk kk kk kk kk kk 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
AIChange:
k -> key for default script - Use Bifstripper to extract Script.bif,
then read script.log, or see list at:
http://www.math.uni-goettingen.de/fschreib/Baldurs.Gate/Meilenstein.html
Back to top
-----------------------------------------------------------------------------------------
Sex Change
Discovered By: ViperSting
47 00 01 00 00 00 00 00 00 00 00 00 02 00 00 00
00 00 64 00 00 00 00 A4 14 24 00 04 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Back to top
------------------------------------------------------------------------------------------
Alignment Change
Discovered By: Roach
38 00 01 00 00 00 00 00 00 00 00 00 01 00 00 00
00 00 64 00 00 00 00 A4 24 14 00 04 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Back to top
-----------------------------------------------------------------------------------------
Set Name
Discovered by: Burton Radons
67 00 01 00 xx xx xx xx 00 00 00 00 02 00 00 00
00 00 64 00 00 00 00 A4 14 24 00 04 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Back to top
-----------------------------------------------------------------------------------------
Set Alignment
Discovered by: Burton Radons
39 00 01 00 00 00 00 00 xx 00 00 00 02 00 00 00
00 00 64 00 00 00 00 A4 14 24 00 04 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
XX is the alignment to set to:
00h - None
11h - Lawful Good
12h - Lawful Neutral
13h - Lawful Evil
21h - Neutral Good
22h - True Neutral
23h - Neutral Evil
31h - Chaotic Good
32h - Chaotic Neutral
33h - Chaotic Evil
Back to top
-----------------------------------------------------------------------------------------
Set XP Level
Discovered By: Graf Hohfels
60 00 ßß 00 xx 00 00 00 yy 00 00 00 tt 00 uu uu
uu uu 64 00 00 00 00 0000 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
(affects only the first class)
ßß -SubTarget Identifier
xx- Level To Change/Set
yy- Method Identifier:
00 -> inc./dec.
01 -> set
02 -> set[%]
tt- Timing Identifier
uu- Effect Length
Back to top
------------------------------------------------------------------------------------------
Set XP
Discovered By: Graf Hohfels
68 00 ßß 00 xx xx 00 00 pp 00 00 00 yy 00 zz zz
zz zz 64 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
x -> amount of XP (values from -32768 to 32767 are possible)
p -> parameter:
00 - changeXP
01 - setXP
02 - setXP[%]
Back to top
------------------------------------------------------------------------------------------
Disable thieving skill
Discovered by: Burton Radons
90 00 01 00 00 00 00 00 xx xx xx xx 02 00 00 00
00 00 64 00 00 00 00 A4 14 24 00 04 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
XX is the thieving skill to disable.
The skills are:
00h - Stealth, Hide in Shadows.
01h - Thieving, Pickpocketing, Picklocks, Backstabbing.
Back to top
-----------------------------------------------------------------------------------------
Disable mage spellcasting abilities
Discovered by: Burton Radons
91 00 01 00 00 00 00 00 00 00 00 00 02 00 00 00
00 00 64 00 00 00 00 A4 14 24 00 04 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
This is used for leather armor and above, for multiclass mages who can wear such armor but can't cast spells when doing so.
Back to top
-----------------------------------------------------------------------------------------
Regeneration
Discovered By: Mike
62 00 01 04 03 00 00 00 03 00 00 00 00 01 xx xx
xx xx 64 00 00 00 00 A4 14 24 00 04 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
XX is the duration in seconds (signed long int, little-endian).
Back to top
-----------------------------------------------------------------------------------------
Raise Dead
Discovered By: ViperSting
20 00 02 05 00 00 00 00 00 00 00 00 01 00 00 00
00 00 64 00 00 00 80 1E 24 00 04 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Back to top
-----------------------------------------------------------------------------------------
Increase Stat
Discovered By: ViperSting and Asgorath
xx 00 01 00 yy yy yy yy 00 00 00 00 02 00 00 00
00 00 64 00 00 00 00 A4 14 24 00 04 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Replace the XX with the desired stat value (see
appendices).
Replace the YY's with the bonus (signed long integer, Little-endian
byte
ordering).
Back to top
------------------------------------------------------------------------------------------
Increase Stat Permanently
Discovered By: ViperSting
xx00 01 00 yy yy yy yy 01 00 00 00 01 00 00 00
00 00 64 00 00 00 00 A414 24 00 04 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Replace the XX with the desired stat value (see
appendices).
Replace the YY's with the new value (signed long integer, Little-endian
byte ordering).
Back to top
------------------------------------------------------------------------------------------
Set Stat to % of Normal Value
Discovered By: ViperSting
xx 00 01 00 yy yy yy yy 02 00 00 00 02 00 00 00
00 00 64 00 00 00 00 A4 14 24 00 04 00 00 00 00
00 00 00 0000 00 00 00 00 00 00 00 00 00 00 00
Replace the XX with the desired stat value (see
appendices).
Replace the YY's with the % loss (signed long integer, Little-endian
byte
ordering).
Back to top
------------------------------------------------------------------------------------------
Set Stat
Discovered By: ViperSting and Mr. Mike
xx 00 01 00 yy yy yy yy 01 00 00 00 02 00 00 00
00 00 64 00 00 00 00 A414 24 00 04 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Replace the XX with the desired stat value (see
appendices).
Replace the YY's with the new value (signed long integer, Little-endian
byte ordering).
Back to top
------------------------------------------------------------------------------------------
Temporary Stat Bonus
Discovered By: Roach
xx 00 01 04 yy yy yy yy 00 00 00 00 00 01 zz zz
zz zz 64 00 00 00 80 1E 2C 00 04 00 00 00 00 00
04 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
XX is the stat to affect (see appendices).
YY is the bonus (signed long int, Little-endian).
ZZ in the duration in seconds (signed long int, Little-endian).
Back to top
-----------------------------------------------------------------------------------------
Increase Max HP
Discovered By: Thalic
12 00 01 00 xx xx xx xx 03 00 00 00 02 00 00 00
00 00 64 00 00 00 00 A4 14 24 00 04 00 00 00 00
06 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Replace the XX bytes with the desired HP Bonus (long int, little-endian).
Back to top
------------------------------------------------------------------------------------------
*** Section 8: Miscellaneous***
-----------------------------------------------------------------------------------------
Play Movie
Discovered By: Graf Hohfels
List Expanded By: Suryiel (from baldur.ini)
98 00 01 02 00 00 00 00 00 00 00 00 00 01 00 00
00 00 64 00 xx xx xx xx xx xx xx xx 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
x -> key:
wyvvern: Cloakwood3Movie
beregost: BeregostMovie
BG4LOGO
TSRLOGO
BILOGO
INFELOGO
INTRO
DEATHAND
REST
FRARMINN
BEREGOST
NASHKELL
GNOLL
BGENTER
IRONTHRN
CAMP
SEWER
BGSUNSET
Back to top
-------------------------------------------------------------------------------------------
Display String
Discovered By: Thalic
8B 00 01 02 xx xx xx xx 00 00 00 00 01 01 00 00
00 00 64 00 00 00 80 1E 2C 00 04 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
XX is a string reference.
Back to top
-------------------------------------------------------------------------------------------
A3 (unknown)
Discovered By: Banelord
A3 00 02 03 00 00 00 00 00 00 00 00 01 01 00 00
00 00 64 00 00 00 80 1E 2C 00 04 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Back to top
-------------------------------------------------------------------------------------------
B8 (unknown)
Discovered By: Banelord
B8 00 02 00 00 00 00 00 01 00 00 00 00 00 05 00
00 00 64 00 00 00 80 1E 24 00 04 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
from crushing trap spell...
Back to top
-------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Header : 114d Bytes
Offset Length Type
Name/ Notes
0x0000 8 String Identifier
Always "SPL V1 "
0x0008 4 Signed Long
Int, Little-endian SpellNameRef
0x0010 8 String
CastingEffect
0x0022 1 Byte
School :
00h
Unspecified/Schoolless
09h Necromancy
0Ah Alteration
0Bh Enchantment/Charm
0Ch Abjuration
0Dh Illusion/Phantasm
0Eh
Conjuration/Summoning
0Fh Invocation
10h Divination
18h Evocation
0x0034 4 Signed Long
Int, Little-endian SpellLevel
0x003A 8 String
??? Filename
0x0050 4 Signed Long
Int, Little-endian SpellDescriptionRef
0x0064 4 Signed Long
Int, Little- endian Extended Header Offset
0x0068 2 Signed Word,
Little-endian ExtendedHeaderCount
0x006A 4 Signed Long
Int, Little-endian FeatureTableOffset
Offset to Feature Table
0x0072 NA NA
NA Start of first extended
header
Extended Header : 40d bytes
Offset Length Type
Name/ Notes
0x0000 4
Raw Hex
Spell Type :
01 00 04 00=Innate
Ability
02 00 02 00=Wizard
Spell
01 00 02 00=Priest
Spell
0x0004 8
String
??? Filename
0x0010 2
Signed Word, Little-endian CasterLevel
(Level at which the caster must be for
this extended header to apply.)
0x0012 4
Signed Long Int, Little-endian CastingTime
0x001E 2
Signed Word, Little-endian BlockCount Number
of Structs
0x0026 1
Byte
Special Graphic if "missile weapon"
Back to top
-----------------------------------------------------------------------------------------
B) Known Colors:
Discovered By: Ganryu
Expanded and Corrected By: Sith Wanderer
Palette Dissection By: Burton Radons
| 00h | |
| 01h | |
| 02h | |
| 03h | |
| 04h | |
| 05h | |
| 06h | |
| 07h | |
| 08h | |
| 09h | |
| 0Ah | |
| 0Bh | |
| 0Ch | |
| 0Dh | |
| 0Eh | |
| 0Fh | |
| 10h | |
| 11h | |
| 12h | |
| 13h | |
| 14h | |
| 15h | |
| 16h | |
| 17h | |
| 18h | |
| 19h | |
| 1Ah | |
| 1Bh | |
| 1Ch | |
| 1Dh | |
| 1Eh | |
| 1Fh | |
| 20h | |
| 21h | |
| 22h | |
| 23h | |
| 24h | |
| 25h | |
| 26h | |
| 27h | |
| 28h | |
| 29h | |
| 2Ah | |
| 2Bh | |
| 2Ch | |
| 2Dh | |
| 2Eh | |
| 2Fh | |
| 30h | |
| 31h | |
| 32h | |
| 33h | |
| 34h | |
| 35h | |
| 36h | |
| 37h | |
| 38h | |
| 39h | |
| 3Ah | |
| 3Bh | |
| 3Ch | |
| 3Dh | |
| 3Eh | |
| 3Fh | |
| 40h | |
| 41h | |
| 42h | |
| 43h | |
| 44h | |
| 45h | |
| 46h | |
| 47h | |
| 48h | |
| 49h | |
| 4Ah | |
| 4Bh | |
| 4Ch | |
| 4Dh | |
| 4Eh | |
| 4Fh | |
| 50h | |
| 51h | |
| 52h | |
| 53h | |
| 54h | |
| 55h | |
| 56h | |
| 57h | |
| 58h | |
| 59h | |
| 5Ah | |
| 5Bh | |
| 5Ch | |
| 5Dh | |
| 5Eh | |
| 5Fh | |
| 60h | |
| 61h | |
| 62h | |
| 63h | |
| 64h | |
| 65h | |
| 66h | |
| 67h | |
| 68h | |
| 69h | |
| 6Ah | |
| 6Bh | |
| 6Ch | |
| 6Dh | |
| 6Eh | |
| 6Fh | |
| 70h | |
| 71h | |
| 72h | |
| 73h | |
| 74h | |
| 75h | |
| 76h | |
| 77h | |
Back to top
------------------------------------------------------------------------------------------
C) Saving Throw Types:
Discovered By: ViperSting
0x00000000 No Saving Throw
0x01000000 Save vs. Spells
0x02000000 Save vs. Breath Weapons
0x04000000 Save vs. Death/Poison
0x08000000 Save vs. Wands
0x10000000 Save vs. Petrification/Polymorph
Back to top
------------------------------------------------------------------------------------------
D) Known Stat Values:
Discovered By: ViperSting, Asgorath, Mike, Roach,Mr. Mike, Graf Hohfels,
Suryiel, and Burton Radons
Stats marked as ( **XXh ) are unknown, or have no identified parameters
00h - AC (Bonus
AC vs. weapon type)
**01h - ATTACKNO (Attacks per round modifier)
**02h - AWAKEN
03h - BERSERK
(Berserk)
**04h - CALM
05h - CHARM
(Charm)
06h - CHR (Charisma modifier)
07h - COLORCHANGE (Set item colors)
08h - COLORGLOW_SOLID (Change colors)
09h - COLORGLOW_PULSE (Flash color)
0Ah - CON (Constitution modifier)
0Bh - CUREPOISON (Neutralize poison)
0Ch - DAMAGE (Damage)
0Dh - DEATH (Death)
**0Eh - DEFROST
0Fh - DEX
(Dexterity modifier)
10h - HASTE (Haste)
11h - HEAL (Current HP modifier)
12h - HITPOINTS (Maximum HP modifier)
13h - INT (Intelligence modifier)
14h - INVISIBLE (Invisibility)
15h - LORE (Identify)
**16h - LUCK (Lore modifier)
17h - MORALE
(Remove fear)
18h - PANIC (Horror)
19h - POISON (Poison)
1Ah - REMOVECURSE (Remove curse)
**1Bh - RESISTACID (Acid resistance modifier)
**1Ch - RESISTCOLD (Cold resistance modifier)
**1Dh - RESISTELECTRICITY (Lightning resistance
modifier)
**1Eh - RESISTFIRE (Fire resistance modifier)
1Fh - RESISTMAGIC
(Protection from Magic)
20h - RESURRECT (Raise dead)
**21h - SAVEVSDEATH (Save vs. death modifier)
**22h - SAVEVSWANDS (Save vs. wands modifier)
**23h - SAVEVSPOLY (Save vs. petrification/polymorph)
**24h - SAVEVSBREATH (Save vs. breath weapons)
**25h - SAVEVSSPELL (Save vs. spells)
26h - SILENCE (Silence)
27h - SLEEP (Unconsciousness)
28h - SLOW (Slow)
**29h - SPARKLE
2Ah - SPELLMEMORIZATIONMAGE
(Bonus mage spells)
2Bh - STONETOFLESH (Stone to flesh)
2Ch - STR (Strength modifier)
2Dh - STUN (Stun)
**2Eh - UNSTUN
**2Fh - VISIBLE
30h - VOCALIZE
(Vocalize)
31h - WIS (Wisdom modifier)
32h - SINGLECOLORPULSEALL (Fade to color)
33h - COLORTINT_SOLID
34h - COLORLIGHT_SOLID
35h - ANIMATION_CHANGE (polymorph)
**36h - THAC0 (THAC0 modifier)
37h - SLAY
(Slay class) (arrow of slaying)
38h - ALIGNMENTREVERSAL (Alignment reversal)
39h - ALIGNMENTCHANGE (Set alignment)
3Ah - DISPELEFFECTS (Dispel magic)
**3Bh - SKILLSTEALTH (Stealth modifier)
3Ch - CASTINGFAILURE
(miscast magic)
**3Dh - (none)
3Eh - SPELLMEMORIZATIONCLERIC
(Bonus priest spells)
3Fh - INFRAVISION (Infravision)
**40h - INFRAVISIONOFF
41h - BLUR
(Blur)
42h - TRANSLUCENT (Transparency fade)
43h - SUMMON (Monster summoning)
44h - UNSUMMON (Unsummon monster)
45h - NONDETECTION (Non-detection)
**46h - ENDNONDETECTION
47h - SEXCHANGE
(Gender swap)
48h - AICHANGE (Set reaction state)
**49h - DAMAGEMOD (Bonus damage modifier)
4Ah - BLINDNESS
(Blindness)
**4Bh - CUREBLINDESS
4Ch - FEEBLEMINDEDNESS
(Confusion (potion))
**4Dh - CUREFEEBLEMINDEDNESS
**4Eh - DISEASE
**4Fh - CUREDISEASE
**50h - DEAFNESS
**51h - CUREDEAFNESS
52h - SETAISCRIPT
(Set default script)
53h - IMMUNITYTOPROJECTILE (Protection
from weapon type)
54h - RESISTMAGICFIRE (protection from
heat)
55h - RESISTMAGICCOLD (protection from
cold)
**56h - RESISTSLASHING
**57h - RESISTCRUSHING
**58h - RESISTPIERCING
**59h - RESISTMISSILE
**5Ah - SKILLLOCKPICKING (Open locks modifier)
**5Bh - SKILLTRAPS (Find traps modifier)
**5Ch - SKILLPICKPOCKET (Pick pockets modifier)
**5Dh - FATIGUE (Fatigue modifier)
**5Eh - INTOXICATION (Drunkenness modifier)
**5Fh - SKILLTRACKING
60h - LEVEL
(Level change) (set xp level)
**61h - STREXTRA (Strength bonus modifier)
62h - REGENERATION
(Regenerate)
**63h - DURATIONMOD
64h - PROTECTIONFROMCREATURE
(Protection from creature)
65h - IMMUNITYTOEFFECT (Protection from
opcode)
66h - IMMUNITYTOSPELLLEVEL (Protection
from spells)
67h - NAME
68h - XP
**69h - GOLD
6Ah - MORALEBREAK
(Fail morale check)
**6Bh - PORTRAIT
**6Ch - REPUTATION
6Dh - HOLD_CREATURE
(Hold)
**6Eh - RETREAT_FROM
6Fh - CREATE_WEAPON
(Create temporary item)
70h - DESTROY_WEAPON (Remove item)
**71h - EQUIP_WEAPON
72h - DITHER
(Can't cast spells)
73h - DETECT_ALIGNMENT (Detect alignment)
74h - DISPEL_INVISIBLE (Detect invisibility)
75h - SHOW_AREA (Clairvoyance)
**76h - SHOW_CREATURES
77h - MIRROR_IMAGE
(Mirror image)
78h - IMMUNITY_TO_WEAPON (Immunity to non-magical
weapons)
**79h - VISUAL_ANIMATION_EFFECT
7Ah - CREATE_ITEM
(Create inventory item)
7Bh - DESTROY_ITEM
7Ch - TELEPORT (Teleport)
7Dh - KNOCK (Unlock)
**7Eh - MOVEMENT_RATE (Speed modifier)
7Fh - RANDOM_SUMMON
(Monster summoning)
80h - CONFUSION (Fright/Rigid Thinking/Confusion)
81h - NON_CUMULATIVE_AID (Aid)
82h - NON_CUMULATIVE_BLESS (Bless)
83h - NON_CUMULATIVE_CHANT (Chant)
84h - NON_CUMULATIVE_DRAW_UPON_HOLY_MIGHT
(Raise STR, CON, DEX)
85h - NON_CUMULATIVE_LUCK (Luck)
86h - PETRIFICATION (Petrification)
87h - POLYMORPH (Polymorph)
**88h - FORCE_VISIBLE
**89h - NON_CUMULATIVE_CHANTBAD
8Ah - SETSEQUENCE
(Character animation)
8Bh - DISPLAYSTRING (Display text)
**8Ch - CASTINGGLOW
8Dh - VISUALSPELLHIT
(Special effect)
8Eh - PORTRAITICON (Add icon display)
8Fh - REPLACE_ITEM
90h - DISABLE_BUTTON (Disable thieving
skill)
91h - DISABLE_SPELLTYPE (Disable mage spellcasting)
92h - CAST_SPELL (Cast spell)
93h - LEARN_SPELL
94h - CAST_SPELL_POINT (Cast spell)
**95h - IDENTIFY (II)
96h - DETECTTRAPS
(Find traps)
97h - REPLACESELF (Summon hostile)
98h - PLAYMOVIE (Show movie)
99h - SANCTUARY (Sanctuary)
9Ah - Overlay Entangle
9Bh - minor globe
9Ch - protection from normal missles cylinder
9Dh - Overlay web effect
9Eh - Grease Overlay
9Fh - Mirror Image(2)
**A0h -
**A1h -unknown effect: Kiel's helm + grease spell+
resist fear
**A2h -unknown effect: from sppr308: remove paralysis
**A3h -unknown effect: from sppr308: remove paralysis
A4h - Slow
Poison
A5h - Burning Hands Effect
A6h - Magic Resistance II
**A7h -
A8h - Remove
Creature
A9h - Remove Icon
**AAh -
ABh - Give
Innate Ability
ACh - Remove Spell
**ADh -
AEh - Sound
Effects
AFh - Hold Creature Type
**B0h -
B1h - Bonus
Damage or THACO vs. Creature Types
**B2h -
**B3h -
**B4h -
**B5h -
**B6h -
**B7h -
**B8h - unknown effect: from crushing trap spell
**B9h - unknown effect: from Otiluke's resilient
sphere
**BAh -
**BBh -
BCh - Increase
Spellcasting Speed
BDh - Spell Speed Factor
BEh - Attack Speed Factor
**BFh -
**C0h -
Back to top
------------------------------------------------------------------------------------------
E) Damage Types:
From: damages.ids (converted to little-endian)
0x0000 CRUSHING
0x0001 SLASHING
0x0002 MAGICFIRE
0x0004 MAGICCOLD
0x0008 STUNNING
0x0100 ACID
0x0200 COLD
0x0400 ELECTRICITY
0x0800 FIRE
0x1000 PIERCING
0x2000 POISON
0x4000 MAGIC
0x8000 MISSILE
Back to top
------------------------------------------------------------------------------------------
F) Mage Spells:
*T* devotes TotSC spells.
Compiled By: Ken and ViperSting
SPWI001 - FireBall
SPWI002 - Lightning Bolt
SPWI003 - Magic Missile
SPWI004 - Stinking Cloud
SPWI005 -
SPWI101 - Grease
SPWI102 - Armor
SPWI103 - Burning Hands
SPWI104 - Charm Person
SPWI105 - Color Spray
SPWI106 - Blindness
SPWI107 - Friends
SPWI108 - Protection from Petrification
SPWI110 - Identify
SPWI111 - Infravision
SPWI112 - Magic Missile
SPWI113 - Protection from Evil
SPWI114 - Shield
SPWI115 - Shocking Grasp
SPWI116 - Sleep
SPWI117 - Chill Touch
SPWI118 - Chromatic Orb
SPWI119 - Larloch's Minor Drain
SPWI201 - Blur
SPWI202 - Detect Evil
SPWI203 - Detect Invisibility
SPWI204 - Fog Cloud
SPWI205 - Horror
SPWI206 - Invisibility
SPWI207 - Knock
SPWI208 - Know Alignment
SPWI209 - Luck
SPWI210 - Resist Fear
SPWI211 - Melf's Acid Arrow
SPWI212 - Mirror Image
SPWI213 - Stinking Cloud
SPWI214 - Strength
SPWI215 - Web
SPWI216 - Wizard Lock
SPWI217 - Agannazar's Scorcher
SPWI218 - Ghoul Touch
SPWI219 - Vocalize
SPWI299 - Summon Cow
SPWI301 - Clairvoyance
SPWI302 - Dispel Magic
SPWI303 - Flame Arrow
SPWI304 - Fireball
SPWI305 - Haste
SPWI307 - Invisibility 10'
SPWI306 - Hold Person
SPWI308 - Lightning Bolt
SPWI309 - Monster Summoning I
SPWI310 - Non-Detection
SPWI311 - Protection from Normal Missiles
SPWI312 - Slow
SPWI313 - Skull Trap
SPWI314 - Vampiric Touch
SPWI315 - Wraith Form
SPWI316 - Dire Charm
SPWI317 - Ghost Armor
SPWI399 - Lightning Bolt
SPWI401 - Confusion
SPWI402 - Dimension Door
SPWI403 - Fire Shield
SPWI404 - Ice Storm
SPWI405 - Improved Invisibility
SPWI406 - Minor Glove of Invulnerability
SPWI407 - Monster Summoning II
SPWI408 - Stone Skin
SPWI409 - Wall of Fire
SPWI411 - Emotion-Hopelessness *T*
SPWI412 - Greater Malison *T*
SPWI413 - Otiluke's Resilient Sphere *T*
SPWI415 - Polymorph Other *T*
SPWI416 - Polymorph Self *T*
SPWI410 - Remove Curse *T*
SPWI414 - Spirit Armor *T*
SPWI501 - Animate Dead
SPWI502 - Cloudkill
SPWI503 - Cone of Cold
SPWI504 - Monster Summoning III
SPWI505 - Shadow Door
SPWI506 - Domination *T*
SPWI509 - Feeblemind *T*
SPWI507 - Hold Monster *T*
SPWI508 - Chaos *T*
SPWI601 - Invisible Stalker *T*
SPWI602 - Globe of Invulnerability *T*
SPWI603 - Tenser's Transformation *T*
SPWI604 - Flesh to Stone *T*
SPWI605 - Death Spell *T*
SPWI888 - Flame Arrow
Back to top
------------------------------------------------------------------------------------------
G) Priest Spells:
*T* devotes TotSC spells.
Compiled By: Ken and ViperSting
SPPR101 - Bless
SPPR102 - Command
SPPR103 - Cure Light Wounds
SPPR104 - Detect Evil
SPPR105 - Entangle
SPPR106 - Magic Stone
SPPR107 - Protection From Evil
SPPR108 - Remove Fear
SPPR109 - Sanctuary
SPPR110 - Shillelagh
SPPR201 - Aid
SPPR202 - Barkskin
SPPR203 - Chant
SPPR204 - Charm Person or Mammal
SPPR205 - Find Traps
SPPR205D - Find Traps
SPPR206 - Flame Blade
SPPR207 - Good Berries
SPPR208 - Hold Person
SPPR209 - Know Alignment
SPPR210 - Resist Fire/Cold
SPPR211 - Silence 15' Radius
SPPR212 - Slow Poison
SPPR213 - Spiritual Hammer
SPPR214 - Draw Upon Holy Might
SPPR301 - Animate Dead
SPPR302 - Call Lightning
SPPR303 - Dispel Magic
SPPR304 - Glyph of Warding
SPPR305 - Hold Animal
SPPR306 - Protection From Fire
SPPR307 - Remove Curse
SPPR308 - Remove Paralysis
SPPR309 - Invisibility Purge
SPPR310 - Miscast Magic
SPPR311 - Rigid Thinking
SPPR312 - Strength of One
SPPR401 - Cure Serious Wounds
SPPR402 - Animal Summoning I
SPPR403 - Free Action
SPPR404 - Neutralize Poison
SPPR405 - Mental Domination *T*
SPPR406 - Defensive Harmony *T*
SPPR407 - Protection from Lightning *T*
SPPR408 - Protection from Evil (10' Radius) *T*
SPPR501 - Animal Summoning II
SPPR502 - Cure Critical Wounds
SPPR503 - Flame Strike
SPPR504 - Raise Dead
SPPR506 - Wall of Fire
SPPR507 - Champion's Strength *T*
SPPR508 - Choatic Commands *T*
SPPR999 - Raise Dead
Back to top
------------------------------------------------------------------------------------------
H) Innate Abilities (they're spells
too):
Compiled By: Ken and ViperSting
SPIN101 - Cure Light Wounds
SPIN102 - Slow Poison
SPIN103 - Draw Upon Holy Might
SPIN104 - Larloch's Minor Drain
SPIN105 - Ghoul Touch
SPIN106 - Vampiric Touch
SPIN107 - Shapeshifts Brown Bear
SPIN108 - Charm Animal
SPIN109 - Lay On Hands
SPIN110 - Shapeshifts Wolf
SPIN111 - Shapeshifts Black Bear
SPIN112 - Dispel Magic
SPIN113 - Spiritual Hammer
SPIN114 - Summon Dread Wolf
SPIN115 - Summon Ghast
SPIN116 - Create Poisoned Arrows
SPIN117 - Berserk
SPIN118 - Invisibility
SPIN119 - Charm Person
SPIN120 - Detect Evil
SPIN121 - Protection From Evil
SPIN122 - Shapeshifts Natural Form
SPIN123 - Shapeshifts Natural Form
SPIN124 - Shapeshifts Natural Form
Back to top
-----------------------------------------------------------------------------------------
I) Effect Graphics
Discovered by: Alanon
Listed by: Burton Radons, Gustov Montessi
Place at offset 0x026 in spell extended headers
Place at offset 0x02A in item extended headers
Effect ID's marked as ( **XXh ) are unknown
00h -> Throwing Axe melee
01h -> None
02h -> Arrow of Slaying/Acid/Biting/Dispelling/Piercing
03h -> Arrow of Detonation
04h -> Arrow of Fire
05h -> Normal/Poisoned Arrow
06h ->
07h ->
08h ->
09h ->
0Ah -> Throwing Axe
0Bh ->
0Ch -> Bolt +1/+2/Biting/Polymorphing
0Dh ->
0Eh ->
0Fh -> Bolt
10h -> Bolt of Lightning
11h -> Bullet +1/+2
12h -> (previous) smokin' bullet
13h ->
14h -> Bullet
15h ->
16h -> Burning Hands
17h -> SPWI999
18h -> Chromatic Orb
19h -> Cone of Cold
1Ah ->
1Bh -> Throwing Dagger
1Ch ->
1Dh ->
1Eh ->
1Fh ->
20h -> Dart +1/Stunning/Wounding
23h -> Dart
25h -> Wand of Magic Missiles
26h -> (previous) Fireball
28h -> Wand of Lightning
2Ah -> Sleep
35h -> Antichickenator
2Fh -> Wand of Paralyzation
30h -> Command Word: Die, Charm Person/or Mammal, Miscast Magic, Rigid
Thinking, Luck, Dire Charm
31h -> Ring of Animal Friendship
32h -> Larloch's Minor Drain
37h -> Wand of polymorphing/acid mist
40h -> Magical web
41h -> second/fourth Basilisk Gaze
42h -> Draw Upon Holy Might
43h -> Wand of the Heavens
44h -> Magic Missile (I)
45h -> Magic Missile (II)
46h -> Magic Missile (III)
47h -> Magic Missile (IV)
48h -> Magic Missile (V)
49h -> SPWI998 (One of the Godkills)
4Ah ->
4Bh ->
4Ch ->
4Dh ->
4Eh ->
4Fh -> Target Immolation
50h -> Eagle Bow
51h ->
52h ->
53h ->
54h ->
55h -> Call Lightning
56h -> Call Lightning (II)
57h -> Call Lightning (III)
58h -> Call lightning
59h -> Call lightning; item disappears
5Ah -> Call lightning; item disappears
5Bh -> Call lightning
5Ch -> Lightning Bolt
5Dh -> Call lightning with no sound; item disappears
5Eh -> Detect Evil/Invisibility
5Fh -> Stinking Cloud
60h -> Skull Trap
61h -> Color Spray
62h -> Ice Storm
63h -> Locked up game!!!
64h -> Glyph of Warding
65h -> Grease
66h -> Melf's Acid Arrow
67h -> Arrow of Ice
68h-> Stinking Cloud? (green cloud/fireball-like explosion outward)
69h -> Winter Wolf (Ranged)
6Ah- Error out!!!
6Bh- Error out!!!
6Ch -> Ankheg acid
6Dh -> (previous) Fireray
6Eh -> Shadow/Dimension Door; item disappears
6Fh -> Casting magic (bluish circle with a white star in center glowing
around chest then exploding in a puff of smoke)
70h -> Casting magic (white ball with purple/blue spikes all around
it's outside glowing around chest then exploding in a puff of smoke; item
disappears)
71h -> Casting magic (yellow light in an up and down line with yellow
light moving around it making triangle shape glowing around chest then
exploding in a bunch of sparks)
72h -> Casting magic (green ball with white flashing through it glowing
around chest then exploding in a enlarge circle; item disappears)
73h -> Casting magic (little black ball glowing around chest then exploding
in a puff of smoke; item disappears)
74h -> Casting magic (purple circle with cloud in center glowing around
chest then exploding in a bunch of sparks; item disappears)
75h -> Casting magic (red ball glowing around chest then exploding
in a bunch of sparks)
76h -> Casting magic (lightning in small circle around chest then explodes
out to a larger lightning circle around chest; item disappears)
77h -> Bluish smoke and magic line trail from head into air above;
item disappears
78h -> Light Bluish light explodes around chest and falls to the ground
in light bluish-white droplets
79h -> Whitish light with light bluish tinting in a couple lines move
around chest and down to the ground to disappear
7Ah -> Bluish smoke and magic line trail from head into air above;
item disappears
7Bh -> Purplish light explodes around chest and falls to the ground
in purple-white droplets
7Ch -> Whitish light with purplish tinting in a couple lines move around
chest and down to the ground to disappear; item disappears
7Dh -> Yellowish smoke and magic line trail from head into air above
7Eh -> Yellowish-green light explodes around chest and falls to the
ground in yellowish-green droplets
7Fh -> Whitish light with yellowish tinting in a couple lines move
around chest and down to the ground to disappear; item disappears
80h -> Greenish smoke and magic line trail from head into air above
81h -> Green light explodes around chest and falls to the ground in
green droplets; item disappears
82h -> Whitish light with green tinting in a couple lines move around
chest and down to the ground to disappear
83h -> Redish (maybe mauve?) smoke and magic line trail from head into
air above
84h -> Pinkish light explodes around chest and falls to the ground
in pinkish-white droplets; item disappears
85h -> Whitish light with pink tinting in a couple lines move around
chest and down to the ground to disappear; item disappears
86h -> Purpish smoke and magic line trail from head into air above;
item disappears
87h -> Purplish light explodes around chest and falls to the ground
in purple-white droplets; item disappears
88h -> Whitish light with purplish tinting in a couple lines move around
chest and down to the ground to disappear
89h -> Pinkish smoke and magic line trail from head into air above;
item disappears
8Ah -> Pinkish light explodes around chest and falls to the ground
in pinkish-white droplets; item disappears
8Bh -> Whitish light with pink tinting in a couple lines move around
chest and down to the ground to disappear
8Ch -> Brownish (?) smoke and magic line trail from head into air above;
item disappears
8Dh -> Yellowish light explodes around chest and falls to the ground
in yellowish droplets
8Eh -> Whitish light in a couple lines move around chest and down to
the ground to disappear
8Fh -> Fire effect explodes around character reminiscient of a mushroom
cloud of fire; item disappears
90h -> Smoke effect explodes around character reminiscient of a mushroom
cloud of smoke; item disappears
91h -> Green smoke effect explodes around character reminiscient of
a mushroom cloud of green smoke; item disappears
92h -> Flamestrike effect (?; cloud comes down from the sky to strike
target for a few seconds); item disappears
93h -> Whitish smoke/mist comes down from mid screen in a sort of teardrop
shape to cover target for couple of seconds
94h -> Brownish (?) smoke and magic line trail from head into air above;
item disappears
95h -> Silence 15' Radius
96h -> Yellowish explosion out from head to larger circle; item disappears
97h ->
98h -> DeathSpell, SPWI605
99h -> Basilisk Gaze
9Ah-?
9Bh-?
9Ch-?
9Dh -> Dispel Magic, Remove Paralysis
9Eh -> Haste
9Fh -> Slow
A0h-?
A1h-?
A2h -> Bless, Chant
A3h-?
A4h-?
A5h-?
A6h-?
A7h-?
A8h -> Remove/Resist Fear
A9h -> Entangle, Horror
AAh -> Wand of Fear/Sleep
ABh-?
ACh-?
ADh-?
AEh-?
AFh-?
B0h-?
B1h-?
B2h-?
B3h-?
B4h-?
B5h-?
B6h-?
B7h-?
B8h -> Blindness
B9h -> Know Alignment
BAh -> Find Traps
BBh -> Cloud Kill
BCh -> Magical cold, Winter Wolf melee
BDh -> Cursed Wand of Magic Missiles (Summoning?)
BEh -> Hold Person/Animal
BFh -> Wand of Frost
C0h -> Jelly Mold attack
C1h -> Ooze attack
C2h -> Jelly Mold attack II (Ranged)
C3h -> SPWI985
C4h ->
C5h ->
C6h ->
C7h ->
C8h ->
C9h ->
CAh ->
CBh ->
CCh -> Blue Fireball
CDh ->
CEh ->
CFh ->
Back to top
-----------------------------------------------------------------------------------------
J)Struct Breakdown
By: Suryiel
| set "30" to desired opcode (see list)
set "54" to desired target: 01=self, 02= preTarget, 03=party, 04=global Target(all on map), 05=global-party set "70 31 00 00" to desired parameter1 (reference Struct List) set "70 32 00 00" to desired parameter2 (reference Struct List) set "74" to desired timing ID: 00=duration, 01=permanent, 02=effect while equipped, 04=delay set "44" to desired time mode: 01=duration, 02=delay set "6C 6C 6C 6C" to desired length (in segments, little-endian) set "25" to appropriate probability%[hex] (00=never[0%], 19=25%, 32=50%, 4B=75%, 64=always[100%] set "66 66 66 66 66 66 66 66" to appropriate File Name Array (reference Struct List) set "23 23 23 23" if applicable, to desired # of throws,little-endian (all 00 if no dice throws) set "64 64 64 64" if applicable, to desired dice(example:08 00 00 00 for d8),little-endian (all 00 if no dice throws) set "73 73 73 73" if applicable, to desired saving throw,little-endian[reference Struct List](all 00 if no saving throws) set "62 62 62 62" if applicable, to desired saving throw bonus,little-endian (all 00 if no saving throws) |
Back to top
-----------------------------------------------------------------------------------------
Maintained By: Suryiel
To unsubscribe, write to bgstructs-unsubscribe@listbot.com
Start Your Own FREE Email List at http://www.listbotcom/