Jump to content
Sign in to follow this  
MATISZON

assistance operators.

Recommended Posts

MATISZON

I use the interpreter.

This is the code page. It is variable in the code because it truncates (StringRight)

<table>

    <tr class='bottomLine'>
        <td style='width: 150px;'>Ksywa</td>

        <td class='center' style='width: 100px;'>Poziom</td>
        <td class='right' style='width: 100px;'>Zysk</td>
        <td style='width: 200px'></td>
    </tr>
        <form method="POST">
    <input type="hidden" name="rescue" value="71709">
    <tr>
        <td><a href='http://prisonwars.pl/userprofile/71709/'><span class='gold'>creative58</span></a></td>

        <td class='center'>36</td>
        <td class='right'>$138 494</td>
        <td class='center'>
            <input type="image" src='http://prisonwars.pl/gfx/forms/payandout.png'>
        </td>
    </tr>
    </form> 
        <form method="POST">

    <input type="hidden" name="rescue" value="71735">
    <tr>
        <td><a href='http://prisonwars.pl/userprofile/71735/'><span class='gold'>Rafal_git</span></a></td>
        <td class='center'>3</td>
        <td class='right'>$462</td>
        <td class='center'>
            <input type="image" src='http://prisonwars.pl/gfx/forms/payandout.png'>

        </td>
    </tr>
    </form> 
        <form method="POST">
    <input type="hidden" name="rescue" value="57102">
    <tr>
        <td><a href='http://prisonwars.pl/userprofile/57102/'><span class='gold'>Suqre</span></a></td>
        <td class='center'>27</td>

        <td class='right'>$41 457</td>
        <td class='center'>
            <input type="image" src='http://prisonwars.pl/gfx/forms/payandout.png'>
        </td>
    </tr>
    </form> 
        <form method="POST">
    <input type="hidden" name="rescue" value="29334">
    <tr>

        <td><a href='http://prisonwars.pl/userprofile/29334/'><span class='gold'>Krzyzak777</span></a></td>
        <td class='center'>27</td>
        <td class='right'>$78 744</td>
        <td class='center'>
            <input type="image" src='http://prisonwars.pl/gfx/forms/payandout.png'>
        </td>
    </tr>

    </form> 
        <form method="POST">
    <input type="hidden" name="rescue" value="80797">
    <tr>
        <td><a href='http://prisonwars.pl/userprofile/80797/'><span class='gold'>plichta</span></a></td>
        <td class='center'>4</td>
        <td class='right'>$0</td>
        <td class='center'>

            <input type="image" src='http://prisonwars.pl/gfx/forms/payandout.png'>
        </td>
    </tr>
    </form> 
        <form method="POST">
    <input type="hidden" name="rescue" value="74364">
    <tr>
        <td><a href='http://prisonwars.pl/userprofile/74364/'><span class='gold'>hetmanzmc</span></a></td>
        <td class='center'>21</td>

        <td class='right'>$16 922</td>
        <td class='center'>
            <input type="image" src='http://prisonwars.pl/gfx/forms/payandout.png'>
        </td>
    </tr>
    </form> 
        <form method="POST">
    <input type="hidden" name="rescue" value="66781">
    <tr>

        <td><a href='http://prisonwars.pl/userprofile/66781/'><span class='gold'>koliempik</span></a></td>
        <td class='center'>22</td>
        <td class='right'>$111 165</td>
        <td class='center'>
            <input type="image" src='http://prisonwars.pl/gfx/forms/payandout.png'>
        </td>
    </tr>

    </form> 
        <form method="POST">
    <input type="hidden" name="rescue" value="65818">
    <tr>
        <td><a href='http://prisonwars.pl/userprofile/65818/'><span class='gold'>tequilaa</span></a></td>
        <td class='center'>24</td>
        <td class='right'>$114 469</td>
        <td class='center'>

            <input type="image" src='http://prisonwars.pl/gfx/forms/payandout.png'>
        </td>
    </tr>
    </form> 
        <form method="POST">
    <input type="hidden" name="rescue" value="81689">
    <tr>
        <td><a href='http://prisonwars.pl/userprofile/81689/'><span class='gold'>Benio21</span></a></td>
        <td class='center'>5</td>

        <td class='right'>$917</td>
        <td class='center'>
            <input type="image" src='http://prisonwars.pl/gfx/forms/payandout.png'>
        </td>
    </tr>
    </form> 
        <form method="POST">
    <input type="hidden" name="rescue" value="33194">
    <tr>

        <td><a href='http://prisonwars.pl/userprofile/33194/'><span class='gold'>Shooter89</span></a></td>
        <td class='center'>17</td>
        <td class='right'>$42 081</td>
        <td class='center'>
            <input type="image" src='http://prisonwars.pl/gfx/forms/payandout.png'>
        </td>
    </tr>

    </form> 
        <form method="POST">
    <input type="hidden" name="rescue" value="36309">
    <tr>
        <td><a href='http://prisonwars.pl/userprofile/36309/'><span class='gold'>smiroff</span></a></td>
        <td class='center'>27</td>
        <td class='right'>$2 017</td>
        <td class='center'>

            <input type="image" src='http://prisonwars.pl/gfx/forms/payandout.png'>
        </td>
    </tr>
    </form> 
        <form method="POST">
    <input type="hidden" name="rescue" value="38476">
    <tr>
        <td><a href='http://prisonwars.pl/userprofile/38476/'><span class='gold'>aro654321</span></a></td>
        <td class='center'>27</td>

        <td class='right'>$33 000</td>
        <td class='center'>
            <input type="image" src='http://prisonwars.pl/gfx/forms/payandout.png'>
        </td>
    </tr>
    </form> 
        <form method="POST">
    <input type="hidden" name="rescue" value="40979">
    <tr>

        <td><a href='http://prisonwars.pl/userprofile/40979/'><span class='gold'>szoko2</span></a></td>
        <td class='center'>14</td>
        <td class='right'>$0</td>
        <td class='center'>
            <input type="image" src='http://prisonwars.pl/gfx/forms/payandout.png'>
        </td>
    </tr>

    </form> 
        <form method="POST">
    <input type="hidden" name="rescue" value="41520">
    <tr>
        <td><a href='http://prisonwars.pl/userprofile/41520/'><span class='gold'>zielun195</span></a></td>
        <td class='center'>18</td>
        <td class='right'>$0</td>
        <td class='center'>

            <input type="image" src='http://prisonwars.pl/gfx/forms/payandout.png'>
        </td>
    </tr>
    </form> 
        <form method="POST">
    <input type="hidden" name="rescue" value="43900">
    <tr>
        <td><a href='http://prisonwars.pl/userprofile/43900/'><span class='gold'>tomson123</span></a></td>
        <td class='center'>20</td>

        <td class='right'>$39 621</td>
        <td class='center'>
            <input type="image" src='http://prisonwars.pl/gfx/forms/payandout.png'>
        </td>
    </tr>
    </form> 
        <form method="POST">
    <input type="hidden" name="rescue" value="47337">
    <tr>

        <td><a href='http://prisonwars.pl/userprofile/47337/'><span class='gold'>WERA_KOKS</span></a></td>
        <td class='center'>18</td>
        <td class='right'>$62 710</td>
        <td class='center'>
            <input type="image" src='http://prisonwars.pl/gfx/forms/payandout.png'>
        </td>
    </tr>

    </form> 
        <form method="POST">
    <input type="hidden" name="rescue" value="49280">
    <tr>
        <td><a href='http://prisonwars.pl/userprofile/49280/'><span class='gold'>maruszka4</span></a></td>
        <td class='center'>21</td>
        <td class='right'>$13 301</td>
        <td class='center'>

            <input type="image" src='http://prisonwars.pl/gfx/forms/payandout.png'>
        </td>
    </tr>
    </form> 
        <form method="POST">
    <input type="hidden" name="rescue" value="52622">
    <tr>
        <td><a href='http://prisonwars.pl/userprofile/52622/'><span class='gold'>bobeldsk</span></a></td>
        <td class='center'>23</td>

        <td class='right'>$39 763</td>
        <td class='center'>
            <input type="image" src='http://prisonwars.pl/gfx/forms/payandout.png'>
        </td>
    </tr>
    </form> 
        <form method="POST">
    <input type="hidden" name="rescue" value="53146">
    <tr>

        <td><a href='http://prisonwars.pl/userprofile/53146/'><span class='gold'>Tapion</span></a></td>
        <td class='center'>13</td>
        <td class='right'>$36 223</td>
        <td class='center'>
            <input type="image" src='http://prisonwars.pl/gfx/forms/payandout.png'>
        </td>
    </tr>

    </form> 
        <form method="POST">
    <input type="hidden" name="rescue" value="53152">
    <tr>
        <td><a href='http://prisonwars.pl/userprofile/53152/'><span class='gold'>kochniutek</span></a></td>
        <td class='center'>13</td>
        <td class='right'>$1 600</td>
        <td class='center'>

            <input type="image" src='http://prisonwars.pl/gfx/forms/payandout.png'>
        </td>
    </tr>
    </form> 
        <form method="POST">
    <input type="hidden" name="rescue" value="56544">
    <tr>
        <td><a href='http://prisonwars.pl/userprofile/56544/'><span class='gold'>mietek125</span></a></td>
        <td class='center'>22</td>

        <td class='right'>$39 734</td>
        <td class='center'>
            <input type="image" src='http://prisonwars.pl/gfx/forms/payandout.png'>
        </td>
    </tr>
    </form> 
        <form method="POST">
    <input type="hidden" name="rescue" value="62429">
    <tr>

        <td><a href='http://prisonwars.pl/userprofile/62429/'><span class='gold'>Robczo</span></a></td>
        <td class='center'>14</td>
        <td class='right'>$4 547</td>
        <td class='center'>
            <input type="image" src='http://prisonwars.pl/gfx/forms/payandout.png'>
        </td>
    </tr>

    </form> 
        <form method="POST">
    <input type="hidden" name="rescue" value="62496">
    <tr>
        <td><a href='http://prisonwars.pl/userprofile/62496/'><span class='gold'>Alberto5g</span></a></td>
        <td class='center'>16</td>
        <td class='right'>$0</td>
        <td class='center'>

            <input type="image" src='http://prisonwars.pl/gfx/forms/payandout.png'>
        </td>
    </tr>
    </form> 
        <form method="POST">
    <input type="hidden" name="rescue" value="65318">
    <tr>
        <td><a href='http://prisonwars.pl/userprofile/65318/'><span class='gold'>sabat232</span></a></td>
        <td class='center'>14</td>

        <td class='right'>$13 207</td>
        <td class='center'>
            <input type="image" src='http://prisonwars.pl/gfx/forms/payandout.png'>
        </td>
    </tr>
    </form> 
        <form method="POST">
    <input type="hidden" name="rescue" value="76521">
    <tr>

        <td><a href='http://prisonwars.pl/userprofile/76521/'><span class='gold'>Morgrad</span></a></td>
        <td class='center'>9</td>
        <td class='right'>$8 820</td>
        <td class='center'>
            <input type="image" src='http://prisonwars.pl/gfx/forms/payandout.png'>
        </td>
    </tr>

    </form> 
        <tr class='bottomLine'>
        <td colspan='4'></td>
    </tr>
    <tr>
        <td colspan='4' class='center'><table style='width: 100%;'><tr><td style='width: 20px;'></td><td style='width: 20px;'></td><td class='center'><a href='http://prisonwars.pl/separatecell/1/'><span class='gold'>1</span></a> | <a href='http://prisonwars.pl/separatecell/2/'>2</a> | <a href='http://prisonwars.pl/separatecell/3/'>3</a> | <a href='http://prisonwars.pl/separatecell/4/'>4</a> | <a href='http://prisonwars.pl/separatecell/5/'>5</a>  ... <a href='http://prisonwars.pl/separatecell/43/'>43</a></td><td style='width: 20px;'><a href='http://prisonwars.pl/separatecell/2/'><img src='http://prisonwars.pl/gfx/icons/right.png'></a></td><td style='width: 20px;'><a href='http://prisonwars.pl/separatecell/43/'><img src='http://prisonwars.pl/gfx/icons/rightEnd.png'></a></td></tr></table></td>

    </tr>
</table>

I did not show the whole code because it is very long

The problem is that it displays the traytip sometimes even if the value in the msgbox is less than $szmalyy

global $kasa[5000]

hospital("999999")
Func hospital($szmalyy)
    If $szpital = 1 Then
    ;szpital()
    $idkasa = 0
    $form = 5
    $hospital = 1
    _IENavigate($I, "http://prisonwars.pl/hospital/" & $hospital & "/")
    While 1
        $f = FileOpen($tmp, 2)
        $html = _IEBodyReadHTML($I)
        $var = StringRight($html, 15880)
        FileWrite($f, $var)
        FileClose($f)
        $f = FileOpen($tmp, 0)
        $kasa[$idkasa] = FileReadLine($f, $idkasa)
        $s = StringInStr($kasa[$idkasa], "right")
        If $s <> 0 Then
            $form += 1
            $bodyrep = StringReplace($kasa[$idkasa], " ", "")
            $p = StringReplace($bodyrep, "$", "")
            $kasaarray = StringRegExp($p, '<TDclass=right(?i)>(.*?)</(?i)TD>', 3)
            If @error = 0 Then
                MsgBox(0, "", $kasaarray[0])
                If $szmalyy < $kasaarray[0] Then
                    ;$formm = _IETagNameGetCollection($I, "form", $form)
                    ;szpital()
                    TrayTip("Bot", "Wykupuje ze szpitala.", 1)
                    ;_IEFormSubmit($formm)
                    ExitLoop
                EndIf
            EndIf
        EndIf
        $idkasa += 1
        If $form = 30 Then
            $hospital += 1
            $form = 5
            $idkasa = 0
            _IENavigate($I, "http://prisonwars.pl/hospital/" & $hospital & "/")
        EndIf
        If $hospital = 20 Then ExitLoop
    WEnd
    EndIf
EndFunc   ;==>hospital
Edited by MATISZON

[size="3"][font="Arial Black"]I'm from the Polish do not as well know how English[/font][/size]

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  

×