Noneatme

Untitled

Jun 22nd, 2013
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 16.28 KB | None | 0 0
  1. -- Decompiled using luadec 2.1 UNICODE by sztupy (http://winmo.sztupy.hu) and viruscamp
  2. -- Command line was: dec/tour.luac
  3.  
  4. local screenWidth, screenHeight = guiGetScreenSize()
  5. createTextBox1 = function()
  6.   -- upvalues: screenWidth , screenHeight
  7.   local Zeile1 = "Willkommen auf Vio Reallife"
  8.   local Zeile2 = "Ziel dieser Tour ist es: Euch einen perfekten"
  9.   local Zeile3 = "Einstieg in euer Vio-Leben zu schaffen."
  10.   dxDrawText(Zeile1, screenWidth / 12, screenHeight - 188, screenWidth, screenHeight, tocolor(0, 0, 0, 255), 1, "bankgothic")
  11.   dxDrawText(Zeile1, screenWidth / 12, screenHeight - 185, screenWidth, screenHeight, tocolor(0, 255, 0, 255), 1, "bankgothic")
  12.   dxDrawText(Zeile2, screenWidth / 12, screenHeight - 153, screenWidth, screenHeight, tocolor(0, 0, 0, 255), 1, "bankgothic")
  13.   dxDrawText(Zeile2, screenWidth / 12, screenHeight - 150, screenWidth, screenHeight, tocolor(255, 255, 255, 255), 1, "bankgothic")
  14.   dxDrawText(Zeile3, screenWidth / 12, screenHeight - 123, screenWidth, screenHeight, tocolor(0, 0, 0, 255), 1, "bankgothic")
  15.   dxDrawText(Zeile3, screenWidth / 12, screenHeight - 120, screenWidth, screenHeight, tocolor(255, 255, 255, 255), 1, "bankgothic")
  16.   setCameraMatrix(-1230.6999511719, 940.40002441406, 90.89999389648, -1531.0999755859, 687.40002441406, 30.099998474121)
  17. end
  18.  
  19. createTextBox2 = function()
  20.   -- upvalues: screenWidth , screenHeight
  21.   local Zeile1 = "Es werden Dinge gezeigt wie:"
  22.   local Zeile2 = "Wo ist was / Wie starte ich richtig"
  23.   local Zeile3 = "Wo bekomme ich Hilfe / Fahrzeugsystem"
  24.   local Zeile4 = "Womit verdient man Geld / Unsere Serverregeln"
  25.   dxDrawText(Zeile1, screenWidth / 12, screenHeight - 188, screenWidth, screenHeight, tocolor(0, 0, 0, 255), 1, "bankgothic")
  26.   dxDrawText(Zeile1, screenWidth / 12, screenHeight - 185, screenWidth, screenHeight, tocolor(255, 255, 255, 255), 1, "bankgothic")
  27.   dxDrawText(Zeile2, screenWidth / 12, screenHeight - 153, screenWidth, screenHeight, tocolor(0, 0, 0, 255), 1, "bankgothic")
  28.   dxDrawText(Zeile2, screenWidth / 12, screenHeight - 150, screenWidth, screenHeight, tocolor(255, 255, 255, 255), 1, "bankgothic")
  29.   dxDrawText(Zeile3, screenWidth / 12, screenHeight - 123, screenWidth, screenHeight, tocolor(0, 0, 0, 255), 1, "bankgothic")
  30.   dxDrawText(Zeile3, screenWidth / 12, screenHeight - 120, screenWidth, screenHeight, tocolor(255, 255, 255, 255), 1, "bankgothic")
  31.   dxDrawText(Zeile4, screenWidth / 12, screenHeight - 83, screenWidth, screenHeight, tocolor(0, 0, 0, 255), 1, "bankgothic")
  32.   dxDrawText(Zeile4, screenWidth / 12, screenHeight - 80, screenWidth, screenHeight, tocolor(255, 0, 0, 255), 1, "bankgothic")
  33. end
  34.  
  35. createTextBox3 = function()
  36.   -- upvalues: screenWidth , screenHeight
  37.   local Zeile1 = "Hier sehen wir den Supermarkt,"
  38.   local Zeile2 = "er ist zu gleich der Startpunkt von neuen Spielern"
  39.   local Zeile3 = "Es ist eine No DM Zone ! "
  40.   local Zeile4 = "Mehr zu No DM Zonen findest du im Forum"
  41.   setCameraMatrix(-2516.1999511719, 797.79998779297, 54.799999237061, -2457.6000976563, 773.90002441406, 34.799999237061)
  42.   dxDrawText(Zeile1, screenWidth / 12, screenHeight - 188, screenWidth, screenHeight, tocolor(0, 0, 0, 255), 1, "bankgothic")
  43.   dxDrawText(Zeile1, screenWidth / 12, screenHeight - 185, screenWidth, screenHeight, tocolor(255, 255, 255, 255), 1, "bankgothic")
  44.   dxDrawText(Zeile2, screenWidth / 12, screenHeight - 153, screenWidth, screenHeight, tocolor(0, 0, 0, 255), 1, "bankgothic")
  45.   dxDrawText(Zeile2, screenWidth / 12, screenHeight - 150, screenWidth, screenHeight, tocolor(255, 255, 255, 255), 1, "bankgothic")
  46.   dxDrawText(Zeile3, screenWidth / 12, screenHeight - 123, screenWidth, screenHeight, tocolor(0, 0, 0, 255), 1, "bankgothic")
  47.   dxDrawText(Zeile3, screenWidth / 12, screenHeight - 120, screenWidth, screenHeight, tocolor(255, 0, 0, 255), 1, "bankgothic")
  48.   dxDrawText(Zeile4, screenWidth / 12, screenHeight - 83, screenWidth, screenHeight, tocolor(0, 0, 0, 255), 1, "bankgothic")
  49.   dxDrawText(Zeile4, screenWidth / 12, screenHeight - 80, screenWidth, screenHeight, tocolor(255, 0, 0, 255), 1, "bankgothic")
  50. end
  51.  
  52. createTextBox4 = function()
  53.   -- upvalues: screenWidth , screenHeight
  54.   local Zeile1 = "Das ist das Vio Rathaus"
  55.   local Zeile2 = "Scheine wie Fuehrerschein kann man hier beantragen"
  56.   local Zeile3 = "Es gibt zusetztlich noch eine JobHilfe"
  57.   setCameraMatrix(-2708.1999511719, 378.29998779297, 13.89999961853, -2765.8999023438, 375.60000610352, 6)
  58.   dxDrawText(Zeile1, screenWidth / 12, screenHeight - 188, screenWidth, screenHeight, tocolor(0, 0, 0, 255), 1, "bankgothic")
  59.   dxDrawText(Zeile1, screenWidth / 12, screenHeight - 185, screenWidth, screenHeight, tocolor(0, 0, 255, 255), 1, "bankgothic")
  60.   dxDrawText(Zeile2, screenWidth / 12, screenHeight - 153, screenWidth, screenHeight, tocolor(0, 0, 0, 255), 1, "bankgothic")
  61.   dxDrawText(Zeile2, screenWidth / 12, screenHeight - 150, screenWidth, screenHeight, tocolor(255, 255, 255, 255), 1, "bankgothic")
  62.   dxDrawText(Zeile3, screenWidth / 12, screenHeight - 123, screenWidth, screenHeight, tocolor(0, 0, 0, 255), 1, "bankgothic")
  63.   dxDrawText(Zeile3, screenWidth / 12, screenHeight - 120, screenWidth, screenHeight, tocolor(255, 255, 255, 255), 1, "bankgothic")
  64. end
  65.  
  66. createTextBox5 = function()
  67.   -- upvalues: screenWidth , screenHeight
  68.   local Zeile1 = "Ein beginner Job ist zB. Der Bauarbeiterjob"
  69.   local Zeile2 = "Anlagen warten / Bagger fahren / Zement ausliefern"
  70.   local Zeile3 = "Mit steigender Erfahrung steigt auch der Verdienst"
  71.   setCameraMatrix(911.79998779297, 842.09997558594, 44.299999237061, 819.70001220703, 857.90002441406, 11.699999809265)
  72.   dxDrawText(Zeile1, screenWidth / 12, screenHeight - 188, screenWidth, screenHeight, tocolor(0, 0, 0, 255), 1, "bankgothic")
  73.   dxDrawText(Zeile1, screenWidth / 12, screenHeight - 185, screenWidth, screenHeight, tocolor(255, 255, 255, 255), 1, "bankgothic")
  74.   dxDrawText(Zeile2, screenWidth / 12, screenHeight - 153, screenWidth, screenHeight, tocolor(0, 0, 0, 255), 1, "bankgothic")
  75.   dxDrawText(Zeile2, screenWidth / 12, screenHeight - 150, screenWidth, screenHeight, tocolor(255, 255, 255, 255), 1, "bankgothic")
  76.   dxDrawText(Zeile3, screenWidth / 12, screenHeight - 123, screenWidth, screenHeight, tocolor(0, 0, 0, 255), 1, "bankgothic")
  77.   dxDrawText(Zeile3, screenWidth / 12, screenHeight - 120, screenWidth, screenHeight, tocolor(255, 255, 255, 255), 1, "bankgothic")
  78. end
  79.  
  80. createTextBox6 = function()
  81.   -- upvalues: screenWidth , screenHeight
  82.   local Zeile1 = "Noch einer von Insgesammt 11 Jobs. Der Truckerjob"
  83.   local Zeile2 = "Versorge das Hotel und andere mit Pizzen"
  84.   local Zeile3 = "Transpotiere Gefahrengut sicher durch Vio"
  85.   setCameraMatrix(-1820, 173.60000610352, 25.5, -1828.5, 101.19999694824, 14.800000190735)
  86.   dxDrawText(Zeile1, screenWidth / 12, screenHeight - 188, screenWidth, screenHeight, tocolor(0, 0, 0, 255), 1, "bankgothic")
  87.   dxDrawText(Zeile1, screenWidth / 12, screenHeight - 185, screenWidth, screenHeight, tocolor(255, 255, 255, 255), 1, "bankgothic")
  88.   dxDrawText(Zeile2, screenWidth / 12, screenHeight - 153, screenWidth, screenHeight, tocolor(0, 0, 0, 255), 1, "bankgothic")
  89.   dxDrawText(Zeile2, screenWidth / 12, screenHeight - 150, screenWidth, screenHeight, tocolor(255, 255, 255, 255), 1, "bankgothic")
  90.   dxDrawText(Zeile3, screenWidth / 12, screenHeight - 123, screenWidth, screenHeight, tocolor(0, 0, 0, 255), 1, "bankgothic")
  91.   dxDrawText(Zeile3, screenWidth / 12, screenHeight - 120, screenWidth, screenHeight, tocolor(255, 255, 255, 255), 1, "bankgothic")
  92. end
  93.  
  94. createTextBox7 = function()
  95.   -- upvalues: screenWidth , screenHeight
  96.   local Zeile1 = "Das Wangcars Autohaus"
  97.   local Zeile2 = "Autos ab 750$ gibt es hier zu kaufen"
  98.   local Zeile3 = "Somit besonders geeignet fuer Beginner"
  99.   setCameraMatrix(-2017.0999755859, 239.89999389648, 40.799999237061, -1969.0999755859, 296.60000610352, 34.799999237061)
  100.   dxDrawText(Zeile1, screenWidth / 12, screenHeight - 188, screenWidth, screenHeight, tocolor(0, 0, 0, 255), 1, "bankgothic")
  101.   dxDrawText(Zeile1, screenWidth / 12, screenHeight - 185, screenWidth, screenHeight, tocolor(255, 255, 255, 255), 1, "bankgothic")
  102.   dxDrawText(Zeile2, screenWidth / 12, screenHeight - 153, screenWidth, screenHeight, tocolor(0, 0, 0, 255), 1, "bankgothic")
  103.   dxDrawText(Zeile2, screenWidth / 12, screenHeight - 150, screenWidth, screenHeight, tocolor(255, 255, 255, 255), 1, "bankgothic")
  104.   dxDrawText(Zeile3, screenWidth / 12, screenHeight - 123, screenWidth, screenHeight, tocolor(0, 0, 0, 255), 1, "bankgothic")
  105.   dxDrawText(Zeile3, screenWidth / 12, screenHeight - 120, screenWidth, screenHeight, tocolor(255, 255, 255, 255), 1, "bankgothic")
  106. end
  107.  
  108. createTextBox8 = function()
  109.   -- upvalues: screenWidth , screenHeight
  110.   local Zeile1 = "Sobald du dir ein Auto gekauft hast erscheint es hier hinten."
  111.   local Zeile2 = "Es ist wichtig, dass du die Parkregeln kennst."
  112.   local Zeile3 = "Damit kannst du sicherstellen, dass dein Auto nicht entfernt wird."
  113.   setCameraMatrix(-1916.0999755859, 239.89999389648, 51.5, -1939.0999755859, 276.29998779297, 40.700000762939)
  114.   dxDrawText(Zeile1, screenWidth / 12, screenHeight - 188, screenWidth, screenHeight, tocolor(0, 0, 0, 255), 1, "bankgothic")
  115.   dxDrawText(Zeile1, screenWidth / 12, screenHeight - 185, screenWidth, screenHeight, tocolor(255, 255, 255, 255), 1, "bankgothic")
  116.   dxDrawText(Zeile2, screenWidth / 12, screenHeight - 153, screenWidth, screenHeight, tocolor(0, 0, 0, 255), 1, "bankgothic")
  117.   dxDrawText(Zeile2, screenWidth / 12, screenHeight - 150, screenWidth, screenHeight, tocolor(255, 255, 255, 255), 1, "bankgothic")
  118.   dxDrawText(Zeile3, screenWidth / 12, screenHeight - 123, screenWidth, screenHeight, tocolor(0, 0, 0, 255), 1, "bankgothic")
  119.   dxDrawText(Zeile3, screenWidth / 12, screenHeight - 120, screenWidth, screenHeight, tocolor(255, 255, 255, 255), 1, "bankgothic")
  120. end
  121.  
  122. createTextBox9 = function()
  123.   -- upvalues: screenWidth , screenHeight
  124.   local Zeile1 = "Hier befinden sich zB. Parkmoeglichkeiten"
  125.   local Zeile2 = "Du kannst dein Auto an solchen Stellen problemlos"
  126.   local Zeile3 = "mit /park parken und es mit /towveh [SLOT] respawnen"
  127.   setCameraMatrix(-2157.8999023438, 309.60000610352, 49.700000762939, -2238.1999511719, 289.60000610352, 35)
  128.   dxDrawText(Zeile1, screenWidth / 12, screenHeight - 188, screenWidth, screenHeight, tocolor(0, 0, 0, 255), 1, "bankgothic")
  129.   dxDrawText(Zeile1, screenWidth / 12, screenHeight - 185, screenWidth, screenHeight, tocolor(255, 255, 255, 255), 1, "bankgothic")
  130.   dxDrawText(Zeile2, screenWidth / 12, screenHeight - 153, screenWidth, screenHeight, tocolor(0, 0, 0, 255), 1, "bankgothic")
  131.   dxDrawText(Zeile2, screenWidth / 12, screenHeight - 150, screenWidth, screenHeight, tocolor(255, 255, 255, 255), 1, "bankgothic")
  132.   dxDrawText(Zeile3, screenWidth / 12, screenHeight - 123, screenWidth, screenHeight, tocolor(0, 0, 0, 255), 1, "bankgothic")
  133.   dxDrawText(Zeile3, screenWidth / 12, screenHeight - 120, screenWidth, screenHeight, tocolor(255, 255, 255, 255), 1, "bankgothic")
  134. end
  135.  
  136. createTextBox10 = function()
  137.   -- upvalues: screenWidth , screenHeight
  138.   local Zeile1 = "Diese Schilder zeigen dir,"
  139.   local Zeile2 = "dass es sich um keinen Parkplatz handelt."
  140.   local Zeile3 = "Stellst du dein Auto trotzdem dort ab, kann es entfernt werden."
  141.   setCameraMatrix(-2430.3999023438, 803.79998779297, 36, -2430.6000976563, 797.59997558594, 36.099998474121)
  142.   dxDrawText(Zeile1, screenWidth / 12, screenHeight - 188, screenWidth, screenHeight, tocolor(0, 0, 0, 255), 1, "bankgothic")
  143.   dxDrawText(Zeile1, screenWidth / 12, screenHeight - 185, screenWidth, screenHeight, tocolor(255, 255, 255, 255), 1, "bankgothic")
  144.   dxDrawText(Zeile2, screenWidth / 12, screenHeight - 153, screenWidth, screenHeight, tocolor(0, 0, 0, 255), 1, "bankgothic")
  145.   dxDrawText(Zeile2, screenWidth / 12, screenHeight - 150, screenWidth, screenHeight, tocolor(255, 255, 255, 255), 1, "bankgothic")
  146.   dxDrawText(Zeile3, screenWidth / 12, screenHeight - 123, screenWidth, screenHeight, tocolor(0, 0, 0, 255), 1, "bankgothic")
  147.   dxDrawText(Zeile3, screenWidth / 12, screenHeight - 120, screenWidth, screenHeight, tocolor(255, 255, 255, 255), 1, "bankgothic")
  148. end
  149.  
  150. createTextBox11 = function()
  151.   -- upvalues: screenWidth , screenHeight
  152.   local Zeile1 = "Das SAPD sorgt auf Vio fuer Recht und Ordnung"
  153.   local Zeile2 = "Es ist eine der 3 Dienststellen gegen Gewalt auf Vio"
  154.   local Zeile3 = "Im Innenraum findest du mehr Infos. Klicke einfach auf den Cop"
  155.   setCameraMatrix(-1571, 749.40002441406, 13.60000038147, -1605.4000244141, 711.29998779297, 13.5)
  156.   dxDrawText(Zeile1, screenWidth / 12, screenHeight - 188, screenWidth, screenHeight, tocolor(0, 0, 0, 255), 1, "bankgothic")
  157.   dxDrawText(Zeile1, screenWidth / 12, screenHeight - 185, screenWidth, screenHeight, tocolor(255, 255, 255, 255), 1, "bankgothic")
  158.   dxDrawText(Zeile2, screenWidth / 12, screenHeight - 153, screenWidth, screenHeight, tocolor(0, 0, 0, 255), 1, "bankgothic")
  159.   dxDrawText(Zeile2, screenWidth / 12, screenHeight - 150, screenWidth, screenHeight, tocolor(255, 255, 255, 255), 1, "bankgothic")
  160.   dxDrawText(Zeile3, screenWidth / 12, screenHeight - 123, screenWidth, screenHeight, tocolor(0, 0, 0, 255), 1, "bankgothic")
  161.   dxDrawText(Zeile3, screenWidth / 12, screenHeight - 120, screenWidth, screenHeight, tocolor(255, 255, 255, 255), 1, "bankgothic")
  162. end
  163.  
  164. Startbox1 = function()
  165.   -- upvalues: screenWidth , screenHeight
  166.   if screenWidth <= 800 and screenHeight <= 600 then
  167.     infobox("Achtung deine\nAufloesung ist sehr\nniedrig, es kann sein\ndass nicht alles\nangezeigt wird!", 9000, 125, 0, 0)
  168.   end
  169.   addEventHandler("onClientRender", root, createTextBox1)
  170.   setTimer(killBox1, 10000, 1)
  171. end
  172.  
  173. addEvent("onTourGetStarted", true)
  174. addEventHandler("onTourGetStarted", getRootElement(), Startbox1)
  175. Startbox2 = function()
  176.   addEventHandler("onClientRender", root, createTextBox2)
  177.   setTimer(killBox2, 10000, 1)
  178. end
  179.  
  180. Startbox3 = function()
  181.   addEventHandler("onClientRender", root, createTextBox3)
  182.   setTimer(killBox3, 20000, 1)
  183. end
  184.  
  185. Startbox4 = function()
  186.   addEventHandler("onClientRender", root, createTextBox4)
  187.   setTimer(killBox4, 20000, 1)
  188. end
  189.  
  190. Startbox5 = function()
  191.   addEventHandler("onClientRender", root, createTextBox5)
  192.   setTimer(killBox5, 20000, 1)
  193. end
  194.  
  195. Startbox6 = function()
  196.   addEventHandler("onClientRender", root, createTextBox6)
  197.   setTimer(killBox6, 20000, 1)
  198. end
  199.  
  200. Startbox7 = function()
  201.   addEventHandler("onClientRender", root, createTextBox7)
  202.   setTimer(killBox7, 20000, 1)
  203. end
  204.  
  205. Startbox8 = function()
  206.   addEventHandler("onClientRender", root, createTextBox8)
  207.   setTimer(killBox8, 20000, 1)
  208. end
  209.  
  210. Startbox9 = function()
  211.   addEventHandler("onClientRender", root, createTextBox9)
  212.   setTimer(killBox9, 20000, 1)
  213. end
  214.  
  215. Startbox10 = function()
  216.   addEventHandler("onClientRender", root, createTextBox10)
  217.   setTimer(killBox10, 20000, 1)
  218. end
  219.  
  220. Startbox11 = function()
  221.   addEventHandler("onClientRender", root, createTextBox11)
  222.   setTimer(killBox11, 20000, 1)
  223. end
  224.  
  225. killBox1 = function()
  226.   removeEventHandler("onClientRender", getRootElement(), createTextBox1)
  227.   setTimer(Startbox2, 1000, 1)
  228. end
  229.  
  230. killBox2 = function()
  231.   removeEventHandler("onClientRender", getRootElement(), createTextBox2)
  232.   setTimer(Startbox3, 1000, 1)
  233. end
  234.  
  235. killBox3 = function()
  236.   removeEventHandler("onClientRender", getRootElement(), createTextBox3)
  237.   setTimer(Startbox4, 1000, 1)
  238. end
  239.  
  240. killBox4 = function()
  241.   removeEventHandler("onClientRender", getRootElement(), createTextBox4)
  242.   setTimer(Startbox5, 1000, 1)
  243. end
  244.  
  245. killBox5 = function()
  246.   removeEventHandler("onClientRender", getRootElement(), createTextBox5)
  247.   setTimer(Startbox6, 1000, 1)
  248. end
  249.  
  250. killBox6 = function()
  251.   removeEventHandler("onClientRender", getRootElement(), createTextBox6)
  252.   setTimer(Startbox7, 1000, 1)
  253. end
  254.  
  255. killBox7 = function()
  256.   removeEventHandler("onClientRender", getRootElement(), createTextBox7)
  257.   setTimer(Startbox8, 1000, 1)
  258. end
  259.  
  260. killBox8 = function()
  261.   removeEventHandler("onClientRender", getRootElement(), createTextBox8)
  262.   setTimer(Startbox9, 1000, 1)
  263. end
  264.  
  265. killBox9 = function()
  266.   removeEventHandler("onClientRender", getRootElement(), createTextBox9)
  267.   setTimer(Startbox10, 1000, 1)
  268. end
  269.  
  270. killBox10 = function()
  271.   removeEventHandler("onClientRender", getRootElement(), createTextBox10)
  272.   setTimer(Startbox11, 1000, 1)
  273. end
  274.  
  275. killBox11 = function()
  276.   removeEventHandler("onClientRender", getRootElement(), createTextBox11)
  277.   triggerServerEvent("ontourfinish", getLocalPlayer())
  278. end
Advertisement
Add Comment
Please, Sign In to add comment