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-nmm6 (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-nmm6 (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-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script New house
Author Message
Mordaunt
Super Moderator
****

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



Post: #8
RE: Script New house
Last I understood, they were a little broken.
There should be deeds and foundations for them in the script pack.
I recall writing them all out, pretty sure it got put in there.

The extent of the system to actually use them goes like this:

Code:
//MrSugarCube
//Custom House design system    
[EVENTS e_house_customize]
ON=@SkillStart
    IF !(<HOUSEDESIGN>)
        RETURN 2
    ENDIF
    SYSMESSAGE @,,1 You cannot do this whilst designing a house.
    RETURN 1

ON=@SkillUseQuick
    IF !(<HOUSEDESIGN>)
        RETURN 2
    ENDIF
    RETURN 1

ON=@HouseDesignCommit
    IF (<ISGM>)
        SYSMESSAGE @,,1 Your new house design has been committed.
        RETURN 2
    ENDIF
    LOCAL.OLDCOST = <EVAL (<ARGN1> * 500)>
    LOCAL.NEWCOST = <EVAL (<ARGN2> * 500)>
    LOCAL.CURCOST = <EVAL (<LOCAL.NEWCOST> - <LOCAL.OLDCOST>)>
    IF (<GOLD> < <LOCAL.CURCOST>)
        SYSMESSAGE @,,1 You cannot afford this house design.
        RETURN 1
    ENDIF
    obj=<src.region.tag0.sign>
    obj.tag0.construction=<eval <local.newcost>-<obj.link.value>>
    SYSMESSAGE @,,1 Your new house design has been committed.
    IF (<LOCAL.CURCOST> == 0)
        SYSMESSAGE @,,1 As the new design costs the same as the previous one, no gold has been taken out of your account.
    ELSEIF (<LOCAL.CURCOST> < 0)
        LOCAL.CURCOST = <EVAL (0 - <LOCAL.CURCOST>)>
        GOLD += <LOCAL.CURCOST>
        SYSMESSAGE @,,1 As the new design is cheaper than the previous one, <dLOCAL.CURCOST> gold has been returned to you.
    ELSE
        GOLD -= <LOCAL.CURCOST>
        SYSMESSAGE @,,1 <dLOCAL.CURCOST> gold has been taken out of your account to pay for the construction.
    ENDIF
    RETURN 2

ON=@HouseDesignExit
    SYSMESSAGE @,,1 You have left house design mode.
    timerf 1,f_fixpc
    RETURN 2

Don't believe anything else was required to make them work, at least that's all I ever put into my house script, and it works there.

[Image: 2nis46r.jpg]
09-28-2012 05:44 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
Script New house - victorstelzer - 09-23-2012, 12:07 PM
RE: Script New house - Shaklaban - 09-23-2012, 02:51 PM
RE: Script New house - Extreme - 09-23-2012, 03:21 PM
RE: Script New house - WRWR - 09-23-2012, 07:55 PM
RE: Script New house - victorstelzer - 09-24-2012, 10:42 AM
RE: Script New house - Mordaunt - 09-24-2012, 11:52 AM
RE: Script New house - victorstelzer - 09-25-2012, 10:14 AM
RE: Script New house - Mordaunt - 09-28-2012 05:44 AM

Forum Jump:


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