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 18:31

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


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

Old   #16
elite*gold: 0
Join Date: Apr 2010
Posts: 338
Received Thanks: 52
Originally Posted by ShaiyaOmega View Post
Reading is GOOD
ye i trayed with skill point 8 but i get disconected i trayed with 9 still disconected idk why only stat points when i make it works

remnikalija is offline  
Old   #17
elite*gold: 0
Join Date: Dec 2010
Posts: 660
Received Thanks: 2,975
Originally Posted by remnikalija View Post
ye i trayed with skill point 8 but i get disconected i trayed with 9 still disconected idk why only stat points when i make it works
you can't have 8 * level + Cst this way.

the list of possible multiple compliant with LEA was right but it doesn't mean they are all valid there. and indeed expression like "r32 * n + Cst" codes Cst as a 32 bits values; "r32 * n + r32 + Cst" encode Cst as a 8-bit value.

in clear:
expression:		meaning		is coded
lea edx,[eax+eax+5]	2 lvl + 5	8D 54 00 05
lea edx,[eax+eax*2+5]	3 lvl + 5	8D 54 40 05
lea edx,[eax*4+5]	4 lvl + 5	8D 14 85 05000000
lea edx,[eax+eax*4+5]	5 lvl + 5	8D 54 80 05
lea edx,[eax*8+5]	8 lvl + 5	8D 14 C5 05000000
lea edx,[eax+eax*8+5]	9 lvl + 5	8D 54 C0 05
the original code "lea edx,[eax+eax*4+5]" needs 4 bytes; your modif certainly needs more and thus has shifted the code or corrupt it.
you can only use expressions that require 4 bytes or 3 bytes ("lea edx,[eax + eax * n]") + 1 NOP.

note that the 5 increment can be any value in 1..255, the value does not change the way expression is encoded.

so to achieve 8 * level:

lea edx,ds:[eax+eax*4+5]	3E 8D 54 80 05
mov word ptr DS:[ESI+0x13A],DX


imul	eax,eax,8		6B C0 08
add	al,5			04 05

mov	word ptr DS:[ESI+0x13A],AX (instead of DX)
in the "add al,Cst" Cst must be in 1..7 to not generate an overflow of AL register.
also note that EAX is loaded with ESI immediately after that code, so changing EAX (instead of EDX) has no bad side.

castor4878 is offline  
2 Users
Old   #18
elite*gold: 0
Join Date: Apr 2010
Posts: 34
Received Thanks: 0
Why does it work but after my server restarts it goes back to giving the original stat points?
mixand is offline  
Old   #19
elite*gold: 0
Join Date: Oct 2011
Posts: 103
Received Thanks: 62
useing this i only had one error it is in the [ ADD WORD PTR DS:[EDI+13A],DX ] . i re done it to this [ ADD WORD PTR DS:[EDI+13A],9 ] and when i hit a mob i dced i looked at the server controle pannel the game had closed i looked in the log and it said there was trouble with the ps_game.exe. in the 0048aaa8 it was unable to read in a certian section. i was wondering if some one would tell me where i am messing up at.

_-Phoenix-_ is offline  
Old   #20
elite*gold: 0
Join Date: Sep 2012
Posts: 19
Received Thanks: 0
I have no idea of OllyDB so is there any tut to it or can sb directly explain me how to find the lines I have to change for editing Hard Mode and Normal mode, this Tut is very nice but it shows just the Ultimate Mode lines and don't tell us how to find them.
drachentypi is offline  
Old   #21
elite*gold: 0
Join Date: May 2016
Posts: 3
Received Thanks: 0
What is the expression for ps_game.exe and ep 6.4?

Tenshii45 is offline  

« Previous Thread | Next Thread »

Similar Threads
[Request] How Change Mode Stat Points and Skill Points?
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...
49 Replies - Shaiya
AP per minute $ stat points per level
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...
12 Replies - Shaiya Private Server
Stat and Skill resets
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?
7 Replies - Shaiya Private Server
[Small Release] Set players stat points command
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%...
5 Replies - CO2 PServer Guides & Releases
How to change the stat/skill points for new modes?
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...
3 Replies - Shaiya

All times are GMT +2. The time now is 18:31.

Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2017 elitepvpers All Rights Reserved.