JS StaticAt and StaticInRange functions always return false

Found a bug in UOX3? Or experienced a server crash? Perhaps you've noticed a broken feature? Post the details here!
Post Reply
User avatar
Xuri
Site Admin
Posts: 3704
Joined: Mon Jun 02, 2003 9:11 am
Location: Norway
Has thanked: 48 times
Been thanked: 8 times
Contact:

JS StaticAt and StaticInRange functions always return false

Post by Xuri »

From changelog:
StaticAt function - takes 4 parameters - x, y, world, [tileID] (tileID is optional - if
not specified, ANY static at that location will match)
StaticInRange function - takes 5 parameters - x, y, world, radius, tileID
After testing various methods of using these JS functions, I've come to the conclusion that they always return false no matter what.

I've tried the following ways, and testVar was always false in the end:
var testVar = StaticAt( iUsed.x, iUsed.y, iUsed.worldnumber );
var testVar = StaticAt( iUsed.x, iUsed.y, iUsed.worldnumber, 0xa68 );
var testVar = StaticAt( iUsed.x, iUsed.y, iUsed.worldnumber, 0x0a68 );
var testVar = StaticAt( iUsed.x, iUsed.y, iUsed.worldnumber, 2664 );

var testVar = StaticAt( 1500, 1629, 10 );
var testVar = StaticAt( 1500, 1629, 10, 0xa68 );
var testVar = StaticAt( 1500, 1629, 10, 0x0a68 );
var testVar = StaticAt( 1500, 1629, 10, 2664 );

var testVar = StaticInRange( 1500, 1629, 0, 10 );
var testVar = StaticInRange( 1500, 1629, 0, 10, 0xa68 );
var testVar = StaticInRange( 1500, 1629, 0, 10, 0x0a68 );
var testVar = StaticInRange( 1500, 1629, 0, 10, 2664 );
-= Ho Eyo He Hum =-
Post Reply