ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/ext/gravedigger.ext
(Generate patch)

Comparing deliantra/server/ext/gravedigger.ext (file contents):
Revision 1.1 by elmex, Sat Mar 20 14:57:58 2010 UTC vs.
Revision 1.4 by root, Sat Mar 20 20:16:16 2010 UTC

1#!perl # mandatory 1#!perl # mandatory
2 2
3our $WAIT_TIME = 5 * 60; # 4 minutes 3our $WAIT_TIME = 5 * 60; # 5 minutes
4# the max price is base_price * 1.5 4# the max price is base_price * 1.5
5our $MAX_BASE_PRICE = 100 * 100 * 50; # 70 platinum (for lvl 115 players) 5our $MAX_BASE_PRICE = 100 * 100 * 25; # 50 platinum (for lvl 115 players)
6our $MIN_BASE_PRICE = 100 * 10; # 10 gold 6our $MIN_BASE_PRICE = 100 * 10; # 10 gold
7 7
8sub calc_player_price { 8sub calc_player_price {
9 my ($name) = @_; 9 my ($name) = @_;
10 10
50 . " minutes.>"); 50 . " minutes.>");
51 return; 51 return;
52 } 52 }
53 } 53 }
54 54
55 my (@stones) = cf::match::match <<'MATCH', $who; 55 my (@stones) = cf::match::match
56(type=SIGN and { warn "MSG" . $_->msg; $_->msg =~ /hero.*killed.*by/si }) in inv 56 '(type=SIGN and { $_->msg =~ /hero.*killed.*by/si }) in inv',
57MATCH 57 $who;
58 unless (@stones) { 58 unless (@stones) {
59 $who->reply ($npc, 59 $who->reply ($npc,
60 "I'm sorry sir, but you don't have any gravestones with you " 60 "I'm sorry sir, but you don't have any gravestones with you "
61 . "I'm interested in!"); 61 . "I'm interested in! "
62 . "H<He is only interested in gravestones caused by player deaths.>");
62 return; 63 return;
63 } 64 }
64 65
65 cf::async { 66 cf::async {
66 my $ston = $stones[0]; 67 my $ston = $stones[0];

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines