Register for your free account! | Forgot your password?

You last visited: Today at 13:40

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

Advertisement



[Function] PlayerID "Load"

Discussion on [Function] PlayerID "Load" within the S4 League Hacks, Bots, Cheats & Exploits forum part of the S4 League category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Nov 2014
Posts: 741
Received Thanks: 2,648
[Function] PlayerID "Load"

Load Function :
Code:
s4client.exe+9CCEFD - jmp s4client.exe+9CCF08 // Jump over the Increase of 1
s4client.exe+9CCEFF - mov edx,[ebp-08]
s4client.exe+9CCF02 - add edx,01
s4client.exe+9CCF05 - mov [ebp-08],edx // ^ this increase the counter
s4client.exe+9CCF08 - mov ecx,[ebp-0C] // instance
s4client.exe+9CCF0B - call s4client.exe+C92190 // player counter
s4client.exe+9CCF10 - cmp [ebp-08],eax // compare ( nothing to say ) | eax = player number
s4client.exe+9CCF13 - jae s4client.exe+9CCF70 // Break the while if all player are loaded
s4client.exe+9CCF15 - mov eax,[ebp-08] // ebp -08 = counter
s4client.exe+9CCF18 - push eax // ..
s4client.exe+9CCF19 - mov ecx,[ebp-0C] // instance
s4client.exe+9CCF1C - call s4client.exe+C923F0 // call to get the player id
s4client.exe+9CCF21 - mov [ebp-30],eax // eax = player id
[...]
For people who dont understand it ->
i created a pseudo code in autoit ( BUT NO NO NO DONT CALL IT IN AUTOIT PLS )
Just for understanding.

Code:
Dim $var = 0 ; declare of variable
Dim $PlayerID = 0 ; declare of variable

While(GetPlayerNumber(GetInstance()) <= $var) ; While $var is above or equal to the player number
	$PlayerID = GetPlayerID(GetInstance(),$var) ; get the playerid and saving in $PlayerID
        $var += 1 ; Increase $var at 1
        Msgbox(0,"",$PlayerID) ; output msgbox
WEnd
^hope this will help you to understand ( yes i did it with a normal while cause the most here don't understand for while )

You' ll find more if you search in this function..

Instance :
Code:
s4client.exe+9CCED3 - mov eax,[s4client.exe+126C1BC]
s4client.exe+9CCED8 - mov [ebp-24],eax
s4client.exe+9CCEDB - mov ecx,[ebp-24]
s4client.exe+9CCEDE - mov edx,[ecx+0000012C]
s4client.exe+9CCEE4 - mov [ebp-28],edx
s4client.exe+9CCEE7 - mov eax,[ebp-28]
s4client.exe+9CCEEA - mov ecx,[eax+10]
s4client.exe+9CCEED - mov [ebp-0C],ecx
Pointer ->
s4client.exe+126C1BC
+0x12C
+0x10

= Instance

Have Fun with it.

Note : I use this function long time ago and this part in the memory get loaded if you join a room. ~ You can call it by yourself
RingleRangleRob is offline  
Thanks
16 Users
Old 01/16/2016, 13:54   #2
 
Terrat's Avatar
 
elite*gold: 130
Join Date: Apr 2012
Posts: 1,173
Received Thanks: 670
Quote:
Originally Posted by Shinzuya View Post
Thanks, I understand everything.
Why do you comment this with "I understand everything" ?
Edit: Why do you remove your comment ^^


SHHHEEEESH Autoit
Quote:
Code:
Dim $var = 0 ; declare of variable
Dim $PlayerID = 0 ; declare of variable

While(GetPlayerNumber(GetInstance()) <= $var) ; While $var is above or equal to the player number
	$var += 1 ; Increase $var at 1
	$PlayerID = GetPlayerID(GetInstance(),$var) ; get the playerid and saving in $PlayerID
        Msgbox(0,"",$PlayerID) ; output msgbox
WEnd
Terrat is offline  
Old 01/16/2016, 17:26   #3
 
elite*gold: 0
Join Date: Nov 2014
Posts: 741
Received Thanks: 2,648
#note

My bad the increase of $Var need under the GetPlayerID Function.
RingleRangleRob is offline  
Old 01/16/2016, 17:53   #4
 
elite*gold: 1
Join Date: Apr 2012
Posts: 3,001
Received Thanks: 6,198
Quote:
Originally Posted by Terrat View Post
Why do you comment this with "I understand everything" ?
Edit: Why do you remove your comment ^^


SHHHEEEESH Autoit
I didn't deleted it.
A Mod did it, dunno why. :^)
Shinzuya is offline  
Old 01/16/2016, 18:54   #5
Trade Restricted


 
정강이's Avatar
 
elite*gold: 20
Join Date: Apr 2010
Posts: 1,221
Received Thanks: 307
This will come in handy, thanks.
정강이 is offline  
Reply




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


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.