update for version 3.1.5x
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
var response = new GetAvatarDataScRsp
|
||||
{
|
||||
Retcode = 0,
|
||||
IsAll = request.IsGetAll
|
||||
IsGetAll = request.IsGetAll
|
||||
};
|
||||
|
||||
uint[] characters = new uint[] { 8001,8002,8003,8004,
|
||||
|
||||
@@ -31,7 +31,7 @@ namespace FreeSR.Gateserver.Manager.Handlers
|
||||
Id = id,
|
||||
Hp = 10000,
|
||||
Satiety = 100,
|
||||
Sp = new AmountInfo{CurAmount = 10000,MaxAmount = 10000},
|
||||
SpBar = new SpBarInfo {CurSp = 10000, MaxSp = 10000},
|
||||
AvatarType = AvatarType.AvatarFormalType,
|
||||
Slot = (uint)lineupInfo.AvatarLists.Count
|
||||
});
|
||||
@@ -158,7 +158,7 @@ namespace FreeSR.Gateserver.Manager.Handlers
|
||||
Hp = 10000,
|
||||
AvatarType = AvatarType.AvatarFormalType,
|
||||
WorldLevel = 6,
|
||||
Sp = new AmountInfo { CurAmount = 10000, MaxAmount = 10000 },
|
||||
SpBar = new SpBarInfo { CurSp = 10000, MaxSp = 10000 },
|
||||
RelicLists = { testRelic },
|
||||
EquipmentLists = {new BattleEquipment
|
||||
{
|
||||
@@ -190,8 +190,8 @@ namespace FreeSR.Gateserver.Manager.Handlers
|
||||
{
|
||||
SceneMonsterWave monsterInfo = new SceneMonsterWave
|
||||
{
|
||||
Pkgenfbhofi = i,
|
||||
MonsterParam = new SceneMonsterParam
|
||||
WaveId = i,
|
||||
WaveParam = new SceneMonsterWaveParam
|
||||
{
|
||||
Level = monsterLevels[i],
|
||||
}
|
||||
@@ -203,7 +203,7 @@ namespace FreeSR.Gateserver.Manager.Handlers
|
||||
|
||||
foreach (uint monsterId in monsterIdList)
|
||||
{
|
||||
monsterInfo.MonsterLists.Add(new SceneMonsterInfo
|
||||
monsterInfo.MonsterLists.Add(new SceneMonster
|
||||
{
|
||||
MonsterId = monsterId
|
||||
});
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
{
|
||||
AvatarType = AvatarType.AvatarFormalType,
|
||||
Hp = 10000,
|
||||
Sp = new AmountInfo { CurAmount = 10000,MaxAmount = 10000},
|
||||
SpBar = new SpBarInfo { CurSp = 10000,MaxSp = 10000},
|
||||
Satiety = 100,
|
||||
Id = id,
|
||||
Slot = (uint)response.Lineup.AvatarLists.Count
|
||||
@@ -70,7 +70,7 @@
|
||||
response.LineupLists[0].AvatarLists.Add(new LineupAvatar
|
||||
{
|
||||
AvatarType = AvatarType.AvatarFormalType,
|
||||
Sp = new AmountInfo { CurAmount = 10000, MaxAmount = 10000 },
|
||||
SpBar = new SpBarInfo { CurSp = 10000, MaxSp = 10000 },
|
||||
Hp = 10000,
|
||||
Satiety = 100,
|
||||
Id = id,
|
||||
@@ -114,7 +114,7 @@
|
||||
|
||||
var request = data as ReplaceLineupCsReq;
|
||||
Avatar1 = 0; Avatar2 = 0; Avatar3 = 0; Avatar4 = 0;
|
||||
foreach (LineupSlotData slotData in request.LineupSlotLists)
|
||||
foreach (LineupSlotData slotData in request.Slots)
|
||||
{
|
||||
if (slotData.Slot == 0) Avatar1 = slotData.Id;
|
||||
if (slotData.Slot == 1) Avatar2 = slotData.Id;
|
||||
@@ -165,7 +165,7 @@
|
||||
response.Lineup.AvatarLists.Add(new LineupAvatar
|
||||
{
|
||||
AvatarType = AvatarType.AvatarFormalType,
|
||||
Sp = new AmountInfo { CurAmount = 10000, MaxAmount = 10000 },
|
||||
SpBar = new SpBarInfo { CurSp = 10000, MaxSp = 10000 },
|
||||
Hp = 10000,
|
||||
Satiety = 100,
|
||||
Id = id,
|
||||
|
||||
@@ -122,19 +122,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
if (request.MainMissionIdLists != null)
|
||||
{
|
||||
foreach (uint id in request.MainMissionIdLists)
|
||||
{
|
||||
response.MissionEventStatusLists.Add(new Mission()
|
||||
{
|
||||
Id = id,
|
||||
Progress = 0,
|
||||
Status = MissionStatus.MissionFinish
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
session.Send(CmdType.CmdGetMissionStatusScRsp, response);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -31,12 +31,12 @@
|
||||
Retcode = 0
|
||||
};
|
||||
|
||||
foreach(uint id in npcPerformanceReq.FirstTalkIdLists)
|
||||
foreach(uint id in npcPerformanceReq.NpcTalkLists)
|
||||
{
|
||||
response.NpcMeetStatusLists.Add(new NpcMeetStatusInfo
|
||||
response.NpcTalkInfoLists.Add(new NpcTalkInfo
|
||||
{
|
||||
IsMeet = true,
|
||||
MeetId = id
|
||||
Iagodfdjaik = true,
|
||||
NpcTalkId = id
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
@@ -35,22 +35,13 @@
|
||||
});
|
||||
}
|
||||
|
||||
[Handler(CmdType.CmdGetHeroBasicTypeInfoCsReq)]
|
||||
[Handler(CmdType.CmdGetMultiPathAvatarInfoCsReq)]
|
||||
public static void OnGetHeroBasicTypeInfoCsReq(NetSession session, int cmdId, object _)
|
||||
{
|
||||
session.Send(CmdType.CmdGetHeroBasicTypeInfoScRsp, new GetHeroBasicTypeInfoScRsp
|
||||
session.Send(CmdType.CmdGetMultiPathAvatarInfoScRsp, new GetMultiPathAvatarInfoScRsp()
|
||||
{
|
||||
Retcode = 0,
|
||||
Gender = Gender.GenderMan,
|
||||
BasicTypeInfoLists ={
|
||||
new PlayerHeroBasicTypeInfo
|
||||
{
|
||||
BasicType = HeroBasicType.BoyWarrior,
|
||||
Rank = 1,
|
||||
Knhaecbafbas = {}
|
||||
}
|
||||
},
|
||||
CurBasicType = HeroBasicType.BoyWarrior,
|
||||
CurrentMultiPathAvatarIds = { }
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -47,22 +47,22 @@
|
||||
|
||||
uint[] back = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 0 };
|
||||
|
||||
var mapinfo = new SceneMapInfo
|
||||
var mapinfo = new MazeMapData()
|
||||
{
|
||||
Retcode = 0,
|
||||
LightenSectionLists = back,
|
||||
ChestLists = {
|
||||
new ChestInfo
|
||||
UnlockedChestLists = {
|
||||
new MazeChest
|
||||
{
|
||||
ChestType = ChestType.MapInfoChestTypeNormal
|
||||
MapInfoChestType = MapInfoChestType.MapInfoChestTypeNormal
|
||||
},
|
||||
new ChestInfo
|
||||
new MazeChest
|
||||
{
|
||||
ChestType = ChestType.MapInfoChestTypePuzzle
|
||||
MapInfoChestType = MapInfoChestType.MapInfoChestTypePuzzle
|
||||
},
|
||||
new ChestInfo
|
||||
new MazeChest
|
||||
{
|
||||
ChestType = ChestType.MapInfoChestTypeChallenge
|
||||
MapInfoChestType = MapInfoChestType.MapInfoChestTypeChallenge
|
||||
}
|
||||
},
|
||||
};
|
||||
@@ -70,10 +70,8 @@
|
||||
var response = new GetSceneMapInfoScRsp
|
||||
{
|
||||
Retcode = 0,
|
||||
EntryId = request.EntryIdLists[0],
|
||||
CurMapEntryId = request.EntryId,
|
||||
SceneMapInfoes = { mapinfo },
|
||||
LightenSectionLists = back,
|
||||
CurMapEntryId = request.CurMapEntryId,
|
||||
MapLists = { mapinfo },
|
||||
};
|
||||
|
||||
session.Send(CmdType.CmdGetSceneMapInfoScRsp, response);
|
||||
|
||||
Reference in New Issue
Block a user