UID320876
帖子
精華
主題
積分416
現金
積極性
威望
違規
熱心
推廣次數
閱讀權限5
註冊時間2013-4-26
在線時間 小時
最後登錄1970-1-1
TA的每日心情 | 開心 2018-7-1 04:13 PM |
---|
簽到天數: 81 天 連續簽到: 1 天 [LV.6]常住居民II
|
樓主 |
發表於 2013-5-21 20:41:08
|
顯示全部樓層
本帖最後由 足跡小鬼 於 2013-5-21 09:42 PM 編輯
- <span style="background-color: rgb(255, 255, 255);">prontera.gat,50,50,4 script 稱號系統 468,{</span>
- <span style="background-color: rgb(255, 255, 255);">set .@title_lv,title_mob/5000;</span>
- <span style="background-color: rgb(255, 255, 255);">mes "[稱號系統]";</span>
- <span style="background-color: rgb(255, 255, 255);">mes "您目前的稱號為 "+$@title_name$[.@title_lv]+" !!";</span>
- <span style="background-color: rgb(255, 255, 255);">mes "您目前的經驗值 "+title_mob+" / exp !!";</span>
- <span style="background-color: rgb(255, 255, 255);">next;</span>
- <span style="background-color: rgb(255, 255, 255);">switch(select("開放稱號","關閉稱號","重新計算素質"))</span>
- <span style="background-color: rgb(255, 255, 255);">{</span>
- <span style="background-color: rgb(255, 255, 255);">case 1:</span>
- <span style="background-color: rgb(255, 255, 255);">atcommand "@showtitle 1";</span>
- <span style="background-color: rgb(255, 255, 255);">atcommand "@settitle "+$@title_name$[.@title_lv]+"";</span>
- <span style="background-color: rgb(255, 255, 255);">close;</span>
- <span style="background-color: rgb(255, 255, 255);">end;</span>
- <span style="background-color: rgb(255, 255, 255);">case 2:</span>
- <span style="background-color: rgb(255, 255, 255);">atcommand "@showtitle 0";</span>
- <span style="background-color: rgb(255, 255, 255);">close;</span>
- <span style="background-color: rgb(255, 255, 255);">end;</span>
- <span style="background-color: rgb(255, 255, 255);">case 3:</span>
- <span style="background-color: rgb(255, 255, 255);">atcommand "@vit 1";</span>
- <span style="background-color: rgb(255, 255, 255);">atcommand "@vit -1";</span>
- <span style="background-color: rgb(255, 255, 255);">close;</span>
- <span style="background-color: rgb(255, 255, 255);">end;</span>
- <span style="background-color: rgb(255, 255, 255);"> }</span>
- <span style="background-color: rgb(255, 255, 255);">}</span>
- <span style="background-color: rgb(255, 255, 255);">- script title -1,{</span>
- <span style="background-color: rgb(255, 255, 255);">OnPCStatCalcEvent:</span>
- <span style="background-color: rgb(255, 255, 255);">if(title_mob < 5000){end;} //判斷小於5000經驗值結束腳本</span>
- <span style="background-color: rgb(255, 255, 255);">set .@title_lv,title_mob/5000; //計算公式1 ex : kill(250000) / 5000(升級數量) = 50(最高等級)</span>
- <span style="background-color: rgb(255, 255, 255);">set .@title_lv2,.@title_lv/5*5; //計算公式2 ex : 妳的等級 / 5(不包含餘數) * 5 = 能力值</span>
- <span style="background-color: rgb(255, 255, 255);">if(.@title_lv2 == 0){</span>
- <span style="background-color: rgb(255, 255, 255);">bonus bAllStats,1; //如果計算出來的值為0 則代表該等級為 < 5</span>
- <span style="background-color: rgb(255, 255, 255);">end;</span>
- <span style="background-color: rgb(255, 255, 255);">}</span>
- <span style="background-color: rgb(255, 255, 255);">bonus bAllStats,.@title_lv2; //參照公式2</span>
- <span style="background-color: rgb(255, 255, 255);">end;</span>
- <span style="background-color: rgb(255, 255, 255);">}</span>
- <span style="background-color: rgb(255, 255, 255);">- script title_name -1,{</span>
- <span style="background-color: rgb(255, 255, 255);">OnInit:</span>
- <span style="background-color: rgb(255, 255, 255);"> setarray $@title_name$[0],"賤民","白丁","良民","庶民","常民","平民","村民","五等兵","四等兵","三等兵",</span>
- <span style="background-color: rgb(255, 255, 255);"> "兩等兵","一等兵","獨立士兵","下士","中士","上士","士官長","軍士長","准尉","少尉",</span>
- <span style="background-color: rgb(255, 255, 255);"> "中尉","上尉","少佐","中佐","大佐","少校","中校","上校","準將","少將",</span>
- <span style="background-color: rgb(255, 255, 255);"> "中將","上將","特級上將","五星上將","統領大將軍","元帥","皇帶刀","皇御侍","皇親","皇爺",</span>
- <span style="background-color: rgb(255, 255, 255);"> "駕鶴西歸","幽靈","魔靈","邪靈","邪念集結體","皇靈弒尊","天皇弒尊","萬物弒尊","萬王弒尊","唯我獨尊"; //稱號ID "稱號名稱"</span>
- <span style="background-color: rgb(255, 255, 255);">end;</span>
- <span style="background-color: rgb(255, 255, 255);">}</span>
- <span style="background-color: rgb(255, 255, 255);">- script title_kill -1,{</span>
- <span style="background-color: rgb(255, 255, 255);">OnNPCKillEvent:</span>
- <span style="background-color: rgb(255, 255, 255);">if(title_mob >= 250000){ end; } //250000 經驗後不再增加經驗值</span>
- <span style="background-color: rgb(255, 255, 255);">dispbottom "您目前的稱號經驗值 : "+title_mob+" exp / 250000 exp !!";</span>
- <span style="background-color: rgb(255, 255, 255);">set title_mob,title_mob+1; //經驗變數 殺 1 得 1 exp</span>
- <span style="background-color: rgb(255, 255, 255);">end;</span>
- <span style="background-color: rgb(255, 255, 255);">}</span>
複製代碼 |
評分
-
查看全部評分
|