pub fn generate_script_pack(
scripts_dir: &Path,
pack_dir: &Path,
sources: &HashMap<PathBuf, Arc<String>>,
)Expand description
Generate/update script.pack from .rs2 files, matching 2004scape’s regenScriptPack(). Scans all [trigger,name] declarations, preserves existing IDs, assigns new ones.