User Control Panel
Advertisements

HELP US, HELP YOU!

Help Improving some code

 
Post new topic   Reply to topic    Bot Depot Forum Index -> Visual Basic
View unanswered posts
Author Message
Satanstheory
Newbie
Newbie


Joined: 07 Jan 2006
Posts: 2

Reputation: 4.1Reputation: 4.1Reputation: 4.1Reputation: 4.1

PostPosted: Sun Jan 08, 2006 12:47 pm    Post subject: Help Improving some code Reply with quote

Im not really good with scripting the monsters move around alot so its hard to have it stay targets on just one if you know what i mean its a 2d game.
-----------------------------------------------------------------------------------------
Opt('Pixelcoordmode',2)
Opt('MouseCoordMode',2)
Global $MyGame="--------"

Global $Paused
HotKeySet("{Pause}","TogglePause")
HotKeySet("{ESC}","Terminate")
HotKeySet("+!d","ShowMessage")


; Define colour to match
Local $Match = 0x161616

; Loop indefinitely
While 1

Send ("{INS down}")

If Not WinActive($MyGame) Then
WinActivate($MyGame)
EndIf

Local $Coords = PixelSearch(135, 104, 450, 419, 0x161616)

If Not @Error And IsArray($Coords) Then
MouseClick('Left', $Coords[0], $Coords[1], 1, 1)
Do
Sleep(400)
Until PixelGetColor($Coords[0], $Coords[1]) <> $Match
EndIf

Local $Coords = PixelSearch(2092, 25, 2276, 562, 0x527331)
If Not @Error And IsArray($Coords) Then
MouseClick('Left', $Coords[0], $Coords[1], 2, 1)
do
Sleep(1000)
Until PixelGetColor($Coords[0], $Coords[1]) <> $Match
EndIf


Func Togglepause()
$Paused = NOT $Paused
while $Paused
sleep(100)
ToolTip(' Bot is Paused Master"Paused"',0,0)
WEnd
ToolTip("")
EndFunc


Func Terminate()
Exit
EndFunc

Func ShowMessage()
MsgBox(4096, 'm', 'Terminated'); note the comma after 4096 and quote around 'm'.
EndFunc
_____________________________________________________________
The INS is what cast the spells. But it will keep targeting things before the others are dead. So i was thinking of doing the NOT pixel but with the monsters moving around the small map it would help all that much ill upload a screenshot of the game for a example. I added the second pixel search to see when mp gets low to use a herb to replenshish the mp but i havent run out of mana for awhile cause u only get new spells like every 40 levels so lol.. But the bot is still quite a bit buggy.
----------------------------------------------------------------------------



____________________________________________________________________________

I could get the bot working for these two cause the foxes leave dead remains and i wasn't sure a way to code around that. Without it always targetting the remains instead of the creatures. The second one i was trying to target the guy with the blue vest i even add a 10 i scan for a 10 pixel shader. But it didnt seem to do anything i dont know why?

Also if i increase my resloution does it help Autoit locate the pixel's?
Back to top
alienz
Almost An Agent
Almost An Agent


Joined: 22 Mar 2004
Posts: 1436
Location: Mars
Reputation: 55.7

PostPosted: Sun Jan 08, 2006 5:26 pm    Post subject: Reply with quote

What does this have to do with bots?
_________________
Check out Botworld! A dev resource for things bot.
Downloads, articles, news, fourm and more.
http://botworld.marzopolis.com
Back to top
darkmonkey
The Merovingian
The Merovingian


Joined: 18 Apr 2004
Posts: 2557
Location: London, England
Reputation: 39.3Reputation: 39.3Reputation: 39.3Reputation: 39.3
votes: 7

PostPosted: Sun Jan 08, 2006 5:32 pm    Post subject: Reply with quote

It's a bot which basically cheats for the user, doing whatever he wants (ie, mining gold in a game, etc) when he's not around. Not an MSN bot or w/eva, but still a bot.

@OP (Original Poster): I doubt anyone will know here. Try looking in gaming forums or forums for that programming language.

_________________
~ Josh
[ Need bot hosting on a dedicated server? PM me. ]
Back to top
Chicken#001
Newbie
Newbie


Joined: 06 Mar 2004
Posts: 6

Reputation: 27.6Reputation: 27.6Reputation: 27.6
votes: 1

PostPosted: Mon May 08, 2006 5:02 am    Post subject: Reply with quote

Hm. I know some VB...

I'll see if I can dig up my old VB Code about moving images...

But then again, you must know that Visual Basic is very limiting to what you can do.

I'm just wondering about your chat, what is your code to send text over to the other player?

I remember my old Lan Chat application used WinSock.
Back to top
eric256
The Keymaker
The Keymaker


Joined: 03 May 2006
Posts: 2292
Location: Colorado
Reputation: 47Reputation: 47Reputation: 47Reputation: 47Reputation: 47

PostPosted: Mon May 08, 2006 8:22 pm    Post subject: Reply with quote

This is a forum for chatter bots...well i guess we could possible extend our reach...but that isn't the main point. I think you are in the wrong place to look for any kind of cheating bot, just doesn't realy sit well with this community.

Try somewhere else please.

_________________
Eric256
Proud previous owner and current admin of Bot-depot.com
Back to top
noir118
The Architect
The Architect


Joined: 31 Oct 2003
Posts: 152

Reputation: 33.5Reputation: 33.5Reputation: 33.5
votes: 4

PostPosted: Tue May 09, 2006 12:22 am    Post subject: Reply with quote

I did some checking for you, and it looks like this is a good place to pose your question:

http://www.xtremevbtalk.com/

Best of luck! Smile

_________________
Gadgets | Bot Coding | MMORPG | Ads Pixel | Random Messages | Gift Baskets | Used Electronics | Resident Evil | Hero NBC
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Bot Depot Forum Index -> Visual Basic All times are GMT
Page 1 of 1

 



Protected by phpBB Security phpBB-TweakS
phpBB Security Has Blocked 9 Exploit Attempts.
Antispam Captcha Mod by phpbb-security.com
Powered by phpBB © 2001, 2005 phpBB Group