gschool_groups.qsrc 7.2 KB

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