 |
Cheat Engine The Official Site of Cheat Engine
|
| View previous topic :: View next topic |
| Author |
Message |
AceXwilD Cheater
Reputation: 0
Joined: 15 Feb 2007 Posts: 48
|
Posted: Tue Sep 04, 2007 4:06 pm Post subject: Need some help with this script... |
|
|
I DID NOT MAKE THIS. ONLY FIXING IT SO IT WORKS FOR ME.
Well its a bot script for a game called NosTale... But anyways I need some help.
| Quote: |
Func Rest()
Sleep(500)
Send("t")
While PixelGetColor(240, 52) = 4079166
Sleep(500)
WEnd
Sleep(250)
Send("t")
Sleep(500)
EndFunc |
See the "0x6FEE12" I need that to be a normal number like this.
| Quote: | Func Rest()
Sleep(500)
Send("t")
While PixelGetColor(345, 107) = 4079166
Sleep(500)
WEnd
Sleep(250)
Send("t")
Sleep(500)
EndFunc |
Im using AutoIt v3 to get my mouse cords/ color... Is that a way that I can change it so that it gives me the colors in the second format not the 0x?????? format.? Thanks Or if you can just convert it and tell me the 7 digit color thatnks. [/quote]
_________________
|
|
| Back to top |
|
 |
atlantis Advanced Cheater
Reputation: 0
Joined: 16 Jun 2007 Posts: 69
|
Posted: Tue Sep 04, 2007 4:27 pm Post subject: |
|
|
maybe :7335442
or you can go to http://www.actool.net/ and download AC Tool Object Mapper
I used it many times when I wanted to get pixel.. you just take screenchot
and paste...
|
|
| Back to top |
|
 |
Labyrnth Moderator
Reputation: 10
Joined: 28 Nov 2006 Posts: 6301
|
Posted: Tue Sep 04, 2007 5:30 pm Post subject: |
|
|
Yo AceXwilD you need to open up the help file for autoit mate,
This will tell you the color in hex and decimal in that location.
But also you can use window info tool and it will tell you both.
Eg:
>>>>>>>>>>> Pixel Color Under Mouse <<<<<<<<<<<
RGB: Hex: 0xFFFFAA Dec: 16777130
| Code: | $var = PixelGetColor( 345, 107 )
MsgBox(0,"The decmial color is", $var)
MsgBox(0,"The hex color is", Hex($var, 6))
|
The number you see in that code is dec being used.
0x6FEE12 is a bright lime green color, and 4079166 is a blue.
Use a combination of paint shop pro or some paint program that shows you the colors and autoit window info tool.
I can help with this code if you would share a little more of it then just that snipit, so i can see what the function is being used for.
Anyways: 0x6FEE12 is 7335442
|
|
| Back to top |
|
 |
AceXwilD Cheater
Reputation: 0
Joined: 15 Feb 2007 Posts: 48
|
Posted: Tue Sep 04, 2007 5:51 pm Post subject: |
|
|
Here is what my tool looks like... I don't see the different color options your talking about. Also if I click help. It just says who made it O.O
http://img267.imageshack.us/img267/7232/inoqt8.jpg
Here is my script. Do you think its somthing different then my colors? The bot is suppose to tartget attack (space bar), Pick up drops (r), and Heal by sitting (t).
| Quote: | HotKeySet("{Home}","start")
Hotkeyset("{END}","stop")
Hotkeyset("{PAUSE}","Pause")
Global $Paused
Global $Wait
if Not WinExists("Nostale") then
MsgBox(64, "NosBot", "You must be running
Nostale")
Exit
EndIf
MsgBox(64, "NosBot", "To Start the Bot Press the
Home Key, and to stop press the End Key, and to
pause Press the Pause key")
Wait()
Func start()
WinActivate ( 'Nostale' )
Sleep(500)
while 1
If PixelGetColor(149, 53) = 0xFDCCD3 Then
Rest("t")
Else
Target()
EndIf
WEnd
EndFunc
Func Target()
Send("{Space}")
Sleep(500)
if PixelGetColor(776, 66) = 0X082AF0 Then
Send("{Space}")
Fight()
EndIf
EndFunc
Func Fight()
ToolTip("Nosbot: Fighting Monster ", 2, 0)
While PixelGetColor(776, 66) = 0X082AF0
Sleep(500)
WEnd
ToolTip("Nosbot: Grabbing Item ", 2, 0)
Sleep(700)
Send("r")
Sleep(700)
Send("r")
Sleep(500)
EndFunc
Func Rest()
Sleep(500)
Send("t")
While PixelGetColor(240, 52) = 0X6FEE12
Sleep(500)
WEnd
Sleep(250)
Send("t")
Sleep(500)
EndFunc
Func Pause()
$Paused = NOT $Paused
While $Paused
ToolTip("NosBot: Paused ", 2, 0)
Sleep (400)
WEnd
EndFunc
Func Wait()
$Wait = NOT $Wait
While $Wait
ToolTip("NosBot: Press the HOME key to start
", 2, 0)
Sleep (400)
WEnd
EndFunc
Func stop()
ToolTip("NosBot: Shutting Down ", 2, 0)
MsgBox(64, "NosBot", "Thanks for using
NosBot, Made By AceXwilD.")
Exit
EndFunc |
_________________
|
|
| Back to top |
|
 |
Labyrnth Moderator
Reputation: 10
Joined: 28 Nov 2006 Posts: 6301
|
Posted: Tue Sep 04, 2007 5:54 pm Post subject: |
|
|
Where the hell did you get that from? Im using autoit-v3.2.2.0 Thats the newest update you have.
But anyways all you need is the color in hex anyways.
There is all kinds of erors in this script, You should start from scratch instead of using this man,
here is one example: Rest("t") <--- wtf is that ? I think it is a left over piece of the old script you took it from.
Also you stop function wont work either and msg box's are messed up too.
|
|
| Back to top |
|
 |
|
|
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
|
|