Sign in to follow this  
Followers 0
Chino

Guys help me pls With IE script

4 posts in this topic

#1 ·  Posted (edited)

Hey Guys

I need a script that looks for profiles under Level 200 and attack that profile. I have make this script

It opens the game and go to the Hitlist page.

On the Hitlist page are 30 Profiles but if i let it search for level 200 then will my script attack random.

How can i fix this.

#include <ie.au3>
#include <string.au3>
#include <math.au3>
#include <_XMLDomWrapper.au3>
#include <array.au3>


Opt("WinWaitDelay", 100)
Opt("WinTitleMatchMode", 4)
Opt("WinDetectHiddenText", 1)
Opt("MouseCoordMode", 0)

HotKeySet("{ESC}", "Terminate")
HotKeySet("{ESC}", "Terminate")
Global $begin = TimerInit()
Global $restore = False
Global $clicks = 0
Global $delay = 300

    ConsoleWrite("Initializing... " & @CRLF)
    $oIE = _IECreate("about:blank", 0, 1)
    $oIE = _IEAttach("about:blank", "url")
    _IELoadWait($oIE)
    _IENavigate($oIE, "http://im.storm8.com/home.php?bonusCash=0&eventPoints=0&serverTime=1334941271&formNonce=fe5a5fa3f15e0cf1a1982fa47c139e268e74c045&h=b0d0edab5661baa5dc8382f30ba409936b35502c#&setTab0Badge=&changeApplicationBadge=0&setTab4Badge=")
    _IELoadWait($oIE)
    _IENavigate($oIE, "http://im.storm8.com/hitlist.php")


$body = _IEBodyReadHTML ($oIE)

Local $i = 0
Do

If StringInStr($body, "200") Then
_IELinkClickByText ($oIE, "Attack")

EndIf

    $i = $i + 1
Until $i = 40
Edited by Melba23
Added code tags

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

The red text is the Level info of the profiles

The green text is the attack button

How can i link this 2 ?

Player 1 on Hitlist
============================================================================
<div class="fightItem">


<table class="fightTable">


<tbody>


<tr>


<td class="fightMobster">


<div>


<a href="/profile.php?puid=20028018&formNonce=4df0dfc35410316de3d2d9aa8cdd1cbee0ada8c4&h=1a222ca1403fd55efcf44f85a9a8e297e17975dc">Kill��M&#8203;e</a>
</div>

<div>[color=#ff0000]Level 29 Operative [/color]</div>
</td>

<td class="fightSp"></td>

<td class="fightMobSize">


<span class="cash">


<span style="white-space: nowrap;">$8,500</span>
</span>
</td>

<td class="fightSpLg"></td>

<td class="fightAction">




[color=#008000]<a onclick="return fsb190462613();" href="/hitlist.php?tab=fight.php&action=fight&hitlistId=190462613&formNonce=4df0dfc35410316de3d2d9aa8cdd1cbee0ada8c4&h=284e4fe4946e6fb8af3a662f4583454eebc8bd23">[/color]


[color=#008000]<div class="fightActionInner">[/color]


[color=#008000]<div class="fightActionInnerInner">Attack</div>[/color]
</div>
</a>
</td>

<td class="fightSp"></td>
</tr>
</tbody>
</table>
</div>
============================================================================
Player 2 on Hitlist
============================================================================

<div class="fightItem">


<table class="fightTable">


<tbody>


<tr>


<td class="fightMobster">


<div>


<a href="/profile.php?puid=6583375&formNonce=4df0dfc35410316de3d2d9aa8cdd1cbee0ada8c4&h=71019ac8663428d6c8d8b3eaacc3fa847d9b27c4">Carpan&#8203;zoni</a>
</div>

<div>[color=#ff0000]Level 46 Tycoon [/color]</div>
</td>

<td class="fightSp"></td>

<td class="fightMobSize">


<span class="cash">


<span style="white-space: nowrap;">$12,345</span>
</span>
</td>

<td class="fightSpLg"></td>

<td class="fightAction">




[color=#008000]<a onclick="return fsb190470644();" href="/hitlist.php?tab=fight.php&action=fight&hitlistId=190470644&formNonce=4df0dfc35410316de3d2d9aa8cdd1cbee0ada8c4&h=284e4fe4946e6fb8af3a662f4583454eebc8bd23">[/color]


[color=#008000]<div class="fightActionInner">[/color]


[color=#008000]<div class="fightActionInnerInner">Attack</div>[/color]
</div>
</a>
</td>

<td class="fightSp"></td>
</tr>
</tbody>
</table>
</div>
============================================================================
And this is 25 Profiles in hitlist
============================================================================


<table>

<div style="height: 3px;"></div>

<div class="sectionBarVMinor"></div>

<div style="height: 3px;"></div>

<div class="fightItem">

<div style="height: 3px;"></div>

<div class="sectionBarVMinor"></div>

<div style="height: 3px;"></div>

<div class="fightItem">

<div style="height: 3px;"></div>

<div class="sectionBarVMinor"></div>

<div style="height: 3px;"></div>

<div class="fightItem">

<div style="height: 3px;"></div>

<div class="sectionBarVMinor"></div>

<div style="height: 3px;"></div>

<div class="fightItem">

<div style="height: 3px;"></div>

<div class="sectionBarVMinor"></div>

<div style="height: 3px;"></div>

<div class="fightItem">

<div style="height: 3px;"></div>

<div class="sectionBarVMinor"></div>

<div style="height: 3px;"></div>

<div class="fightItem">

<div style="height: 3px;"></div>

<div class="sectionBarVMinor"></div>

<div style="height: 3px;"></div>

<div class="fightItem">

<div style="height: 3px;"></div>

<div class="sectionBarVMinor"></div>

<div style="height: 3px;"></div>

<div class="fightItem">

<div style="height: 3px;"></div>

<div class="sectionBarVMinor"></div>

<div style="height: 3px;"></div>

<div class="fightItem">

<div style="height: 3px;"></div>

<div class="sectionBarVMinor"></div>

<div style="height: 3px;"></div>

<div class="fightItem">

<div style="height: 3px;"></div>

<div class="sectionBarVMinor"></div>

<div style="height: 3px;"></div>

<div class="fightItem">

<div style="height: 3px;"></div>

<div class="sectionBarVMinor"></div>

<div style="height: 3px;"></div>

<div class="fightItem">

<div style="height: 3px;"></div>

<div class="sectionBarVMinor"></div>

<div style="height: 3px;"></div>

<div class="fightItem">

<div style="height: 3px;"></div>

<div class="sectionBarVMinor"></div>

<div style="height: 3px;"></div>

<div class="fightItem">

<div style="height: 3px;"></div>

<div class="sectionBarVMinor"></div>

<div style="height: 3px;"></div>

<div class="fightItem">

<div style="height: 3px;"></div>

<div class="sectionBarVMinor"></div>

<div style="height: 3px;"></div>

<div class="fightItem">

<div style="height: 3px;"></div>

<div class="sectionBarVMinor"></div>

<div style="height: 3px;"></div>

<div class="fightItem">

<div style="height: 3px;"></div>

<div class="sectionBarVMinor"></div>

<div style="height: 3px;"></div>

<div class="fightItem">

<div style="height: 3px;"></div>

<div class="sectionBarVMinor"></div>

<div style="height: 3px;"></div>

<div class="fightItem">

<div style="height: 3px;"></div>

<div class="sectionBarVMinor"></div>

<div style="height: 3px;"></div>

<div class="fightItem">

<div style="height: 3px;"></div>

<div class="sectionBarVMinor"></div>

<div style="height: 3px;"></div>

<div class="fightItem">

<div style="height: 3px;"></div>

<div class="sectionBarVMinor"></div>

<div style="height: 3px;"></div>

<div class="fightItem">

<div style="height: 3px;"></div>

<div class="sectionBarVMinor"></div>

<div style="height: 3px;"></div>

<div class="fightItem">

<div style="height: 3px;"></div>

<div class="sectionBarVMinor"></div>

<div style="height: 3px;"></div>

<div class="fightItem">

<div style="height: 3px;"></div>

<div class="sectionBarVMinor"></div>

<div style="height: 3px;"></div>
<div class="fightItem"></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></table>
Edited by Melba23
Added code tags

Share this post


Link to post
Share on other sites

Chino,

Welcome to the AutoIt forum. :)

Unfortunately you appear to have missed the Forum Rules on your way in. Please read them now - particularly the bit about not discussing game automation - and then you will understand why you will get no help and this thread will now be locked. ;)

See you soon with a legitimate question I hope. :D

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0