Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Raudhrskal

Pages: 1 ... 13 14 [15]
211
General / Re: Newbie combat_messages.h problem (DS2.06)
« on: January 16, 2007, 01:50:14 am »
Not sure, but did you spotted that
#define KNIFE_DEGREES ({\
({\
({ "poke", "pokes" }),\
({ "lightly", "weakly", "just barely" })\ <-THERE IS NO TRAILING COMMA HERE
}),\
({\
({ "perforate", "perforates" }),\
({ "mildly", "barely", }),\ <-
}),\
({\
({ "penetrate", "penetrates" }),\
({ "deeply" }),\ <-
}),\
({\
({ "stab", "stabs" }),\
({ "deeply" }),\ <-
}),\
[rest of this]

I don't know which one is correct; but first try adding it to the first line - if it won't work remove them all

212
People please post your code between [ code ] and [ /code ] (without spaces).
The two most common errors if you don't do that are
- changing the closing paren of functional into a smiley
- changing the iterators (commonly named i) in code like arr[ i ] into beginning of italic text...

213
General / Re: offline editor
« on: January 15, 2007, 02:28:57 am »
Looks like I am the only emacs junkie here ;)
What I love in Emacs is that CC mode (lpc-mode.el is just a little wrapper over the Pike component of CC) can be configured to automatically add newline and indentation after typing just ; { } or something. No need to press Return anymore :)

214
Dead Souls Support / Re: checking for afk with tells
« on: January 08, 2007, 06:26:28 am »
Well, maybe something like this?

/secure/cmds/player/afk.c
Code: [Select]
mixed cmd(string args) {
    string afk;
    afk = this_player()->GetProperty("afk");
    if(args){
afk = args;
message("system", "You are away from your keyboard. Message is: "+afk, this_player() );
    }
else {
afk = 0;
message("system", "You are back.", this_player() );
    }
    this_player()->SetProperty("afk", afk);
    return 1;
}

void help() {
    message("help", "Syntax: <afk> away_text\n\n"
      "Toggles your 'away from keyboard' flag.\n\n", this_player());
}
tell.c, this from Cratylus' post
Code: [Select]
//at top of file
     string afk_text;
//original        if(ob->GetProperty("afk")) {
     afk_text = (string)ob->GetProperty("afk");
           if(afk_text) {
           message("my_action", (string)ob->GetName()+
              " is afk("+afk_text+") and cannot receive your message.", this_player());
           return 1;
        }

Don't kill me, please... I am just trying to help...

Pages: 1 ... 13 14 [15]