summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;