diff --git a/test/STL.cpp b/test/STL.cpp index fe8f2e6..deb24ca 100644 --- a/test/STL.cpp +++ b/test/STL.cpp @@ -15,7 +15,9 @@ void STL::DrawDargonBox_STL(char* Buffer) //构造龙盒 模式 //DrawDargonModel_STL(Dom["op"].GetInt()); DargonModel_STL["op"] = Dom["op"].GetInt(); + DargonModel_STL["err"] = Dom["err"].GetInt(); + if (DargonModel_STL["err"] != 0)return;//如果不是 //构造res包 结构体 Dargonresult Res_Buffer[10]; if (DargonModel_STL["op"] == 4) @@ -79,9 +81,18 @@ void STL::DrawDargonModel_STL(int Value) DargonModel_STL["op"] = Value; } -int STL::SelectDargonModel_STL() +int STL::SelectDargonModel_STL(int Type) { - return DargonModel_STL["op"]; + switch (Type) + { + case 0: + return DargonModel_STL["op"]; + break; + case 1: + return DargonModel_STL["err"]; + break; + } + return 0; } int STL::Check_STL(std::string name,int Type,int idx) diff --git a/test/STL.h b/test/STL.h index 07d76fd..d257fd4 100644 --- a/test/STL.h +++ b/test/STL.h @@ -80,7 +80,7 @@ public: static int SelectDargonBox_STL(int Type,int Index = 0);//获取龙盒包 static void DrawDargonModel_STL(int Value);//设置龙盒模式 - static int SelectDargonModel_STL();//获取龙盒模式 + static int SelectDargonModel_STL(int Type);//获取龙盒模式 }; diff --git a/test/libMinHook.x86.lib b/test/libMinHook.x86.lib index b21e474..56ecae3 100644 Binary files a/test/libMinHook.x86.lib and b/test/libMinHook.x86.lib differ diff --git a/test/squirrel.cpp b/test/squirrel.cpp index 780ee76..1d746b9 100644 --- a/test/squirrel.cpp +++ b/test/squirrel.cpp @@ -816,10 +816,12 @@ static int Redom_Dragon(uint32_t v) //获取 龙盒 模式 static int Get_DragonModel(uint32_t v) { - int Model = STL::SelectDargonModel_STL();//龙盒模式 + int Type; int ParameterNum = SQGetTop(v); - if (ParameterNum == 1) + if (ParameterNum == 2) { + SQGetInt(v, 2, &Type); + int Model = STL::SelectDargonModel_STL(Type);//龙盒模式 SQPushInt(v, Model); } else diff --git a/test/test.vcxproj b/test/test.vcxproj index b149029..fc1dad2 100644 --- a/test/test.vcxproj +++ b/test/test.vcxproj @@ -36,7 +36,7 @@ DynamicLibrary false - v142 + v141_xp true Unicode