/* 
 * Script decompiled by jagdecs2 v3.2
 * Decompiler opts:
 * --------------
 * t1LocalAnalyzer:true
 * t2LocalAnalyzer:true
 * beautifier:true
 * --------------
 * Made by mgi125 ;)
 */


void script_1133(int a0,int a1,int a2) {
	object v0 = "";
	object v1 = "this colour";
	int v2 = 0;
	if (idx22mapAttribute(a1, 4259) == 0) {
		cs2method_10467(0, a0);
		cs2method_10606(a0, 3, v2);
		cs2method_10063(2, 2, 0, 0);
		cs2method_10013(2, 2, 1, 1);
		cs2method_10811(idx22mapAttribute(a1, 2502));
		cs2method_10238(1);
		int v4 = cs2method_10060(v2, 1);
		cs2method_10606(a0, 5, v4);
		cs2method_10063(0, 0, 0, 0);
		cs2method_10013(20, 20, 0, 0);
		int v3 = cs2method_10060(v4, 1);
		if (cs2_configs['cfg1967'] == a2) {
			cs2method_10310(2289);
		} else {
			cs2method_10310(2288);
		}
		object v6 = idx22mapAttribute(a1, 2548);
		object v5 = "Recolour this item to " + (string)v6 + ".";
		cs2method_20353(new function<script_7768>(int a0,int a1,int a2,int a3,int a4,int a5,int a6,int a7,int a8,int a9,int a10,object a11,int a12) {
			script_7769(a7, a3, a0, a4, a5, a6, a2, a12, a10, a8, a1, a11, a9);
			return;
		}, new WidgetPointer(1311,82), new WidgetPointer(-32768,3), -2147483643, (string)v5, 350, 3793, 3793, 11974326, 12, 1, 1, -2147483647, -2147483646, "IIisiffiiiiii");
		cs2method_20884(new function<script_40>(int a0) {
			script_41(a0);
			return;
		}, new WidgetPointer(1311,82), "I");
	} else {
		cs2method_10467(1, a0);
	}
	return;
}
