仙境傳說|RO私服

 找回密碼
 註冊
搜索
熱搜: 活動 交友 discuz
查看: 2464|回復: 0
打印 上一主題 下一主題

Misc.pm教學

[複製鏈接]
跳轉到指定樓層
1#
openkoreMM 發表於 2011-2-2 17:17:00 | 只看該作者 回帖獎勵 |倒序瀏覽 |閱讀模式
現在我就來告訴各位仙境傳說朋友如何操作修改Misc.pm教學嚕!!請各位RO朋友首先先開啟openkero進入文件夾,請看(圖1)點選Src進入資料夾裡面



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



找到Misc後,點二下開啟文件內容,依圖3指示進行



進入Misc文字介面後請按Ctrl+F



請依圖片5指示在尋找內打入     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 1 if ($monster->{dmgFromYou} || $monster->{missedFromYou});
         }




在來尋找下一段程式碼 if (scalar(keys %{$monster->{missedFromPlayer}})



找到後,請把這一段程式碼抓取起來在把文章內的這一段復蓋上去

         if (scalar(keys %{$monster->{missedFromPlayer}}) == 1
         
           & scalar(keys %{$monster->{dmgFromPlayer}})    == 1
           
           #& scalar(keys %{$monster->{castOnByPlayer}})   == 0        
           
           #change to $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;
}



大功告城!!
您需要登錄後才可以回帖 登錄 | 註冊

本版積分規則

小黑屋|手機版|Archiver|仙境傳說|RO私服

GMT+8, 2024-5-20 11:15 , Processed in 0.157431 second(s), 16 queries .

快速回復 返回頂部 返回列表