viewing paste Unknown #44182 | Athena

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185
 
morocc,153,71,5,0       script  warp#002        WARPNPC,1,1,{
        mes     "MVP Rooms ที่นี้มี "+getmapusers("guild_vs3")+" คน";
        mes     "โปรดเลือกเมืองที่ท่านต้องการ";
 
menu "MVP Rooms มี "+getmapusers("guild_vs3")+" คน",MVPRooms;
 
MVPRooms:
 
.@rand01 = callfunc("F_Rand",1847,1038,1039,1046,1059,1086,1087,1112,1115,1147,1150,1157,1159,1190,1251,1252,1272,1312,1373,1389,1399,1418,1492,1502,1511,1583,1623,1630,1646,1647,1648,
1649,1650,1651,1658,1685,1688,1708,1719,1734,1751,1768,1779,1785,1802,1832,1871,1874,1876,1885,1917,1980,2022,2052,2068,2075,2087,2095,2096,2098,2099,2106,2107,2108,2109,2110,
2131,2156,2165,2202,2235,2236,2237,2238,2239,2240,2241,2249,2251,2253,2255,2319,2341,2362,2475,2476,2529,2564,2996,2997,3073,3074,
1089,1090,1091,1092,1093,1096,1120,1198,1203,1204,1205,1259,1262,1283,1289,1295,1302,1307,1320,1388,1582,1626,1640,1641,1642,1643,1644,1645,1681,1700,
1701,1702,1703,1704,1705,1706,1707,1709,1710,1711,1712,1720,1754,1755,1765,1783,1829,1830,1831,1833,1839,1870,1873,1894,1918,1919,1920,1921,1929,1956,1958,1959,1960,1961,1990,1991,
2174,2175,2176,2177,2178,2179,2180,2181,2182,2183,2184,2185,2187,2188,2189,2190,2191,2192,2193,2194,2198,2208,2228,2229,2230,2231,2232,2233,2234,2242,2243,2244,2317,2320,2321,2322,
2327,2332,2473,2474,2530,2532,2533,2534,2535,2542,2543,2544,2545,2546,2562,2563,2650,2665,2675,2684,2685,2686,2721,2726,2736,2742,2743,2744,2788,2828,2861,2921,2923,2942);
 
mes "^FF0000MVP Rooms^000000";
mes "ค่าเข้า 50,000,000 Zeny สำหรับท่านแรก";
mes "ค่าเข้า 30,000,000 Zeny สำหรับท่านที่ 2-3";
        mes     "MVP Rooms ที่นี้มี "+getmapusers("guild_vs3")+"/3 คน";
if(getmapusers("guild_vs3") == 3) goto Fail1; //แก้ให้ผู้เล่นเข้าได้มากกว่า 1 คนขึ้นไป
 
if (Zeny < 50000000){ // requirements
        mes " - Registration fee 5,000,000 zeny";
        mes " - Registration fee 3,000,000 zeny";
}
if(getmapusers("guild_vs3") >= 1){
set Zeny, Zeny -30000000;
        summon "Summon X", .@rand01, 3600000
        warp    "guild_vs3",0,0;
}
if( select("^FF0000ยืนยัน.^000000:Cancel") == 2 ) close;
announce "[Event Random MVP]: ผู้เล่น "+strcharinfo(0)+" ได้เข้าไปในห้อง MVP Rooms แล้ว",bc_all;
set Zeny, Zeny -50000000;
        getitem 7873,3;
        summon "Summon X", .@rand01, 3600000
        warp    "guild_vs3",0,0;
       
       
Fail1:
        mes     "MVP Rooms ที่นี้มี "+getmapusers("guild_vs3")+" คน กำลังใช้งานอยู่";
//ท้ายสคริป
 
OnInit:
waitingroom "Room Random MVP",0;
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//ดันสุ่ม MVP
 
-       script  MVPRooms#01     -1,{
 
set .@n2$,      "[^FF80FF MVP Rooms. ^000000]"; //NPC Name
 
        .@rand01 = callfunc("F_Rand",1847,1038,1039,1046,1059,1086,1087,1112,1115,1147,1150,1157,1159,1190,1251,1252,1272,1312,1373,1389,1399,1418,1492,1502,1511,1583,1623,1630,1646,1647,1648,
1649,1650,1651,1658,1685,1688,1708,1719,1734,1751,1768,1779,1785,1802,1832,1871,1874,1876,1885,1917,1980,2022,2052,2068,2075,2087,2095,2096,2098,2099,2106,2107,2108,2109,2110,
2131,2156,2165,2202,2235,2236,2237,2238,2239,2240,2241,2249,2251,2253,2255,2319,2341,2362,2441,2442,2443,2444,2445,2446,2447,2448,2449,2475,2476,2529,2564,2996,2997,3073,3074,
1089,1090,1091,1092,1093,1096,1120,1198,1203,1204,1205,1259,1262,1283,1289,1295,1302,1307,1320,1388,1582,1626,1640,1641,1642,1643,1644,1645,1681,1700,
1701,1702,1703,1704,1705,1706,1707,1709,1710,1711,1712,1720,1754,1755,1765,1783,1829,1830,1831,1833,1839,1870,1873,1894,1918,1919,1920,1921,1929,1956,1958,1959,1960,1961,1990,1991,
2174,2175,2176,2177,2178,2179,2180,2181,2182,2183,2184,2185,2187,2188,2189,2190,2191,2192,2193,2194,2198,2208,2228,2229,2230,2231,2232,2233,2234,2242,2243,2244,2317,2320,2321,2322,
2327,2332,2473,2474,2530,2532,2533,2534,2535,2542,2543,2544,2545,2546,2562,2563,2650,2665,2675,2684,2685,2686,2721,2726,2736,2742,2743,2744,2788,2828,2861,2921,2923,2942);
 
        .@rand02 = callfunc("F_Rand",1847,1038,1039,1046,1059,1086,1087,1112,1115,1147,1150,1157,1159,1190,1251,1252,1272,1312,1373,1389,1399,1418,1492,1502,1511,1583,1623,1630,1646,1647,1648,
1649,1650,1651,1658,1685,1688,1708,1719,1734,1751,1768,1779,1785,1802,1832,1871,1874,1876,1885,1917,1980,2022,2052,2068,2075,2087,2095,2096,2098,2099,2106,2107,2108,2109,2110,
2131,2156,2165,2202,2235,2236,2237,2238,2239,2240,2241,2249,2251,2253,2255,2319,2341,2362,2441,2442,2443,2444,2445,2446,2447,2448,2449,2475,2476,2529,2564,2996,2997,3073,3074,
1089,1090,1091,1092,1093,1096,1120,1198,1203,1204,1205,1259,1262,1283,1289,1295,1302,1307,1320,1388,1582,1626,1640,1641,1642,1643,1644,1645,1681,1700,
1701,1702,1703,1704,1705,1706,1707,1709,1710,1711,1712,1720,1754,1755,1765,1783,1829,1830,1831,1833,1839,1870,1873,1894,1918,1919,1920,1921,1929,1956,1958,1959,1960,1961,1990,1991,
2174,2175,2176,2177,2178,2179,2180,2181,2182,2183,2184,2185,2187,2188,2189,2190,2191,2192,2193,2194,2198,2208,2228,2229,2230,2231,2232,2233,2234,2242,2243,2244,2317,2320,2321,2322,
2327,2332,2473,2474,2530,2532,2533,2534,2535,2542,2543,2544,2545,2546,2562,2563,2650,2665,2675,2684,2685,2686,2721,2726,2736,2742,2743,2744,2788,2828,2861,2921,2923,2942);
 
        .@rand03 = callfunc("F_Rand",1847,1038,1039,1046,1059,1086,1087,1112,1115,1147,1150,1157,1159,1190,1251,1252,1272,1312,1373,1389,1399,1418,1492,1502,1511,1583,1623,1630,1646,1647,1648,
1649,1650,1651,1658,1685,1688,1708,1719,1734,1751,1768,1779,1785,1802,1832,1871,1874,1876,1885,1917,1980,2022,2052,2068,2075,2087,2095,2096,2098,2099,2106,2107,2108,2109,2110,
2131,2156,2165,2202,2235,2236,2237,2238,2239,2240,2241,2249,2251,2253,2255,2319,2341,2362,2441,2442,2443,2444,2445,2446,2447,2448,2449,2475,2476,2529,2564,2996,2997,3073,3074,
1089,1090,1091,1092,1093,1096,1120,1198,1203,1204,1205,1259,1262,1283,1289,1295,1302,1307,1320,1388,1582,1626,1640,1641,1642,1643,1644,1645,1681,1700,
1701,1702,1703,1704,1705,1706,1707,1709,1710,1711,1712,1720,1754,1755,1765,1783,1829,1830,1831,1833,1839,1870,1873,1894,1918,1919,1920,1921,1929,1956,1958,1959,1960,1961,1990,1991,
2174,2175,2176,2177,2178,2179,2180,2181,2182,2183,2184,2185,2187,2188,2189,2190,2191,2192,2193,2194,2198,2208,2228,2229,2230,2231,2232,2233,2234,2242,2243,2244,2317,2320,2321,2322,
2327,2332,2473,2474,2530,2532,2533,2534,2535,2542,2543,2544,2545,2546,2562,2563,2650,2665,2675,2684,2685,2686,2721,2726,2736,2742,2743,2744,2788,2828,2861,2921,2923,2942);
       
        .@rand04 = callfunc("F_Rand",1847,1038,1039,1046,1059,1086,1087,1112,1115,1147,1150,1157,1159,1190,1251,1252,1272,1312,1373,1389,1399,1418,1492,1502,1511,1583,1623,1630,1646,1647,1648,
1649,1650,1651,1658,1685,1688,1708,1719,1734,1751,1768,1779,1785,1802,1832,1871,1874,1876,1885,1917,1980,2022,2052,2068,2075,2087,2095,2096,2098,2099,2106,2107,2108,2109,2110,
2131,2156,2165,2202,2235,2236,2237,2238,2239,2240,2241,2249,2251,2253,2255,2319,2341,2362,2441,2442,2443,2444,2445,2446,2447,2448,2449,2475,2476,2529,2564,2996,2997,3073,3074,
1089,1090,1091,1092,1093,1096,1120,1198,1203,1204,1205,1259,1262,1283,1289,1295,1302,1307,1320,1388,1582,1626,1640,1641,1642,1643,1644,1645,1681,1700,
1701,1702,1703,1704,1705,1706,1707,1709,1710,1711,1712,1720,1754,1755,1765,1783,1829,1830,1831,1833,1839,1870,1873,1894,1918,1919,1920,1921,1929,1956,1958,1959,1960,1961,1990,1991,
2174,2175,2176,2177,2178,2179,2180,2181,2182,2183,2184,2185,2187,2188,2189,2190,2191,2192,2193,2194,2198,2208,2228,2229,2230,2231,2232,2233,2234,2242,2243,2244,2317,2320,2321,2322,
2327,2332,2473,2474,2530,2532,2533,2534,2535,2542,2543,2544,2545,2546,2562,2563,2650,2665,2675,2684,2685,2686,2721,2726,2736,2742,2743,2744,2788,2828,2861,2921,2923,2942);
 
        .@rand05 = callfunc("F_Rand",1847,1038,1039,1046,1059,1086,1087,1112,1115,1147,1150,1157,1159,1190,1251,1252,1272,1312,1373,1389,1399,1418,1492,1502,1511,1583,1623,1630,1646,1647,1648,
1649,1650,1651,1658,1685,1688,1708,1719,1734,1751,1768,1779,1785,1802,1832,1871,1874,1876,1885,1917,1980,2022,2052,2068,2075,2087,2095,2096,2098,2099,2106,2107,2108,2109,2110,
2131,2156,2165,2202,2235,2236,2237,2238,2239,2240,2241,2249,2251,2253,2255,2319,2341,2362,2441,2442,2443,2444,2445,2446,2447,2448,2449,2475,2476,2529,2564,2996,2997,3073,3074);
       
        .@rand06 = callfunc("F_Rand",1847,1038,1039,1046,1059,1086,1087,1112,1115,1147,1150,1157,1159,1190,1251,1252,1272,1312,1373,1389,1399,1418,1492,1502,1511,1583,1623,1630,1646,1647,1648,
1649,1650,1651,1658,1685,1688,1708,1719,1734,1751,1768,1779,1785,1802,1832,1871,1874,1876,1885,1917,1980,2022,2052,2068,2075,2087,2095,2096,2098,2099,2106,2107,2108,2109,2110,
2131,2156,2165,2202,2235,2236,2237,2238,2239,2240,2241,2249,2251,2253,2255,2319,2341,2362,2441,2442,2443,2444,2445,2446,2447,2448,2449,2475,2476,2529,2564,2996,2997,3073,3074);
 
                menu "ส่งการ์ด "+getitemname(7873)+"",yes2;
yes2:          
                setarray .Item[0],
                7873,3;
 
                for( set .@i,0; .@i < getarraysize( .Item ) - 1; set .@i,.@i + 2 )
                if( countitem( .Item[.@i] ) < .Item[.@i + 1] ){
                  for( set .@i,0; .@i < getarraysize( .Item ) - 1; set .@i,.@i + 2 )
                  mes "Need "+.Item[.@i + 1]+" x "+getitemname( .Item[.@i] );
                close;
                }
                if( select("^FF0000ยืนยัน.^000000:Cancel") == 2 ) close;
                for( set .@i,0; .@i < getarraysize( .Item ) - 1; set .@i,.@i + 2 )
                delitem .Item[ .@i ],.Item[ .@i + 1 ];
                mes "^FF0000เจ้าจงเดาใจข้าเอาละกัน^000000";
                next;
               
hideonnpc "MVP Rooms"; // ซ่อนตัว npc
 
        monster "guild_vs3",83,50,"--ja--",.@rand01,1,strnpcinfo(3)+"::OnInvasionMonsters";
        monster "guild_vs3",50,16,"--ja--",.@rand02,1,strnpcinfo(3)+"::OnInvasionMonsters";
        monster "guild_vs3",16,49,"--ja--",.@rand03,1,strnpcinfo(3)+"::OnInvasionMonsters";
        monster "guild_vs3",49,83,"--ja--",.@rand04,1,strnpcinfo(3)+"::OnInvasionMonsters";
        monster "guild_vs3",50,50,"--ja--",.@rand05,1,strnpcinfo(3)+"::OnInvasionMonsters";
        monster "guild_vs3",0,0,"--ja--",.@rand06,1,strnpcinfo(3)+"::OnDead";
        end;
 
 
OnDead:
        announce "[Event Random MVP]: ผู้เล่น "+strcharinfo(0)+" ได้กำจัด Boss MVP Rooms",bc_all;
        getitem 7420,500;
        set mvp_point, mvp_point + 1;// +1 mvp point
       
        mes .@n$;
        mes "^FF80FF "+strcharinfo(0)+"^000000 ";
        mes "แล้วพบกันใหม่ เมื่อท่านพร้อม";
        mes ". . . .";
        mes "แล้วพบกัน";
 
menu "ออกจากห้อง",Ex1,"อยู่ต่อ",Ex2;
Ex1:
        mapwarp "guild_vs3","stprontera",155,171;
        warp "stprontera",155,171;
hideoffnpc "MVP Rooms" ; // ยกเลิกการซ่อนตัว npc
        end;
 
 
OnPCDieEvent:
        warp "stprontera",155,171;
hideoffnpc "MVP Rooms" ; // ยกเลิกการซ่อนตัว npc
        killmonsterall "guild_vs3";
        //mapwarp "guild_vs3","stprontera",155,171;
        end;
Ex2:
hideoffnpc "MVP Rooms" ; // ยกเลิกการซ่อนตัว npc
end;   
 
OnInvasionMonsters:
 
end;   
}
 
 
guild_vs3       mapflag nobranch
guild_vs3       mapflag pvp
 
//DUM NPC
 
guild_vs3,48,52,5       duplicate(MVPRooms#01)  MVP Rooms       10028
 
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
 
// Map Flg
moro_vol        mapflag nobranch
prt_fild08      mapflag nobranch
 
//prt_fild08    mapflag noskill
prt_fild08      mapflag pvp     off
//prt_fild08    mapflag noicewall
prt_fild08      mapflag noteleport
//1@iz_d5       mapflag pvp
prt_q   mapflag pvp
 
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
 
Viewed 591 times, submitted by il3ol2ed.