06-13-2003, 03:16 AM
Hammerman,
Thanks for the information, but please keep in mind that many of the posters even here have never seen the contents of the MPQ file to know what you are referring to at times. You may occasionally need to explain some fo the basics of what you are referencing.
The base_id that is referenced here is the first ID for that class from the skills.txt file (see below). The resulting id is the specific id from skills.txt. For those not familiar with some of the math functions the rnd[5] will give a range fo 0 to 4.
id = skill_adder + (base_id + 4 * skill_adder) - 5 + rnd[5]
Simplifing this some we would get:
ID = base_id + 5*skill_adder -5 +(0 to 4)
Looking at an example of a level 20 character looking at the sorceress staves in a shop. The ilvl of the items will be 25, which will make the skill_adder 3. As a bottom end adjustment you would get a -2 to this for skill_adder=1 then and the lowest possible ID would be
ID = 36 (first sor skill in list) +(5*1) -5 +0(looking for the lowest ID)
= 36 (Fire Bolt)
and the highest would be if you had +1 to the skill_adder making it 4. Then the highest skill possible to be seen would be
ID = 36+(5*4) -5 +4(for the highest ID)
=55 (Glacial Spike)
Questions for Hammerman.
You were not very clear, but I take it that a single item will only get one modifier of +1, 0, -1, -2 that is applied to all of the skills that are placed on the item? Or is that factor re-randomised for each skill on the item.
What did the code do in the case of selecting the same skill a second (or third time)? Reroll the skill or add with a cap of +3? I suspect reroll.
Thanks for the information, but please keep in mind that many of the posters even here have never seen the contents of the MPQ file to know what you are referring to at times. You may occasionally need to explain some fo the basics of what you are referencing.
Quote:If the item is low quality, then the skill id as of now is capped at 4. Then the final id is chosen from the formula below. skill_adder is the skill id so far, base_id is the starting id for the character class.
id = skill_adder + (base_id + 4 * skill_adder) - 5 + rnd[5]
If this ends as 73 (Poison Dagger), it will do the rnd[5] again. And finally, the total skill bonus is chosen. It will do rnd[100], and add to that ilvl / 2 if from imbue.
The base_id that is referenced here is the first ID for that class from the skills.txt file (see below). The resulting id is the specific id from skills.txt. For those not familiar with some of the math functions the rnd[5] will give a range fo 0 to 4.
id = skill_adder + (base_id + 4 * skill_adder) - 5 + rnd[5]
Simplifing this some we would get:
ID = base_id + 5*skill_adder -5 +(0 to 4)
Looking at an example of a level 20 character looking at the sorceress staves in a shop. The ilvl of the items will be 25, which will make the skill_adder 3. As a bottom end adjustment you would get a -2 to this for skill_adder=1 then and the lowest possible ID would be
ID = 36 (first sor skill in list) +(5*1) -5 +0(looking for the lowest ID)
= 36 (Fire Bolt)
and the highest would be if you had +1 to the skill_adder making it 4. Then the highest skill possible to be seen would be
ID = 36+(5*4) -5 +4(for the highest ID)
=55 (Glacial Spike)
Questions for Hammerman.
You were not very clear, but I take it that a single item will only get one modifier of +1, 0, -1, -2 that is applied to all of the skills that are placed on the item? Or is that factor re-randomised for each skill on the item.
What did the code do in the case of selecting the same skill a second (or third time)? Reroll the skill or add with a cap of +3? I suspect reroll.
Code:
Id charclass skill
6 ama Magic Arrow
7 ama Fire Arrow
8 ama Inner Sight
9 ama Critical Strike
10 ama Jab
11 ama Cold Arrow
12 ama Multiple Shot
13 ama Dodge
14 ama Power Strike
15 ama Poison Javelin
16 ama Exploding Arrow
17 ama Slow Missiles
18 ama Avoid
19 ama Impale
20 ama Lightning Bolt
21 ama Ice Arrow
22 ama Guided Arrow
23 ama Penetrate
24 ama Charged Strike
25 ama Plague Javelin
26 ama Strafe
27 ama Immolation Arrow
28 ama Dopplezon
29 ama Evade
30 ama Fend
31 ama Freezing Arrow
32 ama Valkyrie
33 ama Pierce
34 ama Lightning Strike
35 ama Lightning Fury
36 sor Fire Bolt
37 sor Warmth
38 sor Charged Bolt
39 sor Ice Bolt
40 sor Frozen Armor
41 sor Inferno
42 sor Static Field
43 sor Telekinesis
44 sor Frost Nova
45 sor Ice Blast
46 sor Blaze
47 sor Fire Ball
48 sor Nova
49 sor Lightning
50 sor Shiver Armor
51 sor Fire Wall
52 sor Enchant
53 sor Chain Lightning
54 sor Teleport
55 sor Glacial Spike
56 sor Meteor
57 sor Thunder Storm
58 sor Energy Shield
59 sor Blizzard
60 sor Chilling Armor
61 sor Fire Mastery
62 sor Hydra
63 sor Lightning Mastery
64 sor Frozen Orb
65 sor Cold Mastery
66 nec Amplify Damage
67 nec Teeth
68 nec Bone Armor
69 nec Skeleton Mastery
70 nec Raise Skeleton
71 nec Dim Vision
72 nec Weaken
73 nec Poison Dagger
74 nec Corpse Explosion
75 nec Clay Golem
76 nec Iron Maiden
77 nec Terror
78 nec Bone Wall
79 nec Golem Mastery
80 nec Raise Skeletal Mage
81 nec Confuse
82 nec Life Tap
83 nec Poison Explosion
84 nec Bone Spear
85 nec BloodGolem
86 nec Attract
87 nec Decrepify
88 nec Bone Prison
89 nec Summon Resist
90 nec IronGolem
91 nec Lower Resist
92 nec Poison Nova
93 nec Bone Spirit
94 nec FireGolem
95 nec Revive
96 pal Sacrifice
97 pal Smite
98 pal Might
99 pal Prayer
100 pal Resist Fire
101 pal Holy Bolt
102 pal Holy Fire
103 pal Thorns
104 pal Defiance
105 pal Resist Cold
106 pal Zeal
107 pal Charge
108 pal Blessed Aim
109 pal Cleansing
110 pal Resist Lightning
111 pal Vengeance
112 pal Blessed Hammer
113 pal Concentration
114 pal Holy Freeze
115 pal Vigor
116 pal Conversion
117 pal Holy Shield
118 pal Holy Shock
119 pal Sanctuary
120 pal Meditation
121 pal Fist of the Heavens
122 pal Fanaticism
123 pal Conviction
124 pal Redemption
125 pal Salvation
126 bar Bash
127 bar Sword Mastery
128 bar Axe Mastery
129 bar Mace Mastery
130 bar Howl
131 bar Find Potion
132 bar Leap
133 bar Double Swing
134 bar Pole Arm Mastery
135 bar Throwing Mastery
136 bar Spear Mastery
137 bar Taunt
138 bar Shout
139 bar Stun
140 bar Double Throw
141 bar Increased Stamina
142 bar Find Item
143 bar Leap Attack
144 bar Concentrate
145 bar Iron Skin
146 bar Battle Cry
147 bar Frenzy
148 bar Increased Speed
149 bar Battle Orders
150 bar Grim Ward
151 bar Whirlwind
152 bar Berserk
153 bar Natural Resistance
154 bar War Cry
155 bar Battle Command
221 dru Raven
222 dru Plague Poppy
223 dru Wearwolf
224 dru Shape Shifting
225 dru Firestorm
226 dru Oak Sage
227 dru Summon Spirit Wolf
228 dru Wearbear
229 dru Molten Boulder
230 dru Arctic Blast
231 dru Cycle of Life
232 dru Feral Rage
233 dru Maul
234 dru Eruption
235 dru Cyclone Armor
236 dru Heart of Wolverine
237 dru Summon Fenris
238 dru Rabies
239 dru Fire Claws
240 dru Twister
241 dru Vines
242 dru Hunger
243 dru Shock Wave
244 dru Volcano
245 dru Tornado
246 dru Spirit of Barbs
247 dru Summon Grizzly
248 dru Fury
249 dru Armageddon
250 dru Hurricane
251 ass Fire Trauma
252 ass Claw Mastery
253 ass Psychic Hammer
254 ass Tiger Strike
255 ass Dragon Talon
256 ass Shock Field
257 ass Blade Sentinel
258 ass Quickness
259 ass Fists of Fire
260 ass Dragon Claw
261 ass Charged Bolt Sentry
262 ass Wake of Fire Sentry
263 ass Weapon Block
264 ass Cloak of Shadows
265 ass Cobra Strike
266 ass Blade Fury
267 ass Fade
268 ass Shadow Warrior
269 ass Claws of Thunder
270 ass Dragon Tail
271 ass Lightning Sentry
272 ass Inferno Sentry
273 ass Mind Blast
274 ass Blades of Ice
275 ass Dragon Flight
276 ass Death Sentry
277 ass Blade Shield
278 ass Venom
279 ass Shadow Master
280 ass Royal Strike