Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Second scan gives me 0 everytime, any1 help?
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
51l3n7
Newbie cheater
Reputation: 0

Joined: 29 Jan 2008
Posts: 14

PostPosted: Tue Jan 29, 2008 1:53 am    Post subject: Second scan gives me 0 everytime, any1 help? Reply with quote

Hey I just started to use a bot for Fiesta Online. It requires me to find the values of my characters Hp and Mp. So i go onto the game and I open CE attach it, scan my characters amount of health it shows thousands. THen when I take a potion or get damaged to make my health differant I put in the new amount and click second scan and it gives me 0 everytime. I tried restarting everything using differant amounts of health and nothing works, every second scan it gives me 0. Any1 know why?
Back to top
View user's profile Send private message
benlue
Moderator
Reputation: 0

Joined: 09 Oct 2006
Posts: 2142

PostPosted: Tue Jan 29, 2008 4:17 am    Post subject: Reply with quote

Try "Decreased Value" or "Increased Value" as scan type dependsing on whether you get hit or take a potion.
Back to top
View user's profile Send private message
Frost_ONE
Advanced Cheater
Reputation: 0

Joined: 03 Jan 2008
Posts: 97
Location: Banished to the point of no return

PostPosted: Tue Jan 29, 2008 7:07 am    Post subject: Reply with quote

Is it a browser game ?
in browser flash games you should multyply the value by 8

_________________
prince of persia cheat tables

Dark Byte wrote:
vista is just a sandbox you play in with little toys
Back to top
View user's profile Send private message
h4ckz0r's twisted soul
Grandmaster Cheater Supreme
Reputation: 1

Joined: 24 Oct 2007
Posts: 1181
Location: Paradise city, where the grass is green and the girls are somwhat pretty~

PostPosted: Tue Jan 29, 2008 8:54 am    Post subject: Reply with quote

As Frost said, in Flash games the values should always be multiplied by 8
[Right click and it might have some shockwave flash options]

If not then try different value types, Value Between, Unknown initial etc.

_________________


Back to top
View user's profile Send private message
Labyrnth
Moderator
Reputation: 10

Joined: 28 Nov 2006
Posts: 6301

PostPosted: Tue Jan 29, 2008 9:07 am    Post subject: Reply with quote

cheatz0r wrote:
As Frost said, in Flash games the values should always be multiplied by 8
[Right click and it might have some shockwave flash options]

If not then try different value types, Value Between, Unknown initial etc.


Only if your using flash 9.
Flash 8 or 9 = 4 byte/*8
Flash 7 = doubles/exact value.
Back to top
View user's profile Send private message
h4ckz0r's twisted soul
Grandmaster Cheater Supreme
Reputation: 1

Joined: 24 Oct 2007
Posts: 1181
Location: Paradise city, where the grass is green and the girls are somwhat pretty~

PostPosted: Tue Jan 29, 2008 9:11 am    Post subject: Reply with quote

Labyrnth wrote:
cheatz0r wrote:
As Frost said, in Flash games the values should always be multiplied by 8
[Right click and it might have some shockwave flash options]

If not then try different value types, Value Between, Unknown initial etc.


Only if your using flash 9.
Flash 8 or 9 = 4 byte/*8
Flash 7 = doubles/exact value.

Interesting, thanks for that useful bit of info

_________________


Back to top
View user's profile Send private message
51l3n7
Newbie cheater
Reputation: 0

Joined: 29 Jan 2008
Posts: 14

PostPosted: Tue Jan 29, 2008 10:49 am    Post subject: not a flash game Reply with quote

Unfortunately its not a flash based game, its a downloadable full browser game. I tried using decreased value when I lose hp or increased value when i gain but and basicly every other type of scan but every single 1 is giving me nothing the first scan is always fine and gives me it but the second scan is always giving me 0 addresses
Back to top
View user's profile Send private message
h4ckz0r's twisted soul
Grandmaster Cheater Supreme
Reputation: 1

Joined: 24 Oct 2007
Posts: 1181
Location: Paradise city, where the grass is green and the girls are somwhat pretty~

PostPosted: Tue Jan 29, 2008 10:58 am    Post subject: Reply with quote

Odd.
Try float + double value types

_________________


Back to top
View user's profile Send private message
51l3n7
Newbie cheater
Reputation: 0

Joined: 29 Jan 2008
Posts: 14

PostPosted: Tue Jan 29, 2008 11:15 am    Post subject: nothing =( Reply with quote

When I try float and do my first scan it greatly decreases the amount of addresses to about 22 for my first scan then I try second scan and once again, =D shows nothing and double doesn't even show any addresses for the first scan unfortunately
Back to top
View user's profile Send private message
Labyrnth
Moderator
Reputation: 10

Joined: 28 Nov 2006
Posts: 6301

PostPosted: Tue Jan 29, 2008 11:21 am    Post subject: Reply with quote

Your right, it isnt a flash game. But also it is not a browser based game.
It is a piece software/ a installed game. You have to download it and install it.
-----------------------------------------------------------------------------------------
The address's needed to update the bot are in 4 bytes.
I would know, I wrote the bot.

Code:
Global $lastaction = 0
Global $mem_lastaction = "0074CFEF" ;Address of HP
Global $lowhealth = 30  ;value before heal is needed by House Mushroom
Global $lastaction2 = 0
Global $mem_lastaction2 = "0074CFF3" ;Address of SP
Global $lowmana = 10  ;value before heal is needed
Back to top
View user's profile Send private message
51l3n7
Newbie cheater
Reputation: 0

Joined: 29 Jan 2008
Posts: 14

PostPosted: Tue Jan 29, 2008 11:39 am    Post subject: really? Reply with quote

You made fiestabot.lua? anyways do u think this could b my problem when i start the bot it takes scroll 1 then scroll 2 then moves the mouse a bit and it says oh dear looks like somebody got you killed and shows a buncha errors do u think updating it is the answer?

--------------------------------

scratch that I got it to work and its attacking everything but its not taking pots or resting Confused
Back to top
View user's profile Send private message
Labyrnth
Moderator
Reputation: 10

Joined: 28 Nov 2006
Posts: 6301

PostPosted: Tue Jan 29, 2008 12:39 pm    Post subject: Re: really? Reply with quote

51l3n7 wrote:
You made fiestabot.lua? anyways do u think this could b my problem when i start the bot it takes scroll 1 then scroll 2 then moves the mouse a bit and it says oh dear looks like somebody got you killed and shows a buncha errors do u think updating it is the answer?

--------------------------------

scratch that I got it to work and its attacking everything but its not taking pots or resting Confused


No i dont think thats the one at all.
The only one released on this site was mine, and edited/kept updated for a while by Asbestos.
Back to top
View user's profile Send private message
51l3n7
Newbie cheater
Reputation: 0

Joined: 29 Jan 2008
Posts: 14

PostPosted: Tue Jan 29, 2008 1:46 pm    Post subject: Link Reply with quote

Could u link me yours then?

Thanks
Back to top
View user's profile Send private message
Labyrnth
Moderator
Reputation: 10

Joined: 28 Nov 2006
Posts: 6301

PostPosted: Tue Jan 29, 2008 3:08 pm    Post subject: Reply with quote

You need Autoit to compile the source.
Your address needs to be updated as well.
Code:
Opt("WinWaitDelay", 100)
Opt("WinTitleMatchMode", 4)
Opt("WinDetectHiddenText", 1)
Opt("PixelCoordMode", 2)
Opt("MouseCoordMode", 2)
WinWait("FiestaOnline", "")
If Not WinActive("FiestaOnline", "") Then WinActivate("FiestaOnline", "")
WinWaitActive("FiestaOnline", "")

$title_b = "FiestaOnline"
$Process = WinGetProcess($title_b, "") ;Open process

HotKeySet("{END}", "Terminate")

$Pickup = 0
Global $lastaction = 0
Global $mem_lastaction = "0074CFEF" ;Address of HP
Global $lowhealth = 30  ;value before heal is needed by House Mushroom
Global $lastaction2 = 0
Global $mem_lastaction2 = "0074CFF3" ;Address of SP
Global $lowmana = 10  ;value before heal is needed

While $Pickup = 0
   Send("{2 10}") ;use auto pickup ;~ Send("{2 20}") ;Presses the 2 key 20 times for picking up items
   Call("HealFindMonster")
WEnd

;~ auto fight function will not call it
Func FIGHT()
   Sleep(100)
   Send("{1 4}") ;use to auto fight pressing 1, 3 times
   Sleep(10000)
   Send("{2 4}")
   Call("HealFindMonster")
EndFunc   ;==>FIGHT

Func HealFindMonster()
   
   Readlast();Reads the memory address from $mem_lastaction = "0074CFRF"
   ;Decomment the msg box line only for testing what the memory address fro HP reads.
;~    MsgBox(0,"value of $lastaction is ",$lastaction)
   If $lastaction < $lowhealth Then
;~       Send("{0}")
      Send("{2 5}")
      Send("{HOME DOWN}")
      Sleep(50)
      Send("{HOME UP}")
      Sleep(40000)
      Send("{HOME DOWN}")
      Sleep(50)
      Send("{HOME UP}")
   ElseIf $lastaction2 < $lowmana Then
      Send("{2 5}")
      Send("{HOME DOWN}")
      Sleep(50)
      Send("{HOME UP}")
      Sleep(40000)
      Send("{HOME DOWN}")
      Sleep(50)
      Send("{HOME UP}")
   Else
      Send("{2 4}")
      Sleep(50)
      $Color = PixelGetColor(496, 35) ;Returns Decimal of the color. 0XF70000
;~ UNComment out MsgBox only for testing
;~    MsgBox(0, "Checking the Color", "Hexadecimal of Color " & Hex($Color, 6) & " Decimal of Color: " & $Color)
      If $Color = 16187392 Then ;The Decimal of 0XF70000
         $Color = 0
         Call("FIGHT")
      Else
;~ Pickup Left over Items before Mushroom House
         Send("{2 4}")
         MouseMove(500, 400, 1)
         MouseDown("right")
         MouseMove(502, 400)
         MouseUp("right")
         Sleep(50)
         Send("{TAB}") ;Press TAB
      EndIf
   EndIf
EndFunc   ;==>HealFindMonster

Func Terminate()
   $MB_MsgBoxButtons = 5 ;What buttons that show in messagebox 5 = Retry and Cancel
   $MB_Cancel = 2 ;What button is pressed to exit the script 2 = Cancel, If Cancel buton is pushed the script stops.
   If MsgBox($MB_MsgBoxButtons, $title_b, "Retry or Cancel the bot?") == $MB_Cancel Then
      Exit
   EndIf
EndFunc   ;==>Terminate

;~ Do not worry about anything below this line it is all that is needed already to read memory.
#region read/write memory
Func _MemoryOpen($iv_Pid, $iv_DesiredAccess = 0x1F0FFF, $if_InheritHandle = 1)

   If Not ProcessExists($iv_Pid) Then
      MsgBox(0, "value of lastaction", "error3")
      SetError(1)
      Return 0
   EndIf

   Local $ah_Handle[2] = [DllOpen('kernel32.dll') ]
;~    Local $ah_Handle = DllOpen('kernel32.dll')    -the brackets are because an array is being declared, no brackets neccessary if it was a standalone variable
;~ msgbox(0,"value of ah_Handle[2] is", $ah_Handle[1])
   If @error Then
      MsgBox(0, "value of lastaction", "error4")
      SetError(2)
      Return 0
   EndIf
;~ msgbox(0,"value of ah_Handle[0] is", $ah_Handle[0]&"inherithandle"&$if_InheritHandle&"and the iv_pid"&$iv_Pid)
   Local $av_OpenProcess = DllCall($ah_Handle[0], 'int', 'OpenProcess', 'int', $iv_DesiredAccess, 'int', $if_InheritHandle, 'int', $iv_Pid)
;~    Local $av_OpenProcess = DllCall('kernel32.dll', 'int', 'OpenProcess', 'int', 0x1F0FFF(all access), 'int', 1, 'int', 4084)
;~ msgbox(0,"value of $av_openprocess is", $av_OpenProcess[0]) ;1820
;~ msgbox(0,"value of iv_pid is", $iv_Pid) ; 4084
   If @error Then
      MsgBox(0, "value of lastaction", "error5")
      DllClose($ah_Handle[0])
      SetError(3)
      Return 0
   EndIf

   $ah_Handle[1] = $av_OpenProcess[0]
;~ msgbox(0,"value of ah_Handle is", $ah_Handle)
   Return $ah_Handle

EndFunc   ;==>_MemoryOpen


Func _MemoryRead($ah_Handle, $iv_Address, $sv_Type = 'dword')

   If Not IsArray($ah_Handle) Then
      SetError(1)
      MsgBox(0, "value of lastaction", "error1")
      Return 0
   EndIf

   Local $v_Buffer = DllStructCreate($sv_Type)

   If @error Then
      MsgBox(0, "value of lastaction", "error2")
      SetError(@error + 1)
      Return 0
   EndIf

;~    DllCall($ah_Handle[0], 'int', 'ReadProcessMemory', 'int', $iv_Address, 'int', $ah_Handle[1], 'int', DllStructGetSize($v_Buffer), 'int', '', 'ptr', DllStructGetPtr($v_Buffer))
   DllCall($ah_Handle[0], 'int', 'ReadProcessMemory', 'int', $ah_Handle[1], 'int', $iv_Address, 'ptr', DllStructGetPtr($v_Buffer), 'int', DllStructGetSize($v_Buffer), 'int', '')
;~ msgbox(0,"value of ah_Handle[0],[1] is", $ah_Handle[0]&", "&$ah_Handle[1]);1,1788
   If Not @error Then
      Local $v_Value = DllStructGetData($v_Buffer, 1)
      Return $v_Value
   Else
      SetError(6)
      Return 0
   EndIf

EndFunc   ;==>_MemoryRead


Func _MemoryWrite($ah_Handle, $iv_Address, $v_Data, $sv_Type = 'dword')

   If Not IsArray($ah_Handle) Then
      SetError(1)
      Return 0
   EndIf

   Local $v_Buffer = DllStructCreate($sv_Type)

   If @error Then
      SetError(@error + 1)
      Return 0
   Else
      DllStructSetData($v_Buffer, 1, $v_Data)
      If @error Then
         SetError(6)
         Return 0
      EndIf
   EndIf

   DllCall($ah_Handle[0], 'int', 'WriteProcessMemory', 'int', $ah_Handle[1], 'int', $iv_Address, 'ptr', DllStructGetPtr($v_Buffer), 'int', DllStructGetSize($v_Buffer), 'int', '')

   If Not @error Then
      Return 1
   Else
      SetError(7)
      Return 0
   EndIf

EndFunc   ;==>_MemoryWrite


Func _MemoryClose($ah_Handle)

   If Not IsArray($ah_Handle) Then
      SetError(1)
      Return 0
   EndIf

   DllCall($ah_Handle[0], 'int', 'CloseHandle', 'int', $ah_Handle[1])
   If Not @error Then
      DllClose($ah_Handle[0])
      Return 1
   Else
      DllClose($ah_Handle[0])
      SetError(2)
      Return 0
   EndIf

EndFunc   ;==>_MemoryClose

Func Readlast()
   $M_open = _MemoryOpen($Process)
   $lastaction = _MemoryRead($M_open, "0x" & $mem_lastaction)
   $lastaction2 = _MemoryRead($M_open, "0x" & $mem_lastaction2)
   _MemoryClose($M_open)
EndFunc   ;==>Readlast
Back to top
View user's profile Send private message
51l3n7
Newbie cheater
Reputation: 0

Joined: 29 Jan 2008
Posts: 14

PostPosted: Tue Jan 29, 2008 9:11 pm    Post subject: thanks Reply with quote

Thanks alot man +reppp also could u tell mehow to get the new hp/sp codes for fiesta using what etc or at least tell me wer i can get them? =P would be greatly appreciated
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine All times are GMT - 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites