daily pastebin goal
16%
SHARE
TWEET

Untitled

a guest Feb 22nd, 2019 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. -   script  世界王   -1,{
  3.     end;
  4. OnWhisperGlobal:
  5.             input .@talk$;
  6.     mapannounce "prt_q","[ 世界王區 ] : 【 "+strcharinfo(0)+" 】的吶喊 : "+.@talk$+"",15;
  7.     end;
  8.     }
  9.  
  10. veil,127,89,4   script  世界王啟動 10183,{
  11.  
  12.  
  13.  
  14. OnClock2200:
  15.         set $dath,gettime(4);
  16.         if( $dath == 1) { donpcevent "bossm::Ononeday"; donpcevent "bossn::Onmonster"; }
  17.         if( $dath == 2) { donpcevent "bossm::Ontwoday"; donpcevent "bossn::Onmonster"; }
  18.         if( $dath == 3) { donpcevent "bossm::Onthreeday"; donpcevent "bossn::Onmonster"; }
  19.         if( $dath == 4) { donpcevent "bossm::Onfourday"; donpcevent "bossn::Onmonster"; }
  20.         if( $dath == 5) { donpcevent "bossm::Onfiveday"; donpcevent "bossn::Onmonster"; }
  21.         if( $dath == 6) { if( $bosspoint < 5 ) end; donpcevent "bossm::sixday"; donpcevent "bossn::Onmonster"; }
  22.         end;
  23.  
  24. OnClock2359:
  25.     killmonsterall "prt_q";
  26.     end;
  27.  
  28.  
  29.    
  30. }
  31.  
  32.  
  33.  
  34. veil,131,90,4   script  bossm   45,{
  35.  
  36.  
  37. Ononeday:
  38.         set $@XBOSS,3659; goto bossmonster;
  39. Ontwoday:
  40.         set $@XBOSS,2022; goto bossmonster;
  41. Onthreeday:
  42.         set $@XBOSS,2483; goto bossmonster;
  43. Onfourday:
  44.         set $@XBOSS,2202; goto bossmonster;
  45. Onfiveday:
  46.         set $@XBOSS,1719; goto bossmonster;
  47. Onsixday:  
  48.         set $@XBOSS,1751; goto bossmonster;
  49.  
  50.  
  51. bossmonster:
  52.             // 設定今天的王的名字
  53.             if( $dath == 1)set $allboss$,"古代樹王●藍璨";
  54.             if( $dath == 2)set $allboss$,"古代樹王●橘璨";
  55.             if( $dath == 3)set $allboss$,"古代樹王●粉璨";
  56.             if( $dath == 4)set $allboss$,"古代樹王●綠璨";
  57.             if( $dath == 5)set $allboss$,"古代樹王●紫璨";
  58.             if( $dath == 6)set $allboss$,"遠古暴君●泰坦";
  59.  
  60.             // 招王設定
  61.             announce "【 公告 】 : 【 "+$allboss$+"  】 降臨了 ",bc_all,0xDDDDDD;
  62.             monster "prt_q",156,117,"--ja--",$@XBOSS,1,"bossm::OnMobDead";
  63.             set .@sk,rand(1,9);
  64.             setunitdata $@mobid[0],UMOB_RACE,.@sk; // 隨機更換王的種族
  65.             set .@sk,rand(50,100);
  66.             setunitdata $@mobid[0],UMOB_SPEED,.@sk; // 隨機更換王的跑速
  67.             initnpctimer;
  68.             end;
  69.  
  70.  
  71. OnTimer1000: script4each "{ percentheal -50,-50; }",1,"prt_q"; end;
  72. OnTimer2000: script4each "{ percentheal -50,-50; }",1,"prt_q"; end;
  73. OnTimer3000: script4each "{ percentheal -50,-50; }",1,"prt_q"; 
  74.     if( $dath == 1) { mapannounce "prt_q","【 "+$allboss$+" 】 使所有該地圖玩家進入暈眩狀態 !",17; script4each "{ .@mycard1=getequipcardid(5,0); if(.@mycard1 == 4143) sc_start SC_STUN,500,0; if(.@mycard1 != 4143) sc_start SC_STUN,6000,0; }",1,"prt_q"; }  
  75.     if( $dath == 4) { mapannounce "prt_q","【 "+$allboss$+" 】 使所有該地圖玩家進入冰凍狀態 !",17; script4each "{ .@mycard1=getequipcardid(7,0); if(.@mycard1 == 4419) sc_start SC_Freeze,600,0; if(.@mycard1 != 4419) sc_start SC_Freeze,6000,0; }",1,"prt_q";}
  76.     if( $dath == 3) { mapannounce "prt_q","【 "+$allboss$+" 】 使所有該地圖玩家進入沉默狀態 !",17; script4each "{ .@mycard1=getequipcardid(5,0); if(.@mycard1 == 4330) sc_start SC_Silence,500,0; if(.@mycard1 != 4330) sc_start SC_Silence,6000,0; }",1,"prt_q"; }
  77.     if( $dath == 2) { mapannounce "prt_q","【 "+$allboss$+" 】 使所有該地圖玩家進入混亂狀態 !",17; script4each "{ .@mycard1=getequipcardid(5,0); if(.@mycard1 == 4148) sc_start SC_Confusion,500,0; if(.@mycard1 != 4148) sc_start SC_Confusion,6000,0; }",1,"prt_q"; }
  78.     if( $dath == 5) { mapannounce "prt_q","【 "+$allboss$+" 】 使所有該地圖玩家進入石化狀態 !",17; script4each "{ .@mycard1=getequipcardid(7,0); if(.@mycard1 == 4302) sc_start SC_Stone,500,0; if(.@mycard1 != 4302) sc_start SC_Stone,6000,0; }",1,"prt_q"; }
  79.     if( $dath == 6) { mapannounce "prt_q","【 "+$allboss$+" 】 使所有該地圖玩家進入睡眠狀態 !",17; script4each "{ .@mycard1=getequipcardid(7,0); if(.@mycard1 == 4386) sc_start SC_Sleep,500,0; if(.@mycard1 != 4302) sc_start SC_Sleep,6000,0; }",1,"prt_q"; }
  80.     initnpctimer;
  81.     end;
  82.    
  83. OnMobDead:
  84.     // 王死了之後地圖性的傷害跟負面效果結束
  85.     stopnpctimer;
  86.     end;
  87.  
  88. OnMobDead2:
  89.     end;
  90.  
  91. }
  92.    
  93.  
  94. // 招喚干擾的小怪
  95.  
  96.  
  97. prt_q,0,0,0 script  bossn   45,{
  98.  
  99.  
  100. Onmonster:
  101.  
  102.             monster "prt_q",0,0,"--ja--",3331,80,"bossn::OnMobDead2";
  103.  
  104. OnMobDead2:
  105.             end;   
  106.  
  107. }
  108.  
  109.  
  110.  
  111.  
  112.  
  113. // 打死世界王的廣播跟發獎品設定
  114.  
  115.  
  116. -   script  世界王廣播 -1,{
  117.  
  118. OnPCKillMvpEvent:
  119.             if( killedrid == 3659 || killedrid == 2022 || killedrid == 2483 || killedrid == 2202 || killedrid == 1719 || killedrid == 1751 )
  120.             {
  121.  
  122.            
  123.             if( $dath != 6) set $bosspoint,$bosspoint+1;
  124.             if( $dath == 6) set $bosspoint,0;
  125.            
  126.  
  127.  
  128.  
  129.             // 有去世界王區討伐王的獎勵 有機會追加得到 1 - 2 個寶箱 這邊是先設定隨機 1 還是 2
  130.             set .@item2,rand(1,2);
  131.  
  132.  
  133.             // 每天的獎品不同
  134.             if( $dath == 1) set .@item,60068;
  135.             if( $dath == 2) set .@item,60069;
  136.             if( $dath == 3) set .@item,60070;
  137.             if( $dath == 4) set .@item,60071;
  138.             if( $dath == 5) set .@item,60072;
  139.             if( $dath == 6) set .@item,60073;
  140.  
  141.             // 每天王的名字不同
  142.             if( $dath == 1)set $allboss$,"古代樹王●藍璨";
  143.             if( $dath == 2)set $allboss$,"古代樹王●橘璨";
  144.             if( $dath == 3)set $allboss$,"古代樹王●粉璨";
  145.             if( $dath == 4)set $allboss$,"古代樹王●綠璨";
  146.             if( $dath == 5)set $allboss$,"古代樹王●紫璨";
  147.             if( $dath == 6)set $allboss$,"遠古暴君●泰坦";
  148.  
  149.             // 完整性的公告
  150.             announce "【 公告 】 : 玩家 【 " + strcharinfo(0, @mob_lasthit_cid) + " 】 給予了 『 " + strmobinfo(2, killedrid) + " 』 最後一擊",bc_all,0xFF8888;
  151.             announce "【 公告 】 : 玩家 【 " + strcharinfo(0, @mob_mvp_cid) + " 】給予了『 " + strmobinfo(2, killedrid) + " 』 最大的傷害",bc_all,0xCCFF33;
  152.             announce "【 公告 】 : 成功消滅 "+$allboss$+" 所有位於世界王領域的玩家 ",bc_all,0xFFB3FF;
  153.             announce "                 都可獲得【 "+$allboss$+" 秘寶箱 x1 】",bc_all,0xFFB3FF;
  154.             announce "【 公告 】 : 成功消滅 "+$allboss$+" 所有玩家 ",bc_all,0xFFB3FF;
  155.             announce "                 都可獲得【 "+$allboss$+" 秘寶箱 x1 】",bc_all,0xFFB3FF;
  156.  
  157.  
  158.             // 發獎品的設定區
  159.             script4each "{ getitem "+.@item+",1; }",0;
  160.             script4each "{ getitem "+.@item+","+.@item2+"; }",1,"prt_q";
  161.             script4each "{ set #boss,#boss+1; }",0;
  162.             script4each "{ set #boss,#boss+1; }",1,"prt_q";
  163.             }
  164. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top