Easy - Pause/Resume - MMOCrawlerbots | WoW Bot Forum
Important: Please register to use the 20 minutes trial version or buy the bot!
The Bot is ready for World of Warcraft 5.4.7 Build 17956

Follow us on facebook: www.facebook.com/mmocrawlerbots


UpdateLauncher DOWNLOAD
Wow Bot: CrawlerBot Last version: click here State: EU:workingUS: working

Author Topic: Easy - Pause/Resume  (Read 759 times)

June 27, 2013, 14:22:46 PM

Computer_Man Offline

  • *
  • Join Date: Jun 2013
  • Posts: 20
  • Reputation: 16
    • View Profile
Very easy.

Just create your own 'hidden' channel.

Code: [Select]
/join "channel name"
Then hide the channel from your chat in the settings so you don't see the messages [Optional]

Use the number for the channel you created to create 2 macros.

1.
Code: [Select]
/# Pause
2.
Code: [Select]
/# Resume
Press each macro and watch as your bot pauses and resumes :)

« Last Edit: June 27, 2013, 14:39:06 PM by Computer_Man »

June 27, 2013, 16:36:46 PM
Reply #1

seedlord Offline

  • *
  • Join Date: Sep 2012
  • Posts: 693
  • Reputation: 39
    • View Profile
nice idea +rep

June 27, 2013, 16:42:35 PM
Reply #2

Computer_Man Offline

  • *
  • Join Date: Jun 2013
  • Posts: 20
  • Reputation: 16
    • View Profile
I saw people were asking for a pause button.

This concept is very I guess simple but it lets you control it ingame without having to focus the bot window.

June 27, 2013, 17:49:23 PM
Reply #3

Athermal Online

  • *
  • *
  • Join Date: Oct 2012
  • Posts: 795
  • Reputation: 239
  • German Noob
    • View Profile
maybe with only one button and GetBotState() detection? and key press detection like
Code: [Select]
IsLeftShiftKeyDown() - Returns true if the left shift key is currently depressed.
but its just an idea ;)
You like it then give +rep for it

June 27, 2013, 18:31:32 PM
Reply #4

Computer_Man Offline

  • *
  • Join Date: Jun 2013
  • Posts: 20
  • Reputation: 16
    • View Profile
Well most people use the shift key for other things like chatting while there bot is running. I often just run my bot only while I'm present at the screen.

This system also can allow remote pause and resume if say you run a bot on a second account and use your main to play. Just join the same channel and use the same macros or type it manually.

June 28, 2013, 20:10:32 PM
Reply #5

telcy Online

  • *
  • *
  • Join Date: Jun 2012
  • Posts: 1922
  • Reputation: 203
    • View Profile
we will think about it.
Cause if you would know how the core works its more then difficult.

But yes, we do our best to include it. ;)

telcy

June 28, 2013, 20:50:09 PM
Reply #6

Computer_Man Offline

  • *
  • Join Date: Jun 2013
  • Posts: 20
  • Reputation: 16
    • View Profile
Well this system works pretty well.

If anyone wants to comment on there use of my plugin it would be nice.

I just didn't see anyone come up with this idea and I like a challenge to find a way when the function is possible.


Like I mentioned before this system allows you to pause while focused ingame rather then focused on bot window which is very handy.

December 23, 2013, 05:22:07 AM
Reply #7

DRA6N Offline

  • *
  • Join Date: Dec 2013
  • Posts: 9
  • Reputation: 0
    • View Profile
Using this plugin crashes my bot..

December 23, 2013, 08:59:56 AM
Reply #8

freddy Offline

  • *
  • Join Date: Oct 2013
  • Posts: 89
  • Reputation: 5
    • View Profile
thx für das plugin, das was ich gesucht habe ^^
wenn das nun noch direkt im bot wäre anstatt durch ein plugin, wäre es top
MFG Freddy

February 18, 2014, 14:00:42 PM
Reply #9

beltic Offline

  • *
  • Join Date: Jan 2013
  • Posts: 61
  • Reputation: 0
    • View Profile
Very easy.

Just create your own 'hidden' channel.

Code: [Select]
/join "channel name"
Then hide the channel from your chat in the settings so you don't see the messages [Optional]

Use the number for the channel you created to create 2 macros.

1.
Code: [Select]
/# Pause
2.
Code: [Select]
/# Resume
Press each macro and watch as your bot pauses and resumes :)

Thanks for making this - Ill give it a go.

February 18, 2014, 16:12:18 PM
Reply #10

Hamburger Online

  • *
  • *
  • Join Date: Jun 2012
  • Posts: 805
  • Reputation: 134
    • View Profile
You also can use the hotkeymanager for that...



Code: [Select]
StartHotkeyManager()
AddHotkey("F6","on_F6_pressed")


function on_F6_pressed()
    _Log("F6!")
end

use
Code: [Select]
SetGlobalVar("VarName","Value")
and
Code: [Select]
GetGlobalVar("Varname")

for thread safety



so the plugin would look like that:


Code: [Select]
StartHotkeyManager()

AddHotkey("F5","start")
AddHotkey("F6","stop")

function start()
SetGlobalVar("StopBot","0")
end

function stop()
SetGlobalVar("StopBot","1")
end

while true do
Sleep(100)

if GetGlobalVar("StopBot") == "1" and GetBotState() == 1 then
_Log("<font color='#fcbd51'>Bot Paused</font>")
PauseBot()
end

if GetGlobalVar("StopBot") == "0" and GetBotState() == 2 then
_Log("<font color='#009411'>Bot Resumed</font>")
ContinueBot()
end

end
« Last Edit: February 18, 2014, 16:16:33 PM by Hamburger »

 

* Recent Topics

* Useful Stuff