Register for your free account! | Forgot your password?

Go Back   elitepvpers MMORPGs Guild Wars GW Bots
You last visited: Today at 01:59

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

Advertisement



Crashing: SetPlayerStatus($iStatus)

Discussion on Crashing: SetPlayerStatus($iStatus) within the GW Bots forum part of the Guild Wars category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Mar 2008
Posts: 54
Received Thanks: 3
Crashing: SetPlayerStatus($iStatus)

Anyone know whats the problem with the function SetPlayerStatus($iStatus)?

When i use it my game crashes. GetPlayerStatus() does not work either. Always returning 0 even when im online.

Code:
Func Trash ()
Out(GetPlayerStatus())
If GetPlayerStatus() <> 0 Then
   SetPlayerStatus(0)
   EndIf
Sleep (5000)

EndFunc
Code:
#Region Online Status
 ;~ Description: Change online status. 0 = Offline, 1 = Online, 2 = Do not disturb, 3 = Away
 Func SetPlayerStatus($iStatus)
    If (($iStatus >= 0 And $iStatus <= 3) And (GetPlayerStatus() <> $iStatus)) Then
        DllStructSetData($mChangeStatus, 2, $iStatus)

        Enqueue($mChangeStatusPtr, 8)
        Return True
    Else
        Return False
    EndIf
EndFunc   ;==>SetPlayerStatus

Func GetPlayerStatus()
       Return MemoryRead($mCurrentStatus)
 EndFunc   ;==>GetPlayerStatus
#EndRegion Online Status
lasse1993 is offline  
Old   #2
 
elite*gold: 0
Join Date: May 2014
Posts: 269
Received Thanks: 328
Quote:
Originally Posted by lasse1993 View Post
Anyone know whats the problem with the function SetPlayerStatus($iStatus)?

When i use it my game crashes. GetPlayerStatus() does not work either. Always returning 0 even when im online.

Code:
Func Trash ()
Out(GetPlayerStatus())
If GetPlayerStatus() <> 0 Then
   SetPlayerStatus(0)
   EndIf
Sleep (5000)

EndFunc
Code:
#Region Online Status
 ;~ Description: Change online status. 0 = Offline, 1 = Online, 2 = Do not disturb, 3 = Away
 Func SetPlayerStatus($iStatus)
    If (($iStatus >= 0 And $iStatus <= 3) And (GetPlayerStatus() <> $iStatus)) Then
        DllStructSetData($mChangeStatus, 2, $iStatus)

        Enqueue($mChangeStatusPtr, 8)
        Return True
    Else
        Return False
    EndIf
EndFunc   ;==>SetPlayerStatus

Func GetPlayerStatus()
       Return MemoryRead($mCurrentStatus)
 EndFunc   ;==>GetPlayerStatus
#EndRegion Online Status
It's the low-level-stuff that changed in the past:
Code:
$mCurrentStatus = MemoryRead(GetScannedAddress('ScanChangeStatusFunction', 0x6A))

SetValue('ChangeStatusFunction', '0x' & Hex(GetScannedAddress("ScanChangeStatusFunction", 0x4A), 8))

_('ScanChangeStatusFunction:')
AddPattern('8D56088D4E3050')

*inside CreateCommands()*
	_('CommandChangeStatus:')
	_('mov ecx,dword[eax+4]')
	_('call ChangeStatusFunction')
	_('ljmp CommandReturn')
DerMoench14 is offline  
Old   #3
 
elite*gold: 0
Join Date: Mar 2008
Posts: 54
Received Thanks: 3
Hmmm i replaced the old code with your code as a result i get an error

Code:
***\GWA2.au3 (333) : ==> Unable to parse line.: 
$mCurrentStatus = MemoryRead(GetScannedAddress('ScanChangeStatusFunction', 6A)) 
$mCurrentStatus = MemoryRead(GetScannedAddress('ScanChangeStatusFunction', ^ ERROR

GWA2.au3 (384) : ==> Unable to parse line.: 
SetValue('ChangeStatusFunction', '0x' & Hex(GetScannedAddress("ScanChangeStatusFunction", 4A), 8)) 
SetValue('ChangeStatusFunction', '0x' & Hex(GetScannedAddress("ScanChangeStatusFunction", ^ ERROR
lasse1993 is offline  
Old   #4
 
elite*gold: 0
Join Date: May 2014
Posts: 269
Received Thanks: 328
Yeah, because i'm dumb ^^
Changed the code, try it now.
DerMoench14 is offline  
Old   #5
 
elite*gold: 0
Join Date: Mar 2008
Posts: 54
Received Thanks: 3
No Error anymore but crashing when i try to change status.
If i check Playerstatus its still 0 all the time

You mind sharing your GWA2.au3?
lasse1993 is offline  
Old   #6
 
elite*gold: 0
Join Date: May 2014
Posts: 269
Received Thanks: 328
I don't have a public version of GWA2/gwAPI.
If you'll post your version here i'll have a look on it.
DerMoench14 is offline  
Thanks
1 User
Old   #7
 
elite*gold: 0
Join Date: Mar 2008
Posts: 54
Received Thanks: 3
Sure here you go )
Attached Files
File Type: rar GWA2.rar (27.6 KB, 5 views)
lasse1993 is offline  
Old   #8
 
elite*gold: 0
Join Date: Nov 2018
Posts: 3
Received Thanks: 1
an easy one for u..

Code:
Local $mCurrentStatus
Local $mChangeStatus = DllStructCreate('ptr;dword')

Local $mChangeStatusPtr = DllStructGetPtr($mChangeStatus)
$mCurrentStatus = MemoryRead(GetScannedAddress('ScanChangeStatusFunction', -3))

SetValue('ChangeStatusFunction', '0x' & Hex(GetScannedAddress("ScanChangeStatusFunction", 12), 8))

DllStructSetData($mChangeStatus, 1, GetValue('CommandChangeStatus'))

_('ScanChangeStatusFunction:')
	AddPattern('C390909090909090909090568BF183FE04')

#Region  Status
 ;~Change online status. 0 = Offline, 1 = Online, 2 = Do not disturb, 3 = Away
 Func SetPlayerStatus($aStatus)
    If ($aStatus >= 0 And $aStatus <= 3) And GetPlayerStatus() <> $aStatus Then
        DllStructSetData($mChangeStatus, 2, $aStatus)
        Enqueue($mChangeStatusPtr, 8)
        Return True
    Else
        Return False
    EndIf
EndFunc   ;==>SetPlayerStatus

Func GetPlayerStatus()
       Return MemoryRead($mCurrentStatus)
 EndFunc   ;==>GetPlayerStatus
#EndRegion  Status

_('CommandChangeStatus:')
	_('mov ecx,dword[eax+4]')
	_('call ChangeStatusFunction')
	_('ljmp CommandReturn')
0Μ3 is offline  
Thanks
1 User
Old   #9
 
elite*gold: 0
Join Date: Mar 2008
Posts: 54
Received Thanks: 3


I got an error again....

ChangeStatusFunction not provided :/

Edit: I'm willing to pay 250e for a working fix !
lasse1993 is offline  
Old   #10
 
elite*gold: 0
Join Date: Mar 2008
Posts: 54
Received Thanks: 3
Oh my ***. I was so hyped and hoped to have finally a fix.

But then.....

Edit:

Alright. I dont know why. Or how. But i just copied everything from hand again in an older GWA2 file out of yours. Now it works. Thanks mate!

PM me for ectos if you want )))
<3
Attached Images
File Type: png RIP.png (4.5 KB, 20 views)
lasse1993 is offline  
Reply


Similar Threads Similar Threads
About Gateway Crashing and Shard manger crashing :|
07/31/2012 - Silkroad Online - 0 Replies
hello pepole .. recently i edited something's in database .. when i tryed to open gateway server it crash's ... at 1 second it crash's .. the gateway opened once but then Shard Manger load's 100% then it crash o_o somebody help me .. i checked it and i saw it was about cerftiction files .. but i didn't play with any file :|
Crashing, crashing, and of course, more crashing.
04/01/2009 - Dekaron - 0 Replies
Hey guys whats wrong with my game, im so pissed i dont know what to do just feel hopeless lol. i keep crashing non stop is it a bug in my hacks or something not going right? i have a good computer and internet, and my friend has a bad comp and shit internet.. I keep getting crashed every few minutes, dcing dosent happen that much i even have my number of following mobs set to 15 Anyone know what can be the problem or have some advice, its like severe crashing all day..
Bot without crashing! SIMPLE!
04/20/2006 - Silkroad Online - 9 Replies
Ok guys, I have found the problems why it's d/ced always every 15-30minutes. I will post it later, when I have done it and check all codes/sources that I can make sure it's working 100% and it's clean 100% stand by! :bandit: ;)
[AO] Exploit: Crashing Bots
01/31/2006 - General Gaming Discussion - 0 Replies
You can crash bots, which is especially usefull with sided bots such as pvp bots and raid bots.. But will cause you an account ban so always use a froob account. All you have to do is spam 32kb of data to a bot several times a second for 10~ seconds and the bot will crash and go offline. This will be impossible without either entering the max ammount of text possible through a /tell or using packet sending software and overriding the flood control. e.g. ...
Crashing a Room
01/02/2006 - General Gaming Discussion - 7 Replies
Well.. By doing alt + 1 6 8.. .. I spammed it.. I miracously created a crash in the deathmatch game I was in.. Not sure if it effected the other players but my computer sure crashed



All times are GMT +2. The time now is 02:00.


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

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