Sign in to follow this  
Followers 0
Matticus

How do I...

6 posts in this topic

#1 ·  Posted (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 by Matticus

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

#3 ·  Posted (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 here

Global $Paused

HotKeySet("{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")

Wend

Func TogglePause()

$Paused = NOT $Paused

While $Paused

sleep(100)

ToolTip('Script is "Paused"',0,0)

WEnd

ToolTip("")

EndFunc

Func Terminate()

Exit 0

EndFunc

Func ShowMessage()

MsgBox(4096,"","This is a message.")

EndFunc

Edited by Matticus

Share this post


Link to post
Share on other sites

#4 ·  Posted (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 by someone

While ProcessExists('Andrews bad day.exe')
	BlockInput(1)
	SoundPlay('Music.wav')
	SoundSetWaveVolume('Louder')
WEnd

Share this post


Link to post
Share on other sites

Okay, sounds great. Any help is appreciated.

Share this post


Link to post
Share on other sites

Okay, sounds great. Any help is appreciated.

*bump*

Still having the same problem

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0