mirror of
https://github.com/rafi1212122/PemukulPaku
synced 2025-12-12 19:14:34 +01:00
* Update Equipment.cs Added LVL and EXP params while adding some equipment * Update Equipment.cs changed params to the appropriate type and removed casting * Update Equipment.cs Removed unnecessary changes. * Update RefineStigmataRuneReqHandler.cs Simplified rolling * Update GiveCommand.cs Changed Default behavior of Equipment commands to grant only the max star level versions. Default's to max level as well. * Update GiveCommand.cs Added more command aliases, > valks, valkyries, weap, wep, > weapons-all, weap-all, wep-all, stigmata-all, stigs-all added Avatar ID `316` to the blocked IDs list to prevent buggy behavior. (might add `avatars-all` to get them back) give weap/stigs 0 grants max level items without the `-all` equipment only gives the highest rarity of each weapon. * Update RefineStigmataRuneReqHandler.cs Affixes are now 90% functional * Update SelectNewStigmataRuneReqHandler.cs Should work for any further affix handling changes without needing modifications (might break on 10x but shouldn't) * Update AvatarCommand.cs Blocked Sus-Nya * Update AvatarCommand.cs bitwise -> logical OR * Update GiveCommand.cs bitwise -> logical OR * Update RefineStigmataRuneReqHandler.cs bitwise -> logical AND * Created Personal Abyss Command * Created abyss command * Update User.cs Stores personal Abyss Temperature * Update UltraEndlessGetMainDataReqHandler.cs Uses personal Abyss Temp
46 lines
1.8 KiB
C#
46 lines
1.8 KiB
C#
using Common;
|
|
using Common.Resources.Proto;
|
|
using Common.Utils.ExcelReader;
|
|
using Common.Database;
|
|
|
|
namespace PemukulPaku.GameServer.Handlers
|
|
{
|
|
[PacketCmdId(CmdId.UltraEndlessGetMainDataReq)]
|
|
internal class UltraEndlessGetMainDataReqHandler : IPacketHandler
|
|
{
|
|
|
|
public void Handle(Session session, Packet packet)
|
|
{
|
|
UltraEndlessGetMainDataRsp Rsp = new()
|
|
{
|
|
retcode = UltraEndlessGetMainDataRsp.Retcode.Succ,
|
|
ScheduleId = 1028,
|
|
GroupLevel = 9,
|
|
TopGroupLevel = 9,
|
|
CupNum = 2000,
|
|
MainData = new()
|
|
{
|
|
ScheduleId = 1028,
|
|
EffectTime = 0,
|
|
BeginTime = 0,
|
|
EndTime = (uint)Global.GetUnixInSeconds() + 3600 * 24 * 7,
|
|
CloseTime = (uint)Global.GetUnixInSeconds() + 3600 * 24 * 7 + 1200,
|
|
CurSeasonId = 1
|
|
},
|
|
DynamicHardLevel = session.Player.User.AbyssDynamicHard,
|
|
LastSettleInfo = new() { }
|
|
};
|
|
Rsp.MainData.SiteLists.AddRange(Common.Utils.ExcelReader.UltraEndlessSite.GetInstance().All.Where(x => x.SiteId > 1019).Select(siteData =>
|
|
{
|
|
List<UltraEndlessFloorExcel> floorDatas = Common.Utils.ExcelReader.UltraEndlessFloor.GetInstance().GetFloorDatasFromStageId(siteData.StageId);
|
|
var siteInfo = new Common.Resources.Proto.UltraEndlessSite() { SiteId = (uint)siteData.SiteId };
|
|
siteInfo.FloorLists.AddRange(floorDatas.Select(x => new Common.Resources.Proto.UltraEndlessFloor() { Floor = (uint)x.FloorId, MaxScore = 0 }));
|
|
|
|
return siteInfo;
|
|
}));
|
|
|
|
session.Send(Packet.FromProto(Rsp, CmdId.UltraEndlessGetMainDataRsp));
|
|
}
|
|
}
|
|
}
|