UID159057
帖子
精華
主題
積分2269
現金
積極性
威望
違規
熱心
推廣次數
閱讀權限10
註冊時間2009-5-26
在線時間 小時
最後登錄1970-1-1
TA的每日心情 | 開心 2018-12-14 06:21 PM |
---|
簽到天數: 123 天 連續簽到: 2 天 [LV.7]常住居民III
|
有人說 eA 是個沒技術的版本 ( PVP 技術 )
因為冰凍.化石時 可以更換裝備
所以修改如下
打開 skill.c
搜尋以下這段 :- if(pos == EQP_ACC) { //Accesories should only go in one of the two,
- pos = req_pos&EQP_ACC;
- if (pos == EQP_ACC) //User specified both slots..
- pos = sd->equip_index[EQI_ACC_R] >= 0 ? EQP_ACC_L : EQP_ACC_R;
- }
複製代碼 在它上面加上 :- if( sd->sc.data[SC_FREEZE] || sd->sc.data[SC_STONE] ) // 冰凍的時候不能裝備
- {
- clif_equipitemack(sd,n,0,0);
- return 0;
- }
複製代碼 會變成這樣 :
if(battle_config.battle_log)
ShowInfo("equip %d(%d) %x:%x\n",sd->status.inventory[n].nameid,n,id->equip,req_pos);
if(!pc_isequip(sd,n) || !(pos&req_pos) || sd->status.inventory[n].equip != 0 || sd->status.inventory[n].attribute==1 ) { // [Valaris]
clif_equipitemack(sd,n,0,0); // fail
return 0;
}
if( sd->sc.data[SC_FREEZE] || sd->sc.data[SC_STONE] ) // 冰凍的時候不能裝備
{
clif_equipitemack(sd,n,0,0);
return 0;
}
if(pos == EQP_ACC) { //Accesories should only go in one of the two,
pos = req_pos&EQP_ACC;
if (pos == EQP_ACC) //User specified both slots..
pos = sd->equip_index[EQI_ACC_R] >= 0 ? EQP_ACC_L : EQP_ACC_R;
}
藍色部分為原本的源碼
紅色部分是加進去的
改完之後 如果已經有冰凍、石化會禁止變換裝備
他就會顯示裝備失敗
上一篇 [ 改原碼 ] 防止瘋狂狂蓄氣 |
評分
-
查看全部評分
|