Sign in to follow this  
Followers 0
Abaddon

FileReadLine

2 posts in this topic

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.

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  
Followers 0