Sign in to follow this  
Followers 0
Bigglesw0rth

Brainfart: If then confusion

10 posts in this topic

So I have a simple array and function and an ifthen routine.

Dim $Warrior[2] = ['1153', '559']

Trainer($Warrior[0], $Warrior[1], 1)

Func Trainer($arm1, $arm2, $Citynumber)

    If $arm2 = 558 or 662 or 766 Then
        MouseClick("Left", 1241, 744, 1, 10)
        TrayTip('What', 'Alt Troops' & $arm2, 3)
    else
        MouseClick("Left", 1241, 530, 1, 10)
        TrayTip('What', 'NORM', 3)
    EndIf
endfunc

When I run this, my traytip tells me that the value of $arm2 is 559. This is correct, however, ir order for the traytip to even trigger, the value needed to be either 558, 662 or 766. What gives? Why isnt the 'else' values triggering instead?

Share this post


Link to post
Share on other sites



i can tell you whats wrong but i cant fix it. its the or statements. that is what is causing it. also read the form rules.


[spoiler]My UDFs: Login UDF[/spoiler]

Share this post


Link to post
Share on other sites

What rule have I broken here?

Share this post


Link to post
Share on other sites

*sigh*

Automating games or game servers

Dim $Warrior[2] = ['1153', '559']

Trainer($Warrior[0], $Warrior[1], 1)

Func Trainer($arm1, $arm2, $Citynumber)

If $arm2 = 558 or 662 or 766 Then

MouseClick("Left", 1241, 744, 1, 10)

TrayTip('What', 'Alt Troops' & $arm2, 3)

else

MouseClick("Left", 1241, 530, 1, 10)

TrayTip('What', 'NORM', 3)

EndIf

endfunc

i don't know if you've broken any rule yet, just saying be careful of what you post here

[spoiler]My UDFs: Login UDF[/spoiler]

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

Not automating any game.

But thanks.

If anyone has some actual insight as to whats causing this, instead of unfounded accusation, id appreciate the help.

Edited by Bigglesw0rth

Share this post


Link to post
Share on other sites

Your code evaluates to this:

If $arm2 = 558 or TRUE or TRUE Then

Code syntax is wrong, but compiles successfully.

Share this post


Link to post
Share on other sites

Not automating any game.

You could have easily created a demo that didn't use tags like "warrior" and "trainer", but you didn't.

Try to get the concept. There is nothing in AutoIt license against creating yourself a game bot. One of the main developers of AutoIt started out with it by creating game bots for himself.

But the topic will not be supported or discussed on this web site. Period. It's a hard rule for this web site. Go find a gamer web site and ask there, or get AutoIt support here with no reference to games at all.

:huh2:


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

You could have easily created a demo that didn't use tags like "warrior" and "trainer", but you didn't.

Try to get the concept. There is nothing in AutoIt license against creating yourself a game bot. One of the main developers of AutoIt started out with it by creating game bots for himself.

But the topic will not be supported or discussed on this web site. Period. It's a hard rule for this web site. Go find a gamer web site and ask there, or get AutoIt support here with no reference to games at all.

:huh2:

Well said.

Thread locked.

Share this post


Link to post
Share on other sites

After closing this I see the next report is from the OP on JohnOne's post. Here's the thing, his post is right: This thread stinks of game bot. Your code mentions Warriors, trainers, troops. Pretty odd variable names. I also note that you say the accusation is "unfounded" (though in this case it is not). You also offer absolutely nothing to counter it.

Long story short, there is plenty of evidence and it is all stacked against you. At this point I do not care what you are trying to automate so don't PM me about it. And don't open reports unless you are prepared to actually prove something is false.

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