Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2 | daniel-mar | 1 | VERSION 5.00 |
2 | Begin VB.Form GrSmith3 |
||
3 | BackColor = &H00000040& |
||
4 | BorderStyle = 0 'None |
||
5 | Caption = "GrSmith3" |
||
6 | ClientHeight = 6030 |
||
7 | ClientLeft = 0 |
||
8 | ClientTop = 0 |
||
9 | ClientWidth = 7650 |
||
10 | LinkTopic = "GrSmith3" |
||
11 | ScaleHeight = 6030 |
||
12 | ScaleWidth = 7650 |
||
13 | ShowInTaskbar = 0 'False |
||
14 | StartUpPosition = 2 'CenterScreen |
||
15 | Begin VB.ListBox List1 |
||
16 | BackColor = &H00404040& |
||
17 | BeginProperty Font |
||
18 | Name = "Tahoma" |
||
19 | Size = 9 |
||
20 | Charset = 0 |
||
21 | Weight = 700 |
||
22 | Underline = 0 'False |
||
23 | Italic = 0 'False |
||
24 | Strikethrough = 0 'False |
||
25 | EndProperty |
||
26 | ForeColor = &H00FFFFFF& |
||
27 | Height = 2790 |
||
28 | ItemData = "GrSmith3.frx":0000 |
||
29 | Left = 1440 |
||
30 | List = "GrSmith3.frx":0013 |
||
31 | TabIndex = 1 |
||
32 | Top = 1200 |
||
33 | Width = 1815 |
||
34 | End |
||
35 | Begin VB.CommandButton Command1 |
||
36 | BackColor = &H008080FF& |
||
37 | Cancel = -1 'True |
||
38 | Caption = "Verlassen" |
||
39 | Default = -1 'True |
||
40 | BeginProperty Font |
||
41 | Name = "MS Sans Serif" |
||
42 | Size = 8.25 |
||
43 | Charset = 0 |
||
44 | Weight = 700 |
||
45 | Underline = 0 'False |
||
46 | Italic = 0 'False |
||
47 | Strikethrough = 0 'False |
||
48 | EndProperty |
||
49 | Height = 375 |
||
50 | Left = 5640 |
||
51 | Style = 1 'Graphical |
||
52 | TabIndex = 0 |
||
53 | Top = 4680 |
||
54 | Width = 1215 |
||
55 | End |
||
56 | Begin VB.Label Label21 |
||
57 | AutoSize = -1 'True |
||
58 | BackStyle = 0 'Transparent |
||
59 | Caption = "Auftrag" |
||
60 | Enabled = 0 'False |
||
61 | BeginProperty Font |
||
62 | Name = "MS Sans Serif" |
||
63 | Size = 9.75 |
||
64 | Charset = 0 |
||
65 | Weight = 700 |
||
66 | Underline = -1 'True |
||
67 | Italic = 0 'False |
||
68 | Strikethrough = 0 'False |
||
69 | EndProperty |
||
70 | ForeColor = &H00FF8080& |
||
71 | Height = 240 |
||
72 | Left = 5640 |
||
73 | TabIndex = 22 |
||
74 | Top = 5160 |
||
75 | Width = 750 |
||
76 | End |
||
77 | Begin VB.Label Label18 |
||
78 | AutoSize = -1 'True |
||
79 | BackStyle = 0 'Transparent |
||
80 | Caption = "Waffe verkaufen" |
||
81 | BeginProperty Font |
||
82 | Name = "MS Sans Serif" |
||
83 | Size = 8.25 |
||
84 | Charset = 0 |
||
85 | Weight = 700 |
||
86 | Underline = -1 'True |
||
87 | Italic = 0 'False |
||
88 | Strikethrough = 0 'False |
||
89 | EndProperty |
||
90 | ForeColor = &H00FF8080& |
||
91 | Height = 195 |
||
92 | Left = 1080 |
||
93 | TabIndex = 21 |
||
94 | Top = 4320 |
||
95 | Width = 1440 |
||
96 | End |
||
97 | Begin VB.Label Label19 |
||
98 | AutoSize = -1 'True |
||
99 | BackStyle = 0 'Transparent |
||
100 | Caption = "x Goldkronen l19" |
||
101 | BeginProperty Font |
||
102 | Name = "MS Sans Serif" |
||
103 | Size = 8.25 |
||
104 | Charset = 0 |
||
105 | Weight = 700 |
||
106 | Underline = 0 'False |
||
107 | Italic = 0 'False |
||
108 | Strikethrough = 0 'False |
||
109 | EndProperty |
||
110 | ForeColor = &H00FF8080& |
||
111 | Height = 195 |
||
112 | Left = 5160 |
||
113 | TabIndex = 20 |
||
114 | Top = 4320 |
||
115 | Width = 1455 |
||
116 | End |
||
117 | Begin VB.Label Label20 |
||
118 | AutoSize = -1 'True |
||
119 | BackStyle = 0 'Transparent |
||
120 | Caption = "Label20" |
||
121 | BeginProperty Font |
||
122 | Name = "MS Sans Serif" |
||
123 | Size = 8.25 |
||
124 | Charset = 0 |
||
125 | Weight = 700 |
||
126 | Underline = 0 'False |
||
127 | Italic = 0 'False |
||
128 | Strikethrough = 0 'False |
||
129 | EndProperty |
||
130 | ForeColor = &H00FF8080& |
||
131 | Height = 195 |
||
132 | Left = 3000 |
||
133 | TabIndex = 19 |
||
134 | Top = 4320 |
||
135 | Width = 690 |
||
136 | End |
||
137 | Begin VB.Label Label17 |
||
138 | BackStyle = 0 'Transparent |
||
139 | Caption = "Orgham der Waffenschmied" |
||
140 | BeginProperty Font |
||
141 | Name = "MS Sans Serif" |
||
142 | Size = 8.25 |
||
143 | Charset = 0 |
||
144 | Weight = 700 |
||
145 | Underline = 0 'False |
||
146 | Italic = 0 'False |
||
147 | Strikethrough = 0 'False |
||
148 | EndProperty |
||
149 | ForeColor = &H00E0E0E0& |
||
150 | Height = 1215 |
||
151 | Left = 1080 |
||
152 | TabIndex = 18 |
||
153 | Top = 4680 |
||
154 | Width = 4455 |
||
155 | End |
||
156 | Begin VB.Shape Shape1 |
||
157 | BorderColor = &H00FF0000& |
||
158 | Height = 2775 |
||
159 | Left = 3360 |
||
160 | Top = 1200 |
||
161 | Width = 2775 |
||
162 | End |
||
163 | Begin VB.Label Label16 |
||
164 | AutoSize = -1 'True |
||
165 | BackStyle = 0 'Transparent |
||
166 | Caption = "Preis" |
||
167 | BeginProperty Font |
||
168 | Name = "MS Sans Serif" |
||
169 | Size = 8.25 |
||
170 | Charset = 0 |
||
171 | Weight = 700 |
||
172 | Underline = 0 'False |
||
173 | Italic = 0 'False |
||
174 | Strikethrough = 0 'False |
||
175 | EndProperty |
||
176 | ForeColor = &H00FFC0C0& |
||
177 | Height = 195 |
||
178 | Left = 3600 |
||
179 | TabIndex = 17 |
||
180 | Top = 3600 |
||
181 | Width = 435 |
||
182 | End |
||
183 | Begin VB.Label Label15 |
||
184 | AutoSize = -1 'True |
||
185 | BackStyle = 0 'Transparent |
||
186 | Caption = "Material" |
||
187 | BeginProperty Font |
||
188 | Name = "MS Sans Serif" |
||
189 | Size = 8.25 |
||
190 | Charset = 0 |
||
191 | Weight = 700 |
||
192 | Underline = 0 'False |
||
193 | Italic = 0 'False |
||
194 | Strikethrough = 0 'False |
||
195 | EndProperty |
||
196 | ForeColor = &H00FFC0C0& |
||
197 | Height = 195 |
||
198 | Left = 3600 |
||
199 | TabIndex = 16 |
||
200 | Top = 3000 |
||
201 | Width = 690 |
||
202 | End |
||
203 | Begin VB.Label Label14 |
||
204 | AutoSize = -1 'True |
||
205 | BackStyle = 0 'Transparent |
||
206 | Caption = "Abzug" |
||
207 | BeginProperty Font |
||
208 | Name = "MS Sans Serif" |
||
209 | Size = 8.25 |
||
210 | Charset = 0 |
||
211 | Weight = 700 |
||
212 | Underline = 0 'False |
||
213 | Italic = 0 'False |
||
214 | Strikethrough = 0 'False |
||
215 | EndProperty |
||
216 | ForeColor = &H00FFC0C0& |
||
217 | Height = 195 |
||
218 | Left = 3600 |
||
219 | TabIndex = 15 |
||
220 | Top = 2520 |
||
221 | Width = 540 |
||
222 | End |
||
223 | Begin VB.Label Label13 |
||
224 | AutoSize = -1 'True |
||
225 | BackStyle = 0 'Transparent |
||
226 | Caption = "Kategorie" |
||
227 | BeginProperty Font |
||
228 | Name = "MS Sans Serif" |
||
229 | Size = 8.25 |
||
230 | Charset = 0 |
||
231 | Weight = 700 |
||
232 | Underline = 0 'False |
||
233 | Italic = 0 'False |
||
234 | Strikethrough = 0 'False |
||
235 | EndProperty |
||
236 | ForeColor = &H00FFC0C0& |
||
237 | Height = 195 |
||
238 | Left = 3600 |
||
239 | TabIndex = 14 |
||
240 | Top = 2040 |
||
241 | Width = 825 |
||
242 | End |
||
243 | Begin VB.Label label12 |
||
244 | AutoSize = -1 'True |
||
245 | BackStyle = 0 'Transparent |
||
246 | Caption = "Schaden" |
||
247 | BeginProperty Font |
||
248 | Name = "MS Sans Serif" |
||
249 | Size = 8.25 |
||
250 | Charset = 0 |
||
251 | Weight = 700 |
||
252 | Underline = 0 'False |
||
253 | Italic = 0 'False |
||
254 | Strikethrough = 0 'False |
||
255 | EndProperty |
||
256 | ForeColor = &H00FFC0C0& |
||
257 | Height = 195 |
||
258 | Left = 3600 |
||
259 | TabIndex = 13 |
||
260 | Top = 1680 |
||
261 | Width = 765 |
||
262 | End |
||
263 | Begin VB.Label Label11 |
||
264 | AutoSize = -1 'True |
||
265 | BackStyle = 0 'Transparent |
||
266 | Caption = "Label11" |
||
267 | ForeColor = &H0000FFFF& |
||
268 | Height = 195 |
||
269 | Left = 4320 |
||
270 | TabIndex = 12 |
||
271 | Top = 4080 |
||
272 | Width = 570 |
||
273 | End |
||
274 | Begin VB.Label Label10 |
||
275 | AutoSize = -1 'True |
||
276 | BackStyle = 0 'Transparent |
||
277 | Caption = "Goldkronen" |
||
278 | ForeColor = &H0000FFFF& |
||
279 | Height = 195 |
||
280 | Left = 3360 |
||
281 | TabIndex = 11 |
||
282 | Top = 4080 |
||
283 | Width = 825 |
||
284 | End |
||
285 | Begin VB.Label Label4 |
||
286 | AutoSize = -1 'True |
||
287 | BackStyle = 0 'Transparent |
||
288 | Caption = "-" |
||
289 | BeginProperty Font |
||
290 | Name = "MS Sans Serif" |
||
291 | Size = 8.25 |
||
292 | Charset = 0 |
||
293 | Weight = 700 |
||
294 | Underline = 0 'False |
||
295 | Italic = 0 'False |
||
296 | Strikethrough = 0 'False |
||
297 | EndProperty |
||
298 | ForeColor = &H00FFFFFF& |
||
299 | Height = 195 |
||
300 | Left = 5160 |
||
301 | TabIndex = 10 |
||
302 | Top = 1680 |
||
303 | Width = 75 |
||
304 | End |
||
305 | Begin VB.Label Label9 |
||
306 | AutoSize = -1 'True |
||
307 | BackStyle = 0 'Transparent |
||
308 | Caption = "Label9" |
||
309 | BeginProperty Font |
||
310 | Name = "MS Sans Serif" |
||
311 | Size = 8.25 |
||
312 | Charset = 0 |
||
313 | Weight = 700 |
||
314 | Underline = 0 'False |
||
315 | Italic = 0 'False |
||
316 | Strikethrough = 0 'False |
||
317 | EndProperty |
||
318 | ForeColor = &H0000FFFF& |
||
319 | Height = 195 |
||
320 | Left = 4560 |
||
321 | TabIndex = 9 |
||
322 | Top = 3600 |
||
323 | Width = 585 |
||
324 | End |
||
325 | Begin VB.Label Label8 |
||
326 | AutoSize = -1 'True |
||
327 | BackStyle = 0 'Transparent |
||
328 | Caption = "xxxxx" |
||
329 | BeginProperty Font |
||
330 | Name = "MS Sans Serif" |
||
331 | Size = 8.25 |
||
332 | Charset = 0 |
||
333 | Weight = 700 |
||
334 | Underline = 0 'False |
||
335 | Italic = 0 'False |
||
336 | Strikethrough = 0 'False |
||
337 | EndProperty |
||
338 | ForeColor = &H00FFFFFF& |
||
339 | Height = 195 |
||
340 | Left = 4920 |
||
341 | TabIndex = 8 |
||
342 | Top = 3000 |
||
343 | Width = 465 |
||
344 | End |
||
345 | Begin VB.Label Label7 |
||
346 | AutoSize = -1 'True |
||
347 | BackStyle = 0 'Transparent |
||
348 | Caption = "x" |
||
349 | BeginProperty Font |
||
350 | Name = "MS Sans Serif" |
||
351 | Size = 8.25 |
||
352 | Charset = 0 |
||
353 | Weight = 700 |
||
354 | Underline = 0 'False |
||
355 | Italic = 0 'False |
||
356 | Strikethrough = 0 'False |
||
357 | EndProperty |
||
358 | ForeColor = &H00FFFFFF& |
||
359 | Height = 195 |
||
360 | Left = 5160 |
||
361 | TabIndex = 7 |
||
362 | Top = 2520 |
||
363 | Width = 105 |
||
364 | End |
||
365 | Begin VB.Label Label6 |
||
366 | AutoSize = -1 'True |
||
367 | BackStyle = 0 'Transparent |
||
368 | Caption = "xxx" |
||
369 | BeginProperty Font |
||
370 | Name = "MS Sans Serif" |
||
371 | Size = 8.25 |
||
372 | Charset = 0 |
||
373 | Weight = 700 |
||
374 | Underline = 0 'False |
||
375 | Italic = 0 'False |
||
376 | Strikethrough = 0 'False |
||
377 | EndProperty |
||
378 | ForeColor = &H00FFFFFF& |
||
379 | Height = 195 |
||
380 | Left = 5040 |
||
381 | TabIndex = 6 |
||
382 | Top = 2040 |
||
383 | Width = 285 |
||
384 | End |
||
385 | Begin VB.Label Label5 |
||
386 | AutoSize = -1 'True |
||
387 | BackStyle = 0 'Transparent |
||
388 | Caption = "xxx" |
||
389 | BeginProperty Font |
||
390 | Name = "MS Sans Serif" |
||
391 | Size = 8.25 |
||
392 | Charset = 0 |
||
393 | Weight = 700 |
||
394 | Underline = 0 'False |
||
395 | Italic = 0 'False |
||
396 | Strikethrough = 0 'False |
||
397 | EndProperty |
||
398 | ForeColor = &H00FFFFFF& |
||
399 | Height = 195 |
||
400 | Left = 5280 |
||
401 | TabIndex = 5 |
||
402 | Top = 1680 |
||
403 | Width = 285 |
||
404 | End |
||
405 | Begin VB.Label Label3 |
||
406 | Alignment = 1 'Right Justify |
||
407 | AutoSize = -1 'True |
||
408 | BackStyle = 0 'Transparent |
||
409 | Caption = "xxx" |
||
410 | BeginProperty Font |
||
411 | Name = "MS Sans Serif" |
||
412 | Size = 8.25 |
||
413 | Charset = 0 |
||
414 | Weight = 700 |
||
415 | Underline = 0 'False |
||
416 | Italic = 0 'False |
||
417 | Strikethrough = 0 'False |
||
418 | EndProperty |
||
419 | ForeColor = &H00FFFFFF& |
||
420 | Height = 195 |
||
421 | Left = 4860 |
||
422 | TabIndex = 4 |
||
423 | Top = 1680 |
||
424 | Width = 285 |
||
425 | End |
||
426 | Begin VB.Label Label2 |
||
427 | AutoSize = -1 'True |
||
428 | BackStyle = 0 'Transparent |
||
429 | Caption = "xxxxxxxxxxxx" |
||
430 | BeginProperty Font |
||
431 | Name = "MS Sans Serif" |
||
432 | Size = 8.25 |
||
433 | Charset = 0 |
||
434 | Weight = 700 |
||
435 | Underline = -1 'True |
||
436 | Italic = 0 'False |
||
437 | Strikethrough = 0 'False |
||
438 | EndProperty |
||
439 | ForeColor = &H00FFFFFF& |
||
440 | Height = 195 |
||
441 | Left = 4560 |
||
442 | TabIndex = 3 |
||
443 | Top = 1320 |
||
444 | Width = 1095 |
||
445 | End |
||
446 | Begin VB.Label Label1 |
||
447 | AutoSize = -1 'True |
||
448 | BackStyle = 0 'Transparent |
||
449 | Caption = "Orgham der Waffenschmied" |
||
450 | BeginProperty Font |
||
451 | Name = "Tahoma" |
||
452 | Size = 21.75 |
||
453 | Charset = 0 |
||
454 | Weight = 700 |
||
455 | Underline = 0 'False |
||
456 | Italic = 0 'False |
||
457 | Strikethrough = 0 'False |
||
458 | EndProperty |
||
459 | ForeColor = &H00FF8080& |
||
460 | Height = 525 |
||
461 | Left = 840 |
||
462 | TabIndex = 2 |
||
463 | Top = 360 |
||
464 | Width = 6135 |
||
465 | End |
||
466 | End |
||
467 | Attribute VB_Name = "GrSmith3" |
||
468 | Attribute VB_GlobalNameSpace = False |
||
469 | Attribute VB_Creatable = False |
||
470 | Attribute VB_PredeclaredId = True |
||
471 | Attribute VB_Exposed = False |
||
472 | Private Sub Command1_Click() |
||
473 | Unload GrSmith3 |
||
474 | Gragook.Show |
||
475 | End Sub |
||
476 | |||
477 | Private Sub Form_Load() |
||
478 | RADIKAL |
||
479 | initial |
||
480 | End Sub |
||
481 | |||
482 | Private Sub Label18_Click() |
||
483 | If waffe = "" Then GoTo kk |
||
484 | gold = gold + zahl |
||
485 | waffe = "" |
||
486 | grundwert = 0 |
||
487 | zusatzwert = 0 |
||
488 | ABZUG = 0 |
||
489 | material = "" |
||
490 | kateg = "" |
||
491 | initial |
||
492 | Label17.Caption = "Danke für's Geschäft!" |
||
493 | kk: |
||
494 | End Sub |
||
495 | |||
496 | Private Sub Label18_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single) |
||
497 | Dim lHandle As Long |
||
498 | lHandle = LoadCursor(0, HandCursor) |
||
499 | If (lHandle > 0) Then SetCursor lHandle |
||
500 | End Sub |
||
501 | |||
502 | Private Sub Label2_Click() |
||
503 | If typus = "Nekromant" Then GoTo a |
||
504 | If magician = 1 And kkateg = "Ax" Then MsgBox "Als Zauberkundiger darfst du keine Axt tragen!": GoTo nixda |
||
505 | a: |
||
506 | If gold < kpreis Then Label17.Caption = "Tut mir leid, aber etwas Gold bräucht ich auch noch.": GoTo nixda |
||
507 | gold = gold - kpreis |
||
508 | waffe = kwaffe |
||
509 | grundwert = kgrundschaden |
||
510 | zusatzwert = kzusatzschaden |
||
511 | material = kmaterial |
||
512 | ABZUG = kabzug |
||
513 | kateg = kkateg |
||
514 | Label17.Caption = "Gute Wahl!" |
||
515 | initial |
||
516 | nixda: |
||
517 | End Sub |
||
518 | |||
519 | Private Sub Label2_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single) |
||
520 | Dim lHandle As Long |
||
521 | lHandle = LoadCursor(0, HandCursor) |
||
522 | If (lHandle > 0) Then SetCursor lHandle |
||
523 | End Sub |
||
524 | |||
525 | Private Sub Label21_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single) |
||
526 | Dim lHandle As Long |
||
527 | lHandle = LoadCursor(0, HandCursor) |
||
528 | If (lHandle > 0) Then SetCursor lHandle |
||
529 | End Sub |
||
530 | |||
531 | Private Sub List1_Click() |
||
532 | If List1.Text = "Barbarenstreitaxt" Then GoTo schwert |
||
533 | If List1.Text = "Langaxt" Then GoTo breitschwert |
||
534 | If List1.Text = "Handaxt" Then GoTo handaxt |
||
535 | If List1.Text = "Streitaxt" Then GoTo streitaxt |
||
536 | If List1.Text = "Hellebarde" Then GoTo bischwert |
||
537 | schwert: |
||
538 | kwaffe = "Barbarenstreitaxt" |
||
539 | kgrundschaden = 10 |
||
540 | kzusatzschaden = 10 |
||
541 | kkateg = "Ax" |
||
542 | kabzug = 8 |
||
543 | kmaterial = "Stahl" |
||
544 | kpreis = 650 |
||
545 | initial |
||
546 | GoTo weiter |
||
547 | breitschwert: |
||
548 | kwaffe = "Langaxt" |
||
549 | kgrundschaden = 3 |
||
550 | kzusatzschaden = 9 |
||
551 | kkateg = "Ax" |
||
552 | kabzug = 5 |
||
553 | kmaterial = "Stahl" |
||
554 | kpreis = 225 |
||
555 | initial |
||
556 | GoTo weiter |
||
557 | handaxt: |
||
558 | kwaffe = "Handaxt" |
||
559 | kgrundschaden = 4 |
||
560 | kzusatzschaden = 4 |
||
561 | kkateg = "Ax" |
||
562 | kabzug = 3 |
||
563 | kmaterial = "Stahl" |
||
564 | kpreis = 155 |
||
565 | initial |
||
566 | GoTo weiter |
||
567 | streitaxt: |
||
568 | kwaffe = "Streitaxt" |
||
569 | kgrundschaden = 6 |
||
570 | kzusatzschaden = 6 |
||
571 | kkateg = "Ax" |
||
572 | kabzug = 6 |
||
573 | kmaterial = "Stahl" |
||
574 | kpreis = 380 |
||
575 | initial |
||
576 | GoTo weiter |
||
577 | bischwert: |
||
578 | kwaffe = "Hellebarde" |
||
579 | kgrundschaden = 2 |
||
580 | kzusatzschaden = 16 |
||
581 | kkateg = "Ax" |
||
582 | kabzug = 6 |
||
583 | kmaterial = "Stahl" |
||
584 | kpreis = 360 |
||
585 | initial |
||
586 | weiter: |
||
587 | End Sub |
||
588 | |||
589 | Sub initial() |
||
590 | Label20.Caption = waffe + " " + Str(grundwert) + "-" + Str(grundwert + zusatzwert) |
||
591 | zahl = grundwert + zusatzwert * 16 |
||
592 | Label19.Caption = zahl |
||
593 | Label2.Caption = kwaffe |
||
594 | Label3.Caption = kgrundschaden |
||
595 | Label5.Caption = kgrundschaden + kzusatzschaden |
||
596 | Label6.Caption = kkateg |
||
597 | Label7.Caption = kabzug |
||
598 | Label8.Caption = kmaterial |
||
599 | Label9.Caption = Str(kpreis) + " Goldkronen" |
||
600 | Label11.Caption = gold |
||
601 | End Sub |
||
602 |