Jump to content
Sign in to follow this  

[MOD]PC Shutdown when reaching specific resource amount

Recommended Posts

[MOD]PC Shutdown when reaching specific resource amount

hey guys its so simple

put it into functions folder or whatever you choose and include it in functions\MBR Functions.au3

and use function at end of functions\Village\Collect.au3 Function

moders also can add GUI G/E/DE adjustments for this function 

Enjoy it

; #FUNCTION# ====================================================================================================================
; Name ..........: Rshutdown
; Description ...: This function will shutdown computer when reached specific resource amout
; Syntax ........: Rshutdown()
; Parameters ....: Amout
; Return values .: None
; Author ........: cjcjd99 (2019-june-26)
; Modified ......: None
; Remarks .......: This file is part of MyBot, previously known as ClashGameBot. Copyright 2015-2019
;                  MyBot is distributed under the terms of the GNU GPL
; Related .......:
; Link ..........: https://github.com/MyBotRun/MyBot/wiki
; Example .......: No
; ===============================================================================================================================
Func Rshutdown($pc_turnoffG,$pc_turnoffE,$pc_turnoffD)

If _NumberFormat($g_aiCurrentLoot[$eLootGold]) <= $pc_turnoffG And _NumberFormat($g_aiCurrentLoot[$eLootElixir]) <= $pc_turnoffE And _NumberFormat($g_aiCurrentLoot[$eLootDarkElixir]) <= $pc_turnoffDE Then
SetLog("Shutdown amout reached,Turning PC off!", $COLOR_SUCCESS)


Edited by cjcjd99

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Create New...