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


void script_8018(int a0,object a1,int a2,int a3,int a4) {
	if (a2 != -1) {
		cs2method_10520(a2, a4);
	} else {
		int v0 = cs2method_10494(a4);
	}
	if (cs2method_10265(a1) != 0) {
		cs2method_10026(a4, a1);
	}
	if (a3 == 1) {
		object v0 = "<u=$new_colour>" + (string)cs2method_10744(a4);
		cs2method_10026(a4, v0);
	}
	if (a0 != -1) {
		cs2method_10170(a0, a4);
	}
	return;
}
