This commit is contained in:
lenheart
2025-03-27 20:21:11 +08:00
parent 9d84fe256d
commit 4d65103501
33 changed files with 2712 additions and 2069 deletions

View File

@@ -72,6 +72,27 @@ class Fiendwar {
}
}
function base_input_hook2(args) {
local type = args[2];
local SUser = User(args[1]);
local msg = args[3];
if ((type == 8 || type == 3) && Sq_Game_GetConfig().find("20") != null) {
local Localtion = SUser.GetLocation();
if (Localtion.Area <= 1) {
return true;
} else {
local Jso = {
op = 20063027,
uid = SUser.GetUID(),
cid = SUser.GetCID(),
msg = msg
}
Socket.SendGateway(Jso);
}
}
return;
}
//玩家消息分发
function PlayerNotiMsgDistribute(Jso) {
local SUser = World.GetUserByUidCid(Jso.uid, Jso.cid);
@@ -85,21 +106,22 @@ class Fiendwar {
local SUserName = SUser.GetCharacName();
local Type = Jso.type;
Jso.msg = Jso.msg;
if (Type == -1) {
Jso.Name <- SUserName;
foreach(_Index, Value in RealList) {
local SendObj = Value;
SendObj.SendJso(Jso);
}
} else {
local NotiStr = "(" + Type + ") " + "" + SUserName + " " + Jso.msg;
foreach(_Index, Value in RealList) {
local SendObj = Value;
SendObj.SendNotiPacketMessage(NotiStr, 8);
}
Type = "长"
}
local NotiStr = "(攻坚队" + Type + ") " + "" + SUserName + " " + Jso.msg;
foreach(_Index, Value in RealList) {
local SendObj = Value;
SendObj.SendNotiPacketMessage(NotiStr, 8);
}
}
}
function FiendwarSendAreaUserCallBack(Jso) {
local CUserList = Jso.list;