SphereCommunity
Housing - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Submissions (/Forum-Script-Submissions)
+--- Thread: Housing (/Thread-Housing)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22


RE: Housing - XuN - 02-22-2014 08:36 AM

What


RE: Housing - babazar - 04-03-2014 08:14 PM

Any idea why house commands wont work ? not getting any erros Sad


RE: Housing - Mordaunt - 04-04-2014 01:28 AM

Is the event loaded?


RE: Housing - babazar - 04-10-2014 07:23 PM

Sorry I got it working, I had conflicting speech so had to add this end of spheretables to load it


RE: Housing - babazar - 04-11-2014 05:40 AM

ok issue i have is House commands wont work on a reboot, I have to edit and then resync the house script, Do you know what could cause this?


RE: Housing - Mordaunt - 04-12-2014 09:12 PM

Not a problem I have ever had. If the script is loaded the event should also be loaded.


RE: Housing - ograso - 06-01-2014 02:07 AM

I spent lots of time for using your script in flesh server but I didnt.

I am using 56c and unpack last scriptpack. I used your last script which is house24.scp but its nothing happened when I doubleclick to sign brass. not show d_house_menu.

What can I do for fixing this problem


RE: Housing - Mordaunt - 06-01-2014 03:32 AM

Does it give any message at all?

Are you standing on the house's doorstep when you dclick it?


RE: Housing - ograso - 06-01-2014 05:52 AM

(06-01-2014 03:32 AM)Mordaunt Wrote:  Does it give any message at all?

Are you standing on the house's doorstep when you dclick it?

No there is no any messages on screen and yes standing on house's doorstep when I dclick.

But I write a sysmessage to understand where the problem is.
I wrote test messagea on the 3rd if loop and first test message appear on screen but the test 1 message not

I dont understand nothing Smile




RE: Housing - Mordaunt - 06-02-2014 01:37 AM

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 // <--- to do with initial set up of the house if there is no owner
            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>)
            dialog d_house_menu <--- check for owner/cowner/friend or GM and present house menu
            return 1        
        else
            src.sysmessage @32,,1 You must be standing on your doorstep to access the house menu. // <--- fires if not inside house region i.e. not on doorstepp
            return 1
        endif
    else
        if !<link.region.tag0.forsale>
            dialog d_house_visitor // <---- fires if NOT owner/coowner/friend or gm and house is not for sale
            return 1
        else
            dialog d_house_forsale  // <----- fires if house is for sale
            return 1
        endif
    endif


If none of this is firing then the event is not loaded which suggests either the script is not loaded or your houses are starting with something other than a brass sign.