gschool_groups.qsrc 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  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>' + $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. end
  31. if $ARGS[0] = 'nerds':
  32. killvar '$nerd_text'
  33. killvar 'nerd_count'
  34. i = 1
  35. '<center><table cellspacing="3">'
  36. :nerd_loop
  37. if nerd_count = 6 : $nerd_text += '<tr>'
  38. if npc_grupTipe['A<<i>>'] = 3 and schoolenable['A<<i>>'] = 1:
  39. nerd_count += 1
  40. $nerd_text += '' + '<td bgcolor=<<$bcolor2>> align="center"><img height="100" src="images/pc/npc_headshots/<<i>>.jpg"><br>' + $npcGoSchool['A<<i>>']
  41. end
  42. if nerd_count< 6 and npc_grupTipe['A<<i>>'] = 3:
  43. $nerd_text += '</td>'
  44. elseif nerd_count = 6 and npc_grupTipe['A<<i>>'] = 3:
  45. $nerd_text +='</td></tr><tr>' & nerd_count = 0
  46. end
  47. i += 1
  48. if i <= aarraynumber:jump 'nerd_loop'
  49. '<<$nerd_text>>'
  50. '</table></center>'
  51. end
  52. if $ARGS[0] = 'jocks':
  53. killvar '$jock_text'
  54. killvar 'jock_count'
  55. i = 1
  56. '<center><table cellspacing="3">'
  57. :jock_loop
  58. if jock_count = 6 : $jock_text += '<tr>'
  59. if npc_grupTipe['A<<i>>'] = 2 and schoolenable['A<<i>>'] = 1:
  60. jock_count += 1
  61. $jock_text += '' + '<td bgcolor=<<$bcolor2>> align="center"><img height="100" src="images/pc/npc_headshots/<<i>>.jpg"><br>' + $npcGoSchool['A<<i>>']
  62. end
  63. if jock_count< 6 and npc_grupTipe['A<<i>>'] = 2:
  64. $jock_text += '</td>'
  65. elseif jock_count = 6 and npc_grupTipe['A<<i>>'] = 2:
  66. $jock_text +='</td></tr><tr>' & jock_count = 0
  67. end
  68. i += 1
  69. if i <= aarraynumber:jump 'jock_loop'
  70. '<<$jock_text>>'
  71. '</table></center>'
  72. end
  73. if $ARGS[0] = 'popular':
  74. killvar '$pop_text'
  75. killvar 'pop_count'
  76. i = 1
  77. '<center><table cellspacing="3">'
  78. :pop_loop
  79. if pop_count = 6 : $pop_text += '<tr>'
  80. if npc_grupTipe['A<<i>>'] = 1 and schoolenable['A<<i>>'] = 1:
  81. pop_count += 1
  82. $pop_text += '' + '<td bgcolor=<<$bcolor2>> align="center"><img height="100" src="images/pc/npc_headshots/<<i>>.jpg"><br>' + $npcGoSchool['A<<i>>']
  83. end
  84. if pop_count< 6 and npc_grupTipe['A<<i>>'] = 1:
  85. $pop_text += '</td>'
  86. elseif pop_count = 6 and npc_grupTipe['A<<i>>'] = 1:
  87. $pop_text +='</td></tr><tr>' & pop_count = 0
  88. end
  89. i += 1
  90. if i <= aarraynumber:jump 'pop_loop'
  91. '<<$pop_text>>'
  92. '</table></center>'
  93. end
  94. if $ARGS[0] = 'gopniks':
  95. killvar '$gop_text'
  96. killvar 'gop_count'
  97. i = 1
  98. '<center><table cellspacing="3">'
  99. :gop_loop
  100. if gop_count = 6 : $gop_text += '<tr>'
  101. if npc_grupTipe['A<<i>>'] = 4 and schoolenable['A<<i>>'] = 1:
  102. gop_count += 1
  103. $gop_text += '' + '<td bgcolor=<<$bcolor2>> align="center"><img height="100" src="images/pc/npc_headshots/<<i>>.jpg"><br>' + $npcGoSchool['A<<i>>']
  104. end
  105. if gop_count< 6 and npc_grupTipe['A<<i>>'] = 4:
  106. $gop_text += '</td>'
  107. elseif gop_count = 6 and npc_grupTipe['A<<i>>'] = 4:
  108. $gop_text +='</td></tr><tr>' & gop_count = 0
  109. end
  110. i += 1
  111. if i <= aarraynumber:jump 'gop_loop'
  112. '<<$gop_text>>'
  113. '</table></center>'
  114. end
  115. if $ARGS[0] = 'outcasts':
  116. killvar '$oc_text'
  117. killvar 'oc_count'
  118. i = 1
  119. '<center><table cellspacing="3">'
  120. :oc_loop
  121. if oc_count = 6 : $oc_text += '<tr>'
  122. if npc_grupTipe['A<<i>>'] = 5 and schoolenable['A<<i>>'] = 1:
  123. oc_count += 1
  124. $oc_text += '' + '<td bgcolor=<<$bcolor2>> align="center"><img height="100" src="images/pc/npc_headshots/<<i>>.jpg"><br>' + $npcGoSchool['A<<i>>']
  125. end
  126. if oc_count< 6 and npc_grupTipe['A<<i>>'] = 5:
  127. $oc_text += '</td>'
  128. elseif oc_count = 6 and npc_grupTipe['A<<i>>'] = 5:
  129. $oc_text +='</td></tr><tr>' & oc_count = 0
  130. end
  131. i += 1
  132. if i <= aarraynumber:jump 'oc_loop'
  133. '<<$oc_text>>'
  134. '</table></center>'
  135. end
  136. --- gschool_groups ---------------------------------