summaryrefslogtreecommitdiff
path: root/npc/012-1/estate.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-03-05 16:51:43 -0300
committerJesusaves <cpntb1@ymail.com>2019-03-05 16:51:43 -0300
commitbb4c02cd02438ce8d181837e189513f34a5bc589 (patch)
tree6cbe5a31281b744eab61c91f2d72d9acc9e9471b /npc/012-1/estate.txt
parent81777b738fecbc3ca05c11b27f07dae146f6e09c (diff)
downloadserverdata-bb4c02cd02438ce8d181837e189513f34a5bc589.tar.gz
serverdata-bb4c02cd02438ce8d181837e189513f34a5bc589.tar.bz2
serverdata-bb4c02cd02438ce8d181837e189513f34a5bc589.tar.xz
serverdata-bb4c02cd02438ce8d181837e189513f34a5bc589.zip
Debug
Diffstat (limited to 'npc/012-1/estate.txt')
-rw-r--r--npc/012-1/estate.txt13
1 files changed, 11 insertions, 2 deletions
diff --git a/npc/012-1/estate.txt b/npc/012-1/estate.txt
index 7552854c8..4ee92d188 100644
--- a/npc/012-1/estate.txt
+++ b/npc/012-1/estate.txt
@@ -22,13 +22,15 @@
// The sign is the main controller
012-1,94,70,0 script Sign#RES_0128 NPC_SWORDS_SIGN,{
-
if ($ESTATE_RENTTIME[.id] < gettimetick(2))
goto L_RentAvailable;
if ($ESTATE_OWNER[.id] == getcharid(3))
goto L_Manage;
+ if (is_admin() && $@GM_OVERRIDE)
+ goto L_Manage;
+
mesc l("This estate currently belongs to @@.", $ESTATE_OWNERNAME$[.id]);
mesc l("Press the doorbell?");
next;
@@ -109,7 +111,8 @@ L_Manage:
l("Enable/disable doorbell"),
l("Set room password"),
rif(.@gp >= .price && $ESTATE_RENTTIME[.id] < gettimetick(2)+.time, l("Renew Rent")),
- l("Destroy all mobilia");
+ rif($@GM_OVERRIDE, l("Destroy all mobilia")),
+ rif($@GM_OVERRIDE, l("Expire rent time"));
switch (@menu) {
case 1:
@@ -159,6 +162,12 @@ L_Manage:
$ESTATE_PASSWORD$[.id]="";
$ESTATE_DOORBELL[.id]=false;
}
+ case 6:
+ mesc l("Are you sure? This cannot be undone!"), 1;
+ next;
+ if (validatepin()) {
+ $ESTATE_RENTTIME[.id]=gettimetick(2);
+ }
}
goto L_Manage;
close;