legacy.c

ds2.1.1/lib/secure/sefun/legacy.c · 474 B

From the archive ds2.1.1.zip

Download the archive   « Back to the archive contents

#include <rooms.h>
#include <daemons.h>

void set(mixed arg1, mixed arg2){
    arg1 = capitalize(arg1);
    call_other( previous_object(), ({ "Set"+arg1, arg2 }) );
    return;
}

void query(mixed arg1, mixed arg2){
    arg1 = capitalize(arg1);
    call_other( previous_object(), ({ "Get"+arg1, arg2 }) );
    return;
}

void personal_log(string str){
    tell_room(ROOM_ARCH,str);
    return;
}

void add_sky_event(function f){
    SEASONS_D->AddTimeEvent("night", f);
}


Site Stats

Snippets: 1791
Codebases: 571