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

Comparing deliantra/server/ext/rent.ext (file contents):
Revision 1.2 by root, Thu Dec 21 22:41:34 2006 UTC vs.
Revision 1.3 by root, Thu Jan 4 18:38:22 2007 UTC

30sub reject_entry { 30sub reject_entry {
31 my ($pl) = @_; 31 my ($pl) = @_;
32 32
33 cf::override; 33 cf::override;
34 34
35 teleport $pl, "/world/world_105_115", 2, 34 35 $pl->goto_map ("/world/world_105_115", 2, 34)
36 unless 36 unless
37 $pl->ob->map 37 $pl->ob->map
38 && $pl->ob->map->path !~ /nimbus/ 38 && !$pl->ob->map->{path}{user_rel};
39 && $pl->ob->map->path !~ m%/var/crossfire/players/%;
40} 39}
41 40
42sub update_balance { 41sub update_balance {
43 my ($pl) = @_; 42 my ($pl) = @_;
44 43
201 $pl->ob->reply (undef, "Sir, you have to rent this apartment in The Apartment Shop in Scorn first!"); 200 $pl->ob->reply (undef, "Sir, you have to rent this apartment in The Apartment Shop in Scorn first!");
202 reject_entry $pl; 201 reject_entry $pl;
203 }, 202 },
204; 203;
205 204
206Event->timer (after => 60, interval => 3600, data => cf::WF_AUTOCANCEL, cb => sub { 205our $RENT_TIMER = Event->timer (after => 60, interval => 3600, data => cf::WF_AUTOCANCEL, cb => sub {
207 pay_balance $_ for cf::player::list; 206 pay_balance $_ for cf::player::list;
208}); 207});
209 208

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines