Browse Source

gschool - fix double pictures

rachels 6 years ago
parent
commit
9836caa6c3
2 changed files with 30 additions and 30 deletions
  1. 12 30
      locations/gschool_lessons
  2. 18 0
      locations/shortgs

+ 12 - 30
locations/gschool_lessons

@@ -272,14 +272,12 @@ if $ARGS[0] = 'math':
 			'A few students raise their hands and Anatoly points to Arkadi Fyodorov, who answers, "They have six of course because four plus two equals six." Anatoly chuckles as he replies, "But of course. Four plus two is six, but are those the number of BOTTLE CAPS they have? The correct answer is no. Anna has four bottle caps and Dina has two PEBBLES, not bottle caps. You need to pay better attention to the actual question." Some of the other boys begin laughing at Arkadi while some of the girls giggle.'
 			*nl
 			'Anatoly continues, "Do not let the numbers fool you. Understanding the question is the most important part of answering it. Now I''m going to hand out some sheets with multiple choice questions and all of you will have 10 minutes to answer each one." Anatoly reaches for some papers then begins handing them out while the boy crosses his arms trying to ignore some of the others laughing at him.'
-			'<center><b><font color=#C2032C><<"Arkadi Fyodorov">></font></b></center>'
-			'<center><img <<$set_imgh>> src="images/characters/pavlovsk/school/head/41.jpg"></center>'
+			gs 'shortgs', 'replace header', 2000, 2 , '<center><b><font color=#C2032C><<"Arkadi Fyodorov">></font></b></center>','<center><img <<$set_imgh>> src="images/characters/pavlovsk/school/head/41.jpg"></center>'
 		else
 			'A few students raise their hands and Anatoly points to Julia Milov, who answers, "The answer is four because Anna is the only one with bottle caps. Dina only has pebbles which might as well not be mentioned, as it does not pertain to the answer needed." Anatoly tilts his head in surprise at Julia''s answer while Christina whispers to one of the other girls, "Wow she is really smart. Is she studying to be a teacher or something?"'
 			*nl
 			'Anatoly nods his head then says, responding, "Precisely. The involvement of Dina was only to deceive the one answering the question, which is why it is referred to, as a trick question. Now I would like to see who was paying attention and who was dozing off. I will be handing out some sheets with multiple choice questions and all of you will have 10 minutes to answer each one." Anatoly reaches for some papers on his desk then begins handing them out."'
-			'<center><b><h4><font color=#00EAFF><<"Julia Milov">></font></h4></b></center>'
-			'<center><img <<$set_imgh>> src="images/characters/pavlovsk/school/girl/julia/love/sad1.jpg"></center>'
+			gs 'shortgs', 'replace header', 2000, 2 , '<center><b><h4><font color=#00EAFF><<"Julia Milov">></font></h4></b></center>','<center><img <<$set_imgh>> src="images/characters/pavlovsk/school/girl/julia/love/sad1.jpg"></center>'
 		end
 	elseif VK = 2:
 		VK = rand(1,3)
@@ -295,45 +293,32 @@ if $ARGS[0] = 'math':
 				'Niko shrugs then continues walking toward his seat while Anatoly says, "Fine, try not to anger any more old ladies, will you?" Niko uses his thumb to point to Christina as he jokingly replies, "I can''t control when Christina get angry at me." Christina recoils, obviously caught off guard and offended by his comment. She lifts up her fist then punches Niko several times in the arm before Anatoly says, in a stern voice, "Hey knock it off you two. Niko sit down, before I send you to the principal''s office!"'
 				*nl
 				'Niko casually sits down while rubbing his arm then opens his mouth to speak, only to get cut off by Mr. Tsarev. "Not another word!...Alright let''s get back to the lesson, unless someone would like to visit the principal''s office instead." He looks to Niko, who shakes his head. The class remains silent as Anatoly begins handing out work sheets. He is obviously not in a good mood.'
-				'<center><b><h4><font color=#E400FF><<"Nikolai [Niko] Volkov">></font></h4></b></center>'
-				if NikoPayback > 0:
-					'<center><img <<$set_imgh>> src="images/characters/pavlovsk/school/boy/niko/nikomisc/avatars/<<week>>.jpg"></center>'
-				else
-					'<center><img <<$set_imgh>> src="images/characters/pavlovsk/school/boy/niko/nikoev/avatars/<<week>>.jpg"></center>'
-				end
 			elseif VK = 2:
 				'"While I was on my way to class, some braindead bimbo spilled her coffee on my uniform so I was forced to head back home to clean up. You wouldn''t want me to arrive covered in coffee right?" Anatoly sighs before responding, "So you couldn''t run home and change your shirt before the start of class?" Niko replies, "Well I had to clean out the coffee from my hair as well as, restyle it and that takes time."'
 				*nl
 				'Christina adds in, "Why even bother washing the coffee off? You always look like a greasy punk anyway." Niko leans toward Christina then says, "You don''t have to play hard to get, if you want my attention then you need only ask." Christina whispers in a seductive voice, "I should tell you that I have been looking for a handsome, strong and...sexy man in my life." Niko whispers back, "Ohh yeah?"'
 				*nl
 				'Christina then replies, "That is why I have no interest in dating losers like you." Christina then laughs in Niko''s face as he clenches his fist before walking to his seat. Mr. Tsarev then says, "Are you two love birds done? Can we begin the lesson now?" Christina continues laughing as Niko remains silent, obviously upset. Mr. Tsarev begins handing out some work sheets to the class. As Anatoly hands Niko a sheet, he says, "Try to leave your home earlier so that you can arrive her on time. It''s not hard."'
-				'<center><b><h4><font color=#E400FF><<"Nikolai [Niko] Volkov">></font></h4></b></center>'
-				if NikoPayback > 0:
-					'<center><img <<$set_imgh>> src="images/characters/pavlovsk/school/boy/niko/nikomisc/avatars/<<week>>.jpg"></center>'
-				else
-					'<center><img <<$set_imgh>> src="images/characters/pavlovsk/school/boy/niko/nikoev/avatars/<<week>>.jpg"></center>'
-				end
 			else
 				'"There must have been a power outage in my house this morning because my alarm was not working at all." Anatoly replies, "Strange, I haven''t heard about any power outages this morning." Niko shrugs as he responds, "It might be a faulty wire in my house or something." Mr. Tsarev crosses his arms as he says, "Why do all these things seem to happen to you before my class?" Niko shrugs again before saying, "I guess that I''m just unlucky." Igor scuffs before adding, "Don''t you ever get tired of lying? You are really bad at it."'
 				*nl
 				'Niko turns to Igor then quickly approaches him before grabbing onto his collar then saying, "You have something to say to me faggot? I''ll knock your teeth out." Igor leans back with a frightful look on his face as he replies, "No, no I didn''t... I''m  sorry, I''m sorry." Mr. Tsarev slams a textbook on his desk before shouting, "Nikolai! Knock it off and either get in your seat or go to the principal''s office!" Niko slightly lunges forward to trick Igor into thinking that he will punch him, which ends up working,'
 				*nl
 				'causing Igor to pull back, covering his face with his arms. Niko then chuckles before walking to his seat. Mr. Tsarev says, "Enough interruptions, let us begin today''s lesson. I hope you have all been studying because today''s lesson will have many tough questions for you all to answer." Mr. Tsarev begins handing out some worksheets to the class.'
-				'<center><b><h4><font color=#E400FF><<"Nikolai [Niko] Volkov">></font></h4></b></center>'
-				if NikoPayback > 0:
-					'<center><img <<$set_imgh>> src="images/characters/pavlovsk/school/boy/niko/nikomisc/avatars/<<week>>.jpg"></center>'
-				else
-					'<center><img <<$set_imgh>> src="images/characters/pavlovsk/school/boy/niko/nikoev/avatars/<<week>>.jpg"></center>'
-				end
 			end
+			if NikoPayback > 0:
+				gs 'shortgs', 'replace header', 2000, 2 ,'<center><b><h4><font color=#E400FF><<"Nikolai [Niko] Volkov">></font></h4></b></center>','<center><img <<$set_imgh>> src="images/characters/pavlovsk/school/boy/niko/nikomisc/avatars/<<week>>.jpg"></center>'
+			else
+				gs 'shortgs', 'replace header', 2000, 2 ,'<center><b><h4><font color=#E400FF><<"Nikolai [Niko] Volkov">></font></h4></b></center>','<center><img <<$set_imgh>> src="images/characters/pavlovsk/school/boy/niko/nikoev/avatars/<<week>>.jpg"></center>'
+			end
+			
 		else
 			'Dimka scoffs as he says, "Why would they do that? That sounds stupid to me." Anatoly responds, "Ahh Dmitriy, it is nice of you to raise your hand and volunteer to answer my next question." Dimka facepalms as Anatoly continues, "if the current time is 4am and you have a dentist appointment at 2pm then how long do you have to wait until your dentist appointment begins? Remember that you need to calculate the numbers while keeping the 12 hour timezones in mind."'
 			*nl
 			'Dimka responds, "If it is really 4am then I would probably go to sleep and figure it out in the morning." Many of the students along with Anatoly, begin laughing. "That was not exactly the answer I was looking for, but I can forgive it. The answer for that question was ten hours." Anatoly grabs a piece of chalk then begins writing on the chalkboard; "A simple way of figuring it out is by looking at the arrive time. The time for arriving is 2pm which mean that it is two hours after twelve.'
 			*nl
 			'Those added together equals fourteen. Lastly we need to subtract the current time from this to eliminate the time already passed. fourteen minus four equals ten, giving us our answer." Dimka sarcastically responds, "Yeah that''s...Real simple." Igor laughs, as Anatoly responds with a smirk on his face, "With practice it will be, speaking of which, I will begin handing out some simple problems for you to solve." Anatoly then reaches for some papers on his desk then begins handing them out.'
-			'<center><b><h4><font color="maroon"><<"Dmitriy [Dimka] Nosov">></font></h4></b></center>'
-			'<center><img <<$set_imgh>> src="images/characters/pavlovsk/school/head/1.jpg"></center>'
+			gs 'shortgs', 'replace header', 2000, 2 ,'<center><b><h4><font color="maroon"><<"Dmitriy [Dimka] Nosov">></font></h4></b></center>','<center><img <<$set_imgh>> src="images/characters/pavlovsk/school/head/1.jpg"></center>'
 		end
 	elseif VK = 3:
 		VKrand = rand(1,3)
@@ -349,14 +334,11 @@ if $ARGS[0] = 'math':
 		*nl
 		'The smallest number in existence is...Nothing. There is no smallest number. Numbers can go beyond negative in an infinite cycle and infinity has no bottom point, so finding the smallest number is an impossibility during an infinite cycle. I will be handing out some worksheet with negative and positive number problems. Try to answer as many as possible in the next 15 minutes." Mr. Tsarev begins handing out worksheets to the class.'
 		if VKrand = 1:
-			'<center><b><font color=#0090FF><<"Christina Zvereva">></font></b></center>'
-			'<center><img <<$set_imgh>> src="images/characters/pavlovsk/school/head/18.jpg"></center>'
+			gs 'shortgs', 'replace header', 2000, 2 ,'<center><b><font color=#0090FF><<"Christina Zvereva">></font></b></center>','<center><img <<$set_imgh>> src="images/characters/pavlovsk/school/head/18.jpg"></center>'
 		elseif VKrand = 2:
-			'<center><b><font color=#00A8FF><<"Natasha Belova">></font></b></center>'
-			'<center><img <<$set_imgh>> src="images/characters/pavlovsk/school/head/16.jpg"></center>'
+			gs 'shortgs', 'replace header', 2000, 2 ,'<center><b><font color=#00A8FF><<"Natasha Belova">></font></b></center>', '<center><img <<$set_imgh>> src="images/characters/pavlovsk/school/head/16.jpg"></center>'
 		elseif VKrand = 3:
-			'<center><b><font color=#FFC600><<"Igor Kruglov">></font></b></center>'
-			'<center><img <<$set_imgh>> src="images/characters/pavlovsk/school/head/4.jpg"></center>'
+			gs 'shortgs', 'replace header', 2000, 2 ,'<center><b><font color=#FFC600><<"Igor Kruglov">></font></b></center>', '<center><img <<$set_imgh>> src="images/characters/pavlovsk/school/head/4.jpg"></center>'
 		end
 	end
 

+ 18 - 0
locations/shortgs

@@ -675,5 +675,23 @@ if $ARGS[0] = 'testsize':
 	arrsize('npcbrokehymen')
 end
 
+if $ARGS[0] = 'replace header':
+	wait(ARGS[1])
+	RH_Count = ARGS[2]
+	$RH_temp = $MAINTXT
+:RH_label
+	RH_temp_lenght = LEN($RH_temp)
+	RH_temp_LFpos = STRPOS($RH_temp,'\n')
+	$RH_temp = $MID($RH_temp, RH_temp_LFpos+1, RH_temp_lenght - RH_temp_LFpos)
+	RH_Count -=1
+	if RH_Count > 0: jump 'RH_label'
+	*clr
+	$ARGS[3] & $ARGS[4] & $ARGS[5] & $ARGS[6] & $ARGS[7]
+	$RH_temp
+	killvar '$RH_temp'
+	killvar 'RH_Count'
+	killvar 'RH_temp_lenght'
+	killvar 'RH_temp_LFpos'
+end
 --- shortgs ---------------------------------