CE - Increased Skill Points per level

This forum is dedicated to platform-specific issues, discussions and tools relating to D2 modding for the Mac.

Moderator: Contrail

Post Reply

0
No votes
 
Total votes: 0

User avatar
Contrail
Retired staff
Paladin
Posts: 169
Joined: Sun Jul 13, 2003 1:37 am
Location: Austin, TX
Contact:

CE - Increased Skill Points per level

Post by Contrail » Sat Oct 20, 2007 3:20 pm

Okay, I've found the function that controls what happens when you level up on the Mac, it starts at offset 00297d40 and is structured similarly to the PC level up function, a detailed discussion of which can be found here.

Changing how many skill points a character gets per level up is pretty easy, offset 00297f8c is where it puts the number of skill points to add into r5 to be passed into the add to stat function. Currently it's just putting in the number of levels gained, which is being stored in r27. It's easy to replace this with an instruction that will multiply r27 by a specified amount and store that value in r5 instead.

Code: Select all

Original:
00297f8c:  7f65db78	mr	r5,r27

Changed:
00297f8c:  1cbb0001	mulli	r5,r27,1
That changed code will give the same number of skill points per level as is given currently, but you can just change the last byte to however many skill points per level you want the characters to have.

This change has been tested successfully by putting 5 in the last byte of the instruction instead of 1, and then taking a new Assassin out into the Blood Moor. When she levelled up, she gained the expected 5 skillpoints.

- Contrail

User avatar
novadragon
Posts: 9
Joined: Mon Sep 03, 2007 5:26 pm

Post by novadragon » Wed Jun 25, 2008 8:45 pm

Which patch is this for?

User avatar
CorniI
Dark Alliance Beta Test
Champion of the Light
Posts: 371
Joined: Wed Apr 12, 2006 9:02 am

Post by CorniI » Wed Jun 25, 2008 9:11 pm

all work by Contrail is for v1.10
Linux is like a Wigwam - NO Windows, no Gates and Apache inside

Post Reply

Return to “Mac Modding”