Matticus Posted April 14, 2008 Posted April 14, 2008 (edited) I play a browser based game that uses 3 urls in combat. Fight Get Item Leave Battle How would I make a script that would click fight until the Leave Battle url appeared, then click it, and also make it so that if the Get Item url appears, that it clicks it before clicking the Leave Battle url? Does that make sense? Edited April 14, 2008 by Matticus
someone Posted April 14, 2008 Posted April 14, 2008 Is this by any chance for ladder slasher? That odd, kinda pointless diablo 2-esque(sp?) thing? Anyway, when dealing with internet explorer, use the IE functions found in the help file. Its kinda hard to give a better example then whats in the help file without knowing the webpage, or being able to work off code you provided. While ProcessExists('Andrews bad day.exe') BlockInput(1) SoundPlay('Music.wav') SoundSetWaveVolume('Louder') WEnd
Matticus Posted April 14, 2008 Author Posted April 14, 2008 (edited) Is this by any chance for ladder slasher? That odd, kinda pointless diablo 2-esque(sp?) thing? Anyway, when dealing with internet explorer, use the IE functions found in the help file. Its kinda hard to give a better example then whats in the help file without knowing the webpage, or being able to work off code you provided.Its for a game called WaR2 (World at Ruins 2), located here, http://war2.netnexus.com/If you want a login to use so you don't have to create an account, I have a dummy one you can use to see the combat system.Do you have MSN or ICQ?Also, here is the code I currently use. It works but sometimes it bugs, and the variables are quite random. Sometimes I one hit the monster and sometimes it takes 3 hits. Sometimes an item drops, sometime it doesnt.#cs ---------------------------------------------------------------------------- AutoIt Version: 3.2.10.0 Author: myName Script Function: Template AutoIt script.#ce ----------------------------------------------------------------------------; Script Start - Add your code below hereGlobal $PausedHotKeySet("{PAUSE}", "TogglePause")HotKeySet("{ESC}", "Terminate")HotKeySet("+!d", "ShowMessage") ;Shift-Alt-d#include <IE.au3>$oIE = _IECreate ("http://war2.netnexus.com")Sleep(15000)while 1 = 1_IENavigate ($oIE, "http://war2.netnexus.com/game/index.php?action=battle")sleep (50)_IENavigate ($oIE, "http://war2.netnexus.com/game/index.php?baction=attack&type=weapon")sleep (50)_IENavigate ($oIE, "http://war2.netnexus.com/game/index.php?baction=attack&type=weapon")sleep (50)_IENavigate ($oIE, "http://war2.netnexus.com/game/index.php?baction=attack&type=weapon")sleep (50)_IENavigate ($oIE, "http://war2.netnexus.com/game/index.php?baction=bpickup&id=7")sleep (50)_IENavigate ($oIE, "http://war2.netnexus.com/game/index.php?action=flee")WendFunc TogglePause() $Paused = NOT $Paused While $Paused sleep(100) ToolTip('Script is "Paused"',0,0) WEnd ToolTip("")EndFuncFunc Terminate() Exit 0EndFuncFunc ShowMessage() MsgBox(4096,"","This is a message.")EndFunc Edited April 14, 2008 by Matticus
someone Posted April 14, 2008 Posted April 14, 2008 (edited) If I end up having a lot of free time I'll see what I can do... but I really don't have that much time. Have you gotten anywhere coding it yourself? EDIT: Oh you just edit posted your code...let me look at it.... EDIT 2 1/3rd : 5pm means I get to leave my desk to sit in traffic, so I probably won't do much with this tilll tomorrow. Edited April 14, 2008 by someone While ProcessExists('Andrews bad day.exe') BlockInput(1) SoundPlay('Music.wav') SoundSetWaveVolume('Louder') WEnd
Matticus Posted April 14, 2008 Author Posted April 14, 2008 Okay, sounds great. Any help is appreciated.
Matticus Posted April 17, 2008 Author Posted April 17, 2008 Okay, sounds great. Any help is appreciated.*bump*Still having the same problem
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now