Prechádzať zdrojové kódy

Post office as a location. only has long wait and paying into bank ac atm.

KevinSmarts 8 rokov pred
rodič
commit
74d499ec68
5 zmenil súbory, kde vykonal 79 pridanie a 0 odobranie
  1. 1 0
      glife-notepad++
  2. 1 0
      glife.qproj
  3. 1 0
      locations/down
  4. 1 0
      locations/pavCommercial
  5. 75 0
      locations/postoffice

+ 1 - 0
glife-notepad++

@@ -504,6 +504,7 @@
             <File name="locations\pornstudio" />
             <File name="locations\portmirror" />
             <File name="locations\portnoi2" />
+            <File name="locations\Postoffice" />
             <File name="locations\priziv" />
             <File name="locations\Prostitute" />
             <File name="locations\prut" />

+ 1 - 0
glife.qproj

@@ -125,6 +125,7 @@
     <Folder name="Shared locations">
       <Location name="shop"/>
       <Location name="bank"/>
+      <Location name="postoffice"/>
       <Location name="kiosk"/>
       <Location name="taxi"/>
       <Location name="metro"/>

+ 1 - 0
locations/down

@@ -131,6 +131,7 @@ if pornstudio >= 1 and hour > 5:'At the <a href="exec:gt ''pornstudio'', ''start
 if week < 6 and hour >= 7:'At the <a href="exec:gt ''univer'', ''start''">University</a> where you can earn your diploma.'
 if student > 0 or (hour >= 6 and hour <= 23):'The <a href="exec:gt ''dorm'', ''start''">Hostel</a> offers a small, but cheap, living space, for university students.'
 if week < 6 and hour >= 9 and hour <= 18:'You can see the most important <a href="exec:bankloc = 1 & gt ''bank'', ''start''">Bank</a> in the city from here.'
+if (week < 6 and hour >= 9 and hour <= 16) or (week = 6 and hour >= 9 and hour <= 13):'The local <a href="exec:bankloc = 1 & gt ''postoffice'', ''start''">post office</a> branch is open.'
 if week < 6 and hour >= 8 and hour <= 17:'In the largest skyscraper is a huge <a href="exec:gt ''office'', ''start''">Project Organization</a> located.'
 if hour >= 8 and hour <= 22:'At the <a href="exec:gt ''agentned'',''start''">Real Estate Agency</a> you can buy or rent an apartment.'
 

+ 1 - 0
locations/pavCommercial

@@ -83,6 +83,7 @@ if hour >= 8 and hour <= 17:'The local <a href="exec: minut += 3 & gt ''barbersh
 if hour >= 7 and hour <= 18:'Pavlovsk has a <a href="exec:gt ''etoexhib'', ''pos20''">vocational school</a>, where young adults can learn a trade.'
 if hour >= 8 and hour <= 20:'There is a big chain <a href="exec:gt ''shop'', ''start''">supermarket</a> nearby.'
 if week < 6 and hour >= 9 and hour <= 18:'You can see the most important <a href="exec:bankloc = 0 & gt ''bank'', ''start''">Bank</a> in the city from here.'
+if (week < 6 and hour >= 9 and hour <= 16) or (week = 6 and hour >= 9 and hour <= 13):'The local <a href="exec:bankloc = 0 & gt ''postoffice'', ''start''">post office</a> branch is open.'
 
 'A <a href="exec:minut += 15 & gt ''Gshveyfab'', ''start''">garment factory</a> named Paris Commune is situated in the industrial area on the outskirts of town, close to the highway.'
 

+ 75 - 0
locations/postoffice

@@ -0,0 +1,75 @@
+# postoffice
+
+if $ARGS[0] = 'start':
+	cla
+	clr
+	*clr
+	minut += 5
+	gs 'stat'
+	fcolor = rgb(0, 0, 0)
+	bcolor = rgb(255, 255, 255)
+	lcolor = rgb(106, 90, 205)
+	'<center>Post Office</center>'
+	'<center><img src="images/locations/shared/postoffice/main.jpg"></center>'
+	'It is currently very busy and looks like you''ll have to wait to get to the counter.'
+		act 'Wait in line (30 Minutes)':
+			minut += 30
+			gt 'postoffice', 'counter'
+		end
+	end
+
+	act 'Leave':
+		minut += 5
+		if bankloc = 1:
+			gt 'down'
+		else
+			gt 'pavCommercial'
+		end
+	end
+end
+
+if $ARGS[0] = 'counter':
+	!image goes here
+	'The counter, its boring here.'
+	
+	if bankAccount = 1 and money > 0:
+		act 'Deposit money to your bank account':
+			cla
+			minut += 5
+			kartaIN = input ("How much money you want to deposit into the account?")
+
+			if kartaIN <= 0 or kartaIN > money:
+				'Not correct operation.'
+			else
+				karta += kartaIN
+				money -= kartaIN
+
+				'<br>You put on the account <<kartaIN>> <b>₽</b>, now you have <<karta>> <b>₽</b> on it.'
+			end
+
+			'"Is there anything else I can do for you?"'
+
+			act 'Yes':gt 'postoffice', 'counter'
+			act 'Leave':
+				minut += 5
+				if bankloc = 1:
+					gt 'down'
+				else
+					gt 'pavCommercial'
+				end
+			end
+		end
+	end
+
+	act 'Leave':
+		minut += 5
+		if bankloc = 1:
+			gt 'down'
+		else
+			gt 'pavCommercial'
+		end
+	end
+end
+
+--- postoffice ---------------------------------
+