1
0

gschool_groups.qsrc 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  1. # gschool_groups
  2. gs 'themes', 'food_menu'
  3. !npc_grupTipe[i] - social group
  4. !1 - popular
  5. !2 - jocks
  6. !3 - nerds
  7. !4 - Gopnik
  8. !5 - outcasts
  9. !6 - teachers
  10. if $ARGS[0] = 'teachers':
  11. killvar '$teach_text'
  12. killvar 'teach_count'
  13. i = 1
  14. '<center><table cellspacing="3">'
  15. :teach_loop
  16. if teach_count = 6 : $teach_text += '<tr>'
  17. if npc_grupTipe['A<<i>>'] = 6 and schoolenable['A<<i>>'] = 1:
  18. teach_count += 1
  19. $teach_text += '' + '<td bgcolor=<<$bcolor2>> align="center"><img height="100" src="images/pc/npc_headshots/<<i>>.jpg"><br>' + iif($ARGS[1] = 'journal', '<a href="exec:gt ''journal'',''teachers''"><<$npc_usedname[''A<<i>>'']>></a>', $npcGo['A<<i>>'])
  20. end
  21. if teach_count< 6 and npc_grupTipe['A<<i>>'] = 6:
  22. $teach_text += '</td>'
  23. elseif teach_count = 6 and npc_grupTipe['A<<i>>'] = 6:
  24. $teach_text +='</td></tr><tr>' & teach_count = 0
  25. end
  26. i += 1
  27. if i <= aarraynumber:jump 'teach_loop'
  28. '<<$teach_text>>'
  29. '</table></center>'
  30. killvar 'i'
  31. end
  32. if $ARGS[0] = 'nerds':
  33. killvar '$nerd_text'
  34. killvar 'nerd_count'
  35. i = 1
  36. '<center><table cellspacing="3">'
  37. :nerd_loop
  38. if nerd_count = 6 : $nerd_text += '<tr>'
  39. if npc_grupTipe['A<<i>>'] = 3 and schoolenable['A<<i>>'] = 1:
  40. nerd_count += 1
  41. $nerd_text += '' + '<td bgcolor=<<$bcolor2>> align="center"><img height="100" src="images/pc/npc_headshots/<<i>>.jpg"><br>' + iif($ARGS[1] = 'journal', '<a href="exec:gt ''journal'',''nerds''"><<$npc_usedname[''A<<i>>'']>></a>', $npcGo['A<<i>>'])
  42. end
  43. if nerd_count< 6 and npc_grupTipe['A<<i>>'] = 3:
  44. $nerd_text += '</td>'
  45. elseif nerd_count = 6 and npc_grupTipe['A<<i>>'] = 3:
  46. $nerd_text +='</td></tr><tr>' & nerd_count = 0
  47. end
  48. i += 1
  49. if i <= aarraynumber:jump 'nerd_loop'
  50. '<<$nerd_text>>'
  51. '</table></center>'
  52. killvar 'i'
  53. end
  54. if $ARGS[0] = 'jocks':
  55. killvar '$jock_text'
  56. killvar 'jock_count'
  57. i = 1
  58. '<center><table cellspacing="3">'
  59. :jock_loop
  60. if jock_count = 6 : $jock_text += '<tr>'
  61. if npc_grupTipe['A<<i>>'] = 2 and schoolenable['A<<i>>'] = 1:
  62. jock_count += 1
  63. $jock_text += '' + '<td bgcolor=<<$bcolor2>> align="center"><img height="100" src="images/pc/npc_headshots/<<i>>.jpg"><br>' + iif($ARGS[1] = 'journal', '<a href="exec:gt ''journal'',''jocks''"><<$npc_usedname[''A<<i>>'']>></a>', $npcGo['A<<i>>'])
  64. end
  65. if jock_count< 6 and npc_grupTipe['A<<i>>'] = 2:
  66. $jock_text += '</td>'
  67. elseif jock_count = 6 and npc_grupTipe['A<<i>>'] = 2:
  68. $jock_text +='</td></tr><tr>' & jock_count = 0
  69. end
  70. i += 1
  71. if i <= aarraynumber:jump 'jock_loop'
  72. '<<$jock_text>>'
  73. '</table></center>'
  74. killvar 'i'
  75. end
  76. if $ARGS[0] = 'popular':
  77. killvar '$pop_text'
  78. killvar 'pop_count'
  79. i = 1
  80. '<center><table cellspacing="3">'
  81. :pop_loop
  82. if pop_count = 6 : $pop_text += '<tr>'
  83. if npc_grupTipe['A<<i>>'] = 1 and schoolenable['A<<i>>'] = 1:
  84. pop_count += 1
  85. $pop_text += '' + '<td bgcolor=<<$bcolor2>> align="center"><img height="100" src="images/pc/npc_headshots/<<i>>.jpg"><br>' + iif($ARGS[1] = 'journal', '<a href="exec:gt ''journal'',''popular''"><<$npc_usedname[''A<<i>>'']>></a>', $npcGo['A<<i>>'])
  86. end
  87. if pop_count< 6 and npc_grupTipe['A<<i>>'] = 1:
  88. $pop_text += '</td>'
  89. elseif pop_count = 6 and npc_grupTipe['A<<i>>'] = 1:
  90. $pop_text +='</td></tr><tr>' & pop_count = 0
  91. end
  92. i += 1
  93. if i <= aarraynumber:jump 'pop_loop'
  94. '<<$pop_text>>'
  95. '</table></center>'
  96. killvar 'i'
  97. end
  98. if $ARGS[0] = 'gopniks':
  99. killvar '$gop_text'
  100. killvar 'gop_count'
  101. i = 1
  102. '<center><table cellspacing="3">'
  103. :gop_loop
  104. if gop_count = 6 : $gop_text += '<tr>'
  105. if npc_grupTipe['A<<i>>'] = 4 and schoolenable['A<<i>>'] = 1:
  106. gop_count += 1
  107. $gop_text += '' + '<td bgcolor=<<$bcolor2>> align="center"><img height="100" src="images/pc/npc_headshots/<<i>>.jpg"><br>' + iif($ARGS[1] = 'journal', '<a href="exec:gt ''journal'',''gopniks''"><<$npc_usedname[''A<<i>>'']>></a>', $npcGo['A<<i>>'])
  108. end
  109. if gop_count< 6 and npc_grupTipe['A<<i>>'] = 4:
  110. $gop_text += '</td>'
  111. elseif gop_count = 6 and npc_grupTipe['A<<i>>'] = 4:
  112. $gop_text +='</td></tr><tr>' & gop_count = 0
  113. end
  114. i += 1
  115. if i <= aarraynumber:jump 'gop_loop'
  116. '<<$gop_text>>'
  117. '</table></center>'
  118. killvar 'i'
  119. end
  120. if $ARGS[0] = 'outcasts':
  121. killvar '$oc_text'
  122. killvar 'oc_count'
  123. i = 1
  124. '<center><table cellspacing="3">'
  125. :oc_loop
  126. if oc_count = 6 : $oc_text += '<tr>'
  127. if npc_grupTipe['A<<i>>'] = 5 and schoolenable['A<<i>>'] = 1:
  128. oc_count += 1
  129. $oc_text += '' + '<td bgcolor=<<$bcolor2>> align="center"><img height="100" src="images/pc/npc_headshots/<<i>>.jpg"><br>' + iif($ARGS[1] = 'journal', '<a href="exec:gt ''journal'',''outcasts''"><<$npc_usedname[''A<<i>>'']>></a>', $npcGo['A<<i>>'])
  130. end
  131. if oc_count< 6 and npc_grupTipe['A<<i>>'] = 5:
  132. $oc_text += '</td>'
  133. elseif oc_count = 6 and npc_grupTipe['A<<i>>'] = 5:
  134. $oc_text +='</td></tr><tr>' & oc_count = 0
  135. end
  136. i += 1
  137. if i <= aarraynumber:jump 'oc_loop'
  138. '<<$oc_text>>'
  139. '</table></center>'
  140. killvar 'i'
  141. end
  142. if $ARGS[0] = 'fuckornot':
  143. killvar '$fu_text'
  144. killvar '$fu_count'
  145. j = 11
  146. '<center><table cellspacing="3">'
  147. :fu_loop_2
  148. j -= 1
  149. i = 1
  150. :fu_loop
  151. if fu_count = 6 : $fu_text += '<tr>'
  152. if hotcat = j and hotcat_rating_set = 0:
  153. fu_count += 1
  154. hotcat_rating_set = 1
  155. if player_avatar = 1:
  156. $fu_text += '' + '<td bgcolor=<<$bcolor2>> align="center"><img height="100" src="images/avatar.jpg"><br>' + '<<$pcs_nickname>>, <<hotcat>>/10'
  157. else
  158. $fu_text += '' + '<td bgcolor=<<$bcolor2>> align="center"><img height="100" src="<<FUNC(''$face_image'')>>"><br>' + '<<$pcs_nickname>>, <<hotcat>>/10'
  159. end
  160. elseif hotcat ! j or hotcat_rating_set = 1:
  161. if hotcat_rating['A<<i>>'] = j:
  162. fu_count += 1
  163. $fu_text += '' + '<td bgcolor=<<$bcolor2>> align="center"><img height="100" src="images/pc/npc_headshots/<<i>>.jpg"><br>' + '<<$npc_nickname[''A<<i>>'']>>, <<hotcat_rating[''A<<i>>'']>>/10'
  164. end
  165. end
  166. if fu_count < 6 and hotcat_rating['A<<i>>'] = j:
  167. $fu_text += '</td>'
  168. elseif fu_count = 6 and hotcat_rating['A<<i>>'] = j:
  169. $fu_text +='</td></tr><tr>' & fu_count = 0
  170. end
  171. if hotcat ! j or hotcat_rating_set = 1: i += 1
  172. if i <= aarraynumber:jump 'fu_loop'
  173. if j > 1: jump 'fu_loop_2'
  174. '<<$fu_text>>'
  175. '</table></center>'
  176. killvar 'hotcat_rating_set'
  177. killvar 'i'
  178. killvar 'j'
  179. end
  180. --- gschool_groups ---------------------------------