UID101546
帖子
精華
主題
積分134
現金
積極性
威望
違規
熱心
推廣次數
閱讀權限5
註冊時間2008-8-21
在線時間 小時
最後登錄1970-1-1
TA的每日心情 | 怒 2016-7-11 11:06 PM |
---|
簽到天數: 67 天 連續簽到: 1 天 [LV.6]常住居民II
|
樓主 |
發表於 2012-8-29 19:18:25
|
顯示全部樓層
grass0916 發表於 2012-8-29 07:12 PM
1. 把你覺得有可能的NPC要先找出來, 這樣才能幫你除錯
2. 去找關鍵字 ROPIRATSKELL (題外話: 這什麼東 ... - - script ROPIRATESKEL -1,{
- //----- RO大盜的隨機出現城市時間設定 -----
- OnClock0003:
- OnClock0303:
- OnClock0603:
- OnClock0903:
- OnClock1149:
- OnClock1203:
- OnClock1503:
- OnClock1803:
- OnClock2103:
- OnClock2354:
- //----- RO大盜的隨機出現城市數量設定 [0-13 有14個 ]-----
- set $@ditu,rand(0,13);
- //----- RO大盜的隨機出現城市設定 ----- (別打.gat)
- setarray $@romonapper$[0],"prontera","morocc","oizlude","geffen","payon","alberta","aldebaran","xmas","comodo","yuno","amatsu","gonryun","louyang","niflheim";
- //----- RO大盜的隨機出現城市名字設定 ----- (請對應上面次序)
- setarray $@romonmapname$[0],"普隆德拉","夢羅克","伊斯魯德","吉芬","斐揚","艾爾貝塔","艾爾帕蘭","姜餅城","克魔島","朱諾","天津","昆侖","龍之城-洛陽","尼芙菲姆";
- /*[這行別改]*/ monster ""+$@romonapper$[$@ditu]+"",0,0,"RO大盜",2003,1;
- /*[這行別改]*/ announce "[ 逮捕令 ] : RO大盜在 [ "+$@romonmapname$[$@ditu]+" ] 出現,請玩家們速往抓捕,重重有賞!",16;
- /*[這行別改]*/ end;
- /*[這行別改]*/ }
- /*[這行別改]*/ - script ROPIRATESKELL -1,{
- /*[這行別改]*/ OnNPCKillEvent:
- /*[這行別改]*/ if ( killedrid == 2003 ) {
- //----------------------------------------------------------------[ RO大盜獎勵的相關設定 , 請各伺服器依情況斟酌 ]----------------------------------------------------------------
- //----- RO大盜的獎勵獎金設定 -----
- //----- 獎勵金額最少能夠取得多少 (預設 100萬 Zeny)
- set $@RORewardZeny,1000000;
- //----- RO大盜的獎勵獎金最多能夠取得多少 (預設 500萬 Zeny)
- set $@RORewardZenyMax,5000000;
- //----- RO大盜的獎勵商城點數設定 -----
- //----- 獎勵金額最少能夠取得多少 (預設 25 點)
- set $@RORewardCash,20;
- //----- RO大盜的獎勵商城點數最多能夠取得多少 (預設 50 點)
- set $@RORewardCashMax,100;
- //----- RO大盜的獎勵獎品設定 -----
- //----- 獎勵獎品能夠取得的物品
- setarray $@RORewardItem[1],15051,20836,20843,20806,20804,20519,15029,7515;
- //----- RO大盜的獎品能夠取得的數量
- setarray $@RORewardItemMax[1],5,1,1,1,1,1,1,2;
- //----- RO大盜的獎勵獎品的總數量 (預設 2 個) -----
- //----- Ps:請對應 獎勵獎品能夠取得的物品總數 -----
- set $@RORewardItemNumber,8;
- //----------------------------------------------------------------[ 以下別修改 ]----------------------------------------------------------------
- set @a,rand(1,4);
- if (@a==1) {
- set @GetItem,rand(1,$@RORewardItemNumber);
- getitem $@RORewardItem[@GetItem],$@RORewardItemMax[@GetItem];
- mes "[ ^00BBFF系統提示^000000 ]";
- mes "恭喜你殺死了[ ^00BBFFRO大盜^000000 ]!!";
- mes "你獲得了 ^0000FF["+getitemname($@RORewardItem[@GetItem])+"]^000000 數量 ^FF0000["+$@RORewardItemMax[@GetItem]+"]^000000 個";
- announce "[ 英雄榜 ] : 恭喜玩家 [ "+strcharinfo(0)+" ] 殺死了 [ RO大盜 ] 獲得獎勵獎品 ["+getitemname($@RORewardItem[@GetItem])+"] 數量 ["+$@RORewardItemMax[@GetItem]+"] 個。",16;
- close;
- }
- if (@a==2) {
- set @GetZeny,rand($@RORewardZeny,$@RORewardZenyMax);
- set zeny,zeny + @GetZeny;
- mes "[ ^00BBFF系統提示^000000 ]";
- mes "恭喜你殺死了[ ^00BBFFRO大盜^000000 ]!!";
- mes "你獲得了 ^FF0000["+@GetZeny+"]^000000 Zeny";
- announce "[ 英雄榜 ] : 恭喜玩家 [ "+strcharinfo(0)+" ] 殺死了 [ RO大盜 ] 獲得獎勵獎金 ["+@GetZeny+"] Zeny。",16;
- close;
- }
- if (@a==3) {
- set @GetCash,rand($@RORewardCash,$@RORewardCashMax);
- set #CASHPOINTS,#CASHPOINTS + @GetCash;
- mes "[ ^00BBFF系統提示^000000 ]";
- mes "恭喜你殺死了[ ^00BBFFRO大盜^000000 ]!!";
- mes "你獲得了 ^0000FF商城點數^000000 ^FF0000["+@GetCash+"]^000000 點";
- announce "[ 英雄榜 ] : 恭喜玩家 [ "+strcharinfo(0)+" ] 殺死了 [ RO大盜 ] 獲得獎勵商城點數 ["+@GetCash+"] 點。",16;
- close;
- }
- if (@a==4) {
- atcommand "@die";
- mes "[ ^00BBFF系統提示^000000 ]";
- mes "很不幸";
- mes "[ ^00BBFFRO大盜^000000 ]用盡了最后的一絲力量,";
- mes "與你同歸於盡了!!";
- announce "[ 追悼會 ] : 英勇的玩家 [ "+strcharinfo(0)+" ] ,雖然制服了 [ RO大盜 ] , 但是他自己卻付出了血的代價!!",16;
- close;
- }
- }
- end;
- }
複製代碼 |
|