Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Shaiya > Shaiya Private Server > Shaiya PServer Guides & Releases
You last visited: Today at 13:44

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Release] How to change stat points per level and working stat resets

Discussion on [Release] How to change stat points per level and working stat resets within the Shaiya PServer Guides & Releases forum part of the Shaiya Private Server category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jan 2011
Posts: 7
Received Thanks: 44
[Release] How to change stat points per level and working stat resets

A tutorial on how to change Ultimate Mode stat points and make stat resets give the changed stats back

Things you will need.

ollydbg 2.0 -
ps_game.exe not to be confused with game.exe can be found in server folder
SHAIYA_SERVER\SERVER\PSM_Client\Bin

Make a back up of your ps_game.exe before you edit it just incase you make a mistake.

Open ollydbg

Browse to your ps_game.exe and open it

First thing we need to do is change the stat points you get when you level up.

So right click on main window then go to then expression.



Now enter this in the expression box 0048A6A2 and click ok after it finds it you will end up with this.



Now if you look at the line with the grey covering it you will see this

ADD WORD PTR DS:[EDI+138],9

For the people who have not already guessed what the 9 is it is the 9 stat points you get every time you level up so we need to change it to what ever stat points you want but remember you need to use the Hex values when changing so 10=A 11=B 12=C 13=D and so on.

To change it double click on ADD WORD PTR DS:[EDI+138],9
You will end up with this.


.
Delete the 9 and put the hex value you want
I will be using 0D which is 13 stat points a level after you press the assemble button your main window should look like this.



Now that is done we need to make stat resets give the right amount of stat points when used.
To start you will need to search for a expression again and enter this 0048088C you should end up with this.



All you need to do is change lea ecx,[ecx*8+ecx] to IMUL ECX, ECX, 0D or what ever stat points you choose.



A big thank you to lilprohacker for the helpfull hint.

For people wanting to change the skill points here is the addresses of them and what the code looks like i will leave it up to you to change them.

These are for Ultimate Mode.

0048aaa8 - ADD WORD PTR DS:[EDI+13A],DX < This one is how many skill points per level DX = 5 and yes you can change it to a number.
00480c30 - LEA EDX,[EAX*4+EAX+5] < This one is the points you get when you use a skill reset + 5 you get at the start of the game

Have fun with your new stat points and working stat resets.

Jason aka -AJ-
Jasonbcobb is offline  
Thanks
41 Users
Old 05/12/2011, 05:33   #2
 
lilprohacker's Avatar
 
elite*gold: 20
Join Date: Jun 2009
Posts: 790
Received Thanks: 2,729
...
lilprohacker is offline  
Thanks
14 Users
Old 05/12/2011, 06:01   #3
 
elite*gold: 0
Join Date: Jan 2011
Posts: 7
Received Thanks: 44
Thank you lilprohacker
Jasonbcobb is offline  
Old 05/12/2011, 09:40   #4
 
remnikalija's Avatar
 
elite*gold: 0
Join Date: Apr 2010
Posts: 340
Received Thanks: 52
i dont understand that
0048aaa8 - ADD WORD PTR DS:[EDI+13A],DX < This one is how many skill points per level DX = 5 and yes you can change it to a number.
so DX is 5 but wich is number 7 with letters

and when i am editing i dont know where to save
remnikalija is offline  
Old 05/12/2011, 13:58   #5
 
elite*gold: 0
Join Date: Jan 2011
Posts: 7
Received Thanks: 44
just change dx to the number u want using hex values 7 in hex is 7
Jasonbcobb is offline  
Old 05/12/2011, 14:07   #6
 
remnikalija's Avatar
 
elite*gold: 0
Join Date: Apr 2010
Posts: 340
Received Thanks: 52
Quote:
Originally Posted by Jasonbcobb View Post
just change dx to the number u want using hex values 7 in hex is 7
i trayed that but cant it said No room for this command
remnikalija is offline  
Old 05/12/2011, 14:14   #7
 
remnikalija's Avatar
 
elite*gold: 0
Join Date: Apr 2010
Posts: 340
Received Thanks: 52
ok now i fixed but i dont know how to save when i exit and run again its not changed
remnikalija is offline  
Old 05/12/2011, 15:11   #8
 
elite*gold: 0
Join Date: Jan 2011
Posts: 7
Received Thanks: 44
Select the change you have made, right click then edit then click on copy to executable. a new window in olly will open. right click then Save file.
Jasonbcobb is offline  
Thanks
2 Users
Old 05/12/2011, 15:22   #9
 
[GM]Recover's Avatar
 
elite*gold: 0
Join Date: Jan 2011
Posts: 279
Received Thanks: 164
good TUT u get my thanks might come in handy sometime
[GM]Recover is offline  
Old 05/12/2011, 16:28   #10
 
remnikalija's Avatar
 
elite*gold: 0
Join Date: Apr 2010
Posts: 340
Received Thanks: 52
ok i fixed stats evry level i get 11 points and when i reset wirh stat stone i get 11 to i fixed but skills i did something wrong it disconets me from game when i use skill reset stone i made like this
ADD WORD PTR DS:[EDI+13A],DX - ADD WORD PTR DS:[EDI+13A],7
LEA EDX,[EAX*4+EAX+5] - LEA EDX,[EAX*4+EAX+7]
remnikalija is offline  
Old 05/12/2011, 19:04   #11
 
elite*gold: 0
Join Date: Jan 2011
Posts: 7
Received Thanks: 44
Quote:
Originally Posted by remnikalija View Post
ok i fixed stats evry level i get 11 points and when i reset wirh stat stone i get 11 to i fixed but skills i did something wrong it disconets me from game when i use skill reset stone i made like this
ADD WORD PTR DS:[EDI+13A],DX - ADD WORD PTR DS:[EDI+13A],7
LEA EDX,[EAX*4+EAX+5] - LEA EDX,[EAX*4+EAX+7]
The +5 is the skill points you get at the start of the game and you can't multiply eax by 7 you can only multiply eax by 2, 3, 4, 5, 8, 9 using LEA you would have to make a code cave to multiply it by 7 and using imul you can't add the +5

Here are the codes When using LEA

LEA EDX,[EAX+EAX+5] = 2 skill points for every level
LEA EDX,[EAX*2+EAX+5] = 3 skill points for every level
LEA EDX,[EAX*4+5] = 4 skill points for every level
LEA EDX,[EAX*4+EAX+5] = 5 skill points for every level
LEA EDX,[EAX*8+5] = 8 skill points for every level
LEA EDX,[EAX*8+EAX+5] = 9 skill points for every level

If anybody knows how to do it without making a code cave please feel free to post it.
Jasonbcobb is offline  
Thanks
1 User
Old 05/12/2011, 19:26   #12
 
remnikalija's Avatar
 
elite*gold: 0
Join Date: Apr 2010
Posts: 340
Received Thanks: 52
do for 7 skills points i need to do like that LEA EDX,[EAX*7+5] = 7 skill points for every level
remnikalija is offline  
Old 05/12/2011, 19:41   #13
 
castor4878's Avatar
 
elite*gold: 0
Join Date: Dec 2010
Posts: 717
Received Thanks: 3,366
Quote:
Originally Posted by remnikalija View Post
do for 7 skills points i need to do like that LEA EDX,[EAX*7+5] = 7 skill points for every level
no you can't -- Jasonbcobb just told you.

"EAX*4+EAX+5" is a composite opcode that uses shift & add, it can only manage power of 2 and optional addition

ie
1 * x => EAX
2 * x => EAX * 2 = EAX << 1
3 * x => EAX * 2 + EAX = EAX << 1 | EAX (with bit carry propagation)

and so on to build the list provided by Jasonbcobb
castor4878 is offline  
Thanks
1 User
Old 05/12/2011, 19:47   #14
 
elite*gold: 0
Join Date: Jan 2011
Posts: 7
Received Thanks: 44
You can't multiply by 7 using LEA to multiply by 7 you need to make a code cave you would have to make a jump from address 00480c30 to some empty code and the bottom and do it like this

IMUL EDX, EAX, 7
ADD EDX,5
MOV WORD PTR DS:[ESI+13A],DX

+ this will not fit where the code is now
Jasonbcobb is offline  
Old 05/13/2011, 10:32   #15
 
remnikalija's Avatar
 
elite*gold: 0
Join Date: Apr 2010
Posts: 340
Received Thanks: 52
cant make for skills to go more than 5
remnikalija is offline  
Reply


Similar Threads Similar Threads
[Request] How Change Mode Stat Points and Skill Points?
05/09/2013 - Shaiya - 49 Replies
How do i change MODE Stat Points and Skill Points per level? Ex.: Ultimate Mode: 7 Stat Points - want to change it to 14 Stat Points 4 Skill Points - want to change it to 8 Skill Points Thanks for your attention.
AP per minute $ stat points per level
06/29/2011 - Shaiya Private Server - 12 Replies
1. We are getting 1 AP point per minute does anyone know where to change that? 2. What changes would have to take place to increase the stat points for UM from 11 points to 15 points 3. or increase the lvl cap from 60 to 65 Any feedback is appreciated, thanks.
Stat and Skill resets
07/15/2010 - Shaiya Private Server - 7 Replies
I'm stuck here, everytime I use a stat or skill reset it does not give me the correct number of stats/skills back. Anyone have a solution to this?
[Small Release] Set players stat points command
07/14/2010 - CO2 PServer Guides & Releases - 5 Replies
Hey guys some people are having problems on their servers with stat points messing up. Here is a little code to add into chat.cs. These are 100% right went to the Official Conquer website and looked at all the stats "Masters" need. Goto chat.cs and search for /recall Under that void add this code. #region Set Player stats if (Cmd == "/setstats400") { if (GC.AuthInfo.Status...
How to change the stat/skill points for new modes?
06/29/2010 - Shaiya - 3 Replies
I know this was talked about somewhere else, but I just can't find the thread or I'm just possibly too lazy. But trying to find how how to change/edit the skill/stat points gained per level, thus creating the new modes and whatnot. If you can help, thanks!



All times are GMT +1. The time now is 13:45.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.