Property Owning

Got any custom JavaScript additions/tweaks you think other people would like to see? Post 'em here!
Post Reply
dragon slayer
UOX3 Guru
Posts: 776
Joined: Thu Dec 21, 2006 7:37 am
Has thanked: 4 times
Been thanked: 26 times

Property Owning

Post by dragon slayer »

First, if you don’t already have a custom folder, create one. Then, drop any custom JavaScript files into this folder. Use jse_fileassociations.scp to add the JavaScript scripts:

50107=custom/buildingproperties.js
50108=custom/propertyuse.js
50109=custom/propertyupgrade.js

Next, add the following code to global.js within the onlogin function:
    if (!pChar.npc && !pChar.HasScriptTrigger(50107))
    {
        pChar.AddScriptTrigger(50107);
    }
Download the three files and place them in the custom folder you created.

The Sweet Dreams Inn is set up for renting rooms.
The guild hall by the stables is commented out as an example.
Empty houses around Britain are set up for sale.
Attachments
propertyuse.js
(1.85 KiB) Downloaded 77 times
propertyupgrade.js
(1.98 KiB) Downloaded 70 times
buildingproperties.js
(65.71 KiB) Downloaded 75 times
Post Reply