MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame^] | 1 | inherit "/std/room"; |
| 2 | #include <properties.h> |
| 3 | #include <moving.h> |
| 4 | |
| 5 | static string x; |
| 6 | static string *xx; |
| 7 | |
| 8 | void create() { |
| 9 | ::create(); |
| 10 | x="----------"; |
| 11 | xx=({ |
| 12 | "/d/ebene/room/ak_str7", |
| 13 | "/d/ebene/room/dra_str3", |
| 14 | "/d/ebene/room/hp_str2c", |
| 15 | "/d/ebene/room/o_wa1d", |
| 16 | "/d/ebene/room/waldweg8" |
| 17 | }); |
| 18 | SetProp(P_LIGHT,1); |
| 19 | SetProp(P_INT_LONG, |
| 20 | "Dieser Raum ist fuer Leute, die TF spielen lassen.\n\ |
| 21 | Es gibt nur einen Weg heraus...\n"); |
| 22 | AddCmd("","raus",1); |
| 23 | } |
| 24 | |
| 25 | void init() { |
| 26 | int i; |
| 27 | |
| 28 | ::init(); |
| 29 | for (i=0;i<10;i++) |
| 30 | x[i]='a'+random(26); |
| 31 | } |
| 32 | |
| 33 | varargs string GetExits(object viewer) { |
| 34 | return sprintf("Es gibt einen sichtbaren Ausgang: %s.\n",x); |
| 35 | } |
| 36 | |
| 37 | varargs int raus(string s) { |
| 38 | if (query_verb()!=x) |
| 39 | return 0; |
| 40 | notify_fail("Etwas hat nicht funktioniert. Bitte verstaendige einen Magier.\n"); |
| 41 | return ((this_player()->move(xx[random(sizeof(xx))],M_GO))>0); |
| 42 | } |