111
This commit is contained in:
13
procAppend/procAppend_ATFighter.nut
Normal file
13
procAppend/procAppend_ATFighter.nut
Normal file
@@ -0,0 +1,13 @@
|
||||
/*
|
||||
文件名:procAppend_ATFighter.nut
|
||||
路径:procAppend/procAppend_ATFighter.nut
|
||||
创建日期:2022-09-04 20:18
|
||||
文件用途:男格斗Proc循环函数
|
||||
*/
|
||||
function procAppend_ATFighter(obj) {
|
||||
if (!obj)
|
||||
return;
|
||||
procAppend_All(obj);
|
||||
|
||||
return 1;
|
||||
}
|
||||
24
procAppend/procAppend_ATGunner.nut
Normal file
24
procAppend/procAppend_ATGunner.nut
Normal file
@@ -0,0 +1,24 @@
|
||||
/*
|
||||
文件名:procAppend_ATGunner.nut
|
||||
路径:procAppend/procAppend_ATGunner.nut
|
||||
创建日期:2022-09-04 20:19
|
||||
文件用途:女枪手Proc循环函数
|
||||
*/
|
||||
|
||||
if (!getroottable().rawin("procAppend_ATGunner_Table")) procAppend_ATGunner_Table <- {}
|
||||
|
||||
function procAppend_ATGunner(obj) {
|
||||
if (!obj)
|
||||
return;
|
||||
procAppend_All(obj);
|
||||
|
||||
//根据主状态判断执行函数
|
||||
if (procAppend_ATGunner_Table.rawin(Chr_State_Table[15]) == true) {
|
||||
foreach (Flag,Func in procAppend_ATGunner_Table[Chr_State_Table[15]]) {
|
||||
Func(obj);
|
||||
}
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
13
procAppend/procAppend_ATMage.nut
Normal file
13
procAppend/procAppend_ATMage.nut
Normal file
@@ -0,0 +1,13 @@
|
||||
/*
|
||||
文件名:procAppend_ATMage.nut
|
||||
路径:procAppend/procAppend_ATMage.nut
|
||||
创建日期:2022-09-04 20:19
|
||||
文件用途:男法师Proc循环函数
|
||||
*/
|
||||
function procAppend_ATMage(obj) {
|
||||
if (!obj)
|
||||
return;
|
||||
procAppend_All(obj);
|
||||
|
||||
return 1;
|
||||
}
|
||||
67
procAppend/procAppend_All.nut
Normal file
67
procAppend/procAppend_All.nut
Normal file
@@ -0,0 +1,67 @@
|
||||
/*
|
||||
文件名:procAppend_All.nut
|
||||
路径:procAppend/procAppend_All.nut
|
||||
创建日期:2022-09-04 20:15
|
||||
文件用途:全职业Proc循环函数
|
||||
*/
|
||||
|
||||
|
||||
dofile("sqr/procAppend/procAppend_ATFighter.nut");
|
||||
dofile("sqr/procAppend/procAppend_ATGunner.nut");
|
||||
dofile("sqr/procAppend/procAppend_ATMage.nut");
|
||||
dofile("sqr/procAppend/procAppend_CreatorMage.nut");
|
||||
dofile("sqr/procAppend/procAppend_DemonicSwordman.nut");
|
||||
dofile("sqr/procAppend/procAppend_Fighter.nut");
|
||||
dofile("sqr/procAppend/procAppend_Gunner.nut");
|
||||
dofile("sqr/procAppend/procAppend_Mage.nut");
|
||||
dofile("sqr/procAppend/procAppend_Priest.nut");
|
||||
dofile("sqr/procAppend/procAppend_Swordman.nut");
|
||||
dofile("sqr/procAppend/procAppend_Thief.nut");
|
||||
|
||||
|
||||
|
||||
function procAppend_All(obj) {
|
||||
//TOW_CharacterAppendage(obj);
|
||||
|
||||
|
||||
local RootTab = getroottable();
|
||||
|
||||
//如果开启了不震动设置 将取消震动
|
||||
if (RootTab.rawin("S_GameShakeSB") && RootTab["S_GameShakeSB"] == true) {
|
||||
sq_SetMyShake(obj, 0, 0);
|
||||
}
|
||||
|
||||
|
||||
if (!CNSquirrelAppendage.sq_IsAppendAppendage(obj, "appendage/currency.nut")) {
|
||||
CNSquirrelAppendage.sq_AppendAppendage(obj, obj, 174, false, "appendage/currency.nut", true);
|
||||
}
|
||||
|
||||
//怪物血条
|
||||
MonsterBlood_ApAdd(obj);
|
||||
|
||||
//手搓装备限定
|
||||
TraversingSkillSlot(obj);
|
||||
}
|
||||
|
||||
|
||||
//遍历技能栏获取空位
|
||||
function TraversingSkillSlot(obj) {
|
||||
local Index = L_sq_GetCharacterAttribute(0x1C, 1);
|
||||
//巴鲁姆克之剑 漫游之王 耀光女王的银妆刀
|
||||
if (Index == 101040148 || Index == 104000154 || Index == 109000106) {
|
||||
local skillmgr = obj.getSkillManager();
|
||||
local SkillSlot = obj.getVar("SkillSlot");
|
||||
SkillSlot.clear_vector;
|
||||
|
||||
local up = 0;
|
||||
for (local i = 1; i < 255; i++) {
|
||||
local id = skillmgr.getQuickSlotNumber(i);
|
||||
if ((id >= 0 && id <= 6)) {
|
||||
up += 1;
|
||||
} else if ((id >= 198 && id <= 203)) {
|
||||
up += 1;
|
||||
}
|
||||
}
|
||||
SkillSlot.setInt(0, up);
|
||||
}
|
||||
}
|
||||
13
procAppend/procAppend_CreatorMage.nut
Normal file
13
procAppend/procAppend_CreatorMage.nut
Normal file
@@ -0,0 +1,13 @@
|
||||
/*
|
||||
文件名:procAppend_CreatorMage.nut
|
||||
路径:procAppend/procAppend_CreatorMage.nut
|
||||
创建日期:2022-09-04 20:19
|
||||
文件用途:缔造者Proc循环函数
|
||||
*/
|
||||
function procAppend_CreatorMage(obj) {
|
||||
if (!obj)
|
||||
return;
|
||||
procAppend_All(obj);
|
||||
|
||||
return 1;
|
||||
}
|
||||
13
procAppend/procAppend_DemonicSwordman.nut
Normal file
13
procAppend/procAppend_DemonicSwordman.nut
Normal file
@@ -0,0 +1,13 @@
|
||||
/*
|
||||
文件名:procAppend_DemonicSwordman.nut
|
||||
路径:procAppend/procAppend_DemonicSwordman.nut
|
||||
创建日期:2022-09-04 20:19
|
||||
文件用途:黑暗武士Proc循环函数
|
||||
*/
|
||||
function procAppend_DemonicSwordman(obj) {
|
||||
if (!obj)
|
||||
return;
|
||||
procAppend_All(obj);
|
||||
|
||||
return 1;
|
||||
}
|
||||
13
procAppend/procAppend_Fighter.nut
Normal file
13
procAppend/procAppend_Fighter.nut
Normal file
@@ -0,0 +1,13 @@
|
||||
/*
|
||||
文件名:procAppend_Fighter.nut
|
||||
路径:procAppend/procAppend_Fighter.nut
|
||||
创建日期:2022-09-04 20:19
|
||||
文件用途:女格斗Proc循环函数
|
||||
*/
|
||||
function procAppend_Fighter(obj) {
|
||||
if (!obj)
|
||||
return;
|
||||
procAppend_All(obj);
|
||||
|
||||
return 1;
|
||||
}
|
||||
13
procAppend/procAppend_Gunner.nut
Normal file
13
procAppend/procAppend_Gunner.nut
Normal file
@@ -0,0 +1,13 @@
|
||||
/*
|
||||
文件名:procAppend_Gunner.nut
|
||||
路径:procAppend/procAppend_Gunner.nut
|
||||
创建日期:2022-09-04 20:19
|
||||
文件用途:男枪手Proc循环函数
|
||||
*/
|
||||
function procAppend_Gunner(obj) {
|
||||
if (!obj)
|
||||
return;
|
||||
procAppend_All(obj);
|
||||
|
||||
return 1;
|
||||
}
|
||||
13
procAppend/procAppend_Mage.nut
Normal file
13
procAppend/procAppend_Mage.nut
Normal file
@@ -0,0 +1,13 @@
|
||||
/*
|
||||
文件名:procAppend_Mage.nut
|
||||
路径:procAppend/procAppend_Mage.nut
|
||||
创建日期:2022-09-04 20:20
|
||||
文件用途:女法师Proc循环函数
|
||||
*/
|
||||
function procAppend_Mage(obj) {
|
||||
if (!obj)
|
||||
return;
|
||||
procAppend_All(obj);
|
||||
|
||||
return 1;
|
||||
}
|
||||
20
procAppend/procAppend_Priest.nut
Normal file
20
procAppend/procAppend_Priest.nut
Normal file
@@ -0,0 +1,20 @@
|
||||
/*
|
||||
文件名:procAppend_Priest.nut
|
||||
路径:procAppend/procAppend_Priest.nut
|
||||
创建日期:2022-09-04 20:20
|
||||
文件用途:圣职者Proc循环函数
|
||||
*/
|
||||
function procAppend_Priest(obj) {
|
||||
if (!obj)
|
||||
return;
|
||||
procAppend_All(obj);
|
||||
//强制直拳冲击
|
||||
// obj.setSkillCommandEnable(61, true);
|
||||
// local EnterSkill = obj.sq_IsEnterSkill(61); //设置按键响应技能编号
|
||||
// if(EnterSkill != -1 && !sq_GetSkill(obj, 61).isInCoolTime()){
|
||||
// local pIntVec = sq_GetGlobalIntVector();
|
||||
// obj.addSetStatePacket(29, pIntVec, STATE_PRIORITY_USER, false, "");
|
||||
// }
|
||||
// print(obj.getState());
|
||||
return 1;
|
||||
}
|
||||
71
procAppend/procAppend_Swordman.nut
Normal file
71
procAppend/procAppend_Swordman.nut
Normal file
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
文件名:procAppend_Swordman.nut
|
||||
路径:procAppend/procAppend_Swordman.nut
|
||||
创建日期:2022-09-04 20:15
|
||||
文件用途:鬼剑士绘制界面回调函数(原生)
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
||||
// for (local i = 0; i < 255; i++) {
|
||||
// local skillindex = sq_GetIntData(sqrChr, 198, i);
|
||||
// if (skillindex > 0) {
|
||||
// sqrChr.addSkillLevelAppendage(skillindex, 1, 10000000);
|
||||
// } else break;
|
||||
// }
|
||||
function checkOverItemObject_Swordman(a){
|
||||
// Sout("a: %L",a.GetName());
|
||||
// print(a);
|
||||
return true;
|
||||
}
|
||||
|
||||
function isEnableBackStepState_Swordman(a){
|
||||
// Sout("a: %L",a.GetName());
|
||||
// print(a);
|
||||
return true;
|
||||
}
|
||||
|
||||
function procAppend_Swordman(obj) {
|
||||
if (!obj)
|
||||
return;
|
||||
procAppend_All(obj);
|
||||
|
||||
|
||||
if (!CNSquirrelAppendage.sq_IsAppendAppendage(obj, "appendage/ap_equipbox.nut")) {
|
||||
local appendage = CNSquirrelAppendage.sq_AppendAppendage(obj, obj, -1, false, "appendage/ap_equipbox.nut", true);
|
||||
CNSquirrelAppendage.sq_Append(appendage, obj, obj);
|
||||
// local change_appendage = appendage.sq_getChangeStatus("molijiezhi");
|
||||
// if (!change_appendage) {
|
||||
// change_appendage = appendage.sq_AddChangeStatusAppendageID(obj, obj, 0,
|
||||
// CHANGE_STATUS_TYPE_COOLTIME_DECLINE,
|
||||
// false, 0, 254);
|
||||
// }
|
||||
// if (change_appendage) {
|
||||
// change_appendage.clearParameter();
|
||||
// local sss = 0 - ((sq_GetIntData(obj, 169, 0).tofloat() / 100.00));
|
||||
// change_appendage.addParameter(CHANGE_STATUS_TYPE_COOLTIME_DECLINE, false, sss);
|
||||
// }
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
if (!CNSquirrelAppendage.sq_IsAppendAppendage(obj, "appendage/ap_equipbox.nut")) {
|
||||
local appendage = CNSquirrelAppendage.sq_AppendAppendage(obj, obj, -1, false, "appendage/ap_equipbox.nut", true);
|
||||
CNSquirrelAppendage.sq_Append(appendage, obj, obj);
|
||||
local change_appendage = appendage.sq_getChangeStatus("molijiezhi");
|
||||
if (!change_appendage)
|
||||
{
|
||||
change_appendage = appendage.sq_AddChangeStatusAppendageID(obj, obj, 0,
|
||||
CHANGE_STATUS_TYPE_COOLTIME_DECLINE,
|
||||
false, 0, APID_COMMON);
|
||||
}
|
||||
if (change_appendage) {
|
||||
change_appendage.clearParameter();
|
||||
change_appendage.addParameter(CHANGE_STATUS_TYPE_COOLTIME_DECLINE, false, -((sq_GetIntData(obj, 169, 15).tofloat() / 100.00)));
|
||||
}
|
||||
}
|
||||
|
||||
*/
|
||||
return 1;
|
||||
}
|
||||
13
procAppend/procAppend_Thief.nut
Normal file
13
procAppend/procAppend_Thief.nut
Normal file
@@ -0,0 +1,13 @@
|
||||
/*
|
||||
文件名:procAppend_Thief.nut
|
||||
路径:procAppend/procAppend_Thief.nut
|
||||
创建日期:2022-09-04 20:20
|
||||
文件用途:暗夜使者Proc循环函数
|
||||
*/
|
||||
function procAppend_Thief(obj) {
|
||||
if (!obj)
|
||||
return;
|
||||
procAppend_All(obj);
|
||||
|
||||
return 1;
|
||||
}
|
||||
Reference in New Issue
Block a user