The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 5 Votes - 4.8 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Housing
Author Message
Mordaunt
Super Moderator
****

Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35



Post: #188
RE: Housing
Really?

That does surprise me, first I have heard of this also.
Freezing the player would remove some functionality as players need to be able to move in order to be able to place doors in castles e.t.c..

I suggest (and would appreciate it if someone could test it as I don't have UO or sphere installed currently)

In the following block
Code:
ON=@DClick
if (<link>!=04fffffff)
    if !(<def.can_decay>)
        if (<attr>&02)
            attr &~ 02
        endif
    else
        if !(<attr>&02)
            attr |= 02
        endif
    endif
endif

    if <QVAL <def.account_ownership>? (<src.acc_is_owner>):(<src.is_owner>)> || (<src.isgm>)
        if !(<more1>) || !(<region.tag0.sign>)
            f_initialise
            return 1
        endif
    endif
    if <QVAL <def.account_ownership>? (<src.acc_is_owner>):(<src.is_owner>)> || (<src.is_coowner>) || (<src.is_friend>) || (<src.isgm>)
        if (<src.region.uid>==<link>)
            ref99=<src.region.uid>
            dialog d_house_menu
            return 1        
        else
            src.sysmessage @32,,1 You must be standing on your doorstep to access the house menu.
            return 1
        endif
    else
        if !<link.region.tag0.forsale>
            dialog d_house_visitor
            return 1
        else
            dialog d_house_forsale
            return 1
        endif
    endif

Add
Code:
ref99=<src.region.uid>

after the line

if <QVAL <def.account_ownership>? (<src.acc_is_owner>)Sad<src.is_owner>)> || (<src.is_coowner>) || (<src.is_friend>) || (<src.isgm>)
if (<src.region.uid>==<link>)

And then in the button section insert an if statement

Code:
[DIALOG d_house_menu button]
on=0,88
ref1=<src.region.tag.sign>
if <ref1>==<ref99>

before the button numbers list off, and close it accordingly afterwards.

This should then have the house system check that you are still inside a house that matches the house in which you opened the menu when you press a button.

Then give me feedback, if that solves the issue I will update the script

[Image: 2nis46r.jpg]
(This post was last modified: 03-21-2015 06:17 AM by Mordaunt.)
03-21-2015 06:17 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Housing - Mordaunt - 09-12-2012, 02:42 AM
RE: Housing - htid4life - 09-12-2012, 08:37 AM
RE: Housing - Mordaunt - 09-28-2012, 11:49 PM
RE: Housing - Mordaunt - 09-30-2012, 12:12 PM
RE: Housing - Mordaunt - 10-05-2012, 11:51 PM
RE: Housing - Anarch Cassius - 10-06-2012, 06:00 AM
RE: Housing - Mordaunt - 10-06-2012, 06:34 AM
RE: Housing - Mordaunt - 10-06-2012, 08:39 AM
RE: Housing - WRWR - 10-12-2012, 01:59 AM
RE: Housing - Mordaunt - 10-12-2012, 03:40 AM
RE: Housing - Mordaunt - 10-12-2012, 08:36 AM
RE: Housing - Lazarus - 10-14-2012, 03:14 AM
RE: Housing - Mordaunt - 10-14-2012, 04:06 AM
RE: Housing - Lazarus - 10-14-2012, 05:03 AM
RE: Housing - Mordaunt - 10-18-2012, 11:27 AM
RE: Housing - Mordaunt - 10-21-2012, 12:50 PM
RE: Housing - htid4life - 10-21-2012, 07:55 PM
RE: Housing - Abuelox - 10-23-2012, 06:11 PM
RE: Housing - Gon - 10-28-2012, 05:46 AM
RE: Housing - Mordaunt - 10-28-2012, 07:02 AM
RE: Housing - Gon - 10-28-2012, 07:38 AM
RE: Housing - Mordaunt - 10-28-2012, 07:42 AM
RE: Housing - htid4life - 10-29-2012, 12:50 PM
RE: Housing - escribano - 11-20-2012, 01:52 PM
RE: Housing - Mordaunt - 11-21-2012, 03:34 AM
RE: Housing - escribano - 11-21-2012, 08:03 AM
RE: Housing - Mordaunt - 11-21-2012, 08:26 AM
RE: Housing - Runcuks - 02-03-2013, 04:37 AM
RE: Housing - Mordaunt - 02-03-2013, 07:21 AM
RE: Housing - Runcuks - 02-03-2013, 04:30 PM
RE: Housing - Mordaunt - 02-04-2013, 12:58 AM
RE: Housing - Runcuks - 02-04-2013, 10:17 PM
RE: Housing - Mordaunt - 02-05-2013, 02:01 AM
RE: Housing - Runcuks - 02-05-2013, 03:47 AM
RE: Housing - Mordaunt - 02-08-2013, 04:59 AM
RE: Housing - Runcuks - 02-09-2013, 08:43 PM
RE: Housing - Mordaunt - 02-26-2013, 01:32 PM
RE: Housing - Soulless - 02-26-2013, 03:04 PM
RE: Housing - Runcuks - 02-26-2013, 10:46 PM
RE: Housing - Mordaunt - 02-26-2013, 11:39 PM
RE: Housing - Soulless - 02-27-2013, 07:01 AM
RE: Housing - Mordaunt - 02-27-2013, 07:13 AM
RE: Housing - Soulless - 02-27-2013, 08:29 PM
RE: Housing - Mordaunt - 02-28-2013, 12:25 AM
RE: Housing - Soulless - 03-03-2013, 12:39 AM
RE: Housing - Shaklaban - 04-03-2013, 10:56 AM
RE: Housing - Mordaunt - 03-03-2013, 01:01 AM
RE: Housing - Soulless - 03-03-2013, 04:54 PM
RE: Housing - Mordaunt - 03-18-2013, 06:40 AM
RE: Housing - Mordaunt - 04-03-2013, 06:07 AM
RE: Housing - Soulless - 04-03-2013, 09:45 PM
RE: Housing - Mordaunt - 04-04-2013, 09:43 AM
RE: Housing - Soulless - 04-06-2013, 01:00 PM
RE: Housing - Mordaunt - 04-07-2013, 03:53 AM
RE: Housing - Soulless - 04-07-2013, 05:12 AM
RE: Housing - Mordaunt - 04-07-2013, 09:47 AM
RE: Housing - Soulless - 04-08-2013, 01:41 PM
RE: Housing - Soulless - 04-08-2013, 06:34 PM
RE: Housing - Mordaunt - 04-08-2013, 10:02 PM
RE: Housing - Runcuks - 04-19-2013, 11:36 PM
RE: Housing - Mordaunt - 04-20-2013, 04:01 AM
RE: Housing - Runcuks - 04-20-2013, 04:18 AM
RE: Housing - Mordaunt - 04-20-2013, 06:52 AM
RE: Housing - Runcuks - 04-21-2013, 12:34 AM
RE: Housing - Mordaunt - 04-21-2013, 01:29 AM
RE: Housing - Runcuks - 04-21-2013, 03:03 AM
RE: Housing - Mordaunt - 04-26-2013, 12:14 AM
RE: Housing - Mordaunt - 04-27-2013, 01:14 AM
RE: Housing - Mordaunt - 05-04-2013, 12:51 AM
RE: Housing - htid4life - 05-04-2013, 02:35 AM
RE: Housing - RanXerox - 05-04-2013, 03:06 AM
RE: Housing - htid4life - 05-04-2013, 04:54 AM
RE: Housing - Mordaunt - 05-09-2013, 05:16 AM
RE: Housing - Runcuks - 07-03-2013, 07:03 PM
RE: Housing - Mordaunt - 07-03-2013, 10:05 PM
RE: Housing - Runcuks - 07-03-2013, 10:13 PM
RE: Housing - Monty - 07-05-2013, 12:07 AM
RE: Housing - Mordaunt - 07-05-2013, 10:22 PM
RE: Housing - darksun84 - 07-06-2013, 12:11 AM
RE: Housing - Mordaunt - 07-16-2013, 08:03 AM
RE: Housing - xwerswoodx - 07-23-2013, 03:45 AM
RE: Housing - Mordaunt - 07-23-2013, 10:49 AM
RE: Housing - xwerswoodx - 07-23-2013, 11:24 AM
RE: Housing - Rattlehead - 08-03-2013, 05:57 PM
RE: Housing - Mordaunt - 08-03-2013, 10:11 PM
RE: Housing - Rattlehead - 08-04-2013, 02:40 PM
RE: Housing - Mordaunt - 08-06-2013, 10:57 AM
RE: Housing - Mordaunt - 08-06-2013, 11:36 PM
RE: Housing - babazar - 08-14-2013, 06:24 AM
RE: Housing - Mordaunt - 08-14-2013, 08:06 AM
RE: Housing - Rattlehead - 08-14-2013, 08:24 AM
RE: Housing - Mordaunt - 08-14-2013, 08:30 AM
RE: Housing - Mordaunt - 08-15-2013, 05:32 AM
RE: Housing - Soulless - 09-04-2013, 11:19 PM
RE: Housing - Mordaunt - 09-05-2013, 12:24 AM
RE: Housing - Soulless - 09-05-2013, 01:37 AM
RE: Housing - Mordaunt - 09-24-2013, 10:26 PM
RE: Housing - Anarch Cassius - 10-16-2013, 08:50 AM
RE: Housing - Mordaunt - 10-16-2013, 10:09 AM
RE: Housing - Anarch Cassius - 10-16-2013, 11:52 AM
RE: Housing - Mordaunt - 10-16-2013, 12:14 PM
RE: Housing - Mordaunt - 10-17-2013, 10:27 PM
RE: Housing - Mordaunt - 11-21-2013, 05:13 AM
RE: Housing - Mordaunt - 12-09-2013, 04:55 AM
RE: Housing - Mordaunt - 01-08-2014, 08:11 AM
RE: Housing - alexpetro - 01-11-2014, 09:08 PM
RE: Housing - Mordaunt - 01-12-2014, 12:27 AM
RE: Housing - Mordaunt - 01-19-2014, 04:26 AM
RE: Housing - amonvangrell - 01-19-2014, 09:53 AM
RE: Housing - Leonidas - 01-23-2014, 06:04 PM
RE: Housing - XuN - 01-23-2014, 06:15 PM
RE: Housing - Leonidas - 01-23-2014, 06:51 PM
RE: Housing - Mordaunt - 01-23-2014, 11:29 PM
RE: Housing - XuN - 01-24-2014, 05:12 AM
RE: Housing - Mordaunt - 01-24-2014, 07:20 AM
RE: Housing - XuN - 01-24-2014, 07:57 AM
RE: Housing - Leonidas - 01-25-2014, 02:38 PM
RE: Housing - Mordaunt - 01-25-2014, 10:29 PM
RE: Housing - babazar - 02-04-2014, 06:11 AM
RE: Housing - babazar - 02-04-2014, 07:32 AM
RE: Housing - Mordaunt - 02-04-2014, 01:49 PM
RE: Housing - babazar - 02-05-2014, 03:09 AM
RE: Housing - Mordaunt - 02-05-2014, 03:39 AM
RE: Housing - babazar - 02-05-2014, 07:48 AM
RE: Housing - Mordaunt - 02-05-2014, 08:50 AM
RE: Housing - babazar - 02-05-2014, 10:03 AM
RE: Housing - Mordaunt - 02-05-2014, 10:54 AM
RE: Housing - babazar - 02-05-2014, 06:39 PM
RE: Housing - Mordaunt - 02-05-2014, 11:13 PM
RE: Housing - Mordaunt - 02-06-2014, 12:33 AM
RE: Housing - babazar - 02-06-2014, 02:29 AM
RE: Housing - babazar - 02-06-2014, 09:57 PM
RE: Housing - Mordaunt - 02-07-2014, 12:43 AM
RE: Housing - babazar - 02-08-2014, 08:59 AM
RE: Housing - Mordaunt - 02-08-2014, 10:26 PM
RE: Housing - babazar - 02-09-2014, 09:07 AM
RE: Housing - Mordaunt - 02-10-2014, 12:04 AM
RE: Housing - babazar - 02-10-2014, 12:46 AM
RE: Housing - babazar - 02-10-2014, 09:05 AM
RE: Housing - Mordaunt - 02-10-2014, 10:41 AM
RE: Housing - babazar - 02-10-2014, 09:36 PM
RE: Housing - Mordaunt - 02-10-2014, 09:45 PM
RE: Housing - babazar - 02-11-2014, 02:09 AM
RE: Housing - Mazer - 02-11-2014, 04:47 AM
RE: Housing - Mordaunt - 02-11-2014, 09:06 AM
RE: Housing - babazar - 02-15-2014, 09:10 AM
RE: Housing - Mordaunt - 02-15-2014, 01:35 PM
RE: Housing - Soulless - 02-15-2014, 03:12 PM
RE: Housing - Mordaunt - 02-15-2014, 10:48 PM
RE: Housing - Soulless - 02-16-2014, 01:16 AM
RE: Housing - amonvangrell - 02-16-2014, 05:39 AM
RE: Housing - babazar - 02-16-2014, 08:02 AM
RE: Housing - Mordaunt - 02-16-2014, 09:41 AM
RE: Housing - babazar - 02-18-2014, 09:01 AM
RE: Housing - Mordaunt - 02-18-2014, 09:25 AM
RE: Housing - Mordaunt - 02-21-2014, 12:58 AM
RE: Housing - Mordaunt - 02-22-2014, 02:31 AM
RE: Housing - XuN - 02-22-2014, 03:03 AM
RE: Housing - Mordaunt - 02-22-2014, 06:24 AM
RE: Housing - XuN - 02-22-2014, 08:36 AM
RE: Housing - babazar - 04-03-2014, 08:14 PM
RE: Housing - Mordaunt - 04-04-2014, 01:28 AM
RE: Housing - babazar - 04-10-2014, 07:23 PM
RE: Housing - babazar - 04-11-2014, 05:40 AM
RE: Housing - Mordaunt - 04-12-2014, 09:12 PM
RE: Housing - ograso - 06-01-2014, 02:07 AM
RE: Housing - Mordaunt - 06-01-2014, 03:32 AM
RE: Housing - ograso - 06-01-2014, 05:52 AM
RE: Housing - Mordaunt - 06-02-2014, 01:37 AM
RE: Housing - ograso - 06-02-2014, 02:28 AM
RE: Housing - ograso - 06-02-2014, 07:25 AM
RE: Housing - babazar - 07-21-2014, 07:25 AM
RE: Housing - Extreme - 07-21-2014, 08:06 AM
RE: Housing - Mordaunt - 07-22-2014, 03:26 AM
RE: Housing - ograso - 07-24-2014, 05:36 PM
RE: Housing - Mordaunt - 07-25-2014, 04:27 AM
RE: Housing - ograso - 07-25-2014, 07:28 PM
RE: Housing - babazar - 07-25-2014, 08:19 AM
RE: Housing - Extreme - 07-25-2014, 12:06 PM
RE: Housing - Mordaunt - 07-26-2014, 05:13 AM
Console errors - ograso - 10-06-2014, 05:57 AM
RE: Housing - Extreme - 10-06-2014, 07:44 AM
RE: Housing - ograso - 10-06-2014, 10:37 PM
RE: Housing - Lazarus - 03-04-2015, 03:35 AM
RE: Housing - richm - 03-13-2015, 04:29 AM
RE: Housing - Lazarus - 03-18-2015, 09:30 AM
RE: Housing - Mordaunt - 03-21-2015 06:17 AM
RE: Housing - Extreme - 03-21-2015, 12:31 PM
RE: Housing - Lazarus - 03-22-2015, 06:55 AM
RE: Housing - richm - 03-22-2015, 11:26 PM
RE: Housing - Mordaunt - 03-23-2015, 02:58 AM
RE: Housing - Extreme - 03-24-2015, 10:26 AM
RE: Housing - Shamino - 04-23-2015, 06:49 AM
RE: Housing - Shamino - 04-26-2015, 10:51 PM
RE: Housing - Mordaunt - 08-30-2015, 11:35 PM
RE: Housing - dafty - 09-11-2015, 11:02 PM
RE: Housing - dafty - 09-22-2015, 02:07 AM
RE: Housing - Criminal - 11-02-2015, 10:48 PM
RE: Housing - Mordaunt - 11-03-2015, 06:45 AM
RE: Housing - darksun84 - 11-03-2015, 07:32 PM
RE: Housing - sagitariuz - 01-10-2016, 01:48 AM
RE: Housing - Mordaunt - 01-10-2016, 05:26 AM
RE: Housing - sagitariuz - 01-10-2016, 11:39 AM
RE: Housing - Mordaunt - 01-11-2016, 07:53 AM
RE: Housing - sagitariuz - 01-24-2016, 03:30 AM
RE: Housing - rastrero - 01-29-2016, 02:19 AM
RE: Housing - sagitariuz - 01-29-2016, 04:30 AM
RE: Housing - rastrero - 01-30-2016, 12:39 AM
RE: Housing - by__emrah - 03-16-2016, 11:48 AM
RE: Housing - Khaos - 03-25-2016, 04:10 PM
RE: Housing - n1ghtwish - 04-14-2016, 11:13 AM
RE: Housing - Abuelox - 03-03-2018, 07:17 AM
RE: Housing - ShiryuX - 03-03-2018, 10:58 PM
RE: Housing - Abuelox - 03-04-2018, 12:58 AM
RE: Housing - Seokotov - 12-31-2018, 04:56 PM
RE: Housing - azmanomer - 01-03-2019, 03:12 AM
RE: Housing - Seokotov - 01-03-2019, 10:19 PM

Forum Jump:


User(s) browsing this thread: 8 Guest(s)