feat: Add support for version 3.0.5x UNTESTED
This commit is contained in:
@@ -2,11 +2,11 @@ use crate::net::tools::FreesrData;
|
||||
|
||||
use super::*;
|
||||
|
||||
static UNLOCKED_AVATARS: [u32; 61] = [
|
||||
static UNLOCKED_AVATARS: [u32; 63] = [
|
||||
8001, 1001, 1002, 1003, 1004, 1005, 1006, 1008, 1009, 1013, 1101, 1102, 1103, 1104, 1105, 1106,
|
||||
1107, 1108, 1109, 1110, 1111, 1112, 1201, 1202, 1203, 1204, 1205, 1206, 1207, 1208, 1209, 1210,
|
||||
1211, 1212, 1213, 1214, 1215, 1217, 1301, 1302, 1303, 1304, 1305, 1306, 1307, 1308, 1309, 1312,
|
||||
1315, 1310, 1314, 1218, 1221, 1220, 1222, 1223, 1317, 1313, 1225, 1402, 1401,
|
||||
1315, 1310, 1314, 1218, 1221, 1220, 1222, 1223, 1317, 1313, 1225, 1402, 1401, 1404, 1403
|
||||
];
|
||||
|
||||
pub async fn on_get_avatar_data_cs_req(
|
||||
|
||||
@@ -267,7 +267,7 @@ async fn create_battle_info(caster_id: u32, skill_index: u32) -> SceneBattleInfo
|
||||
max_sp: 10_000,
|
||||
}),
|
||||
}),
|
||||
// skill_info: vec![],
|
||||
skill_info: Vec::with_capacity(0)
|
||||
})
|
||||
}
|
||||
|
||||
@@ -280,8 +280,8 @@ async fn create_battle_info(caster_id: u32, skill_index: u32) -> SceneBattleInfo
|
||||
player_detail_info: Some(RogueMagicBattleUnitInfo {
|
||||
item: Some(Item::BattleRogueMagicData(BattleRogueMagicData {
|
||||
round_cnt: Some(BattleRogueMagicRoundCount {
|
||||
jnejloobmad: 3,
|
||||
jfaidmkbmof: 0,
|
||||
gpojenhaiba: 3,
|
||||
kljklbmlefo: 0,
|
||||
}),
|
||||
battle_scepter_list: player
|
||||
.battle_config
|
||||
@@ -321,7 +321,7 @@ async fn create_battle_info(caster_id: u32, skill_index: u32) -> SceneBattleInfo
|
||||
.collect(),
|
||||
})),
|
||||
}),
|
||||
scepter: Some(Hnpkkiadpid { mokbhfdehnf: 5 }),
|
||||
scepter: Some(Plgjihifpag { egmebanhhnf: 5 }),
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -9,14 +9,14 @@ use crate::{
|
||||
use super::*;
|
||||
|
||||
const SERVER_UID: u32 = 727;
|
||||
const SERVER_HEAD_ICON: u32 = 201008;
|
||||
const SERVER_HEAD_ICON: u32 = 201402;
|
||||
const SERVER_CHAT_BUBBLE_ID: u32 = 220005;
|
||||
const SERVER_CHAT_HISTORY: [&str; 5] = [
|
||||
"'dvd' render a dvd bouncing effect. you need to put the image into your game folder, with name \"image.png\"",
|
||||
"'sync'",
|
||||
"'sync' to synchronize stats between json and in-game view",
|
||||
"'mc {mc_id}' mc_id can be set from 8001 to 8008",
|
||||
"'march {march_id}' march_id can be set 1001 or 1224",
|
||||
"available command:",
|
||||
"available commands:",
|
||||
"visit srtools.pages.dev to configure the PS! (you configure relics, equipment, monsters from there)"
|
||||
];
|
||||
|
||||
pub async fn on_get_friend_login_info_cs_req(
|
||||
@@ -90,6 +90,7 @@ pub async fn on_send_msg_cs_req(
|
||||
from_uid: SERVER_UID,
|
||||
to_uid: 25,
|
||||
chat_type: body.chat_type,
|
||||
hnbepabnbng: body.hnbepabnbng.clone(),
|
||||
})
|
||||
.await
|
||||
.unwrap();
|
||||
@@ -121,18 +122,25 @@ pub async fn on_send_msg_cs_req(
|
||||
from_uid: SERVER_UID,
|
||||
to_uid: 25,
|
||||
chat_type: body.chat_type,
|
||||
hnbepabnbng: body.hnbepabnbng.clone(),
|
||||
})
|
||||
.await
|
||||
.unwrap();
|
||||
}
|
||||
"march" => {
|
||||
let march_type = MultiPathAvatar::from(
|
||||
let mut march_type = MultiPathAvatar::from(
|
||||
args.first()
|
||||
.unwrap_or(&"")
|
||||
.parse::<u32>()
|
||||
.unwrap_or(json.march_type as u32),
|
||||
);
|
||||
|
||||
if march_type != MultiPathAvatar::MarchPreservation
|
||||
&& march_type != MultiPathAvatar::MarchHunt
|
||||
{
|
||||
march_type = MultiPathAvatar::MarchHunt
|
||||
}
|
||||
|
||||
json.march_type = march_type;
|
||||
json.save().await;
|
||||
|
||||
@@ -152,6 +160,7 @@ pub async fn on_send_msg_cs_req(
|
||||
from_uid: SERVER_UID,
|
||||
to_uid: 25,
|
||||
chat_type: body.chat_type,
|
||||
hnbepabnbng: body.hnbepabnbng.clone(),
|
||||
})
|
||||
.await
|
||||
.unwrap();
|
||||
|
||||
@@ -113,7 +113,10 @@ async fn refresh_lineup(session: &mut PlayerSession, player: &FreesrData) {
|
||||
})),
|
||||
})
|
||||
.collect(),
|
||||
bccgjihncdn: Vec::with_capacity(0),
|
||||
}],
|
||||
floor_id: 0, // TODO!
|
||||
gfhglffhfbd: 0,
|
||||
})
|
||||
.await
|
||||
.unwrap();
|
||||
|
||||
@@ -110,7 +110,6 @@ dummy! {
|
||||
GetPlayerBoardData,
|
||||
GetActivityScheduleConfig,
|
||||
GetMissionData,
|
||||
GetMissionEventData,
|
||||
GetChallenge,
|
||||
GetCurChallenge,
|
||||
GetRogueInfo,
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
use std::collections::HashMap;
|
||||
|
||||
use crate::{
|
||||
net::tools::{FreesrData, MultiPathAvatar},
|
||||
util::cur_timestamp_ms,
|
||||
};
|
||||
use crate::net::tools::{FreesrData, MultiPathAvatar};
|
||||
|
||||
use super::*;
|
||||
|
||||
@@ -27,8 +24,8 @@ pub async fn on_player_heart_beat_cs_req(
|
||||
res.download_data = Some(ClientDownloadData {
|
||||
version: 51,
|
||||
time: res.server_time_ms as i64,
|
||||
data: rbase64::decode("bG9jYWwgZnVuY3Rpb24gYmV0YV90ZXh0KG9iaikKICAgIGxvY2FsIGdhbWVPYmplY3QgPSBDUy5Vbml0eUVuZ2luZS5HYW1lT2JqZWN0LkZpbmQoIlVJUm9vdC9BYm92ZURpYWxvZy9CZXRhSGludERpYWxvZyhDbG9uZSkiKQoKICAgIGlmIGdhbWVPYmplY3QgdGhlbgogIC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iamVjdDpHZXRDb21wb25lbnRJbkNoaWxkcmVuKHR5cGVvZihDUy5SUEcuQ2xpZW50LkxvY2FsaXplZFRleHQpKQogICAgICAgIGlmIHRleHRDb21wb25lbnQgdGhlbgogICAgICAgICAgICB0ZXh0Q29tcG9uZW50LnRleHQgPSAiPGNvbG9yPSMwMGUxZmY+Um9iaW5TUiE8L2NvbG9yPiIKICAgICAgICBlbmQKICAgIGVuZAplbmQKCnZlcnNpb25fdGV4dCgpCmJldGFfdGV4dCgpCg==").unwrap(),
|
||||
haehhcpoapp: 0
|
||||
});
|
||||
}
|
||||
|
||||
@@ -98,6 +95,7 @@ pub async fn on_get_multi_path_avatar_info_cs_req(
|
||||
.find(|v| v.equip_avatar == *mp_type as u32)
|
||||
.map(|v| v.internal_uid)
|
||||
.unwrap_or_default(),
|
||||
dressed_skin_id: 0,
|
||||
})
|
||||
})
|
||||
.collect();
|
||||
|
||||
@@ -368,7 +368,7 @@ async fn load_scene(
|
||||
scene_info.entity_group_list.push(SceneEntityGroupInfo {
|
||||
state: 0,
|
||||
group_id: 0,
|
||||
gbnnlkibhon: HashMap::new(),
|
||||
hejamoojbcj: HashMap::with_capacity(0),
|
||||
entity_list: json
|
||||
.lineups
|
||||
.iter()
|
||||
|
||||
@@ -219,4 +219,5 @@ trait_handler! {
|
||||
DoGacha;
|
||||
PlayerLoginFinish;
|
||||
RelicRecommend;
|
||||
// SetClientPaused;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user