更新DPS默认连接Java
This commit is contained in:
parent
f8eeb2e0cf
commit
43c3d0a92e
|
|
@ -22,6 +22,92 @@ Gm_InputFunc_Handle["给"] <- function(SUser, CmdString) {
|
|||
}
|
||||
}
|
||||
|
||||
Gm_InputFunc_Handle["转职"] <- function(SUser, CmdString) {
|
||||
local count = -1;
|
||||
local pos = 0;
|
||||
local handler = [];
|
||||
do {
|
||||
local start = pos;
|
||||
pos = CmdString.find(" ", pos + 1);
|
||||
if (pos != null) {
|
||||
handler.append(CmdString.slice(start + 1, pos));
|
||||
} else
|
||||
handler.append(CmdString.slice(start + 1));
|
||||
count = count + 1
|
||||
} while (pos != null)
|
||||
|
||||
//得到空格数量
|
||||
if (count == 1) {
|
||||
SUser.ChangeGrowType(handler[1].tointeger(), 0);
|
||||
SUser.SendNotiPacket(0, 2, 0);
|
||||
SUser.InitSkillW(handler[1].tointeger(), 0);
|
||||
} else if (count == 2) {
|
||||
SUser.ChangeGrowType(handler[1].tointeger(), handler[2].tointeger());
|
||||
SUser.SendNotiPacket(0, 2, 0);
|
||||
SUser.InitSkillW(handler[1].tointeger(), handler[2].tointeger());
|
||||
}
|
||||
}
|
||||
|
||||
Gm_InputFunc_Handle["完成任务"] <- function(SUser, CmdString) {
|
||||
SUser.ClearQuest_Gm(674);
|
||||
SUser.ClearQuest_Gm(649);
|
||||
|
||||
SUser.ClearQuest_Gm(675);
|
||||
SUser.ClearQuest_Gm(650);
|
||||
|
||||
SUser.ClearQuest_Gm(4414);
|
||||
|
||||
SUser.ClearQuest_Gm(2603);
|
||||
SUser.ClearQuest_Gm(2610);
|
||||
SUser.ClearQuest_Gm(2613);
|
||||
SUser.ClearQuest_Gm(2622);
|
||||
SUser.ClearQuest_Gm(4391);
|
||||
SUser.ClearQuest_Gm(4539);
|
||||
|
||||
SUser.ClearQuest_Gm(220);
|
||||
SUser.ClearQuest_Gm(221);
|
||||
}
|
||||
|
||||
Gm_InputFunc_Handle["升级"] <- function(SUser, CmdString) {
|
||||
local count = -1;
|
||||
local pos = 0;
|
||||
local handler = [];
|
||||
do {
|
||||
local start = pos;
|
||||
pos = CmdString.find(" ", pos + 1);
|
||||
if (pos != null) {
|
||||
handler.append(CmdString.slice(start + 1, pos));
|
||||
} else
|
||||
handler.append(CmdString.slice(start + 1));
|
||||
count = count + 1
|
||||
} while (pos != null)
|
||||
|
||||
//得到空格数量
|
||||
if (count == 1) {
|
||||
SUser.SetCharacLevel(handler[1].tointeger());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Gm_InputFunc_Handle["点券"] <- function(SUser, CmdString) {
|
||||
local count = -1;
|
||||
local pos = 0;
|
||||
local handler = [];
|
||||
do {
|
||||
local start = pos;
|
||||
pos = CmdString.find(" ", pos + 1);
|
||||
if (pos != null) {
|
||||
handler.append(CmdString.slice(start + 1, pos));
|
||||
} else
|
||||
handler.append(CmdString.slice(start + 1));
|
||||
count = count + 1
|
||||
} while (pos != null)
|
||||
|
||||
//得到空格数量
|
||||
if (count == 1) {
|
||||
SUser.RechargeCera(handler[1].tointeger());
|
||||
}
|
||||
}
|
||||
|
||||
// Timer.SetTimeOut(function() {
|
||||
|
||||
|
|
@ -161,7 +247,10 @@ Gm_InputFunc_Handle["给"] <- function(SUser, CmdString) {
|
|||
|
||||
Timer.SetTimeOut(function ()
|
||||
{
|
||||
print(12313);
|
||||
// dofile("/dp_s/_DPS_/_BuiltProject/宿命魂石/FatalismStone.nut");
|
||||
// ProjectInitFuncMap.P_FatalismStone <- FatalismStone();
|
||||
main();
|
||||
|
||||
|
||||
}, 1);
|
||||
|
|
|
|||
|
|
@ -59,6 +59,7 @@
|
|||
"CallBack/UserPartyGiveKick.nut",
|
||||
"ServerControl/ServerControl.nut",
|
||||
"ServerControl/EquimentUseJewel.nut",
|
||||
"main.nut",
|
||||
"Interface.nut"
|
||||
],
|
||||
"ProjectScript": {
|
||||
|
|
|
|||
|
|
@ -26,10 +26,11 @@ class Socket {
|
|||
if (!getroottable().rawin("OnGatewaySocketConnectFunc")) OnGatewaySocketConnectFunc <- {};
|
||||
//插件网关建立连接时
|
||||
function OnGatewaySocketConnect() {
|
||||
print("############凌众插件连接建立############");
|
||||
print("############凌众插件连接建立############");
|
||||
print("############凌众插件连接建立############");
|
||||
print("############凌众插件连接建立############");
|
||||
print("\x1b[96m" + "############双端插件连接建立############" + "\x1b[0m");
|
||||
print("\x1b[96m" + "############双端插件连接建立############" + "\x1b[0m");
|
||||
print("\x1b[96m" + "############双端插件连接建立############" + "\x1b[0m");
|
||||
print("\x1b[96m" + "############双端插件连接建立############" + "\x1b[0m");
|
||||
print("\x1b[96m" + "############双端插件连接建立############" + "\x1b[0m");
|
||||
local Jso = {
|
||||
op = 10001,
|
||||
channel = Sq_Game_GetConfig(),
|
||||
|
|
|
|||
|
|
@ -32,25 +32,6 @@ Gm_InputFunc_Handle.KickMySelf <- function(SUser, CmdString) {
|
|||
SUser.Kick();
|
||||
};
|
||||
|
||||
Gm_InputFunc_Handle["升级"] <- function(SUser, CmdString) {
|
||||
local count = -1;
|
||||
local pos = 0;
|
||||
local handler = [];
|
||||
do {
|
||||
local start = pos;
|
||||
pos = CmdString.find(" ", pos + 1);
|
||||
if (pos != null) {
|
||||
handler.append(CmdString.slice(start + 1, pos));
|
||||
} else
|
||||
handler.append(CmdString.slice(start + 1));
|
||||
count = count + 1
|
||||
} while (pos != null)
|
||||
|
||||
//得到空格数量
|
||||
if (count == 1) {
|
||||
SUser.SetCharacLevel(handler[1].tointeger());
|
||||
}
|
||||
}
|
||||
|
||||
Gm_InputFunc_Handle["给"] <- function(SUser, CmdString) {
|
||||
local count = -1;
|
||||
|
|
@ -75,51 +56,6 @@ Gm_InputFunc_Handle["给"] <- function(SUser, CmdString) {
|
|||
if (!Ret) SUser.SendNotiPacketMessage("发送失败背包是不是满了", 8);
|
||||
}
|
||||
}
|
||||
Gm_InputFunc_Handle["转职"] <- function(SUser, CmdString) {
|
||||
local count = -1;
|
||||
local pos = 0;
|
||||
local handler = [];
|
||||
do {
|
||||
local start = pos;
|
||||
pos = CmdString.find(" ", pos + 1);
|
||||
if (pos != null) {
|
||||
handler.append(CmdString.slice(start + 1, pos));
|
||||
} else
|
||||
handler.append(CmdString.slice(start + 1));
|
||||
count = count + 1
|
||||
} while (pos != null)
|
||||
|
||||
//得到空格数量
|
||||
if (count == 1) {
|
||||
SUser.ChangeGrowType(handler[1].tointeger(), 0);
|
||||
SUser.SendNotiPacket(0, 2, 0);
|
||||
SUser.InitSkillW(handler[1].tointeger(), 0);
|
||||
} else if (count == 2) {
|
||||
SUser.ChangeGrowType(handler[1].tointeger(), handler[2].tointeger());
|
||||
SUser.SendNotiPacket(0, 2, 0);
|
||||
SUser.InitSkillW(handler[1].tointeger(), handler[2].tointeger());
|
||||
}
|
||||
}
|
||||
|
||||
Gm_InputFunc_Handle["完成任务"] <- function(SUser, CmdString) {
|
||||
SUser.ClearQuest_Gm(674);
|
||||
SUser.ClearQuest_Gm(649);
|
||||
|
||||
SUser.ClearQuest_Gm(675);
|
||||
SUser.ClearQuest_Gm(650);
|
||||
|
||||
SUser.ClearQuest_Gm(4414);
|
||||
|
||||
SUser.ClearQuest_Gm(2603);
|
||||
SUser.ClearQuest_Gm(2610);
|
||||
SUser.ClearQuest_Gm(2613);
|
||||
SUser.ClearQuest_Gm(2622);
|
||||
SUser.ClearQuest_Gm(4391);
|
||||
SUser.ClearQuest_Gm(4539);
|
||||
|
||||
SUser.ClearQuest_Gm(220);
|
||||
SUser.ClearQuest_Gm(221);
|
||||
}
|
||||
|
||||
|
||||
Gm_InputFunc_Handle.M <- function(SUser, CmdString) {
|
||||
|
|
|
|||
|
|
@ -69,6 +69,7 @@ function sqr_main() {
|
|||
dofile("/dp_s/Main.nut");
|
||||
|
||||
//尝试调用用户自定义脚本
|
||||
main();
|
||||
sqr_main();
|
||||
_GlobalConfig();
|
||||
_Official_Project_();
|
||||
|
|
|
|||
|
|
@ -94,7 +94,7 @@ class ServerControl {
|
|||
|
||||
//获得本服务器的IP
|
||||
GatewaySocketPackFuncMap.rawset(10002, function(Jso) {
|
||||
//print("记录Ip");
|
||||
print("记录Ip");
|
||||
Dps_Self_Ip = Jso.myip;
|
||||
}.bindenv(this));
|
||||
|
||||
|
|
|
|||
|
|
@ -4,16 +4,6 @@
|
|||
创建日期:2024-04-29 15:38
|
||||
文件用途:枚举表
|
||||
*/
|
||||
InitSuccessTag <- @" **********************************************************
|
||||
*********************DP_S双端插件已加载*************************
|
||||
*********************DP_S双端插件已加载*************************
|
||||
*********************DP_S双端插件已加载*************************
|
||||
*********************DP_S双端插件已加载*************************
|
||||
*********************DP_S双端插件已加载*************************
|
||||
*********************DP_S双端插件已加载*************************
|
||||
*********************DP_S双端插件已加载*************************
|
||||
QQ群:1062234453 (有问题咨询群主)
|
||||
";
|
||||
|
||||
ProjectInitFuncMap <- {};
|
||||
|
||||
|
|
|
|||
|
|
@ -2,21 +2,12 @@ getroottable().DebugModelFlag <- false;
|
|||
//初始化插件
|
||||
function InitPluginInfo() {
|
||||
Sq_CreatCConnectPool(2, 4, "127.0.0.1", 3306, "game", "uu5!^%jg");
|
||||
Sq_CreatSocketConnect("192.168.200.24", "65109");
|
||||
Sq_CreatSocketConnect("127.0.0.1", "65109");
|
||||
}
|
||||
|
||||
|
||||
|
||||
function PrintTag() {
|
||||
print(InitSuccessTag);
|
||||
}
|
||||
|
||||
function main() {
|
||||
|
||||
|
||||
InitPluginInfo();
|
||||
|
||||
PrintTag();
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue