summaryrefslogtreecommitdiff
path: root/npc/012-1
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-03-05 16:15:56 -0300
committerJesusaves <cpntb1@ymail.com>2019-03-05 16:15:56 -0300
commit81777b738fecbc3ca05c11b27f07dae146f6e09c (patch)
tree1c2da29aac4c72e8bfd69ecdd5189d92ecfaf043 /npc/012-1
parente27f833cd0a4c4397262781680acc0f09fd7ee1f (diff)
downloadserverdata-81777b738fecbc3ca05c11b27f07dae146f6e09c.tar.gz
serverdata-81777b738fecbc3ca05c11b27f07dae146f6e09c.tar.bz2
serverdata-81777b738fecbc3ca05c11b27f07dae146f6e09c.tar.xz
serverdata-81777b738fecbc3ca05c11b27f07dae146f6e09c.zip
Real Estate patch
Diffstat (limited to 'npc/012-1')
-rw-r--r--npc/012-1/estate.txt20
1 files changed, 17 insertions, 3 deletions
diff --git a/npc/012-1/estate.txt b/npc/012-1/estate.txt
index 57f578f1d..7552854c8 100644
--- a/npc/012-1/estate.txt
+++ b/npc/012-1/estate.txt
@@ -12,8 +12,8 @@
// $ESTATE_MOBILIA_4[.id] → Bitmask of mobilia currently purchased on Air Collision (2)
// $ESTATE_MOBILIA_8[.id] → Bitmask of mobilia currently purchased on Water Collision (3)
// $ESTATE_MOBILIA_32[.id] → Bitmask of mobilia currently purchased on Yellow Collision (4)
-// $ESTATE_MOBILIA_64[.id] → Bitmask of mobilia currently purchased on Player Collision (5)
-// $ESTATE_MOBILIA_128[.id] → Bitmask of mobilia currently purchased on Normal Collision (1)
+// $ESTATE_MOBILIA_64[.id] → Bitmask of mobilia currently purchased on Normal Collision (1)
+// $ESTATE_MOBILIA_128[.id] → Bitmask of mobilia currently purchased on Player Collision (5)
// $ESTATE_PASSWORD$[.id] → Password to enter the estate. If it is "", then no password required
// Note: GMs and Administrators can always use super password "mouboo" to enter a locked estate
// $ESTATE_DOORBELL[.id] → If doorbell is disabled (enabled by default)
@@ -108,7 +108,8 @@ L_Manage:
l("Leave"),
l("Enable/disable doorbell"),
l("Set room password"),
- rif(.@gp >= .price && $ESTATE_RENTTIME[.id] < gettimetick(2)+.time, l("Renew Rent"));
+ rif(.@gp >= .price && $ESTATE_RENTTIME[.id] < gettimetick(2)+.time, l("Renew Rent")),
+ l("Destroy all mobilia");
switch (@menu) {
case 1:
@@ -145,6 +146,19 @@ L_Manage:
// If you lost the rent and somebody else rented it, you lose the GP
$ESTATE_RENTTIME[.id]+=.time;
break;
+ case 5:
+ mesc l("Are you sure? This cannot be undone!"), 1;
+ next;
+ if (validatepin()) {
+ $ESTATE_MOBILIA_2[.id]=0;
+ $ESTATE_MOBILIA_4[.id]=0;
+ $ESTATE_MOBILIA_8[.id]=0;
+ $ESTATE_MOBILIA_32[.id]=0;
+ $ESTATE_MOBILIA_64[.id]=0;
+ $ESTATE_MOBILIA_128[.id]=0;
+ $ESTATE_PASSWORD$[.id]="";
+ $ESTATE_DOORBELL[.id]=false;
+ }
}
goto L_Manage;
close;