Compare commits
8 Commits
9d145656a7
...
Script1.4
| Author | SHA1 | Date | |
|---|---|---|---|
| 9994938088 | |||
| 70376c380e | |||
| a71fb179ef | |||
| e82f15f1b0 | |||
| fe5b77e1bf | |||
| d29985fbbb | |||
| aec3ef9738 | |||
| 96ee9c24c0 |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,3 +1,4 @@
|
|||||||
OfficialProject/
|
OfficialProject/
|
||||||
OfficialConfig/
|
OfficialConfig/
|
||||||
lib/libAurora.so
|
lib/libAurora.so
|
||||||
|
lib/libAurora.so
|
||||||
|
|||||||
@@ -115,11 +115,23 @@ Gm_InputFunc_Handle["点券"] <- function(SUser, CmdString) {
|
|||||||
|
|
||||||
|
|
||||||
Gm_InputFunc_Handle["test"] <- function(SUser, CmdString) {
|
Gm_InputFunc_Handle["test"] <- function(SUser, CmdString) {
|
||||||
SUser.SendItemWindowNotification([[33900, 1]]);
|
local State = Sq_CallFunc(S_Ptr("0x080da38c"), "int", ["pointer"], SUser.C_Object);
|
||||||
|
if (State <= 2) {
|
||||||
|
SUser.SendNotiPacketMessage("already in select character state", 8);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
SUser.SendNotiPacketMessage("return select character after 1 second", 7);
|
||||||
|
|
||||||
|
Timer.SetTimeOut(function(SUser) {
|
||||||
|
local State = Sq_CallFunc(S_Ptr("0x080da38c"), "int", ["pointer"], SUser.C_Object);
|
||||||
|
if (State > 2) {
|
||||||
|
Sq_CallFunc(S_Ptr("0x08686fee"), "void", ["pointer", "bool"], SUser.C_Object, true);
|
||||||
|
Sq_CallFunc(S_Ptr("0x08651740"), "void", ["pointer"], SUser.C_Object);
|
||||||
|
}
|
||||||
|
}, 1, SUser);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Timer.SetTimeOut(function() {
|
Timer.SetTimeOut(function() {
|
||||||
// _Dps_Equ2AvaJewel_Main_()
|
// _Dps_Equ2AvaJewel_Main_()
|
||||||
// local Pack = Packet();
|
// local Pack = Packet();
|
||||||
|
|||||||
@@ -140,6 +140,24 @@ class StealSystem {
|
|||||||
|
|
||||||
RequestCache[cid].rawset(npcId, 2);
|
RequestCache[cid].rawset(npcId, 2);
|
||||||
}.bindenv(this));
|
}.bindenv(this));
|
||||||
|
|
||||||
|
|
||||||
|
ClientSocketPackFuncMap.rawset(21017005, function(SUser, Jso) {
|
||||||
|
local InvenObj = SUser.GetInven();
|
||||||
|
local itemSlot = InvenObj.GetSlotById(UseItem);
|
||||||
|
if (itemSlot == -1) {
|
||||||
|
SUser.SendJso({
|
||||||
|
op = 21017006,
|
||||||
|
ret = false
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
InvenObj.DeleteItemCount(UseItem, 1);
|
||||||
|
SUser.SendNotiPacketMessage("密码错误,已消耗一个材料!", 8);
|
||||||
|
}
|
||||||
|
|
||||||
|
}.bindenv(this));
|
||||||
}
|
}
|
||||||
|
|
||||||
function InitDailyResetTask() {
|
function InitDailyResetTask() {
|
||||||
@@ -187,7 +205,7 @@ class StealSystem {
|
|||||||
|
|
||||||
function GetRandomGroupName() {
|
function GetRandomGroupName() {
|
||||||
local groupNames = ["normal", "rarity", "epic"];
|
local groupNames = ["normal", "rarity", "epic"];
|
||||||
return groupNames[MathClass.Rand(0, groupNames.len() - 1)];
|
return groupNames[MathClass.Rand(0, groupNames.len())];
|
||||||
}
|
}
|
||||||
|
|
||||||
function RollRewardFromGroup(GroupData) {
|
function RollRewardFromGroup(GroupData) {
|
||||||
|
|||||||
@@ -336,6 +336,7 @@ class FatalismStone {
|
|||||||
|
|
||||||
function RegisterDebugCmd() {
|
function RegisterDebugCmd() {
|
||||||
Gm_InputFunc_Handle["给魂石"] <- function(SUser, CmdString) {
|
Gm_InputFunc_Handle["给魂石"] <- function(SUser, CmdString) {
|
||||||
|
print(123123);
|
||||||
local count = -1;
|
local count = -1;
|
||||||
local pos = 0;
|
local pos = 0;
|
||||||
local handler = [];
|
local handler = [];
|
||||||
|
|||||||
@@ -35,7 +35,6 @@ function OnGatewaySocketConnect() {
|
|||||||
type = 1
|
type = 1
|
||||||
}
|
}
|
||||||
Socket.SendGateway(Jso);
|
Socket.SendGateway(Jso);
|
||||||
print("Send--");
|
|
||||||
}, 5000);
|
}, 5000);
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -209,7 +209,6 @@ if (getroottable().rawin("DP_S_VERSION") && DP_S_VERSION >= 25.329 && DP_S_VERSI
|
|||||||
//获得本服务器的IP
|
//获得本服务器的IP
|
||||||
GatewaySocketPackFuncMap.rawset(10002, function(Jso) {
|
GatewaySocketPackFuncMap.rawset(10002, function(Jso) {
|
||||||
getroottable().Dps_Self_Ip <- Jso.myip;
|
getroottable().Dps_Self_Ip <- Jso.myip;
|
||||||
print("本服务器IP: " + Jso.myip);
|
|
||||||
print("\x1b[96m" + "############双端插件初始化成功############" + "\x1b[0m");
|
print("\x1b[96m" + "############双端插件初始化成功############" + "\x1b[0m");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
BIN
lib/libAurora.so
BIN
lib/libAurora.so
Binary file not shown.
1
开发文档/dp-s_doc
Submodule
1
开发文档/dp-s_doc
Submodule
Submodule 开发文档/dp-s_doc added at d7c0a4983a
@@ -53,7 +53,7 @@ function _Dps_OneClickDisassemblyOfRoll_Logic_() {
|
|||||||
SUser.SendNotiPacketMessage("装备分解失败,道具已返还", 8);
|
SUser.SendNotiPacketMessage("装备分解失败,道具已返还", 8);
|
||||||
}
|
}
|
||||||
if (Config["是否返还分解券道具(true代表返还,false代表不返还)"]) {
|
if (Config["是否返还分解券道具(true代表返还,false代表不返还)"]) {
|
||||||
Timer.setTimeout(function() {
|
Timer.SetTimeOut(function() {
|
||||||
SUser.GiveItem(ItemId, 1);
|
SUser.GiveItem(ItemId, 1);
|
||||||
}, 1);
|
}, 1);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user