mod_addedflavour_city_upitch.qsrc 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # mod_addedflavour_city_upitch
  2. if $ARGS[0] = 'start' or '':
  3. *clr & cla
  4. CLOSE ALL
  5. $loc_arg = 'start'
  6. $loc = 'mod_addedflavour_city_upitch'
  7. $location_type = 'public_outdoors'
  8. $menu_loc = 'mod_addedflavour_city_upitch'
  9. $menu_arg = 'start'
  10. menu_off = 0
  11. if hour >= 19 or hour < 6:
  12. $modVar_AF_TempStr = 'N'
  13. else
  14. $modVar_AF_TempStr = ''
  15. end
  16. gs 'stat'
  17. '<center><h2>St. Petersburg</h2></center>'
  18. '<center><b>University Sports Pitch</b></center>'
  19. '<center><img style="<<$modVar_AF_ImageRestrictions>>" src="mod/addedflavour/images/locations/city/island/university/UniPitch<<$modVar_AF_TempStr>>.jpg"></center>'
  20. *nl
  21. 'This is the Sports Pitch connected to the nearby University. It is available to anyone but is mainly used by students of the University and their associated clubs.'
  22. *nl
  23. '<u><b>University Team - Women''s Football</b></u>'
  24. *nl
  25. KILLVAR 'modVar_AF_Temp'
  26. if modVar_AF_EventProgress['Football'] = 0:
  27. '<b>There is a <a href="exec: gt ''mod_addedflavour_Football'' , ''Advert'' ">Poster</a> advertising Women''s Football here</b>'
  28. modVar_AF_Temp += 1
  29. elseif modVar_AF_EventProgress['Football'] < 3 and (hour >= 9 and hour < 17) and student > 0:
  30. 'Football Coach (<a href="exec: gt ''mod_addedflavour_Football'' , ''Join-L1'' ">Join</a>)'
  31. modVar_AF_Temp += 1
  32. end
  33. if modVar_AF_EventProgress['Football'] >= 1 and (hour >= 9 and hour < 17) and student > 0 and $clothingworntype = 'exercise':
  34. 'Training Session (<a href="exec: gt ''mod_addedflavour_Football'' , ''Training'' ">Join</a>)'
  35. modVar_AF_Temp += 1
  36. end
  37. gs 'mod_addedflavour_Football' , 'FindGameweek'
  38. gs 'mod_addedflavour_Football' , 'RunGameweek'
  39. if modVar_AF_EventProgress['Football'] = 3 and week = 7 and modVar_AF_FBall_GameweekPlayed = modVar_AF_FBall_Gameweek - 1 and (hour = 6 or (hour = 7 and minut <= 30)) and (modVar_AF_FBall_Gameweek = 1 or modVar_AF_FBall_Gameweek = 3 or modVar_AF_FBall_Gameweek = 5 or modVar_AF_FBall_Gameweek = 7 or modVar_AF_FBall_Gameweek = 9 or modVar_AF_FBall_Gameweek = 13 or modVar_AF_FBall_Gameweek = 15 or modVar_AF_FBall_Gameweek = 17 or modVar_AF_FBall_Gameweek = 19 or modVar_AF_FBall_Gameweek = 21):
  40. 'Match Preparation (<a href="exec: gt ''mod_addedflavour_Football'' , ''MatchStart'' , ''Pitch'' ">Join</a>)'
  41. modVar_AF_Temp += 1
  42. end
  43. if modVar_AF_Temp = 0 : 'Football Training is Publicly Available between 9am and 5pm (Clothing NOT provided).'
  44. act 'Leave' : minut += 5 & gt 'city_island'
  45. end
  46. --- mod_addedflavour_city_upitch ---------------------------------