… | |
… | |
70 | $other->ob->message ("$name flips a coin.... Tails!", cf::NDI_GREY | cf::NDI_UNIQUE); |
70 | $other->ob->message ("$name flips a coin.... Tails!", cf::NDI_GREY | cf::NDI_UNIQUE); |
71 | } |
71 | } |
72 | |
72 | |
73 | $pl->message ("You flip a coin.... Tails!", cf::NDI_GREY | cf::NDI_UNIQUE); |
73 | $pl->message ("You flip a coin.... Tails!", cf::NDI_GREY | cf::NDI_UNIQUE); |
74 | } |
74 | } |
|
|
75 | }; |
|
|
76 | |
|
|
77 | cf::register_command orcknuckle => sub { |
|
|
78 | my ($pl, $msg) = @_; |
|
|
79 | my @orcknuckle = ("none", "beholder", "ghost", "knight", "princess", "dragon", "orc"); |
|
|
80 | |
|
|
81 | my $name = $pl->name; |
|
|
82 | |
|
|
83 | my ($i, $j, $k, $l) = ((int rand 5) + 1, (int rand 5) + 1, (int rand 5) + 1, (int rand 6) + 1); |
|
|
84 | my $result = "$orcknuckle[$i], $orcknuckle[$j], $orcknuckle[$k], $orcknuckle[$l]"; |
|
|
85 | |
|
|
86 | for my $other ( grep { $pl->on_same_map_as ($_->ob) } cf::player::list ) { |
|
|
87 | next |
|
|
88 | if $other->ob == $pl; |
|
|
89 | $other->ob->message ("$name rolls $result!", cf::NDI_GREY | cf::NDI_UNIQUE); |
|
|
90 | } |
|
|
91 | |
|
|
92 | $pl->message ("You roll $result!", cf::NDI_GREY | cf::NDI_UNIQUE); |
75 | }; |
93 | }; |
76 | |
94 | |
77 | my $emotes = { |
95 | my $emotes = { |
78 | growl => { |
96 | growl => { |
79 | noparams => { |
97 | noparams => { |