Permalink
Browse files

Updated all files to include the FINDOBJTYPE_RECURSIVE default option.

  • Loading branch information...
sigmantium committed Sep 7, 2018
1 parent 771f288 commit 8fb6f5ec541b7401d8047500b9418a7455fe917b
@@ -2,14 +2,14 @@
<ESCRIPT>
<header>
<topic>Latest Core Changes</topic>
<datemodified>09-07-2018</datemodified>
<datemodified>09-08-2018</datemodified>
</header>
<version name="POL100">
<entry>
<date>09-07-2018</date>
<author>DevGIB:</author>
<change type="Changed">FindObjtypeInContainer(container, objtype, flags :=0 ) to recurse all containers from base container.</change>
<change type="Added">FINDOBJTYPE_IGNORE_LOCKED and FINDOBJTYPE_ROOT_ONLY to UO.EM</change>
<change type="Added">Constants FINDOBJTYPE_RECURSIVE, FINDOBJTYPE_IGNORE_LOCKED and FINDOBJTYPE_ROOT_ONLY to UO.EM</change>
<change type="Added">Flags to FindObjtypeInContainer() for only accessing root container, and bypassing locked container checks.</change>
<change type="Note">THESE CHANGES TO FindObjtypeInContainer() WILL EFFECTIVELY CHANGE THE DEFAULT FUNCTIONALITY OF THE FUNCTION AS DEFAULT IS NOW TO RECURSE SUB CONTAINERS.</change>
<change type="Added">Additional documentation to the Racalac escript guide to include additional information supplied by Yukiko.</change>
@@ -139,7 +139,8 @@
<constant>const FINDSUBSTANCE_FIND_ALL := 0x4; // Find all matches ignoring given amount</constant>
<constant> </constant>
<constant>// FindObjtypeInContainer constants</constant>
<constant>const FINDOBJTYPE_IGNORE_LOCKED := 0x1; // Find matches in locked containers</constant>
<constant>const FINDOBJTYPE_RECURSIVE := 0x0; // Search in sub-containers (DEFAULT).</constant>
<constant>const FINDOBJTYPE_IGNORE_LOCKED := 0x1; // Find matches in locked containers.</constant>
<constant>const FINDOBJTYPE_ROOT_ONLY := 0x2; // Do not find matches in sub-containers.</constant>
<constant> </constant>
<constant>// SendTextEntryGump options</constant>
@@ -291,14 +292,15 @@ container
</function>
<function name="FindObjtypeInContainer">
<prototype>FindObjtypeInContainer( container, objtype, flags:=0 )</prototype>
<prototype>FindObjtypeInContainer( container, objtype, flags:=FINDOBJTYPE_RECURSIVE )</prototype>
<parameter name="container" value="Container reference" />
<parameter name="objtype" value="integer objtype to find" />
<parameter name="flags" value="Integer" />
<explain>Returns an Item Reference to the first found item matching objtype starting in "container".</explain>
<explain>uo.em constants for flags:
<code>
// FindObjtype constants
const FINDOBJTYPE_RECURSIVE := 0x0; // Search in sub-containers (DEFAULT).
const FINDOBJTYPE_IGNORE_LOCKED := 0x1; // Find matches in locked containers
const FINDOBJTYPE_ROOT_ONLY := 0x2; // Do not find matches in sub-containers.</code></explain>
<return>Item reference or Error</return>
@@ -1,7 +1,7 @@
-- POL100 --
09-07-2018 DevGIB:
Changed: FindObjtypeInContainer(container, objtype, flags :=0 ) to recurse all containers from base container.
Added: FINDOBJTYPE_IGNORE_LOCKED and FINDOBJTYPE_ROOT_ONLY to UO.EM
Added: Constants FINDOBJTYPE_RECURSIVE, FINDOBJTYPE_IGNORE_LOCKED and FINDOBJTYPE_ROOT_ONLY to UO.EM
Added: Flags to FindObjtypeInContainer() for only accessing root container, and bypassing locked container checks.
Note: THESE CHANGES TO FindObjtypeInContainer() WILL EFFECTIVELY CHANGE THE DEFAULT FUNCTIONALITY OF THE FUNCTION AS DEFAULT IS NOW TO RECURSE SUB CONTAINERS.
Added: Additional documentation to the Racalac escript guide to include additional information supplied by Yukiko.
@@ -138,7 +138,8 @@ const ENUMERATE_IGNORE_LOCKED := 0x1; // List content of locked container.
const ENUMERATE_ROOT_ONLY := 0x2; // Do not list contents of sub-containers.
// FindObjtypeInContainer constants
const FINDOBJTYPE_IGNORE_LOCKED := 0x1; // Find matches in locked containers
const FINDOBJTYPE_RECURSIVE := 0x0; // Search in sub-containers (DEFAULT).
const FINDOBJTYPE_IGNORE_LOCKED := 0x1; // Find matches in locked containers.
const FINDOBJTYPE_ROOT_ONLY := 0x2; // Do not find matches in sub-containers.
// FindSubstance constants
@@ -284,7 +285,7 @@ EquipItem( mobile, item );
EraseGlobalProperty( propname );
EraseObjProperty( object, propname );
FindAccount( acctname );
FindObjtypeInContainer( container, objtype, flags := 0 );
FindObjtypeInContainer( container, objtype, flags := FINDOBJTYPE_RECURSIVE );
FindPath( x1, y1, z1, x2, y2, z2, realm := _DEFAULT_REALM, flags := FP_IGNORE_MOBILES, searchskirt := 5 );
FindSubstance( container, objtype, amount, makeinuse := 0, flags := 0 );
GetAmount( item );

0 comments on commit 8fb6f5e

Please sign in to comment.