Here's the error:
Core notes from Shinigami:Script Error in 'pkg/systems/spawnSystem/engines/npcFill/spawnCycle.ecl' PC=991:
Call to function ListStaticsAtLocation:
Parameter 3: Expected datatype Integer, got datatype String
07-04 Shinigami
2510: Changed : uo::ListStaticItemsAtLocation to uo::ListStaticsAtLocation( x, y, z, flags, realm )
Code from Distro spawnerUtil where that gets called:06-01 Shinigami
Added : uo::ListStaticItemsAtLocation( x, y, flags, realm )
Added : uo::ListStaticItemsNearLocation( x, y, range, flags, realm )
creates an array of structures with Static and Multi Items at or around location.
you can specify via flags which Items you want to get. check IGNORE_* constants.
Code: Select all
function SS_IsValidCreationTile( x, y, z, realm )
var landtiles_cfg := ReadConfigFile( "::landtiles" );
var map_info := GetMapInfo( x, y, realm );
var tile_elem := landtiles_cfg[Hex( map_info.landtile )];
if( !tile_elem.MoveLand )
var tiles_cfg := ReadConfigFile( "::tiles" );
foreach static in ( ListStaticsAtLocation( x, y, z, realm ))
if( static.z == z )
if( tiles_cfg[Hex( static.objtype )].MoveLand )
return 1;
endif
endif
SleepMS(10);
endforeach
foreach item in ( ListItemsAtLocation( x, y, z, realm ))
if( item.z == z )
if( tiles_cfg[item.graphic].MoveLand )
return 1;
endif
endif
SleepMS(10);
endforeach
return 0;
endif
return 1;
endfunctionCode: Select all
function SS_IsValidCreationTile( x, y, z, flags, realm )
var landtiles_cfg := ReadConfigFile( "::landtiles" );
var map_info := GetMapInfo( x, y, realm );
var tile_elem := landtiles_cfg[Hex( map_info.landtile )];
if( !tile_elem.MoveLand )
var tiles_cfg := ReadConfigFile( "::tiles" );
foreach static in ( ListStaticsAtLocation( x, y, z, flags, realm ))
if( static.z == z )
if( tiles_cfg[Hex( static.objtype )].MoveLand )
return 1;
endif
endif
SleepMS(10);
endforeach
foreach item in ( ListItemsAtLocation( x, y, z, flags, realm ))
if( item.z == z )
if( tiles_cfg[item.graphic].MoveLand )
return 1;
endif
endif
SleepMS(10);
endforeach
return 0;
endif
return 1;
endfunction