unicoursework.qsrc 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. # unicoursework
  2. $unicourseworkloc[0] = $ARGS[1]
  3. $unicourseworkloc[1] = $ARGS[2]
  4. if $ARGS[0] = 'start':
  5. if func('uniutil', 'student_status') > 0 and kursovik < 100:
  6. if $unicourseworkloc[0] = 'komp':
  7. 'You should probably do some of your <a href="exec:gt ''unicoursework'',$unicourseworkloc[0],$unicourseworkloc[1],1">coursework</a>.'
  8. else:
  9. act 'Do some coursework (1:00)':
  10. gt 'unicoursework', 'do_coursework', $unicourseworkloc[0], $unicourseworkloc[1]
  11. end
  12. end
  13. end
  14. end
  15. if $ARGS[0] = 'do_coursework':
  16. *clr & cla
  17. menu_off = 1
  18. minut += 60
  19. if $ARGS[1] = 'komp':
  20. elektro += 3
  21. internet -= 1
  22. compskl_exp += 1
  23. end
  24. kursovik += rand(pcs_intel / 20, pcs_intel / 10)
  25. if kursovik > 100:kursovik = 100
  26. pcs_mood -= 10
  27. gs 'stat'
  28. if $ARGS[1] = 'komp':
  29. '<center><b>Coursework</b></center>'
  30. '<center><img <<$set_imgh>> src="images/shared/accessories/computer/kursak.jpg"></center>'
  31. else:
  32. '<center><img <<$set_imgh>> src="images/pc/activities/study.jpg"></center>'
  33. end
  34. if $ARGS[1] = 'komp':
  35. 'It may be boring, but it still needs doing! You spend an hour doing coursework, and '+kursovik+'% of it is now finished.'
  36. elseif $ARGS[1] = 'sitr2x':
  37. 'You sat and studied, and you managed to complete some of your coursework. You are now '+kursovik+' percent done.'
  38. elseif $ARGS[1] = 'sitr':
  39. 'You work on your course''s homework and are about '+kursovik+' percent done.'
  40. elseif $ARGS[1] = 'pav_shared_apt':
  41. 'You sit down on the sofa bed and do some of your coursework. You''ve finished '+kursovik+' percent of it.'
  42. elseif $ARGS[1] = 'nichBedroomServant':
  43. 'You work on your coursework and have now completed '+kursovik+' percent.'
  44. elseif $ARGS[1] = 'bedrPar':
  45. 'You sit down at your desk and do some of your coursework. You''ve finished '+kursovik+' percent of it.'
  46. else:
  47. 'You sit for an hour and do some of your work for class. You''ve finished '+kursovik+' percent of the work.'
  48. end
  49. if kursovik < 100:
  50. act 'Do some more coursework (1:00)':
  51. gt 'unicoursework', 'do_coursework', $unicourseworkloc[0], $unicourseworkloc[1]
  52. end
  53. end
  54. act 'Stop':
  55. gt $unicourseworkloc[0], $unicourseworkloc[1]
  56. end
  57. end
  58. --- unicoursework ---------------------------------