Snippet to pause VGCraftBot on defined skill ups

Eris

Active Member
I added this snippet in at line 842 of vgcraftbot.iss

It will pause the script when your crafting skills raise to the defined percentage. So for instance, if at level 10, you wanted your Forging skill to be 30% of total, it would notify you and pause the script when it reached 72, so you could lock the skill.

The text in red is to set the percentages.

Code:
	if ( ${Text.Find["Your skill in "]} )
	{
	  ;Skill up
	  Text:Set[${Text.Right[${Math.Calc[${Text.Length}-14]}]}]
	  Text:Set[${Text.Left[${Math.Calc[${Text.Find["has"]}-2]}]}]
	  if ( ${Text.Equal[Sculpting]} || ${Text.Equal[Shaping]} || ${Text.Equal[Forging]} || ${Text.Equal[Smelting]} || ${Text.Equal[Stitching]} || ${Text.Equal[Material Processing]} )
	  {
	     echo Text Match
	     if ( ${Me.Stat[crafting,${Text}]} >= ${Math.Calc[${Me.CraftingLevel}*24*[COLOR="Red"]0.30[/COLOR]-1].Round} )
	     {
	        PauseBot
	        MessageBox -ok "${Text} has reached max for level"
	     }
	   }
	   elseif ( ${Text.Equal[Shaping Tools]} || ${Text.Equal[Shaping Utilities]} || ${Text.Equal[Sculpting Tools]} || ${Text.Equal[Scuplting Utilities]} || ${Text.Equal[Smelting Tools]} || ${Text.Equal[Smelting Utilities]} || ${Text.Equal[Forging Tools]} || ${Text.Equal[Forging Utilities]} || ${Text.Equal[Material Processing Tools]} || ${Text.Equal[Material Processing Utilities]} || ${Text.Equal[Stitching Tools]} || ${Text.Equal[Stitching Utilities]} )
	   {
	      if ( ${Me.Stat[crafting,${Text}]} >= ${Math.Calc[${Me.CraftingLevel}*24*[COLOR="Red"]0.35[/COLOR]-1].Round} )
	     {
	        PauseBot
	        MessageBox -ok "${Text} has reached max for level"
	     }
	   }
	}
 
Top Bottom