:: indik

<<info "indik deactivated">>
:: indik_deactivated
<<set $here = 'indik'>>
<<set $ARGS = $location_var[$here]>>
<<if getvar("$Enable_scalepic") == 1>>
	<!-- !0=reverse, 1=100%, 2=value. copy from 1.2.5, modify by illume-->
	<<if $location_var[$here][1] < 1>>
		<<setinit $larg(1) = 1>>

	<</if>>
	<<if $location_var[$here][1] > 100>>
		<<setinit $larg(1) = 100>>

	<</if>>
	<!-- ! scalewidth default = 120px-->
	<<if getvar("$Enable_scalewidth") > 1>>
		<<set $max_width = $Enable_scalewidth - 1>>
	<<else>>
		<<set $max_width = 120>>
	<</if>>
	<<if getvar("$Enable_scaleheight") > 1>>
		<<set $_height = $Enable_scaleheight - 1>>
	<<else>>
		<<set $_height = 15>>
	<</if>>
	<<set $_width = $larg(1) * $max_width / 100>>
	<<if $location_var[$here][1] < 30>>
		<<set $_color = iif($larg(0) > 0,'green','red')>>

	<</if>>
	<<if $location_var[$here][1] >= 30 and $location_var[$here][1] < 70 and $location_var[$here][0] == 0>>
		<<set $_color = 'blue'>>

	<</if>>
	<!-- ! reverse colors-->
	<<if $location_var[$here][1] >= 30 and $location_var[$here][1] < 50 and $location_var[$here][0] > 0>>
		<<set $_color = 'yellow'>>

	<</if>>
	<<if $location_var[$here][1] >= 50 and $location_var[$here][1] < 70 and $location_var[$here][0] > 0>>
		<<set $_color = 'orange'>>

	<</if>>
	<!-- ! ----->
	<<if $location_var[$here][1] >= 70>>
		<<set $_color = iif($larg(0)> 0,'red','green')>>

	<</if>>
	<<set $result = ' <img src="images/system/icons/'+$_color+'.png" height='+_height+' width=' + _width + '><img src="images/system/icons/blank.png" height='+_height+' width=' + ($max_width - $_width) + '> <font color='+$_color+'>'+$larg(2)+'</font> '>>
	<<set $ind = $result>>
	<<set $max_width to null>>
	<<set $_width = 0>>
	<<set $_height = 0>>
	<<set $_color = 0>>
<<else>>
	<<if getvar("$cheatStatusBars") == 1>>
		<<set $i = 2>>
	<<else>>
		<<set $i = 3>>
	<</if>>
	<<if getvar("$Enable_statfsize") > 0 and $Enable_statfsize < $i>>
		<<set $i = $Enable_statfsize>>

	<</if>>
	<<set $a = $larg(1)>>
	<<set $a1 = $larg(2)>>
	<<if getvar("$a") > 100>>
		<<set $a = 100>>

	<</if>>
	<<if getvar("$a") < 0>>
		<<set $a = 0>>

	<</if>>
	<<if $location_var[$here][3] > 0>>
		<<set $indik_damage = $larg(3)>>

	<</if>>
	<<if $location_var[$here][0] == '1'>>
		<<if getvar("$Enable_Android") == 1>>
			<<if getvar("$a") >= 65>>
				<<set $ind = '<font color="green">a1</font>'>>
			<<elseif getvar("$a") >= 35>>
				<<set $ind = '<font color="blue">a1</font>'>>
			<<else>>
				<<set $ind = '<font color="red">a1</font>'>>
			<</if>>
		<<else>>
			<<set $j = $a / 5>>
			<<set $ind = '<font face="courier new" size = i> </font>'>>
			<<set $indik_counter = 0>>
			<<warn 'JUMP MARKER ENCOUNTERED: :indik'>>
			<<if $indik_counter < $j>>
				<<set $ind += '<font face="courier new" size = i>█</font>'>>
				<<set $indik_counter += 1>>
				<<warn 'JUMP COMMAND ENCOUNTERED: jump indik'>>
			<<elseif getvar("$indik_counter") < 20>>
				<<set $ind += '<font face="courier new" size = i>_</font>'>>
				<<set $indik_counter += 1>>
				<<warn 'JUMP COMMAND ENCOUNTERED: jump indik'>>
			<</if>>
			<<set $indik_counter to null>>
			<<set $j to null>>
			<<set $ind += '<font face="courier new" size = i> </font>'>>
			<<if getvar("$a") >= 85>>
				<<set $ind = '<font color="green">' + $ind + 'a1</font>'>>
			<<elseif getvar("$a") >= 70>>
				<<set $ind = '<font color=#b3b300>' + $ind + 'a1</font>'>>
			<<elseif getvar("$a") >= 50>>
				<<set $ind = '<font color=#00CED1>' + $ind + 'a1</font>'>>
			<<elseif getvar("$a") >= 20>>
				<<set $ind = '<font color="blue">' + $ind + 'a1</font>'>>
			<<elseif getvar("$a") >= 10>>
				<<set $ind = '<font color=#ff6600>' + $ind + 'a1</font>'>>
			<<else>>
				<<set $ind = '<font color="red">' + $ind + 'a1</font>'>>
			<</if>>
		<</if>>
	<</if>>
	<<if $location_var[$here][0] == '2'>>
		<<if getvar("$Enable_Android") == 1>>
			<<if getvar("$a") >= 85>>
				<<set $ind = '<font color="red">a1</font>'>>
			<<elseif getvar("$a") >= 65>>
				<<set $ind = '<font color="orange">a1</font>'>>
			<<elseif getvar("$a") >= 45>>
				<<set $ind = '<font color="yellow">a1</font>'>>
			<<elseif getvar("$a") >= 25>>
				<<set $ind = '<font color="green">a1</font>'>>
			<<else>>
				<<set $ind = '<font color="blue">a1</font>'>>
			<</if>>
		<<else>>
			<<set $j = $a / 5>>
			<<set $indik_damage = $indik_damage / 5>>
			<<set $ind = '<font face="courier new" size = i> </font>'>>
			<<set $indik_counter = 0>>
			<<warn 'JUMP MARKER ENCOUNTERED: :indik2'>>
			<<if $indik_counter < $j>>
				<<set $ind += '<font face="courier new" size = i>█</font>'>>
				<<set $indik_counter += 1>>
				<<warn 'JUMP COMMAND ENCOUNTERED: jump indik2'>>
			<<elseif $indik_counter < $indik_damage>>
				<<set $ind += '<font face="courier new" size = i>░</font>'>>
				<<set $indik_counter += 1>>
				<<warn 'JUMP COMMAND ENCOUNTERED: jump indik2'>>
			<<elseif getvar("$indik_counter") < 20>>
				<<set $ind += '<font face="courier new" size = i>_</font>'>>
				<<set $indik_counter += 1>>
				<<warn 'JUMP COMMAND ENCOUNTERED: jump indik2'>>
			<</if>>
			<<set $indik_counter to null>>
			<<set $j to null>>
			<<set $indik_damage to null>>
			<<set $ind += '<font face="courier new" size = i> </font>'>>
			<<if getvar("$a") >= 90>>
				<<set $ind = '<font color=#ff0000>' + $ind + '</font>'>>
			<<elseif getvar("$a") >= 80>>
				<<set $ind = '<font color=#ff1a1a>' + $ind + '</font>'>>
			<<elseif getvar("$a") >= 70>>
				<<set $ind = '<font color=#ff3333>' + $ind + '</font>'>>
			<<elseif getvar("$a") >= 60>>
				<<set $ind = '<font color=#ff4d4d>' + $ind + '</font>'>>
			<<elseif getvar("$a") >= 50>>
				<<set $ind = '<font color=#ff6666>' + $ind + '</font>'>>
			<<elseif getvar("$a") >= 40>>
				<<set $ind = '<font color=#ff8080>' + $ind + '</font>'>>
			<<elseif getvar("$a") >= 30>>
				<<set $ind = '<font color=#e68080>' + $ind + '</font>'>>
			<<elseif getvar("$a") >= 20>>
				<<set $ind = '<font color=#cc8080>' + $ind + '</font>'>>
			<<elseif getvar("$a") >= 10>>
				<<set $ind = '<font color=#b38080>' + $ind + '</font>'>>
			<<else>>
				<<set $ind = '<font color=#998080>' + $ind + '</font>'>>
			<</if>>
		<</if>>
	<</if>>
	<<if $location_var[$here][0] == '3'>>
		<<if getvar("$Enable_Android") == 1>>
			<<if getvar("$a") >= 65>>
				<<set $ind = '<font color="green">a1</font>'>>
			<<elseif getvar("$a") >= 35>>
				<<set $ind = '<font color="blue">a1</font>'>>
			<<else>>
				<<set $ind = '<font color="red">a1</font>'>>
			<</if>>
		<<else>>
			<<set $j = $a / 5>>
			<<set $ind = '<font face="courier new" size = i> </font>'>>
			<<set $indik_counter = 0>>
			<<warn 'JUMP MARKER ENCOUNTERED: :indik3'>>
			<<if getvar("$j") < 10>>
				<<if $indik_counter < $j>>
					<<set $ind += '<font face="courier new" size = i>_</font>'>>
					<<set $indik_counter += 1>>
					<<warn 'JUMP COMMAND ENCOUNTERED: jump indik3'>>
				<<elseif getvar("$indik_counter") < 10>>
					<<set $ind += '<font face="courier new" size = i>█</font>'>>
					<<set $indik_counter += 1>>
					<<warn 'JUMP COMMAND ENCOUNTERED: jump indik3'>>
				<<elseif getvar("$indik_counter") < 20>>
					<<set $ind += '<font face="courier new" size = i>_</font>'>>
					<<set $indik_counter += 1>>
					<<warn 'JUMP COMMAND ENCOUNTERED: jump indik3'>>
				<</if>>
			<<elseif getvar("$j") > 10>>
				<<if getvar("$indik_counter") < 10>>
					<<set $ind += '<font face="courier new" size = i>_</font>'>>
					<<set $indik_counter += 1>>
					<<warn 'JUMP COMMAND ENCOUNTERED: jump indik3'>>
				<<elseif $indik_counter < $j>>
					<<set $ind += '<font face="courier new" size = i>█</font>'>>
					<<set $indik_counter += 1>>
					<<warn 'JUMP COMMAND ENCOUNTERED: jump indik3'>>
				<<elseif getvar("$indik_counter") < 20>>
					<<set $ind += '<font face="courier new" size = i>_</font>'>>
					<<set $indik_counter += 1>>
					<<warn 'JUMP COMMAND ENCOUNTERED: jump indik3'>>
				<</if>>
			<<else>>
				<<if getvar("$indik_counter") < 9>>
					<<set $ind += '<font face="courier new" size = i>_</font>'>>
					<<set $indik_counter += 1>>
					<<warn 'JUMP COMMAND ENCOUNTERED: jump indik3'>>
				<<elseif getvar("$indik_counter") == 9 or getvar("$indik_counter") == 10>>
					<<set $ind += '<font face="courier new" size = i>▓</font>'>>
					<<set $indik_counter += 1>>
					<<warn 'JUMP COMMAND ENCOUNTERED: jump indik3'>>
				<<elseif getvar("$indik_counter") < 20>>
					<<set $ind += '<font face="courier new" size = i>_</font>'>>
					<<set $indik_counter += 1>>
					<<warn 'JUMP COMMAND ENCOUNTERED: jump indik3'>>
				<</if>>
			<</if>>
			<<set $indik_counter to null>>
			<<set $j to null>>
			<<set $ind += '<font face="courier new" size = i> </font>'>>
			<<if getvar("$a") < 10>>
				<<set $ind = '<font color=#b3b300>' + $ind + 'a1</font>'>>
			<<elseif getvar("$a") < 30>>
				<<set $ind = '<font color=#00CED1>' + $ind + 'a1</font>'>>
			<<elseif getvar("$a") <= 70>>
				<<set $ind = '<font color="blue">' + $ind + 'a1</font>'>>
			<<elseif getvar("$a") <= 90>>
				<<set $ind = '<font color=#00CED1>' + $ind + 'a1</font>'>>
			<<else>>
				<<set $ind = '<font color=#b3b300>' + $ind + 'a1</font>'>>
			<</if>>
		<</if>>
	<</if>>
	<<if $location_var[$here][0] == '4'>>
		<<if getvar("$Enable_Android") == 1>>
			<<if getvar("$a") >= 65>>
				<<set $ind = '<font color="green">a1</font>'>>
			<<elseif getvar("$a") >= 35>>
				<<set $ind = '<font color="blue">a1</font>'>>
			<<else>>
				<<set $ind = '<font color="red">a1</font>'>>
			<</if>>
		<<else>>
			<<set $j = $a / 5>>
			<<set $ind = '<font face="courier new" size = i> </font>'>>
			<<set $indik_counter = 0>>
			<<warn 'JUMP MARKER ENCOUNTERED: :indik4'>>
			<<if $indik_counter < $j>>
				<<set $ind += '<font face="courier new" size = i>█</font>'>>
				<<set $indik_counter += 1>>
				<<warn 'JUMP COMMAND ENCOUNTERED: jump indik4'>>
			<<elseif getvar("$indik_counter") < 20>>
				<<set $ind += '<font face="courier new" size = i>_</font>'>>
				<<set $indik_counter += 1>>
				<<warn 'JUMP COMMAND ENCOUNTERED: jump indik4'>>
			<</if>>
			<<set $indik_counter to null>>
			<<set $j to null>>
			<<set $ind += '<font face="courier new" size = i> </font>'>>
			<<if $grupTipe == $larg(3)>>
				<<if getvar("$a") >= 85>>
					<<set $ind = '<font color="green">' + $ind + 'Popular member</font>'>>
				<<elseif getvar("$a") >= 60>>
					<<set $ind = '<font color=#b3b300>' + $ind + 'Member</font>'>>
				<<elseif getvar("$a") >= 40>>
					<<set $ind = '<font color=#00CED1>' + $ind + 'Barely a member</font>'>>
				<<elseif getvar("$a") >= 30>>
					<<set $ind = '<font color="blue">' + $ind + 'Tolerated</font>'>>
				<<elseif getvar("$a") >= 20>>
					<<set $ind = '<font color=#ff6600>' + $ind + 'On last warning</font>'>>
				<<else>>
					<<set $ind = '<font color="red">' + $ind + 'You will be kicked out</font>'>>
				<</if>>
			<<else>>
				<<if getvar("$a") >= 80>>
					<<set $ind = '<font color="green">' + $ind + 'Will be ask to join unless you are a slut</font>'>>
				<<elseif getvar("$a") >= 70>>
					<<set $ind = '<font color=#b3b300>' + $ind + 'Really Liked</font>'>>
				<<elseif getvar("$a") >= 50>>
					<<set $ind = '<font color=#00CED1>' + $ind + 'Liked</font>'>>
				<<elseif getvar("$a") >= 20>>
					<<set $ind = '<font color="blue">' + $ind + 'Tolerated</font>'>>
				<<elseif getvar("$a") >= 10>>
					<<set $ind = '<font color=#ff6600>' + $ind + 'Disliked</font>'>>
				<<else>>
					<<set $ind = '<font color="red">' + $ind + 'Hated</font>'>>
				<</if>>
			<</if>>
		<</if>>
	<</if>>
<</if>>
