Jump to content

Javascript for loop, to click 2 buttons


xNeox

Recommended Posts

I am making a mmorpg, and am addind a auto attack button that i want to attack 15 times at 1.75 second intervals then stop, i already have it set up to when you click auto attack it waits the 1.75 second but it doesnt click the next button here is the code

 

 

function fightDisable()

{

$('#Fight').attr("disabled","disabled");

$('#Fight').blur();

$("#Fight").val("-=Wait=-");

  $('#Fight').oneTime(1750, function() {

    $('#Fight').removeAttr("disabled");

        $("#Fight").val("Fight again!");

  });

Link to comment
https://forums.phpfreaks.com/topic/212632-javascript-for-loop-to-click-2-buttons/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.