Code: Select all
automacro instantiate {
	var gold unset
	call {
		$gold = 0
	}
	run-once 1
}
automacro add {
	var gold >= 0
	console /got (\d+) GP/
	call {
		$add = $.lastMatch1
		$gold = @eval($gold+$add)
		log You have $gold gold.
	}
}Moderator: Moderators

Code: Select all
automacro instantiate {
	var gold unset
	call {
		$gold = 0
	}
	run-once 1
}
automacro add {
	var gold >= 0
	console /got (\d+) GP/
	call {
		$add = $.lastMatch1
		$gold = @eval($gold+$add)
		log You have $gold gold.
	}
}
Code: Select all
automacro exit {
   console /Total GP: (\d+)/
   call {
      if ($.lastMatch 1 >= 500) {
            -insert your exit commands here-
      }
   }
}

 
   
  

Vague and terrible way to ask for help, you should read wiki a little bit: http://openkore.com/index.php/Main_Page.kalalako wrote:can somebody teach me how to use the bot? email me at desuasidokurtolin@gmail.com, please please help me
