Guest User

Untitled

a guest
May 14th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.92 KB | None | 0 0
  1.  
  2.  
  3.  
  4.  
  5. #!/usr/bin/env python
  6. # -*- coding: utf-8 -*-
  7. #
  8. # untitled.py
  9. #
  10. # Copyright 2011 mathieu <mathieu@crunchbang>
  11. #
  12. # This program is free software; you can redistribute it and/or modify
  13. # it under the terms of the GNU General Public License as published by
  14. # the Free Software Foundation; either version 2 of the License, or
  15. # (at your option) any later version.
  16. #
  17. # This program is distributed in the hope that it will be useful,
  18. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  19. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  20. # GNU General Public License for more details.
  21. #
  22. # You should have received a copy of the GNU General Public License
  23. # along with this program; if not, write to the Free Software
  24. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
  25. # MA 02110-1301, USA.
  26. #
  27. #
  28. ##############################################################################
  29. #
  30. print ' ___________ __ '
  31. print ' \_ _____/__ __ ____ _____/ |_'
  32. print ' | __)_\ \/ // __ \ / \ __\ '
  33. print ' | \ /\ ___/| | \ | '
  34. print ' /_______ / \_/ \___ >___| /__| '
  35. print ' \/ \/ \/ '
  36. print ' ___ ___ .__ '
  37. print ' / | \ ___________|__|___________ ____'
  38. print '/ ~ \/ _ \_ __ \ \___ / _ \ / \ '
  39. print '\ Y ( <_> ) | \/ |/ ( <_> ) | \ '
  40. print ' \___|_ / \____/|__| |__/_____ \____/|___| / '
  41. print ' \/ \/ \/ '
  42. print '.___ __ __ .__'
  43. print '| | _____/ |_ ________________ _____/ |_|__|__ __ ____'
  44. print '| |/ \ __\/ __ \_ __ \__ \ _/ ___\ __\ \ \/ // __ \ '
  45. print '| | | \ | \ ___/| | \// __ \ \___| | | |\ /\ ___/ '
  46. print '|___|___| /__| \___ >__| (____ /\___ >__| |__| \_/ \___ > '
  47. print ' \/ \/ \/ \/ \/ '
  48. print 'By: Mathieu Dombrock 2011-2012 GPL'
  49.  
  50. import random
  51.  
  52. global loc_n
  53. global loc_s
  54. global loc_e
  55. global loc_w
  56.  
  57. global com_
  58. global tut
  59.  
  60.  
  61. loc_n = 0
  62. loc_s = 0
  63. loc_e = 0
  64. loc_w = 0
  65. global name
  66. global com_
  67.  
  68. def clear():
  69. print
  70. print
  71. print
  72. print
  73. print
  74. print
  75. print
  76. print
  77. print
  78. print
  79. print
  80. print
  81. print
  82. print
  83. print
  84. print
  85. print
  86. print
  87. print
  88. print
  89. print
  90. print
  91. print
  92. print
  93. print
  94. print
  95. print
  96. print
  97. print
  98. print
  99. print
  100. print
  101. print
  102. print
  103. print
  104. print
  105. print
  106. print
  107. print
  108. print
  109. print
  110. print
  111. print
  112. print
  113. print
  114. print
  115. print
  116. print
  117. command()
  118. def loc_check():
  119. global loc_n
  120. global loc_s
  121. global loc_e
  122. global loc_w
  123.  
  124. if (loc_n == 0) and (loc_e == 0) and (tut == 0):
  125. lvl_one()
  126. #2-0
  127. if (loc_n == 2) and (loc_e == 0):
  128. raw_input('You found a text file left here by someone else<')
  129. raw_input('It is entitled "Xkill.txt"<')
  130. raw_input('I does not belong to you but if you feel the need to open it \n you can enter "Xkill.txt"<')
  131. command()
  132.  
  133. else :
  134. command()
  135.  
  136. #main
  137.  
  138. def V_info():
  139.  
  140. raw_input('***LOADING V_info***<')
  141. raw_input('King117: Vnet is the virtual world<')
  142. raw_input('It is all around you, though you cant detect it with any of your 5 humanoid scense receptors.<')
  143. raw_input('The terminal in front of you is your gateway to this virtual world, your Vserver<')
  144. raw_input('***UPD^TE ERR0***<')
  145. raw_input('***SyS n0nCRit##***<')
  146. raw_input('It appears that we have experienced a non critical system error on the Vserver update<')
  147. raw_input('Your hardware is probably out dated...<')
  148. raw_input('According to my scan, youre hardware is from circa 2000 A.D.<')
  149. raw_input('...')
  150. raw_input('I managed to update Vserver but there no garuntee that everything will work right<')
  151. raw_input('This would definatly explain your lack of on-screen images<')
  152. raw_input('I strongly suggest that you upgrade you hardware to somthing made after 2050 A.D. at the very least<')
  153. raw_input('That is the only way you can get images with Vserver<')
  154. raw_input('***CONTINUING IN TEXT MODE***<')
  155. raw_input('In Vnet, just like the "real" world there are four cardinal directions<')
  156. raw_input('North, South, East, and West<')
  157. raw_input('You can use the keys "w, a, s, and d" to move about in Vnet')
  158. print
  159. raw_input('To move North enter "w" in the command line<')
  160. raw_input('To move South enter "s" in the command line<')
  161. raw_input('To move East enter "a" in the command line<')
  162. raw_input('To move West enter "d" in the command line<')
  163. raw_input('Note: the command line is CASE SENSITIVE<')
  164. raw_input('You can also enter "gps" to veiw your location inside Vnet<')
  165. raw_input('Ill bring you to the command line now and you can try these yourself<')
  166.  
  167. command()
  168.  
  169.  
  170.  
  171. def north():
  172. global loc_n
  173. global loc_s
  174. print 'You travel Northward'
  175. loc_n = (loc_n + 1)
  176. loc_s = (loc_s - 1)
  177. loc_check()
  178. def south():
  179. global loc_s
  180. global loc_n
  181. print 'You travel Southward'
  182.  
  183. loc_s = (loc_s + 1)
  184. loc_n = (loc_n - 1)
  185. loc_check()
  186. def east():
  187. global loc_e
  188. global loc_w
  189. print 'You travel Eastward'
  190. loc_e = (loc_e + 1)
  191. loc_w = (loc_w - 1)
  192. loc_check()
  193. def west():
  194. global loc_w
  195. global loc_e
  196. print 'You travel Westward'
  197. loc_w = (loc_w + 1)
  198. loc_e = (loc_e - 1)
  199. loc_check()
  200. def intro():
  201. global name
  202. print
  203. print
  204. print
  205. name = str(raw_input('What is your name?: '))
  206. raw_input( 'Greetings <' )
  207. raw_input( 'My name is King117 <')
  208. raw_input( 'Lets get started then <')
  209. loc_check()
  210. def GPS():
  211. global loc_n
  212. global loc_s
  213. global loc_e
  214. global loc_w
  215. global name
  216.  
  217. loc = int(loc_n +loc_s + loc_e + loc_w)
  218.  
  219. print 'N: ' , loc_n
  220. print 'S: ' , loc_s
  221. print 'E: ' , loc_e
  222. print 'W: ' , loc_w
  223. command()
  224.  
  225. #commands
  226. def command():
  227. global com_
  228. global loc_n
  229. global loc_s
  230. global loc_e
  231. global loc_w
  232. global name
  233. global tut
  234.  
  235. print
  236. com_ = str(raw_input('$V{0}-##@Vnet.143.311.7:'.format(name)))
  237.  
  238. if com_ == ('w'):
  239. north()
  240. if com_ == ('s'):
  241. south()
  242. if com_ == ('d'):
  243. east()
  244. if com_ == ('a'):
  245. west()
  246. if com_ == ('gps'):
  247. GPS()
  248.  
  249. if com_ == ('V_info'):
  250.  
  251. V_info()
  252. if com_ == ('/update'):
  253. raw_input('There are no new updates<')
  254. command()
  255.  
  256. if com_ == ('fuck') or ('damn') or ('shit'):
  257. raw_input('***Error 99H [S0AP]***<')
  258. command()
  259.  
  260. if com_ == (''):
  261. print '***Error 7A [Input Required]***'
  262. command()
  263. if com_ == ('tut'):
  264. print tut
  265. command()
  266. if com_ == ('Xkill.txt'):
  267. lvl_XkillTXT()
  268. if com_ == ('/help' or 'help'):
  269. raw_input('***Help()***')
  270. raw_input('***Sysss err0r 4o4 and 4o5***<')
  271. raw_input('***{No items found}***<')
  272. raw_input(".")
  273. command()
  274.  
  275. if com_ == ('/clear'):
  276. clear()
  277.  
  278.  
  279.  
  280. else :
  281. print '***4o4-RETURN-4o5***'
  282. command()
  283.  
  284.  
  285.  
  286.  
  287. #levels
  288. def lvl_one():
  289. global tut
  290. global name
  291.  
  292.  
  293.  
  294. raw_input('***RUNNING IN TEXT MODE***<')
  295. name = str(raw_input('Username: '))
  296. raw_input('*King117*: Todays date is Jul. 7 , 2114<')
  297. raw_input('Vserver is updating to version 7x<')
  298. raw_input('...<')
  299. raw_input('52.5 % completed<')
  300. raw_input('This new update will allow you to explore Vnet at much higer speeds than before<')
  301. print
  302. print '********'
  303. print 'Would you like more info on Vnet and Vserver? \n (enter "V_info" if you would like more info)<'
  304. print '********'
  305. print
  306. tut = 1
  307. command()
  308. def lvl_XkillTXT() :
  309. raw_input('***ENCRYPTED***<')
  310. password = raw_input('PASSWORD: ')
  311. if password == ('truth117'):
  312. #do stuff
  313. print "yaaah"
  314. else :
  315. raw_input('FALSE')
  316. command()
  317. def lvl_Zed() :
  318. raw_input('You see a tall man<')
  319. raw_input('He is smoking a cigarette and typing on a cumputer<')
  320. raw_input('His back is turned and he doesnt seem to notice you<')
  321.  
  322.  
  323.  
  324.  
  325.  
  326.  
  327.  
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334.  
  335.  
  336. if __name__ == '__main__':
  337. lvl_one()
Add Comment
Please, Sign In to add comment