close

先先開啟openkero進入文件夾,請看(圖1)點選Src進入資料夾裡面



在來就是資料夾內尋找Misc.pm檔(如果沒開啟副檔名,直接找Misc也可以(圖2)



 


 


以下本人還沒使用過,因此使用時請先將原檔先行備份


打開 src\Misc.pm 尋找(Ctrl + F)


if ($config{aggressiveAntiKS}) {




    if ($config{aggressiveAntiKS}) {
        # Aggressive anti-KS mode, for people who are paranoid about not kill stealing.


        # If we attacked the monster first, do not drop it, we are being KSed
        return 1 if ($monster->{dmgFromYou} || $monster->{missedFromYou});
       
        # If others attacked the monster then always drop it, wether it attacked us or not!
        return 0 if (($monster->{dmgFromPlayer} && %{$monster->{dmgFromPlayer}})
              || ($monster->{missedFromPlayer} && %{$monster->{missedFromPlayer}})
              || (($monster->{castOnByPlayer}) && %{$monster->{castOnByPlayer}})
              || (($monster->{castOnToPlayer}) && %{$monster->{castOnToPlayer}}));
    }


改成


        if ($config{aggressiveAntiKS}) {
                # Aggressive anti-KS mode, for people who are paranoid about not kill stealing.


                # If we attacked the monster first, do not drop it, we are being KSed
                return 1 if ($monster->{dmgFromYou} || $monster->{missedFromYou});
               
                # If others attacked the monster then always drop it, wether it attacked us or not!
                return 1 if ($monster->{dmgFromYou} || $monster->{missedFromYou});
        }


 



尋找


        if (scalar(keys %{$monster->{missedFromPlayer}}) == 0


 



if (scalar(keys %{$monster->{missedFromPlayer}}) == 0
     && scalar(keys %{$monster->{dmgFromPlayer}})    == 0
     #&& scalar(keys %{$monster->{castOnByPlayer}})   == 0    #change to $allowed
    && $allowed


     # and it hasn't attacked any other player
     && scalar(keys %{$monster->{missedToPlayer}}) == 0
     && scalar(keys %{$monster->{dmgToPlayer}})    == 0
     && scalar(keys %{$monster->{castOnToPlayer}}) == 0
    ) {
        # The monster might be getting lured by another player.
        # So we check whether it's walking towards any other player, but only
        # if we haven't already attacked the monster.
        if ($monster->{dmgFromYou} || $monster->{missedFromYou}) {
            return 1;
        } else {
            return !objectIsMovingTowardsPlayer($monster);
        }
    }


    # The monster didn't attack you.
    # Other players attacked it, or it attacked other players.
    if ($monster->{dmgFromYou} || $monster->{missedFromYou}) {
        # If you have already attacked the monster before, then consider it clean
        return 1;
    }
    # If you haven't attacked the monster yet, it's unclean.


    return 0;
}


 


改成


 


        if (scalar(keys %{$monster->{missedFromPlayer}}) == 1
         && scalar(keys %{$monster->{dmgFromPlayer}})    == 1
         #&& scalar(keys %{$monster->{castOnByPlayer}})   == 0        #change to $allowed
        && $allowed


         # and it hasn't attacked any other player
         && scalar(keys %{$monster->{missedToPlayer}}) == 1
         && scalar(keys %{$monster->{dmgToPlayer}})    == 1
         && scalar(keys %{$monster->{castOnToPlayer}}) == 1
        ) {
                # The monster might be getting lured by another player.
                # So we check whether it's walking towards any other player, but only
                # if we haven't already attacked the monster.
                if ($monster->{dmgFromYou} || $monster->{missedFromYou}) {
                        return 1;
                } else {
                        return !objectIsMovingTowardsPlayer($monster);
                }
        }


        # The monster didn't attack you.
        # Other players attacked it, or it attacked other players.
        if ($monster->{dmgFromYou} || $monster->{missedFromYou}) {
                # If you have already attacked the monster before, then consider it clean
                return 1;
        }
        # If you haven't attacked the monster yet, it's unclean.


        return 1;
}


 


 


 


教學二(未測試)



1、請進入src資料夾,進面有一個叫作Misc檔案,請瀏覽方式使用「日記本」方式開啟。
2、「日記本」方式開啟後,很多程式碼不要怕,視窗左上角有編輯->尋找->打上:
sub checkMonsterCleanness->


會看到反藍的程式碼段落->將以下程式碼貼上原有程式碼即可搶怪:



sub checkMonsterCleanness {
return 1;
return 1 if (!$config{attackAuto});
my $ID = $_[0];
return 1 if ($playersList->getByID($ID));
my $monster = $monstersList->getByID($ID);

 


==========================================================
適用新外掛r7639各職業搶怪設定


以下本人還沒使用過,因此使用時請先將原檔先行備份


全部職業皆可使用~!



貼怪

說真的在某些BB爆多的地圖上~~真的不得不去貼別人的怪..
請至OP打開SRC資料夾找到misc檔案後~~往下拉拉拉拉...找到
sub checkMonsterCleanness {
#        return 1; #搶怪
        return 1 if (!$config{attackAuto});
        my $ID = $_[0];
        return 1 if ($playersList->getByID($ID));
        my $monster = $monstersList->getByID($ID);


請把        #              return 1;     前面的#去掉...就可以了..
就是這麼簡單~~~希望大家好好利用~~在非瓜田..也希望大家良心大發~~把#加上去...給活人一點生存空間吧><


 


新Openkore8205 搶怪附加Misc


用說明書:
Openkore8205\control\config.txt
加上
attackAuto_steal 1
# 是否攻擊其他玩家的魔物 [0 = 不使用][1 = 使用 ]

把Misc檔案下載後解壓縮
複製到
Openkore8205\src
就完成囉


http://bbs.djorz.com/job.php?action=download&pid=tpc&tid=246426&aid=32571


 


------------------------------------------------------------------------------------------------------------------------


教學三


有鑑於搶怪版本的凌亂及騙文章亂象 因此於此直接提供"搶怪"功能修改教學


      (想使用的請自行學習 由於涉及修改主程式檔案 沒把握請勿輕易嚐試)
用 記事本 打開openkore\src\Misc.pm
搜索 return 1 if (!$config{attackAuto});
改成 return 1 if (!$config{attackAuto}||$config{attackAuto_steal});


另需在config.txt裡 加上
attackAuto_steal 1
# 是否攻擊其他玩家的魔物 [0 = 不使用][1 = 使用 ]
即可使用 (不加此行的話 預設是無開啟搶怪功能)

arrow
arrow
    全站熱搜

    aaa1314 發表在 痞客邦 留言(0) 人氣()