Bigglesw0rth Posted June 11, 2011 Share Posted June 11, 2011 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? Link to comment Share on other sites More sharing options...
JohnOne Posted June 11, 2011 Share Posted June 11, 2011 Stinks of game bot. 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...
pieeater Posted June 11, 2011 Share Posted June 11, 2011 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] Link to comment Share on other sites More sharing options...
Bigglesw0rth Posted June 11, 2011 Author Share Posted June 11, 2011 What rule have I broken here? Link to comment Share on other sites More sharing options...
pieeater Posted June 11, 2011 Share Posted June 11, 2011 *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] Link to comment Share on other sites More sharing options...
Bigglesw0rth Posted June 11, 2011 Author Share Posted June 11, 2011 (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 June 11, 2011 by Bigglesw0rth Link to comment Share on other sites More sharing options...
Javik Posted June 11, 2011 Share Posted June 11, 2011 Your code evaluates to this: If $arm2 = 558 or TRUE or TRUE Then Code syntax is wrong, but compiles successfully. Link to comment Share on other sites More sharing options...
PsaltyDS Posted June 11, 2011 Share Posted June 11, 2011 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. 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 Link to comment Share on other sites More sharing options...
Valik Posted June 11, 2011 Share Posted June 11, 2011 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.Well said.Thread locked. Link to comment Share on other sites More sharing options...
Valik Posted June 11, 2011 Share Posted June 11, 2011 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. Link to comment Share on other sites More sharing options...
Recommended Posts