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 | #include <wizlevels.h> |
| 5 | |
| 6 | void create() |
| 7 | { |
| 8 | ::create(); |
| 9 | SetProp(P_LIGHT, 1 ); |
| 10 | SetProp(P_INT_SHORT, "Das Nichts" ); |
| 11 | SetProp(P_INDOORS, 1); |
| 12 | SetProp(P_INT_LONG, |
| 13 | "Du schwebst im absoluten, ewigen und leeren Nichts umher. Hier kommen\n" |
| 14 | +"all die hin, deren Welt, in der sie sich befanden, zerstoert worden ist.\n" |
| 15 | +"Wenn Du das magische Kommando 'welt' gibst, wirst Du wieder in Deine Welt\n" |
| 16 | +"zurueckversetzt werden.\n" |
| 17 | ); |
| 18 | AddCmd( "", "onlywelt", 1 ); |
| 19 | } |
| 20 | |
| 21 | int onlywelt( string s ) { |
| 22 | if( query_verb()=="welt" ) { |
| 23 | this_player()->move("/gilden/abenteurer", M_TPORT); |
| 24 | return 1; |
| 25 | } |
| 26 | if( IS_LEARNER(this_player()) ) return 0; |
| 27 | write( |
| 28 | "Du schwebst im absoluten, ewigen und leerem Nichts umher. Hier kommen\n" |
| 29 | +"all die hin, deren Welt, in der sie sich befanden, zerstoert worden ist.\n" |
| 30 | +"Wenn Du das magische Kommando 'welt' gibst, wirst Du wieder in Deine Welt\n" |
| 31 | +"zurueckversetzt werden.\n" |
| 32 | ); |
| 33 | return 1; |
| 34 | } |
| 35 | |
| 36 | |
| 37 | // Sonst zerstoert sich das Void brav selbst - an NotifyDestruct vorbei. |
| 38 | public varargs int remove() |
| 39 | { |
| 40 | if (!ARCH_SECURITY || process_call()) |
| 41 | return 0; |
| 42 | return ::remove(); |
| 43 | } |
| 44 | |
| 45 | // Nicht jeder Magier muss das Void entsorgen koennen. |
| 46 | string NotifyDestruct(object caller) { |
| 47 | if( (caller!=this_object() && !ARCH_SECURITY) || process_call() ) { |
| 48 | return "Du darfst das Void nicht zerstoeren!\n"; |
| 49 | } |
| 50 | } |
| 51 | |