Browse Source

[fixed] This required it's own image selection as it uses different chats from the school ones.

CroWke 4 years ago
parent
commit
dff800deee
1 changed files with 45 additions and 2 deletions
  1. 45 2
      locations/gdkin.qsrc

+ 45 - 2
locations/gdkin.qsrc

@@ -660,8 +660,51 @@ if $ARGS[0] = 'classmates':
 
 	'<center><b><font color="maroon">Disco</font></b></center>'
 	*nl
-	gs 'gschool_groups', 'popular'
-	gs 'gschool_groups', 'gopniks'
+	
+	killvar '$pop_text'
+	killvar 'pop_count'
+	i = 1
+	'<center><table cellspacing="3">'
+	:discopop_loop
+		if pop_count = 6 : $pop_text += '<tr>'
+
+		if npc_grupTipe['A<<i>>'] = 1 and discoenable['A<<i>>'] = 1:
+			pop_count += 1
+			$pop_text += '' + '<td bgcolor=<<$bcolor2>> align="center"><img  height="100" src="images/pc/npc_headshots/<<i>>.jpg"><br>' + $npcGo['A<<i>>']
+		end
+		if pop_count< 6 and npc_grupTipe['A<<i>>'] = 1:
+			$pop_text += '</td>'
+		elseif pop_count = 6 and npc_grupTipe['A<<i>>'] = 1:
+			$pop_text +='</td></tr><tr>' & pop_count = 0
+		end
+		i += 1
+	if i <= aarraynumber:jump 'discopop_loop'
+
+	'<<$pop_text>>'
+	'</table></center>'
+	
+	killvar '$gop_text'
+	killvar 'gop_count'
+	i = 1
+	'<center><table cellspacing="3">'
+	:discogop_loop
+		if gop_count = 6 : $gop_text += '<tr>'
+
+		if npc_grupTipe['A<<i>>'] = 4 and discoenable['A<<i>>'] = 1:
+			gop_count += 1
+			$gop_text += '' + '<td bgcolor=<<$bcolor2>> align="center"><img  height="100" src="images/pc/npc_headshots/<<i>>.jpg"><br>' + $npcGo['A<<i>>']
+		end
+		if gop_count< 6 and npc_grupTipe['A<<i>>'] = 4:
+			$gop_text += '</td>'
+		elseif gop_count = 6 and npc_grupTipe['A<<i>>'] = 4:
+			$gop_text +='</td></tr><tr>' & gop_count = 0
+		end
+		i += 1
+	if i <= aarraynumber:jump 'discogop_loop'
+
+	'<<$gop_text>>'
+	'</table></center>'
+	
 	act 'Move away': gt $loc, $metka
 
 	'<center>Most the cool kids are dancing, while the gopniks are standing in the corner of the room, keeping to themselves.</center>'