Jump to content

Recommended Posts

Posted

Hey guys, I want my script to do a function when it reaches the last line of the file.

Please ignore the fact that this is a d2 channel bot.

$currentchan = $currentchan + 1

While 1

_MouseClickPlus( "Diablo II", "left", 95, 473)

Sleep(1000)

_MouseClickPlus( "Diablo II", "left", 580, 483)

Sleep(3000)

ControlSend("Diablo II", "", "", "{BS}")

Sleep(500)

$channel = FileReadLine("spamchannels.ini", $currentchan)

ControlSend("Diablo II", "", "", $channel)

Sleep(500)

ControlSend("Diablo II", "", "", "{ENTER}")

Sleep($delay)

ControlSend("Diablo II", "", "", $spam)

Sleep(500)

ControlSend("Diablo II", "", "", "{ENTER}")

WEnd

Note: That is only part of the script but I think thats all you should need. Thanks for your help.

  • 1 month later...

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
×
×
  • Create New...