add all weapon & skin on init and fix CallGS

This commit is contained in:
Naruse
2026-04-25 18:36:35 +08:00
parent 86b1fc75a0
commit a3b421920e
15 changed files with 68 additions and 25 deletions

View File

@@ -38,9 +38,10 @@ public static class CallGSRouter
Logger.Error($"No handler for CallGS API: {req.Api}");
}
public static async Task SendScript(Connection connection, string api, string arg, ushort seqNo = 0)
public static async Task SendScript(Connection connection, string api, string arg, NtfSyncPlayer extra = null!)
{
var rsp = new NtfCallScript { Api = api, Arg = arg };
await connection.SendPacket(CmdIds.RspCallGS, rsp, seqNo);
var rsp = new NtfCallScript { Api = api, Arg = arg, ExtraSync = extra };
await connection.SendPacket(CmdIds.NtfScript, rsp);
await connection.SendPacket(CmdIds.RspCallGS);
}
}