gschool_groups.qsrc 7.2 KB

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