仙境傳說|RO私服
標題:
Misc.pm教學
[打印本頁]
作者:
openkoreMM
時間:
2011-2-2 17:17
標題:
Misc.pm教學
現在我就來告訴各位仙境傳說朋友如何操作修改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;
}
大功告城!!
歡迎光臨 仙境傳說|RO私服 (http://ro.private-servers-game.com/)
Powered by Discuz! X3.2