SphereCommunity
External Property Tool - Printable Version

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



External Property Tool - Barnabus - 10-12-2012 03:27 AM

This property tool enables the player to release or lockdown items rapidly within a set distance from the house sign.

It is handy when you need to lock down or release 20 fences in a row fast.. While locking down a gate this script will
create a newbied key for the gate and place it in the owners pack, likewise when releasing the gate, the newbie key is removed.

The gate check can be seen on line 80 IF (STRMATCH(*i_gate*,<ARGO.BASEID>)).

This script will work with any house system that stores the house owner id on the brass sign, it was made for coruja's house system which used TAG0.LOCKED_ITEMS to control the locked down item count. If your house system item count is different search this script for LOCKED_ITEMS and change it to increase or decrease the locked down item count in your house system

[DEFNAME HousingExternalProperty]
DistanceMax 15 // Allowable use distance (radius) from house sign.
DistanceMin 1 // Minimal Distance


RE: External Property Tool - Extreme - 10-12-2012 03:48 AM

Missing things:
Function CheckEvents
Typedef t_locked_down


RE: External Property Tool - Barnabus - 10-12-2012 04:07 AM

Thanks Extreme

IF (<ARGO.CheckEvents t_locked_down>) has been changed too IF (<ARGO.isevent.t_locked_down>)

and The TypeDef i am using is included in the house system and has been taken from the SCP its so
admirably long ive attached in in a seperate SCP for those that dont have a t_locked_down and for those that do they can simply exclude adding that the file t_locked_down.scp.

The original post was updated with both scripts for download


RE: External Property Tool - Extreme - 10-12-2012 04:13 AM

Functions Missing...
CanAccess
f_fix_contitems
FixHouseSubcontainers
House_AvaibleStorage
House_AvaibleLockdowns
FCOUNT
HousePlayerAccess

Hmm


RE: External Property Tool - Barnabus - 10-12-2012 04:19 AM

ahhh all from the type t_locked_down ... Ill make another one just for this tool then and update it again..

>>>>>> changed the typedef

you could just use [TYPDEF t_locked_down] on its own without any code.