This commit is contained in:
lenheart
2025-04-05 22:03:40 +08:00
parent 4d65103501
commit eeb773e723
53 changed files with 2348 additions and 505 deletions

View File

@@ -22,7 +22,6 @@ function InitPluginInfo() {
//初始化
PoolObj.Init();
GameManager.FixEquipUseJewel();
GameManager.Fix14Skill();
Sq_CreatSocketConnect("192.168.200.20", "65109");
@@ -42,6 +41,22 @@ function InitPluginInfo() {
GameManager.OpenCreateJob_CreatorMage();
// function IndependenceDropLogic(SUser, MonsterId, MonsterLevel, Xpos, Ypos, DgnName, DgnId, DgnLevel,DgnDiff, HellDiff)
// {
// //注意这里组队时每一个队员都会调用一次这个函数
// //如果角色名字为游戏管理员 掉落3037
// if(SUser.GetCharacName() == "游戏管理员")
// SUser.DropItem(3037, Xpos, Ypos);
// //如果怪物ID 为 1 掉落 3038
// if(MonsterId == 1)
// SUser.DropItem(3038, Xpos, Ypos);
// }
// GameManager.OpenIndependenceDropMode(IndependenceDropLogic);
GameManager.FixEmailRemovalVerification();
}
@@ -50,12 +65,16 @@ function PrintTag() {
print(InitSuccessTag);
}
function main() {
InitPluginInfo();
PrintTag();
//读取全部配置文件
GameManager.SetGameMaxLevel(95);
// GameManager.FixAvatarUseJewel();
GameManager.FixSaveTown();
@@ -68,6 +87,130 @@ function main() {
// Sq_Conversion("這是一個繁體字符串");
_Start_Official_Project_();
// if (getroottable().rawin("DP_S_VERSION") && DP_S_VERSION >= 25.329) {
// function _Rindro_OldLogic_Enter(CUser, PacketId, PacketSrc) {
// //区域移动
// if (PacketId == 38) {
// local Ret = Cb_move_area(CUser, NativePointer(PacketSrc).add(0x0D).readU8(), NativePointer(PacketSrc).add(0x0E).readU8());
// if (!Ret) {
// return -1;
// }
// }
// //普通输入
// else if (PacketId == 17) {
// Timer.SetTimeOut(function() {
// local Size = NativePointer(PacketSrc).add(20).readInt();
// local Str = NativePointer(PacketSrc).add(24).readUtf8String(Size);
// Cb_base_input(CUser, Str);
// }, 1);
// }
// //GM输入
// else if (PacketId == 179) {
// Timer.SetTimeOut(function() {
// local Size = NativePointer(PacketSrc).add(13).readInt();
// local Str = NativePointer(PacketSrc).add(17).readUtf8String(Size);
// Cb_gm_input(CUser, Str.slice(2));
// }, 1);
// }
// //特殊道具使用
// else if (PacketId == 255) {
// Timer.SetTimeOut(function() {
// Cb_use_item_sp(CUser, NativePointer(PacketSrc).add(0x0D).readInt());
// }, 1);
// }
// //返回选择角色
// else if (PacketId == 7) {
// Timer.SetTimeOut(function() {
// Cb_return_select_character(CUser);
// }, 1);
// }
// //组队 创建和加入
// else if (PacketId == 10) {
// local Ret = Cb_userpartycreate(CUser);
// if (!Ret) {
// return -1;
// }
// }
// //下线
// else if (PacketId == 3) {
// Timer.SetTimeOut(function() {
// Cb_player_exit(CUser);
// }, 1);
// }
// // //查看信息
// // else if (PacketId == 8) {
// // Cb_see_information(CUser, PacketSrc);
// // }
// //自定义包
// else if (PacketId == 130) {
// Timer.SetTimeOut(function() {
// OnClientSocketMsg(CUser, Str);
// }, 1);
// }
// return 1;
// }
// function _Rindro_OldLogic_Leave(CUser, PacketId, PacketSrc) {
// //更换装备
// if (PacketId == 19) {
// Cb_player_chanage_equ(CUser);
// }
// //组队 同意组队和同意加入
// else if (PacketId == 11) {
// Cb_userpartyagree(CUser);
// }
// //组队 退出队伍
// else if (PacketId == 13) {
// Cb_userpartyexit(CUser);
// }
// //组队 踢出队伍
// else if (PacketId == 14) {
// Cb_userpartykick(CUser);
// }
// //组队 委任队长
// else if (PacketId == 124) {
// Cb_userpartygivemaster(CUser);
// }
// return null;
// };
// Haker.LoadHook("0x08594E52", ["pointer", "int", "pointer", "int", "int"],
// function(args) {
// local CallArr = [];
// local v4 = Sq_CallFunc(S_Ptr("0x080CC18E"), "pointer", []);
// local cuser = Sq_CallFunc(S_Ptr("0x082947A4"), "pointer", ["pointer", "int"], v4, args[1]);
// if (!cuser) return;
// local PacketId = NativePointer(args[2]).add(1).readShort();
// local Ret = _Rindro_OldLogic_Enter(cuser, PacketId, args[2]);
// if (Ret == -1) {
// NativePointer(args[2]).add(1).writeShort(-1);
// }
// return null;
// },
// function(args) {
// local CallArr = [];
// local v4 = Sq_CallFunc(S_Ptr("0x080CC18E"), "pointer", []);
// local cuser = Sq_CallFunc(S_Ptr("0x082947A4"), "pointer", ["pointer", "int"], v4, args[1]);
// if (!cuser) return;
// local PacketId = NativePointer(args[2]).add(1).readShort();
// Timer.SetTimeOut(function() {
// _Rindro_OldLogic_Leave(cuser, PacketId, args[2]);
// }, 1);
// return null;
// }
// );
// }
}
/*