View difference between Paste ID: Zf3gbw8K and K8zyt9cp
SHOW: | | - or go back to the newest paste.
1-
"++" = [$arg1 = (+ (getalias $arg1) 1)]
1+
2-
2+
3
	bots = 0
4
	players = 0
5-
	_abp_balance = $arg1 ; bots = 0 ; players = 0
5+
6
	looplist l (listclients 1) [
7
		cond (> $l 127) [
8-
		cond (> $l 127) [++ bots] (&& (< $l 128) (! (isspectator $l))) [++ players]
8+
			bots = (+ $bots 1)
9
		] (&& (< $l 128) (! (isspectator $l))) [
10
			players = (+ $players 1)
11
		]
12-
		cond (&& (< $bots $maxbots) (< $total $_abp_balance)) [
12+
13-
			loop i (min (- $_abp_balance $total) $maxbots) addbot
13+
	_ab_balance = $arg1
14-
		] (&& (< $_abp_balance $total) (> $bots 0)) [
14+
15-
			loop i (min (- $total $_abp_balance) $bots) delbot
15+
16
		cond (&& (< $bots $maxbots) (< $total $_ab_balance)) [
17-
		sleep 500 [autobot $_abp_balance]
17+
			loop i (min (- $_ab_balance $total) $maxbots) addbot
18
		] (&& (< $_ab_balance $total) (> $bots 0)) [
19
			loop i (min (- $total $_ab_balance) $bots) delbot
20
		]
21
		sleep 500 [
22
			autobot = [@@@autobot]
23
			autobot $_ab_balance
24
			if $_ab_balance [
25
				autobot = [_ab_balance = $arg1]
26
			]
27
		]
28
	] [loop i $bots delbot]
29
]