Item & Monster Specs

Any developer realated stuff
User avatar
Darendor
Posts: 1502
Joined: Wed Jan 14, 2009 1:53 am
Location: Red Deer, Alberta, Canada

Post by Darendor »

drifting wrote:The random drop-ability is entirely based on the index of the item. According to the formula, items with an index higher than 111 will not be randomly dropped. (The formula says 112 but the start index is -1). Those items are: Onyx Key, Crystal Sword, Stoneblade, Travelhelm, Death Dagger, Mongo Fgn, Lich Fgn, Eye, Master Key, Wizwand, Silvr Square, Silvr Circle, Silvr Triang, Thor Fgn, Old Man Fgn, Spectre Snare.
e item available... in a condition agreeable to the quest.
That is a bit strange, considering that the Stoneblade, Travelhelm, Death Dagger, Mongo Fgn, Lich Fgn, Wizwand, and Old Man Fgn aren't given out by any special events in the game whatsoever.

How is it supposed to be possible to obtain the above items?
drifting
Posts: 153
Joined: Wed Dec 07, 2011 10:21 pm

Post by drifting »

Darendor wrote:That is a bit strange, considering that the Stoneblade, Travelhelm, Death Dagger, Mongo Fgn, Lich Fgn, Wizwand, and Old Man Fgn aren't given out by any special events in the game whatsoever.

How is it supposed to be possible to obtain the above items?
No idea. I don't see any way to get those items in the DOS version. Has the function been found/disassembled in the C64 version that determines what items drop? I'm curious to see how it was done there.
User avatar
Darendor
Posts: 1502
Joined: Wed Jan 14, 2009 1:53 am
Location: Red Deer, Alberta, Canada

Post by Darendor »

I don't know if ZeroZero ever did manage to get that far in the code disassembly.
offsides
Posts: 3
Joined: Thu Nov 07, 2013 6:13 pm

BT2 Items and spells

Post by offsides »

Thanks to the info in this post and a couple others, I was inspired to try and find the various item stats in BT2, since I'm just about finished with BT2 on my Android tablet and wanted an item list similar to what I have for BT1 to help me figure out what equipment was best as I found it. And thanks to the info in this post about the item codes in BT1, I found quite a bit once I unpacked the BT2 DK.EXE. Thus, without further adieu, I present the BT2 items and spells (since I ended up figuring that one out to verify spell effects of certain items :)):

Items:

Code: Select all

A - Item type bits: 3bd3b-3bdb9 (High nybble: 1 = Poison, 5 = Possession, 6 = Stone, 7 = Critical, Low nybble: 0 = Light Source?, 1 = Weapon, 2 = Shield, 3 = Armor, 4 = Helm, 5 = Gloves, 6 = Instrument, 7 = Figurine, 8 = Ring, 9 = Wand, a = Misc, b = Bow)
B - Special bits 1: 3be3b-3beb9 (It appears that the high bit is a separate field from the rest - not sure what it means. 01 = HP Regen, 02 = SP Regen, 03 = No Spin, 04 = ??, 05 = Infinite Songs, 06 = Luck?, 07 = Run away, 08 = +Hide%, 09 = ??, 0a = ??, 0d = Bow, 0e = ??, 0f = Unlock?, 10 = ??, 11 = Arrows, 2x = Segment; High bit 80 = ??)
C - Special bits 2: 3bebb-3bf39 (<50 = Spell #, 5x = Spell-like Effect, 6x = Ranged effect, 7x = Figurine summon)
D - Weapon Damage bits: 3c7f3-3c871 (High nybble (X): 0 = d4, 2 = d8, 4 = d16, Low nybble (Y) = (Y+1)(dX))
E - Weapon Bonus + AC bits: 3c769-3c7e7 (High nybble = +Y bonus, Low nybble = AC Z)
F - # of uses: 3bf3b-3bfb9 (FF = infinite, otherwise # of uses)
G - Class use bits: 3bdbb-3be39 (01 = Mo, 02 = Hu, 04 = Pa, 08 = Ba, 10 = Ro, 20 = Am, 40 = Co/Ma/So/Wi, 80 = Wa)

  A  B  C  D  E  F  G  Item
 00 00 60 00 00 01 ff  Torch
 00 00 61 00 00 01 ff  Lamp 
 01 00 00 01 00 ff 8f  Broadsword
 01 00 00 20 00 ff bf  Short Sword
 01 00 00 00 00 ff ff  Dagger     
 01 00 64 01 00 01 8f  War Axe    
 01 00 00 40 00 ff 87  Halbard    
 0b 0d 00 00 00 ff bf  Long Bow   
 01 00 00 20 00 ff ff  Staff      
 02 00 00 00 01 ff bf  Buckler    
 02 00 00 00 02 ff 8e  Tower Shield
 03 00 00 00 02 ff bf  Leather Armor
 03 00 00 00 03 ff 8f  Chain Mail   
 03 00 00 00 04 ff 8e  Scale Armor  
 03 00 00 00 05 ff 86  Plate Armor  
 03 00 00 00 01 ff ff  Robes        
 04 00 00 00 01 ff bf  Helm         
 05 00 00 00 01 ff ff  Leather Glvs.
 05 00 00 00 01 ff 86  Gauntlets    
 06 00 00 00 00 ff 08  Mandolin     
 01 00 63 20 00 01 9f  Spear        
 0a 11 62 00 00 0a bf  Arrows       
 01 00 00 01 20 ff 9e  Mthr Sword   
 02 00 00 00 03 ff bf  Mthr Shield  
 03 00 00 00 04 ff 8e  Mthr Chain   
 03 00 00 00 05 ff 8e  Mthr Scale   
 07 00 70 00 00 01 ff  Giant Fgn    
 03 00 00 00 04 ff ff  Bracers [6]  
 01 05 00 21 40 ff 08  Bardsword    
 06 80 51 00 00 32 08  Cold Horn    
 09 00 06 00 00 50 60  Lightwand    
 01 00 00 00 20 ff ff  Mthr Dagger  
 04 00 00 00 02 ff 9f  Mthr Helm    
 05 00 00 00 02 ff 8c  Mthr Gloves  
 01 00 64 01 20 ff 8f  Mthr Axe     
 0a 80 65 00 00 01 9b  Shuriken     
 03 00 00 00 06 ff 8c  Mthr Plate   
 07 00 71 00 00 01 ff  Molten Fgn   
 01 80 66 40 20 01 bf  Spell Spear  
 08 00 00 00 02 ff ff  Shield Ring  
 06 00 00 00 02 ff 08  Fin's Flute  
 11 00 64 04 20 01 8e  Kael's Axe   
 0a 11 67 00 00 0a 9f  Mthr Arrows  
 01 00 06 22 10 50 8e  Dayblade     
 01 00 00 40 12 ff ff  Shield Staff 
 0a 00 00 00 03 ff ff  Elf Cloak
 01 00 00 22 10 ff 8e  Hawkblade
 01 00 00 01 40 ff 9e  Admt Sword
 02 00 00 00 04 ff 9e  Admt Shield
 04 00 00 00 03 ff 9e  Admt Helm
 05 00 00 00 03 ff 84  Admt Gloves
 01 00 00 42 00 ff 04  Pureblade
 0a 00 68 00 00 ff 99  Boomerang
 0a 00 0e 00 02 58 ff  Ali's Carpet
 02 06 00 00 03 ff 9e  Luckshield
 07 00 72 00 00 01 ff  Bulldozer Fgn
 03 00 00 00 05 ff 8e  Admt Chain
 0a 80 69 00 00 04 02  Death Stars
 03 00 00 00 07 ff 84  Admt Plate
 03 00 00 00 06 ff ff  Bracers [4]
 07 00 73 00 00 01 ff  Slayer Fgn
 02 00 00 01 05 ff 04  Pure Shield
 01 02 00 22 02 ff 60  Mage Staff
 01 00 00 23 00 ff ff  War Staff
 01 08 00 04 10 ff 10  Thief Dagger
 51 00 00 21 30 ff 8e  Soul Mace
 09 00 0d 00 00 58 60  Ogrewand
 0a 09 00 00 00 ff 60  Kato's Bracer
 01 80 31 02 32 50 60  Sorcerstaff
 06 00 09 00 00 58 08  Galt's Flute
 06 80 54 00 00 41 08  Frost Horn
 0a 11 6a 01 60 0a 86  Ag's Arrows
 02 00 00 00 05 ff 8c  Dmnd Shield
 0b 0d 00 00 02 ff 08  Bard Bow
 04 00 00 00 04 ff 86  Dmnd Helm
 0a 06 00 00 00 ff ff  Elf Boots
 07 00 74 00 00 01 08  Van Fgn
 01 04 00 02 22 ff 60  Conjurstaff
 01 00 22 04 10 23 61  Staff of Lor
 08 00 25 00 00 03 64  Ring of Return
 01 80 08 22 10 33 fc  Powerstaff
 08 0a 00 41 10 ff ff  Breathring
 02 80 54 00 04 14 ff  Dragonshield
 03 00 00 00 08 ff 84  Dmnd Plate
 05 00 00 00 04 ff 84  Wargloves
 04 80 45 00 03 19 20  Wizhelm
 09 80 55 00 00 23 60  Dragonwand
 08 80 40 00 01 40 86  Deathring
 01 00 00 42 10 ff 8e  Crystal Sword
 0a 07 00 00 00 ff bf  Speedboots
 06 80 56 00 00 3c 08  Flame Horn
 0a 11 6c 00 00 0a 9f  Zen Arrows
 06 80 23 00 02 0c 08  Drums of Death
 06 00 0b 00 02 ff 08  Pipes of Pan
 08 80 32 00 00 11 62  Ring of Power
 01 05 6d 00 03 ff 08  Song Axe
 0a 00 24 00 00 1e 60  Trick Brick
 07 00 75 00 00 01 ff  Dragon Fgn
 07 00 76 00 00 01 ff  Mastermage Fgn
 08 01 00 00 00 ff ff  Troll Ring
 01 80 6f 01 40 ff 86  Aram's Knife
 0a 00 49 00 00 07 6c  Angra's Eye
 07 00 77 00 00 01 ff  Herb Fgn
 09 80 4b 00 00 0b 20  Master Wand
 07 00 4d 00 00 01 ff  Brothers Fgn
 0a 80 4e 00 00 01 ff  Dynamite
 01 81 6b 43 20 ff 84  Thor's Hammer
 61 80 00 00 30 ff 86  Stoneblade
 0a 80 4e 00 00 01 ff  Grenade
 0a 0f 00 00 00 ff ff  Master Key
 08 03 00 00 00 ff ff  Nospen Ring
 00 00 00 00 00 ff ff  Torch!
 01 80 6e 81 00 ff 86  Sword of Zar
 0a 0e 00 00 00 ff ff  Vial
 00 10 00 00 00 ff ff  Item of K
 08 00 00 00 00 ff ff  The Ring
 08 00 00 00 44 ff ff  Troy P.
 0a 00 00 00 00 ff ff  Dagger!
 0a 20 24 00 00 ff 20  Seg 1
 0a 21 21 00 00 ff 20  Seg 2
 0a a2 45 00 00 ff 20  Seg 3
 0a 23 35 00 00 ff 20  Seg 4
 0a 24 49 00 00 ff 20  Seg 5
 0a 25 4c 00 00 ff 20  Seg 6
 0a 26 4d 00 00 ff 20  Seg 7
 0a a7 5d 00 00 ff 20  The Scepter
 71 80 41 43 19 40 8e  Spectre Snare
Spells (Hex, Cast, Class/Lv):

Code: Select all

00 MAFL Co1
01 ARFI Co1
02 TRZP Co1
03 FRFO Co2
04 MACO Co2
05 WOHL Co2
06 LERE Co3
07 LEVI Co3
08 WAST Co3
09 INWO Co4
0a FLRE Co4
0b GRRE Co5
0c SHSP Co5
0d INOG Co6
0e MALE Co6
0f FLAN Co7
10 APAR Co7
11 FAFO Co7
12 INSL Co7
13 VOPL Ma1
14 QUFI Ma1
15 SCSI Ma1
16 HOWA Ma2
17 MAGA Ma2
18 AREN Ma2
19 MYSH Ma3
1a OGST Ma3
1b STFL Ma3
1c SPTO Ma4
1d DRBR Ma4
1e ANMA Ma5
1f STTO Ma5
20 PHDO Ma6
21 YMCA Ma6
22 REST Ma7
23 DEST Ma7
24 WZWA Ma7
25 SASP Ma7
26 MIJA So1
27 PHBL So1
28 LOTR So1
29 DISB So2
2a WIWA So2
2b FEAR So2
2c WIOG So3
2d INVI So3
2e SESI So3
2f CAEY So4
30 WIDR So4
31 DIIL So5
32 MIBL So5
33 WIGI So6
34 SOSI So6
35 WIMA So7
36 WIHE So7
37 MAGM So7
38 ZZGO So7
39 SUEL Wi1
3a FOFO Wi1
3b GATE Wi2
3c DEBA Wi2
3d FLCO Wi3
3e DISP Wi3
3f PRSU Wi4
40 ANDE Wi4
41 SPBI Wi5
42 SOWH Wi5
43 GRSU Wi6
44 BEDE Wi6
45 WIZW Wi7
46 HERB Wi7
47 HAFO Am1
48 MEME Am1
49 BASP Am2
4a CAMR Am3
4b NILA Am4
4c HEAL Am5
4d BRKR Am6
4e MAMA Am7
User avatar
toper
Posts: 46
Joined: Thu Oct 03, 2013 12:08 am
Location: Temple: N+4 E+13 U:-3

Post by toper »

Weird question about the DOS Save file....

Image

Character has 15,294,217 XP
In Hex that would be E9 5F 09

...Why is my characters XP stored in reverse in the save file??
The way its in the char file, that comes to: 614,153 xp

I think total fights is the same way. I think that that 53 09, which comes to 21,257 fights, but I think 09 53 or 2,387 fights is a 'lil more accurate.
drifting
Posts: 153
Joined: Wed Dec 07, 2011 10:21 pm

Post by drifting »

toper wrote:Weird question about the DOS Save file....

Character has 15,294,217 XP
In Hex that would be E9 5F 09

...Why is my characters XP stored in reverse in the save file??
The way its in the char file, that comes to: 614,153 xp

I think total fights is the same way. I think that that 53 09, which comes to 21,257 fights, but I think 09 53 or 2,387 fights is a 'lil more accurate.
That's how Intel machines store 32 bit numbers. 6502 machines like the C64 and Apple II as well.

http://en.wikipedia.org/wiki/Endianness for an explanation of endianness.
Maven
Posts: 138
Joined: Sat Apr 16, 2011 9:39 pm

Re: Item & Monster Specs

Post by Maven »

I had expected that if an item was magical with a magical plus stat -- a mithril dagger, for example -- it would do extra damage, and also lower the Thac0. That is pretty standard for D&D, I understand, and also for other RPGs.

However, it seems this is not the case. It does extra damage, but doesn't modify the Thac0 as I had expected. I ran into this when I was using a Spectre Mace to raise my Wizard levels. I thought if my Wizard wielding the Spectre Mace was at AC -5, he should be able to hit my Wizard wielding the Spectre Snare at AC LO. He could not.

So I tested it with a level 1 magician fighting spiders. At AC 7, the Magician can't hit the spider with a normal dagger. If I equip him with a robe so his AC drops to 6, he can. I took off the robe and equipped the mithril +1 dagger. He could not hit the spider.

I conclude that using magical weapons does not increase your chances of hitting monsters. Unless they have an AC component, of course.
User avatar
WarrioirOfIce
Posts: 37
Joined: Sun Jan 11, 2015 11:13 pm

Re: Item & Monster Specs

Post by WarrioirOfIce »

how is damage calculated exactly ?
for example my paladin with a dmnd sword (listed as 2d4+3) does 7 attacks for damage ranging between 375-399.

How the heck 2d4+3 times 7 range into 375-399?
drifting
Posts: 153
Joined: Wed Dec 07, 2011 10:21 pm

Re: Item & Monster Specs

Post by drifting »

WarrioirOfIce wrote:how is damage calculated exactly ?
for example my paladin with a dmnd sword (listed as 2d4+3) does 7 attacks for damage ranging between 375-399.

How the heck 2d4+3 times 7 range into 375-399?
What version are you playing? A quick test of the DOS version of BT1 gets around 82 damage with 8 attacks.
User avatar
WarrioirOfIce
Posts: 37
Joined: Sun Jan 11, 2015 11:13 pm

Re: Item & Monster Specs

Post by WarrioirOfIce »

drifting wrote:
WarrioirOfIce wrote:how is damage calculated exactly ?
for example my paladin with a dmnd sword (listed as 2d4+3) does 7 attacks for damage ranging between 375-399.

How the heck 2d4+3 times 7 range into 375-399?
What version are you playing? A quick test of the DOS version of BT1 gets around 82 damage with 8 attacks.
i'm playing amiga, but as i recall, when playing it 25 years ago on my C64, this damage output was normal. I did some testing with different weapons and, here is what i got, paladin with seven attacks:

pureblade: 111,138,145,105,122,172,131,162,140,92
hawkblade: 116,84,129,95,93,91,101,86
dmnd sword: 384,386,382,378,387,394,389
admt sword: 277,275,281,277,277,274,277,278,262
crystal sword: 234,248,211,181,234,267,254,268
kael's axe: 307,329,324,325,292,318,322,347,341

hunter with 1 attack:
blood axe: 45,52,50,57,42,48,45
sword of pak: 53,55,42,56,38
witherstaff: 39,44,42,44,46,47,42,47
soul mace: 43,38,39,45,39,40
admt dagger: 36,37,36,39,39,39,38,36
dmnd sword: 58,59,53,54,59,54,57,54,59,57

my guess is, there is a character own level multiplier.
drifting
Posts: 153
Joined: Wed Dec 07, 2011 10:21 pm

Re: Item & Monster Specs

Post by drifting »

WarrioirOfIce wrote: i'm playing amiga, but as i recall, when playing it 25 years ago on my C64, this damage output was normal. I did some testing with different weapons and, here is what i got, paladin with seven attacks:

pureblade: 111,138,145,105,122,172,131,162,140,92
hawkblade: 116,84,129,95,93,91,101,86
dmnd sword: 384,386,382,378,387,394,389
admt sword: 277,275,281,277,277,274,277,278,262
crystal sword: 234,248,211,181,234,267,254,268
kael's axe: 307,329,324,325,292,318,322,347,341

hunter with 1 attack:
blood axe: 45,52,50,57,42,48,45
sword of pak: 53,55,42,56,38
witherstaff: 39,44,42,44,46,47,42,47
soul mace: 43,38,39,45,39,40
admt dagger: 36,37,36,39,39,39,38,36
dmnd sword: 58,59,53,54,59,54,57,54,59,57

my guess is, there is a character own level multiplier.
If there was a character level multiplier the Pureblade and Hawkblade damage output would be higher. Pureblade is 2d16 and Hawkblade is 3d8. The damage you're seeing with those is in line with what would be expected.
It matches closely with a C64 playthrough (at 44:12) where a Paladin with a Pureblade is hitting 5 times for 85 damage.

What level is your hunter? Can you create a level 1 hunter, give him the dmnd sword ans see what damage he does?

My guess would be that this is a bug in the Amiga port. I don't have a way to disassemble the Amiga version and check though. :cry:
User avatar
WarrioirOfIce
Posts: 37
Joined: Sun Jan 11, 2015 11:13 pm

Re: Item & Monster Specs

Post by WarrioirOfIce »

ok i did a test:
Image
Last edited by WarrioirOfIce on Sun Feb 01, 2015 5:45 pm, edited 1 time in total.
drifting
Posts: 153
Joined: Wed Dec 07, 2011 10:21 pm

Re: Item & Monster Specs

Post by drifting »

Is that still on the Amiga version? Odd how it's only certain weapons. It's almost certainly a bug. Considering Mangar has 15+1d256 HP, doing 80ish damage at level 4 is just wrong.

Could you do a test with a level 1 paladin? I'll look into getting winuae running to get it disassembled.
User avatar
WarrioirOfIce
Posts: 37
Joined: Sun Jan 11, 2015 11:13 pm

Re: Item & Monster Specs

Post by WarrioirOfIce »

drifting wrote:Is that still on the Amiga version? Odd how it's only certain weapons. It's almost certainly a bug. Considering Mangar has 15+1d256 HP, doing 80ish damage at level 4 is just wrong.

Could you do a test with a level 1 paladin? I'll look into getting winuae running to get it disassembled.
yes, still on amiga.

i did what you ask:
i created 2 new paladins lvl 1, one elf STR 15 and one dwarf STR 18
i equipped both with a DMND SWORD

DWARF: 54,54,55,55,54,57,53,58,55,53,53,56,57
ELF: 53,54,54,50,56,51,55

then i pooled the gold to one of my character, traded their sword, removed them both from the roster and deleted them :P

btw, my paladin with 8 attacks now does 400+ each times with the DMND SWORD
Maven
Posts: 138
Joined: Sat Apr 16, 2011 9:39 pm

Re: Item & Monster Specs

Post by Maven »

It looks like it has a bit field off. It's multiplying the magic + damage by 16.

All I can say is, get yourself a Spectre Mace!
Post Reply