Chino Posted April 25, 2012 Share Posted April 25, 2012 (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. expandcollapse popup#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 April 25, 2012 by Melba23 Added code tags Link to comment Share on other sites More sharing options...
Chino Posted April 25, 2012 Author Share Posted April 25, 2012 (edited) The red text is the Level info of the profilesThe green text is the attack buttonHow can i link this 2 ?expandcollapse popupPlayer 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​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​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 April 25, 2012 by Melba23 Added code tags Link to comment Share on other sites More sharing options...
JohnOne Posted April 25, 2012 Share Posted April 25, 2012 Use the Jedi Force AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted April 25, 2012 Moderators Share Posted April 25, 2012 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. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Recommended Posts