月光論壇 (http://bbs.djorz.com/)


月光論壇 -> RO架設教學私服疑難解答 -> 有人知道怎麼製作轉蛋嗎? [列印本頁] 登入 -> 註冊

sunkistea 2013-5-17 11:14

我的轉蛋:

// 轉蛋函式
//============================================================
// - 使用說明:
// -    item_裡面的物品後面使用語法 { callfunc "F_CashPetScroll",該物品編號; }
// -    陣列.@item為可開到的物品;.@amt為得到物品的數量;.@rt1為得到物品機率(千分)
// -    格式請比照已寫好之轉蛋。
// -    備註: 機率是依照正服玩家的開蛋心得與物品貴重度所約略猜測

function    script    F_CashPetScroll    {
   switch (getarg(0)) {
   case 12925:    //小惡魔帽轉蛋(12925)
       setarray .@item[0],12213,13525,12211,7620,5227,12209,12208,12220;
       setarray .@amt[0],1,1,1,1,1,1,1,1;
       setarray .@rt1[0],10,185,185,150,50,185,185,50;
       break;
      case 9059:       //★勇者★轉蛋(9059)
          setarray .@item[0],9200,9201,9202,9203,9204,9205;
          setarray .@amt[0],1,1,1,1,1,1,1,1;
          setarray .@rt1[0],185,185,185,185,185,185,185,185;
          break;
      case 9060:       //★英雄★轉蛋(9060)
          setarray .@item[0],9300,9301,9302,9303,9304,9305;
          setarray .@amt[0],1,1,1,1,1,1,1,1;
          setarray .@rt1[0],185,185,185,185,185,185,185,185;
          break;
      case 9061:       //★國王★轉蛋(9061)
          setarray .@item[0],9400,9401,9402,9403,9404,9405;
          setarray .@amt[0],1,1,1,1,1,1,1,1;
          setarray .@rt1[0],185,185,185,185,185,185,185,185;
          break;
      case 9062:       //★傳說★轉蛋(9062)
          setarray .@item[0],9600,9601,9602,9603,9604,9605,9606,9607,9608,9609,9610,9611,9612,9613,9614,9615,9616,9617,9618,9619,9620,9621,9622,9623,9624;
          setarray .@amt[0],1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1;
          setarray .@rt1[0],185,185,185,185,185,185,185,185;
          break;
      case 9063:       //★神話★轉蛋(9063)
          setarray .@item[0],9700,9701,9702,9703,9704,9705,9706,9707,9708,9709,9710,9711,9712,9713,9714,9715,9716,9717,9718,9719,9720,9721,9722,9723,9724;
          setarray .@amt[0],1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1;
          setarray .@rt1[0],185,185,185,185,185,185,185,185;
          break;
      case 9064:       //★古代★轉蛋(9064)
          setarray .@item[0],9800,9801,9802,9803,9804,9805,9806,9807,9808,9809,9810,9811,9812,9813,9814,9815,9816,9817,9818,9819,9820,9821,9822,9823,9824;
          setarray .@amt[0],1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1;
          setarray .@rt1[0],185,185,185,185,185,185,185,185;
          break;
   case 12926:    //紅色魔法師帽轉蛋(12926)
       setarray .@item[0],12208,12210,13525,7621,5238,12219;
       setarray .@amt[0],1,1,1,1,1,1;
       setarray .@rt1[0],226,226,226,226,50,226;
       break;
   case 12932:    //粉紅貓轉蛋(12932)
       setarray .@item[0],12208,12209,7620,12211,13525,12213,5232;
       setarray .@amt[0],1,1,1,1,1,1,1;
       setarray .@rt1[0],226,226,226,226,25,226,25;
       break;
   case 12933:    //粉色毛帽轉蛋(12933)
       setarray .@item[0],12208,7621,12219,13525,12210,12217,5237;
       setarray .@amt[0],1,1,1,1,1,1,1;
       setarray .@rt1[0],160,160,160,160,160,160,40;
       break;
   case 12934:    //雙喜轉蛋(12934)
       setarray .@item[0],12208,7619,7621,12212,13525,5239,5226;
       setarray .@amt[0],1,1,1,1,1,1,1;
       setarray .@rt1[0],185,185,185,185,185,50,25;
       break;
   case 13617:    //超級轉蛋01(13617)
       setarray .@item[0],2234,2235,7621,2277,5077,5074,5068,5210,2269,610,607,616,617,14508,4047,4054,4168;
       setarray .@amt[0],1,1,1,1,1,1,1,1,1,30,15,2,5,10,1,1,1;
       setarray .@rt1[0],10,10,10,140,140,10,10,3,100,100,100,32,32,300,1,1,1;
       break;
   case 13618:    //超級轉蛋02(13618)
       setarray .@item[0],2246,2249,2274,2267,5048,5066,5072,5035,2270,610,607,616,617,14508,4140,4241,4148;
       setarray .@amt[0],1,1,1,1,1,1,1,1,1,30,15,2,5,10,1,1,1;
       setarray .@rt1[0],10,10,10,140,140,10,10,3,100,100,100,32,32,300,1,1,1;
       break;
   case 13619:    //超級轉蛋03(13619)
       setarray .@item[0],2268,5085,1230,2250,2247,5042,1466,5020,2283,610,607,616,617,14508,4169,4137,4146;
       setarray .@amt[0],1,1,1,1,1,1,1,1,1,30,15,2,5,10,1,1,1;
       setarray .@rt1[0],10,10,10,140,140,10,10,3,100,100,100,32,32,300,1,1,1;
       break;
   case 13620:    //超級轉蛋04(13620)
       setarray .@item[0],5107,5094,2254,5117,2298,2256,2258,5025,2244,610,607,616,617,14508,4142,4144,4121;
       setarray .@amt[0],1,1,1,1,1,1,1,1,1,30,15,2,5,10,1,1,1;
       setarray .@rt1[0],10,10,10,140,140,10,10,3,100,100,100,32,32,300,1,1,1;
       break;
   case 13630:    //超級卡片轉蛋01(13630)
       setarray .@item[0],4255,4106,4055,4082,4086,4076,4043,4030,4049,4147,4069,4158,4166,4315,4105,4170,4279,607,610,14508;
       setarray .@amt[0],1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,15,20,5;
       setarray .@rt1[0],50,50,50,50,50,50,50,50,50,2,50,50,50,50,50,50,50,66,66,66;
       break;
   case 13631:    //超級卡片轉蛋02(13631)
       setarray .@item[0],4135,4092,4126,4323,4060,4063,4068,4080,4115,4007,4035,4181,4194,4189,4201,4003,4031,607,610,14508;
       setarray .@amt[0],1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,15,20,5;
       setarray .@rt1[0],2,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,66,66,66;
       break;
   case 13632:    //超級卡片轉蛋03(13632)
       setarray .@item[0],4052,4122,4112,4288,4285,4148,4159,4102,4088,4178,4129,4133,4325,4303,4058,4250,4136,607,610,14508;
       setarray .@amt[0],1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,15,20,5;
       setarray .@rt1[0],55,55,55,55,55,55,55,55,55,3,55,55,55,10,55,10,55,69,69,69;
       break;
   case 13633:    //超級卡片轉蛋04(13633)
       setarray .@item[0],4050,4107,4097,4100,4160,4327,4205,4064,4077,4091,4131,4079,4044,4053,4322,4314,4254,607,610,14508;
       setarray .@amt[0],1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,15,20,5;
       setarray .@rt1[0],53,53,53,53,53,53,53,53,53,53,3,53,53,53,53,50,10,66,66,66;
       break;
   case 13704:    //特別的福袋1(13704)
       setarray .@item[0],5129,5189,5133,5134,5135,5137,5138,5188,999,616,617,607,610,14508;
       setarray .@amt[0],1,1,1,1,1,1,1,1,1,1,1,1,1,1;
       setarray .@rt1[0],25,25,25,120,25,10,10,10,150,120,120,120,120,120;
       break;
   case 13705:    //特別的福袋2(13705)
       setarray .@item[0],5259,5141,5144,5147,5161,5150,5151,5152,999,616,617,607,610,14508;
       setarray .@amt[0],1,1,1,1,1,1,1,1,1,1,1,1,1,1;
       setarray .@rt1[0],25,25,25,120,25,10,10,10,150,120,120,120,120,120;
       break;
   case 13706:    //特別的福袋3(13706)
       setarray .@item[0],5178,5179,5180,5181,5182,5206,5140,14508,999,616,617,607,610,14508;
       setarray .@amt[0],1,1,1,1,1,1,1,1,1,1,1,1,1,1;
       setarray .@rt1[0],25,25,25,120,25,10,10,10,150,120,120,120,120,120;
       break;
   case 13707:    //特別的福袋4(13707)
       setarray .@item[0],5132,5200,5203,5184,5185,5186,5187,5183,999,616,617,607,610,14508;
       setarray .@amt[0],1,1,1,1,1,1,1,1,1,1,1,1,1,1;
       setarray .@rt1[0],25,25,25,120,25,10,10,10,150,120,120,120,120,120;
       break;
   case 13726:    //黃金箱子(13726)
       setarray .@item[0],730,5133,732,522,5138,5211,5253,5255,14508,5147,616,617,603,607,5099,7779,7619,7620,12208,5214,5137,5172;
       setarray .@amt[0],1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1;
       setarray .@rt1[0],120,20,100,80,20,20,20,20,80,20,40,40,59,60,40,20,59,59,120,2,1,1;
       break;
   case 13727:    //白銀箱子(13727)
       setarray .@item[0],733,5212,732,608,5227,5238,5228,5239,14508,5232,5237,5213,603,7621,7780,985,984,12208,610,5153,5252;
       setarray .@amt[0],1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1;
       setarray .@rt1[0],130,25,105,92,25,25,25,25,92,35,35,25,60,10,25,60,60,120,25,1;
       break;
   case 13845:    //神秘的旅行A(13845)
       setarray .@item[0],5209,5256,5257,13712,5258,13715,13710,5273,2682,13720,13747,2683,13753,5274,14527,13721,13741,13744;
       setarray .@amt[0],1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1;
       setarray .@rt1[0],20,20,20,75,20,70,15,35,20,123,100,20,100,30,55,90,75,75;
       break;
   case 13846:    //神秘的旅行B(13846)
       setarray .@item[0],5264,5243,5263,13712,5225,13715,13710,5275,2684,13720,13747,2685,13753,5276,14527,13721,13741,13744;
       setarray .@amt[0],1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1;
       setarray .@rt1[0],20,20,20,75,20,70,15,35,20,123,100,20,100,30,55,90,75,75;
       break;
   case 13847:    //神秘的旅行C(13847)
       setarray .@item[0],5254,5286,5291,13712,5283,13715,13710,5191,5192,13720,13747,5287,13753,5193,14527,13721,13741,13744,5192;
       setarray .@amt[0],1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1;
       setarray .@rt1[0],20,20,20,80,20,70,10,20,20,140,110,20,110,35,55,90,70,70,20;
       break;
   case 13848:    //神秘的旅行D(13848)
       setarray .@item[0],5801,5288,13712,5194,13715,13710,5196,5195,13720,13747,5187,13753,5197,13721,14527,13741,13744,5195,5194;
       setarray .@amt[0],1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1;
       setarray .@rt1[0],20,20,100,10,70,10,35,20,130,100,20,100,35,55,90,70,70,20,25;
       break;
   case 13911:    //聖誕節轉蛋(13911)
       setarray .@item[0],5210,5380,2269,2277,5381,5382,5068,5074,5286,5077,12244,617,607,610,730,13710,732,14508;
       setarray .@amt[0],1,1,1,1,1,1,1,1,1,1,3,3,30,30,20,5,10,10;
       setarray .@rt1[0],5,5,95,95,5,5,75,45,10,95,95,95,95,95,95,20,95,95;
       break;
   case 13925:    //鼠來運轉好運到(13925)
       setarray .@item[0],12211,12901,12208,5215,5217,12999,5218,5216,7621,610,5219,12213,5077,12210,4168,4169,5226;
       setarray .@amt[0],15,1,5,1,1,1,1,1,10,15,1,1,1,5,1,1,1;
       setarray .@rt1[0],135,135,135,25,25,135,25,25,50,25,10,135,135,1,2,2;
       break;
   case 13941:    //心心相印永不分離 轉蛋(13941)
       setarray .@item[0],13805,13806,13804,12900,12901,603,7715,7716,7621,12706,12707,12708,12709,12710;
       setarray .@amt[0],1,1,1,1,1,1,10,10,10,10,10,10,10,10;
       setarray .@rt1[0],80,80,80,40,40,80,80,80,40,80,80,80,80,80;
       break;
   case 13974:    //魚人轉蛋(13974)
       setarray .@item[0],5380,12213,12913,12914,12214,554,12709,12710,12209,7621,12208,13639,2256,2258,554;
       setarray .@amt[0],1,1,1,1,1,5,20,15,5,1,5,1,1,1,5;
       setarray .@rt1[0],12,13,75,75,75,100,100,100,100,75,100,25,25,25,100;
       break;
   case 14229:    //櫻花_轉蛋(14229)
       setarray .@item[0],4144,4121,12208,2257,2298,5117,608,7074,12211,2254,2255,12209,2259,5094,12210,5143;
       setarray .@amt[0],1,1,10,1,1,1,10,1,15,1,1,10,1,1,10,1;
       setarray .@rt1[0],1,1,138,70,70,70,70,45,140,25,45,90,45,25,140,25;
       break;
   case 14296:    //天使_轉蛋(14296)
       setarray .@item[0],4054,2254,2358,5074,5125,5132,12913,4241,5153,5207;
       setarray .@amt[0],1,1,1,1,1,1,1,1,1,1;
       setarray .@rt1[0],33,83,143,83,176,66,250,33,83,50;
       break;
   case 14297:    //惡魔_轉蛋(14297)
       setarray .@item[0],5066,5072,12923,642,2255,5068,1039,12925,4174,13819;
       setarray .@amt[0],1,1,1,1,1,1,1,1,1,1;
       setarray .@rt1[0],50,50,125,250,50,75,120,150,5,125;
       break;
   case 14298:    //驚喜_轉蛋(14298)
       setarray .@item[0],12213,12103,12211,604,12210,12209,12710,13904,12208,12709;
       setarray .@amt[0],1,1,10,1,10,10,10,1,10,10;
       setarray .@rt1[0],10,75,130,130,130,130,130,130,5,130;
       break;
   case 14306:    //RWC_特殊_轉蛋(14306)
       setarray .@item[0],5337,12903,608,13516,12919,12921,12920,4105,4133,12214,4148;
       setarray .@amt[0],1,1,50,1,1,1,1,1,1,1,1;
       setarray .@rt1[0],11,138,150,100,150,150,125,50,50,75,1;
       break;
   case 14307:    //RWC_限定_轉蛋(14307)
       setarray .@item[0],5336,12903,14232,13516,12919,522,547,12922,12901,4346,4352;
       setarray .@amt[0],1,1,50,1,1,1,1,1,1,1,1;
       setarray .@rt1[0],12,138,140,105,140,140,200,50,50,25,1;
       break;
   case 14308:    //炎熱cool_轉蛋(14308)
       setarray .@item[0],12213,14232,12103,14233,12211,12208,12710,5194,5195;
       setarray .@amt[0],1,1,1,1,10,10,10,5,1,1;
       setarray .@rt1[0],20,65,100,65,125,125,125,125,125,125;
       break;
   case 14316:    //不離不棄轉蛋(14316)
       setarray .@item[0],4359,12246,596,5151,5137,597,13870,14546,12710,4254;
       setarray .@amt[0],1,1,10,1,1,10,1,1,20,10,1;
       setarray .@rt1[0],1,3,250,22,22,250,110,110,110,110,2;
       break;
   case 14317:    //明月轉蛋(14317)
       setarray .@item[0],12190,12191,12188,5343,5344,5345,12913,5139,2415,12710,12190,12209,5140,12259;
       setarray .@amt[0],1,1,1,1,1,1,1,1,1,20,1,10,1,1;
       setarray .@rt1[0],90,20,110,10,10,10,60,20,70,150,150,230,50,20;
       break;
   case 14345:    //動物出奇蛋(14345)
       setarray .@item[0],12086,5030,5033,5059,12048,5290,5078,5111,5217,5222,12100,12084,5259,5098,12703,5177,5084;
       setarray .@amt[0],7,1,1,1,7,1,1,1,1,1,7,7,1,1,7,1,1;
       setarray .@rt1[0],120,40,40,40,120,40,40,40,40,40,120,120,20,20,80,40,40;
       break;
   case 14363:    //溫暖之心(14363)
       setarray .@item[0],2701,5256,5288,12073,2664,12085,5130,2701,5243,12097,5076,5123,2680,2701,2680,12089;
       setarray .@amt[0],1,1,1,7,1,5,1,1,1,8,1,1,1,1,1,7;
       setarray .@rt1[0],2,9,9,150,35,150,25,35,35,150,150,25,25,15,35,150;
       break;
   case 14407:    //聖誕紅轉蛋(14407)
       setarray .@item[0],5380,5381,14508,12913,12915,2236,5313,12916,2269,4005,4235,5036,12907,5382,13808;
       setarray .@amt[0],1,1,10,1,1,1,1,1,1,1,1,1,1,1,1;
       setarray .@rt1[0],5,5,155,100,100,5,5,100,150,10,10,50,150,5,150;
       break;
   case 14408:    //元旦轉蛋(14408)
       setarray .@item[0],617,5261,12246,12710,14508,6046,5225,14232,14233,5226,12919,12922;
       setarray .@amt[0],2,1,1,10,10,2,1,1,1,1,1,1;
       setarray .@rt1[0],125,25,15,125,125,100,20,125,125,15,100,100;
       break;
   case 14469:    //牛轉乾坤轉蛋(14469)
       setarray .@item[0],12902,12922,14232,12908,5261,12911,12920,12710,5205,12103,12921,2702,13534,5262;
       setarray .@amt[0],1,1,1,1,1,1,1,10,1,1,1,1,1,1;
       setarray .@rt1[0],125,75,125,75,25,10,40,125,25,100,75,75,100,25;
       break;
   case 16195:    //決戰魔王_轉蛋(16195)
       setarray .@item[0],14232,12907,12908,5410,12710,14532,14244,14245,14246,14247,14248,14250,14251,13857;
       setarray .@amt[0],1,1,1,1,10,2,1,1,1,1,1,1,1,1;
       setarray .@rt1[0],100,100,100,20,65,65,65,65,65,65,65,65,65,20;
       break;
   case 16245:    //迎春轉蛋(16245)
       setarray .@item[0],12903,12907,12908,13747,13753,13744,13741,12961,12962,12963,12964,14343,14344,13902;
       setarray .@amt[0],1,1,1,1,1,1,1,1,1,1,1,1,1,1;
       setarray .@rt1[0],90,90,90,90,90,90,90,76,76,76,76,16,16,34;
       break;
   case 16253:    //小白兔_轉蛋(16253)
       setarray .@item[0],14232,13525,14252,14253,14254,14255,14256,14257,14258,14259,14260,14261,13858,5568;
       setarray .@amt[0],1,1,1,1,1,1,1,1,1,1,1,1,1,1;
       setarray .@rt1[0],365,370,25,25,25,25,25,25,25,25,25,25,10,5;
       break;
   case 16257:    //佛心轉蛋(16257)
       setarray .@item[0],12259,12261,5567,5340,5198,5299,5143,13858,13721,13749,13755,13747,13753,14508;
       setarray .@amt[0],1,2,1,1,1,1,1,1,1,1,1,1,1,7;
       setarray .@rt1[0],2,3,30,40,45,45,45,30,110,120,110,110,110,200;
       break;
   case 16304:    //惡靈現身(16304)
       setarray .@item[0],12259,12261,5584,5020,5182,5188,5056,5206,12903,12905,12907,12908,12710,14234;
       setarray .@amt[0],1,2,1,1,1,1,1,1,1,1,1,1,10,1;
       setarray .@rt1[0],2,3,50,45,45,55,55,55,110,110,110,110,125,125;
       break;
   case 16371:    //天香雲外飄(16371)
       setarray .@item[0],12259,12246,5595,5528,5387,5431,5129,12905,12904,12908,12907,12706,12707,12708;
       setarray .@amt[0],1,1,1,1,1,1,1,1,1,1,1,12,12,12;
       setarray .@rt1[0],2,5,27,27,27,33,38,120,120,120,120,120,120,120;
       break;
   }
   copyarray .@rt2[0],.@rt1[0],getarraysize(.@rt1);
   for( set @i,0; @i<getarraysize(.@rt1) ; set @i,@i+1 ) {
       if( @i != 0 ) {
           set .@rt2[@i],.@rt2[@i-1]+.@rt1[@i];
       }
   }
   set .@j,getarraysize(.@rt2);
   set .@k,rand(1000);
   for( set .@s,0; .@s<=.@j ; set .@s,.@s+1 ) {
       set .@a,.@k-.@rt2[.@s];
       if (.@a < 0) { getitem .@item[.@s],.@amt[.@s]; end;} else {}
   }
}

我的ITEM_:
9059,Vigorgra_Package12,★勇者★轉蛋,18,20,,0,,,,,0xFFFFFFFF,7,2,,,,,,{ callfunc "F_CashPetScroll"; },{},{}
9060,Vigorgra_Package12,★英雄★轉蛋,18,20,,0,,,,,0xFFFFFFFF,7,2,,,,,,{ callfunc "F_CashPetScroll"; },{},{}
9061,Vigorgra_Package12,★國王★轉蛋,18,20,,0,,,,,0xFFFFFFFF,7,2,,,,,,{ callfunc "F_CashPetScroll"; },{},{}
9062,Vigorgra_Package12,★傳說★轉蛋,18,20,,0,,,,,0xFFFFFFFF,7,2,,,,,,{ callfunc "F_CashPetScroll"; },{},{}
9063,Vigorgra_Package12,★神話★轉蛋,18,20,,0,,,,,0xFFFFFFFF,7,2,,,,,,{ callfunc "F_CashPetScroll"; },{},{}
9064,Vigorgra_Package12,★古代★轉蛋,18,20,,0,,,,,0xFFFFFFFF,7,2,,,,,,{ callfunc "F_CashPetScroll"; },{},{}

裏面按下去會出現對話框但是沒有物品出現!!

本文章使用了關鍵字:


sunkistea 2013-5-19 00:49
該會員已在 2013-6-7 00:00 因違規遭到處分, 此文章發表於 2013-5-19 00:49, 因此系統自動屏蔽。


查看完整版本: [-- 有人知道怎麼製作轉蛋嗎? --] [-- top --]
月光論壇為自由討論論壇,所有個人言論不代表本站立場。文章內容如有涉及侵權請連絡我們,將立即刪除相關文章資料

Powered by PHPWind v5.0.1
Code © 2003-05 PHPWind

Total 0.001043(s) query 3 Gzip enabled
著作權侵權 | 本網站已依台灣網站內容分級規定處理 | 聯絡我們