Register for your free account! | Forgot your password?

You last visited: Today at 08:29

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

Advertisement



Real time gold updating

Discussion on Real time gold updating within the SRO Coding Corner forum part of the Silkroad Online category.

Reply
 
Old   #1

 
sarkoplata's Avatar
 
elite*gold: 166
Join Date: Apr 2009
Posts: 2,341
Received Thanks: 2,661
Real time gold updating

Hi,
I want to update huge amounts of gold in runtime, without teleporting.
Imagine a scroll that gives you a huge amount of gold like 100B. Upon usage your gold will be updated without teleporting.
Whenever your gold amount changes there is a gold update packet (0x304E) coming from the server. If you send that to client your gold will be updated. But there's a problem, for some reason, even though your gold amount changes at your inventory (and you update from db as well), when you try to spend it you get "not enough gold". And for example if you drop 1 gold, your gold amount is back to the original value (not db value, before the 0x304E change value)
So I think I can't deceive client because something must happen first before the 0x304E? No pick up, no quest reward, just 0x304E coming from nowhere.
Any ideas?

Edit: I just found out that the reason you can't spend it is actually the gameserver says no, because gameserver uses the value stored at it's memory. When I editted the value with CE, it actually worked. So somehow I need to update gameserver's memory, without teleporting the character...
sarkoplata is offline  
Old 09/21/2015, 20:34   #2
 
Royalblade*'s Avatar
 
elite*gold: 85
Join Date: Feb 2014
Posts: 1,056
Received Thanks: 1,644
OOOOOR you TP the whole char without letting the client know.
Royalblade* is offline  
Thanks
3 Users
Old 09/21/2015, 20:58   #3

 
sarkoplata's Avatar
 
elite*gold: 166
Join Date: Apr 2009
Posts: 2,341
Received Thanks: 2,661
Quote:
Originally Posted by Royalblade* View Post
OOOOOR you TP the whole char without letting the client know.
This, theoretically came to my mind but I just gtfo to myself and thought I should take a break, lol
Now it made more sense when you actually said it
is there any way to tp the user to his exact location without /movetouser + /recalluser ?
sarkoplata is offline  
Old 09/22/2015, 21:00   #4
dotCom
 
Devsome's Avatar
 
elite*gold: 9842
The Black Market: 107/0/0
Join Date: Mar 2009
Posts: 16,870
Received Thanks: 4,686
When you create a stored procedure, you can run *exe files.
Why you arn't creating one to update the gameserver for this user, so he can buy that item ?

You sayed that you are able to make it visible after the scroll is used, but gs sayes "no **** you"
Devsome is offline  
Old 09/22/2015, 21:01   #5


 
​Exo's Avatar
 
elite*gold: 28
Join Date: Aug 2014
Posts: 4,096
Received Thanks: 2,653
Quote:
Originally Posted by Devsome View Post
When you create a stored procedure, you can run *exe files.
Why you arn't creating one to update the gameserver for this user, so he can buy that item ?

You sayed that you are able to make it visible after the scroll is used, but gs sayes "no **** you"
Are you suggesting overwriting the gs memory?
​Exo is offline  
Old 09/22/2015, 21:03   #6
dotCom
 
Devsome's Avatar
 
elite*gold: 9842
The Black Market: 107/0/0
Join Date: Mar 2009
Posts: 16,870
Received Thanks: 4,686
Quote:
Originally Posted by ​Exo View Post
Are you suggesting overwriting the gs memory?
Yeah why not ?
He sayed that after he edited it in CE, it worked.

Orrrrr like Akasch sayed, teleport the user to the same location with a stored procedure.
Devsome is offline  
Old 09/22/2015, 21:11   #7

 
sarkoplata's Avatar
 
elite*gold: 166
Join Date: Apr 2009
Posts: 2,341
Received Thanks: 2,661
Quote:
Originally Posted by Devsome View Post
Yeah why not ?
He sayed that after he edited it in CE, it worked.

Orrrrr like Akasch sayed, teleport the user to the same location with a stored procedure.
I just found the gold amount in gs memory with few searches. If this was client, you could find the pointer and use it, but it's only for 1 character. I have no clue if you can find a specific character's gold amount in gs memory, on runtime... Doesn't seem very possible to me Or even if it is, im too noob for that

So, overwriting gs memory would be best, but currently gonna stick on working to enable /wp for every user.
sarkoplata is offline  
Old 09/22/2015, 21:15   #8


 
​Exo's Avatar
 
elite*gold: 28
Join Date: Aug 2014
Posts: 4,096
Received Thanks: 2,653
^ but let's first find a way to get rid of this gay teleport image xD
​Exo is offline  
Old 09/22/2015, 21:20   #9

 
sarkoplata's Avatar
 
elite*gold: 166
Join Date: Apr 2009
Posts: 2,341
Received Thanks: 2,661
Quote:
Originally Posted by ​Exo View Post
^ but let's first find a way to get rid of this gay teleport image xD
overwrite gs memory = dont need to take care of anything else, also no client lag, 100% ez solution

just 1 problem: finding memory addresses from gs dynamically
sarkoplata is offline  
Old 09/22/2015, 21:25   #10
dotCom
 
Devsome's Avatar
 
elite*gold: 9842
The Black Market: 107/0/0
Join Date: Mar 2009
Posts: 16,870
Received Thanks: 4,686
Quote:
Originally Posted by sarkoplata View Post
overwrite gs memory = dont need to take care of anything else, also no client lag, 100% ez solution

just 1 problem: finding memory addresses from gs dynamically
can't you regex ?! the memory addresse. Example

player A: A5 B3 (address for gold)
player B: A4 B2 (address for gold)

Around those address is always the same (dunno but I guess)

C3 D1 [player A] DF AB
C3 D1 [player B] DF AB
Devsome is offline  
Old 09/22/2015, 21:53   #11

 
sarkoplata's Avatar
 
elite*gold: 166
Join Date: Apr 2009
Posts: 2,341
Received Thanks: 2,661
Even the gold address of a player A is not static. It changes on every teleport...
sarkoplata is offline  
Old 09/22/2015, 23:27   #12
dotCom
 
Devsome's Avatar
 
elite*gold: 9842
The Black Market: 107/0/0
Join Date: Mar 2009
Posts: 16,870
Received Thanks: 4,686
Quote:
Originally Posted by sarkoplata View Post
Even the gold address of a player A is not static. It changes on every teleport...
does the part around the gold amount is static ?
Devsome is offline  
Old 09/23/2015, 00:53   #13


 
​Exo's Avatar
 
elite*gold: 28
Join Date: Aug 2014
Posts: 4,096
Received Thanks: 2,653
Actually this needs some debugging to see how the code allocates the memory. Needs someone with some decent asm skills.
​Exo is offline  
Old 10/02/2015, 08:19   #14

 
sarkoplata's Avatar
 
elite*gold: 166
Join Date: Apr 2009
Posts: 2,341
Received Thanks: 2,661
Bumperino
sarkoplata is offline  
Old 10/02/2015, 09:33   #15
dotCom
 
Devsome's Avatar
 
elite*gold: 9842
The Black Market: 107/0/0
Join Date: Mar 2009
Posts: 16,870
Received Thanks: 4,686
Quote:
Originally Posted by sarkoplata View Post
Even the gold address of a player A is not static. It changes on every teleport...
Quote:
Originally Posted by Devsome View Post
does the part around the gold amount is static ?
Bumperino.
Yu no answered
Devsome is offline  
Reply


Similar Threads Similar Threads
Kbot again updating!whats new this time ??
05/31/2012 - DarkOrbit - 20 Replies
whats new this time i dont know but im bored with this updates:mad::mad::mad:
[WTS] Star Wars the old republic cdkey & Game time card for wow gold or real money ^^
04/14/2012 - World of Warcraft Trading - 15 Replies
the best price for Star Wars the old republic !! 80k wow gold for star wars cdkey or 25 eur for star wars cdkey you can enjoy the game early ! Just accept the real money from moneybooker
L2walker OOG and Real client at same time?
08/09/2010 - Lineage 2 - 1 Replies
How does that work? 2x oog and real client at same time? any increase in getting detected? or someting similar, or it dosent matter as long as you start them in right order or? its not to play with 1 live and 2 bots behind, its for the 2 bots to do their job and the realclient for trading in town meanwhile Thanks
Boss map in real time
06/14/2008 - EO Exploits, Hacks, Tools & Macros - 1 Replies
Idea for a programer! In EO when you make team there are doots on map whit your teammates and leader! OK, hard part! Can someone do a script/hack/... that show u the bosses in real time?(like EO is showing u teammates); Sorry for the post! Sorry if this post does not have meaninig!



All times are GMT +1. The time now is 08:30.


Powered by vBulletin®
Copyright ©2000 - 2026, 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 ©2026 elitepvpers All Rights Reserved.