DAsサーバーで使用しているvotemapスクリプト
基本的にこの記事↓に書いてありますが、これを少し弄って使用しています。
Not Found
仕様
- ラウンド開始時、プレイヤー数が32人未満の場合はバニラマップローテーション
- ラウンド開始時、プレイヤー数が32人以上で機能有効
- 投票開始のトリガーはサーバー内での初キル
- 投票方法は投票が開始されてから従来通りにチャットに「/1」「/2」「/3」の遊びたいマップを打ち込む
- 投票の状態を確認するコマンドは「!next」
- 投票はラウンド終了まで有効
ProconRulzのコード
※サーバーのメッセージを取得可能に要改造。詳しくはこちらの記事の「2. ProconRulzの中を書き換える」と「3. Proconにデフォルトで入っているSpambotの設定」の通り設定をして下さい。
※BF4.defのマップのスペースを_に置換する必要があります。
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 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 |
### ProconRulz - DAs VoteMap ver 3.7.DAs by DA-xx-V On Spawn;ServerFirst;Set %ini_server_before_map[2]% %ini_server_before_map[1]%;Set %ini_server_before_map[1]% %ini_server_before_map[0]%;Set %ini_server_before_map[0]% %m%; On Kill;ServerFirst;If %ts1% + %ts2% >= 48; Set %ini_server_vote/1[map]% 0;Set %ini_server_vote/2[map]% 0;Set %ini_server_vote/3[map]% 0;Set %ini_server_votemap% 1;Set %ini_server_lowpop% 0; If %ini_server_map/1% == MP_Abandoned;Set %ini_server_/1mapname% Zavod 311; If %ini_server_map/1% == MP_Prison;Set %ini_server_/1mapname% Operation Locker; If %ini_server_map/1% == XP1_003;Set %ini_server_/1mapname% Guilin Peaks; If %ini_server_map/1% == XP0_Metro;Set %ini_server_/1mapname% Operation Metro 2014; If %ini_server_map/1% == XP3_MarketPl;Set %ini_server_/1mapname% Pearl Market; If %ini_server_map/1% == XP3_Prpganda;Set %ini_server_/1mapname% Propaganda; If %ini_server_map/1% == XP3_UrbanGdn;Set %ini_server_/1mapname% Lumpini Garden; If %ini_server_map/1% == XP6_CMP;Set %ini_server_/1mapname% Operation Outbreak; If %ini_server_map/2% == MP_Journey;Set %ini_server_/2mapname% Golmud Railway; If %ini_server_map/2% == MP_Resort;Set %ini_server_/2mapname% Hainan Resort; If %ini_server_map/2% == MP_Siege;Set %ini_server_/2mapname% Siege of Shanghai; If %ini_server_map/2% == MP_Tremors;Set %ini_server_/2mapname% Dawnbreaker; If %ini_server_map/2% == XP0_Caspia;Set %ini_server_/2mapname% Caspian Border 2014; If %ini_server_map/2% == XP0_Firestor;Set %ini_server_/2mapname% Firestorm 2014; If %ini_server_map/2% == XP2_002;Set %ini_server_/2mapname% Nansha strike; If %ini_server_map/2% == XP2_003;Set %ini_server_/2mapname% WaveBreaker; If %ini_server_map/2% == XP2_004;Set %ini_server_/2mapname% Operation Mortar; If %ini_server_map/3% == MP_Abandoned;Set %ini_server_/3mapname% Zavod 311; If %ini_server_map/3% == MP_Damage;Set %ini_server_/3mapname% Lancang Dam; If %ini_server_map/3% == MP_Flooded;Set %ini_server_/3mapname% Flood Zone; If %ini_server_map/3% == MP_Journey;Set %ini_server_/3mapname% Golmud Railway; If %ini_server_map/3% == MP_Naval;Set %ini_server_/3mapname% Paracel Storm; If %ini_server_map/3% == MP_Prison;Set %ini_server_/3mapname% Operation Locker; If %ini_server_map/3% == MP_Resort;Set %ini_server_/3mapname% Hainan Resort; If %ini_server_map/3% == MP_Siege;Set %ini_server_/3mapname% Siege of Shanghai; If %ini_server_map/3% == MP_TheDish;Set %ini_server_/3mapname% Rogue Transmission; If %ini_server_map/3% == MP_Tremors;Set %ini_server_/3mapname% Dawnbreaker; If %ini_server_map/3% == XP1_001;Set %ini_server_/3mapname% Silk Road; If %ini_server_map/3% == XP1_002;Set %ini_server_/3mapname% Altai Range; If %ini_server_map/3% == XP1_003;Set %ini_server_/3mapname% Guilin Peaks; If %ini_server_map/3% == XP1_004;Set %ini_server_/3mapname% Dragon Pass; If %ini_server_map/3% == XP0_Caspia;Set %ini_server_/3mapname% Caspian Border 2014; If %ini_server_map/3% == XP0_Firestor;Set %ini_server_/3mapname% Firestorm 2014; If %ini_server_map/3% == XP0_Metro;Set %ini_server_/3mapname% Operation Metro 2014; If %ini_server_map/3% == XP0_Oman;Set %ini_server_/3mapname% Gulf of Oman 2014; If %ini_server_map/3% == XP2_001;Set %ini_server_/3mapname% Lost Islands; If %ini_server_map/3% == XP2_002;Set %ini_server_/3mapname% Nansha strike; If %ini_server_map/3% == XP2_003;Set %ini_server_/3mapname% WaveBreaker; If %ini_server_map/3% == XP2_004;Set %ini_server_/3mapname% Operation Mortar; If %ini_server_map/3% == XP3_MarketPl;Set %ini_server_/3mapname% Pearl Market; If %ini_server_map/3% == XP3_Prpganda;Set %ini_server_/3mapname% Propaganda; If %ini_server_map/3% == XP3_UrbanGdn;Set %ini_server_/3mapname% Lumpini Garden; If %ini_server_map/3% == XP3_WtrFront;Set %ini_server_/3mapname% Sunken Dragon; If %ini_server_map/3% == XP4_Arctic;Set %ini_server_/3mapname% Operation Whiteout; If %ini_server_map/3% == XP4_SubBase;Set %ini_server_/3mapname% Hammerhead; If %ini_server_map/3% == XP4_Titan;Set %ini_server_/3mapname% Hangar 21; If %ini_server_map/3% == XP4_WalkerFactory;Set %ini_server_/3mapname% Giants of Karelia; If %ini_server_map/3% == XP5_Night_01;Set %ini_server_/3mapname% Zavod:Graveyard Shift; If %ini_server_map/3% == XP6_CMP;Set %ini_server_/3mapname% Operation Outbreak; If %ini_server_map/3% == XP7_Valley;Set %ini_server_/3mapname% Dragon Valley 2015; Exec mapList.clear; Exec mapList.save; Exec mapList.add %ini_server_map/1% ConquestLarge0 1; Exec mapList.add %ini_server_map/2% ConquestLarge0 1; Exec mapList.add %ini_server_map/3% ConquestLarge0 1; Exec mapList.save; # On Kill;ServerFirst;If %ini_server_votemap% == 1; Say dasvotemapsdasvotemapsdasvotemapsdasvotema; Say psdasvotemapsdasvotemapsdasvotemapsdasvote; Say mapsdasvotemapsdasvotemapsdasvotemapsdasvo; Say temapsdasvotemapsdasvotemapsdasvotemapsdas; Say votemapsdasvotemapsdasvotemapsdasvotemaps!; Both ####### VOTE NEXT MAP #######; Say - Type /1, /2,... in chat to vote for the next round map.; Say - /1 %ini_server_/1mapname%; Say - /2 %ini_server_/2mapname%; Say - /3 %ini_server_/3mapname%; Set %ini_server_voteon[map]% True; # On Say;If %p% == Server;Text /tlpm1,/tlpm3,/tlpm5; Incr %ini_server_map1%;Incr %ini_server_map2%;Incr %ini_server_map3%; If %ini_server_map1% >= 8;Set %ini_server_map1% 0; If %ini_server_map2% >= 9;Set %ini_server_map2% 0; If %ini_server_map3% >= 33;Set %ini_server_map3% 0; # If %ini_server_map1% == 0;If %ini_server_before_map[0]% != Zavod_311;If %ini_server_before_map[1]% != Zavod_311;If %ini_server_before_map[2]% != Zavod_311;Set %ini_server_map/1% MP_Abandoned; If %ini_server_map1% == 1;If %ini_server_before_map[0]% != Operation_Locker;If %ini_server_before_map[1]% != Operation_Locker;If %ini_server_before_map[2]% != Operation_Locker;Set %ini_server_map/1% MP_Prison; If %ini_server_map1% == 2;If %ini_server_before_map[0]% != Guilin_Peaks;If %ini_server_before_map[1]% != Guilin_Peaks;If %ini_server_before_map[2]% != Guilin_Peaks;Set %ini_server_map/1% XP1_003; If %ini_server_map1% == 3;If %ini_server_before_map[0]% != Operation_Metro_2014;If %ini_server_before_map[1]% != Operation_Metro_2014;If %ini_server_before_map[2]% != Operation_Metro_2014;Set %ini_server_map/1% XP0_Metro; If %ini_server_map1% == 4;If %ini_server_before_map[0]% != Pearl_Market;If %ini_server_before_map[1]% != Pearl_Market;If %ini_server_before_map[2]% != Pearl_Market;Set %ini_server_map/1% XP3_MarketPl; If %ini_server_map1% == 5;If %ini_server_before_map[0]% != Propaganda;If %ini_server_before_map[1]% != Propaganda;If %ini_server_before_map[2]% != Propaganda;Set %ini_server_map/1% XP3_Prpganda; If %ini_server_map1% == 6;If %ini_server_before_map[0]% != Lumphini_Garden;If %ini_server_before_map[1]% != Lumphini_Garden;If %ini_server_before_map[2]% != Lumphini_Garden;Set %ini_server_map/1% XP3_UrbanGdn; If %ini_server_map1% == 7;If %ini_server_before_map[0]% != Operation_Outbreak;If %ini_server_before_map[1]% != Operation_Outbreak;If %ini_server_before_map[2]% != Operation_Outbreak;Set %ini_server_map/1% XP6_CMP; # If %ini_server_map2% == 0;If %ini_server_before_map[0]% != Golmud_Railway;If %ini_server_before_map[1]% != Golmud_Railway;If %ini_server_before_map[2]% != Golmud_Railway;Set %ini_server_map/2% MP_Journey; If %ini_server_map2% == 1;If %ini_server_before_map[0]% != Hainan_Resort;If %ini_server_before_map[1]% != Hainan_Resort;If %ini_server_before_map[2]% != Hainan_Resort;Set %ini_server_map/2% MP_Resort; If %ini_server_map2% == 2;If %ini_server_before_map[0]% != Siege_of_Shanghai;If %ini_server_before_map[1]% != Siege_of_Shanghai;If %ini_server_before_map[2]% != Siege_of_Shanghai;Set %ini_server_map/2% MP_Siege; If %ini_server_map2% == 3;If %ini_server_before_map[0]% != Dawnbreaker;If %ini_server_before_map[1]% != Dawnbreaker;If %ini_server_before_map[2]% != Dawnbreaker;Set %ini_server_map/2% MP_Tremors; If %ini_server_map2% == 4;If %ini_server_before_map[0]% != Caspian_Border_2014;If %ini_server_before_map[1]% != Caspian_Border_2014;If %ini_server_before_map[2]% != Caspian_Border_2014;Set %ini_server_map/2% XP0_Caspia; If %ini_server_map2% == 5;If %ini_server_before_map[0]% != Operation_Firestorm_2014;If %ini_server_before_map[1]% != Operation_Firestorm_2014;If %ini_server_before_map[2]% != Operation_Firestorm_2014;Set %ini_server_map/2% XP0_Firestor; If %ini_server_map2% == 6;If %ini_server_before_map[0]% != Nansha_Strike;If %ini_server_before_map[1]% != Nansha_Strike;If %ini_server_before_map[2]% != Nansha_Strike;Set %ini_server_map/2% XP2_002; If %ini_server_map2% == 7;If %ini_server_before_map[0]% != Wavebreaker;If %ini_server_before_map[1]% != Wavebreaker;If %ini_server_before_map[2]% != Wavebreaker;Set %ini_server_map/2% XP2_003; If %ini_server_map2% == 8;If %ini_server_before_map[0]% != Operation_Mortar;If %ini_server_before_map[1]% != Operation_Mortar;If %ini_server_before_map[2]% != Operation_Mortar;Set %ini_server_map/2% XP2_004; # If %ini_server_map3% == 0;If %ini_server_before_map[0]% != Zavod_311;If %ini_server_before_map[1]% != Zavod_311;If %ini_server_before_map[2]% != Zavod_311;If %ini_server_map/1% != MP_Abandoned;If %ini_server_map/2% != MP_Abandoned;Set %ini_server_map/3% MP_Abandoned; If %ini_server_map3% == 1;If %ini_server_before_map[0]% != Lancang_Dam;If %ini_server_before_map[1]% != Lancang_Dam;If %ini_server_before_map[2]% != Lancang_Dam;If %ini_server_map/1% != MP_Damage;If %ini_server_map/2% != MP_Damage;Set %ini_server_map/3% MP_Damage; If %ini_server_map3% == 2;If %ini_server_before_map[0]% != Flood_Zone;If %ini_server_before_map[1]% != Flood_Zone;If %ini_server_before_map[2]% != Flood_Zone;If %ini_server_map/1% != MP_Flooded;If %ini_server_map/2% != MP_Flooded;Set %ini_server_map/3% MP_Flooded; If %ini_server_map3% == 3;If %ini_server_before_map[0]% != Golmud_Railway;If %ini_server_before_map[1]% != Golmud_Railway;If %ini_server_before_map[2]% != Golmud_Railway;If %ini_server_map/1% != MP_Journey;If %ini_server_map/2% != MP_Journey;Set %ini_server_map/3% MP_Journey; If %ini_server_map3% == 4;If %ini_server_before_map[0]% != Paracel_Storm;If %ini_server_before_map[1]% != Paracel_Storm;If %ini_server_before_map[2]% != Paracel_Storm;If %ini_server_map/1% != MP_Naval;If %ini_server_map/2% != MP_Naval;Set %ini_server_map/3% MP_Naval; If %ini_server_map3% == 5;If %ini_server_before_map[0]% != Operation_Locker;If %ini_server_before_map[1]% != Operation_Locker;If %ini_server_before_map[2]% != Operation_Locker;If %ini_server_map/1% != MP_Prison;If %ini_server_map/2% != MP_Prison;Set %ini_server_map/3% MP_Prison; If %ini_server_map3% == 6;If %ini_server_before_map[0]% != Hainan_Resort;If %ini_server_before_map[1]% != Hainan_Resort;If %ini_server_before_map[2]% != Hainan_Resort;If %ini_server_map/1% != MP_Resort;If %ini_server_map/2% != MP_Resort;Set %ini_server_map/3% MP_Resort; If %ini_server_map3% == 7;If %ini_server_before_map[0]% != Siege_of_Shanghai;If %ini_server_before_map[1]% != Siege_of_Shanghai;If %ini_server_before_map[2]% != Siege_of_Shanghai;If %ini_server_map/1% != MP_Siege;If %ini_server_map/2% != MP_Siege;Set %ini_server_map/3% MP_Siege; If %ini_server_map3% == 8;If %ini_server_before_map[0]% != Rogue_Transmission;If %ini_server_before_map[1]% != Rogue_Transmission;If %ini_server_before_map[2]% != Rogue_Transmission;If %ini_server_map/1% != MP_TheDish;If %ini_server_map/2% != MP_TheDish;Set %ini_server_map/3% MP_TheDish; If %ini_server_map3% == 9;If %ini_server_before_map[0]% != Dawnbreaker;If %ini_server_before_map[1]% != Dawnbreaker;If %ini_server_before_map[2]% != Dawnbreaker;If %ini_server_map/1% != MP_Tremors;If %ini_server_map/2% != MP_Tremors;Set %ini_server_map/3% MP_Tremors; If %ini_server_map3% == 10;If %ini_server_before_map[0]% != Silk_Road;If %ini_server_before_map[1]% != Silk_Road;If %ini_server_before_map[2]% != Silk_Road;If %ini_server_map/1% != XP1_001;If %ini_server_map/2% != XP1_001;Set %ini_server_map/3% XP1_001; If %ini_server_map3% == 11;If %ini_server_before_map[0]% != Altai_Range;If %ini_server_before_map[1]% != Altai_Range;If %ini_server_before_map[2]% != Altai_Range;If %ini_server_map/1% != XP1_002;If %ini_server_map/2% != XP1_002;Set %ini_server_map/3% XP1_002; If %ini_server_map3% == 12;If %ini_server_before_map[0]% != Guilin_Peaks;If %ini_server_before_map[1]% != Guilin_Peaks;If %ini_server_before_map[2]% != Guilin_Peaks;If %ini_server_map/1% != XP1_003;If %ini_server_map/2% != XP1_003;Set %ini_server_map/3% XP1_003; If %ini_server_map3% == 13;If %ini_server_before_map[0]% != Dragon_Pass;If %ini_server_before_map[1]% != Dragon_Pass;If %ini_server_before_map[2]% != Dragon_Pass;If %ini_server_map/1% != XP1_004;If %ini_server_map/2% != XP1_004;Set %ini_server_map/3% XP1_004; If %ini_server_map3% == 14;If %ini_server_before_map[0]% != Caspian_Border_2014;If %ini_server_before_map[1]% != Caspian_Border_2014;If %ini_server_before_map[2]% != Caspian_Border_2014;If %ini_server_map/1% != XP0_Caspia;If %ini_server_map/2% != XP0_Caspia;Set %ini_server_map/3% XP0_Caspia; If %ini_server_map3% == 15;If %ini_server_before_map[0]% != Operation_Firestorm_2014;If %ini_server_before_map[1]% != Operation_Firestorm_2014;If %ini_server_before_map[2]% != Operation_Firestorm_2014;If %ini_server_map/1% != XP0_Firestor;If %ini_server_map/2% != XP0_Firestor;Set %ini_server_map/3% XP0_Firestor; If %ini_server_map3% == 16;If %ini_server_before_map[0]% != Operation_Metro_2014;If %ini_server_before_map[1]% != Operation_Metro_2014;If %ini_server_before_map[2]% != Operation_Metro_2014;If %ini_server_map/1% != XP0_Metro;If %ini_server_map/2% != XP0_Metro;Set %ini_server_map/3% XP0_Metro; If %ini_server_map3% == 17;If %ini_server_before_map[0]% != Gulf of Oman 2014;If %ini_server_before_map[1]% != Gulf of Oman 2014;If %ini_server_before_map[2]% != Gulf of Oman 2014;If %ini_server_map/1% != XP0_Oman;If %ini_server_map/2% != XP0_Oman;Set %ini_server_map/3% XP0_Oman; If %ini_server_map3% == 18;If %ini_server_before_map[0]% != Lost_Islands;If %ini_server_before_map[1]% != Lost_Islands;If %ini_server_before_map[2]% != Lost_Islands;If %ini_server_map/1% != XP2_001;If %ini_server_map/2% != XP2_001;Set %ini_server_map/3% XP2_001; If %ini_server_map3% == 19;If %ini_server_before_map[0]% != Nansha_Strike;If %ini_server_before_map[1]% != Nansha_Strike;If %ini_server_before_map[2]% != Nansha_Strike;If %ini_server_map/1% != XP2_002;If %ini_server_map/2% != XP2_002;Set %ini_server_map/3% XP2_002; If %ini_server_map3% == 20;If %ini_server_before_map[0]% != Wavebreaker;If %ini_server_before_map[1]% != Wavebreaker;If %ini_server_before_map[2]% != Wavebreaker;If %ini_server_map/1% != XP2_003;If %ini_server_map/2% != XP2_003;Set %ini_server_map/3% XP2_003; If %ini_server_map3% == 21;If %ini_server_before_map[0]% != Operation_Mortar;If %ini_server_before_map[1]% != Operation_Mortar;If %ini_server_before_map[2]% != Operation_Mortar;If %ini_server_map/1% != XP2_004;If %ini_server_map/2% != XP2_004;Set %ini_server_map/3% XP2_004; If %ini_server_map3% == 22;If %ini_server_before_map[0]% != Pearl_Market;If %ini_server_before_map[1]% != Pearl_Market;If %ini_server_before_map[2]% != Pearl_Market;If %ini_server_map/1% != XP3_MarketPl;If %ini_server_map/2% != XP3_MarketPl;Set %ini_server_map/3% XP3_MarketPl; If %ini_server_map3% == 23;If %ini_server_before_map[0]% != Propaganda;If %ini_server_before_map[1]% != Propaganda;If %ini_server_before_map[2]% != Propaganda;If %ini_server_map/1% != XP3_Prpganda;If %ini_server_map/2% != XP3_Prpganda;Set %ini_server_map/3% XP3_Prpganda; If %ini_server_map3% == 24;If %ini_server_before_map[0]% != Lumphini_Garden;If %ini_server_before_map[1]% != Lumphini_Garden;If %ini_server_before_map[2]% != Lumphini_Garden;If %ini_server_map/1% != XP3_UrbanGdn;If %ini_server_map/2% != XP3_UrbanGdn;Set %ini_server_map/3% XP3_UrbanGdn; If %ini_server_map3% == 25;If %ini_server_before_map[0]% != Sunken_Dragon;If %ini_server_before_map[1]% != Sunken_Dragon;If %ini_server_before_map[2]% != Sunken_Dragon;If %ini_server_map/1% != XP3_WtrFront;If %ini_server_map/2% != XP3_WtrFront;Set %ini_server_map/3% XP3_WtrFront; If %ini_server_map3% == 26;If %ini_server_before_map[0]% != Operation_Whiteout;If %ini_server_before_map[1]% != Operation_Whiteout;If %ini_server_before_map[2]% != Operation_Whiteout;If %ini_server_map/1% != XP4_Arctic;If %ini_server_map/2% != XP4_Arctic;Set %ini_server_map/3% XP4_Arctic; If %ini_server_map3% == 27;If %ini_server_before_map[0]% != Hammerhead;If %ini_server_before_map[1]% != Hammerhead;If %ini_server_before_map[2]% != Hammerhead;If %ini_server_map/1% != XP4_SubBase;If %ini_server_map/2% != XP4_SubBase;Set %ini_server_map/3% XP4_SubBase; If %ini_server_map3% == 28;If %ini_server_before_map[0]% != Hangar_21;If %ini_server_before_map[1]% != Hangar_21;If %ini_server_before_map[2]% != Hangar_21;If %ini_server_map/1% != XP4_Titan;If %ini_server_map/2% != XP4_Titan;Set %ini_server_map/3% XP4_Titan; If %ini_server_map3% == 29;If %ini_server_before_map[0]% != Giants_Of_Karelia;If %ini_server_before_map[1]% != Giants_Of_Karelia;If %ini_server_before_map[2]% != Giants_Of_Karelia;If %ini_server_map/1% != XP4_WalkerFactory;If %ini_server_map/2% != XP4_WalkerFactory;Set %ini_server_map/3% XP4_WalkerFactory; If %ini_server_map3% == 30;If %ini_server_before_map[0]% != Zavod:Graveyard_Shift;If %ini_server_before_map[1]% != Zavod:Graveyard_Shift;If %ini_server_before_map[2]% != Zavod:Graveyard_Shift;If %ini_server_map/1% != XP5_Night_01;If %ini_server_map/2% != XP5_Night_01;Set %ini_server_map/3% XP5_Night_01; If %ini_server_map3% == 31;If %ini_server_before_map[0]% != Operation_Outbreak;If %ini_server_before_map[1]% != Operation_Outbreak;If %ini_server_before_map[2]% != Operation_Outbreak;If %ini_server_map/1% != XP6_CMP;If %ini_server_map/2% != XP6_CMP;Set %ini_server_map/3% XP6_CMP; If %ini_server_map3% == 32;If %ini_server_before_map[0]% != Dragon_Valley_2015;If %ini_server_before_map[1]% != Dragon_Valley_2015;If %ini_server_before_map[2]% != Dragon_Valley_2015;If %ini_server_map/1% != XP7_Valley;If %ini_server_map/2% != XP7_Valley;Set %ini_server_map/3% XP7_Valley; # Debug Log #Log bmap1: %ini_server_before_map[0]%, bmap2: %ini_server_before_map[1]%, bmap3: %ini_server_before_map[2]%; #Log counter: 1= %ini_server_map1%, 2= %ini_server_map2%, 3=%ini_server_map3%; #Log Map: 1= %ini_server_map/1%, 2= %ini_server_map/2%, 3= %ini_server_map/3%; # On Say;Text /1;If %p% != Server;If %ini_server_voteon[map]% == True; If %player_vote1[map]% == 1;PlayerSay %p% You have already voted; If %player_vote1[map]% == 0;Incr %ini_server_vote/1[map]%;Set %player_vote1[map]% 1;PlayerSay %p% you voted for %ini_server_/1mapname%.; If %player_vote2[map]% == 1;Decr %ini_server_vote/2[map]%;Set %player_vote1[map]% 1;Set %player_vote2[map]% 0;PlayerSay %p% Your vote has been changed from %ini_server_/2mapname% to %ini_server_/1mapname%.; If %player_vote3[map]% == 1;Decr %ini_server_vote/3[map]%;Set %player_vote1[map]% 1;Set %player_vote3[map]% 0;PlayerSay %p% Your vote has been changed from %ini_server_/3mapname% to %ini_server_/1mapname%.; # On Say;Text /2;If %p% != Server;If %ini_server_voteon[map]% == True; If %player_vote2[map]% == 1;PlayerSay %p% You have already voted; If %player_vote2[map]% == 0;Incr %ini_server_vote/2[map]%;Set %player_vote2[map]% 1;PlayerSay %p% you voted for %ini_server_/2mapname%.; If %player_vote1[map]% == 1;Decr %ini_server_vote/1[map]%;Set %player_vote2[map]% 1;Set %player_vote1[map]% 0;PlayerSay %p% Your vote has been changed from %ini_server_/1mapname% to %ini_server_/2mapname%.; If %player_vote3[map]% == 1;Decr %ini_server_vote/3[map]%;Set %player_vote2[map]% 1;Set %player_vote3[map]% 0;PlayerSay %p% Your vote has been changed from %ini_server_/3mapname% to %ini_server_/2mapname%.; # On Say;Text /3;If %p% != Server;If %ini_server_voteon[map]% == True; If %player_vote3[map]% == 1;PlayerSay %p% You have already voted; If %player_vote3[map]% == 0;Incr %ini_server_vote/3[map]%;Set %player_vote3[map]% 1;PlayerSay %p% you voted for %ini_server_/3mapname%.; If %player_vote1[map]% == 1;Decr %ini_server_vote/1[map]%;Set %player_vote3[map]% 1;Set %player_vote1[map]% 0;PlayerSay %p% Your vote has been changed from %ini_server_/1mapname% to %ini_server_/3mapname%.; If %player_vote2[map]% == 1;Decr %ini_server_vote/2[map]%;Set %player_vote3[map]% 1;Set %player_vote2[map]% 0;PlayerSay %p% Your vote has been changed from %ini_server_/2mapname% to %ini_server_/3mapname%.; # On Say;If %ini_server_voteon[map]% == True; If %ini_server_vote/1[map]% > %ini_server_vote/2[map]%;If %ini_server_vote/1[map]% > %ini_server_vote/3[map]%;Set %ini_server_nextmap% "0";Set %ini_server_nextmapname% %ini_server_/1mapname%; If %ini_server_vote/2[map]% > %ini_server_vote/1[map]%;If %ini_server_vote/2[map]% > %ini_server_vote/3[map]%;Set %ini_server_nextmap% "1";Set %ini_server_nextmapname% %ini_server_/2mapname%; If %ini_server_vote/3[map]% > %ini_server_vote/1[map]%;If %ini_server_vote/3[map]% > %ini_server_vote/2[map]%;Set %ini_server_nextmap% "2";Set %ini_server_nextmapname% %ini_server_/3mapname%; # On Say;If %ini_server_voteon[map]% == True;If %ini_server_vote/1[map]% == 0;If %ini_server_vote/2[map]% == 0;If %ini_server_vote/3[map]% == 0; Incr %server_novotes%;If %server_novotes% == 3;Set %server_novotes% 0; If %server_novotes% == 0;Set %ini_server_nextmap% "0";Set %ini_server_nextmapname% %ini_server_/1mapname%; If %server_novotes% == 1;Set %ini_server_nextmap% "1";Set %ini_server_nextmapname% %ini_server_/2mapname%; If %server_novotes% == 2;Set %ini_server_nextmap% "2";Set %ini_server_nextmapname% %ini_server_/3mapname%; # On Say;Text !next,/next;If %p% != Server; If %ini_server_voteon[map]% == True;Say - Type /1, /2,... in chat to vote for the next round map.;Say - /1 %ini_server_/1mapname% [%ini_server_vote/1[map]%];Say - /2 %ini_server_/2mapname% [%ini_server_vote/2[map]%];Say - /3 %ini_server_/3mapname% [%ini_server_vote/3[map]%]; If %ini_server_voteon[map]% == False;Say Next Map is %ini_server_nextmapname%. On Kill;If %ini_server_voteon[map]% == True; Incr %server_votereport[map]%; If %server_votereport[map]% == 50;Say - Type /1, /2,... in chat to vote for the next round map.;Say - /1 %ini_server_/1mapname% [%ini_server_vote/1[map]%];Say - /2 %ini_server_/2mapname% [%ini_server_vote/2[map]%];Say - /3 %ini_server_/3mapname% [%ini_server_vote/3[map]%];Set %server_votereport[map]% 0; # On RoundOver;If %ini_server_votemap% == 1; Set %ini_server_voteon[map]% False;Exec mapList.setNextMapIndex %ini_server_nextmap%;Say Next Map is %ini_server_nextmapname%.;Set %ini_server_vote/1[map]% 0;Set %ini_server_vote/2[map]% 0;Set %ini_server_vote/3[map]% 0;Set %ini_server_votemap% 0; # On RoundOver;If %ini_server_votemap% != 1; Set %ini_server_voteon[map]% False;Set %ini_server_vote/1[map]% 0;Set %ini_server_vote/2[map]% 0;Set %ini_server_vote/3[map]% 0; # On Leave;If %ts1% + %ts2% == 1; Exec mapList.clear; Exec mapList.save; Exec mapList.add MP_Siege ConquestLarge0 1; Exec mapList.add MP_Tremors ConquestLarge0 1; Exec mapList.add MP_Prison ConquestLarge0 1; Exec mapList.add MP_Resort ConquestLarge0 1; Exec mapList.add MP_Journey ConquestLarge0 1; Exec mapList.add MP_Flooded ConquestLarge0 1; Exec mapList.add MP_Abandoned ConquestLarge0 1; Exec mapList.add MP_TheDish ConquestLarge0 1; Exec mapList.add MP_Damage ConquestLarge0 1; Exec mapList.add MP_Naval ConquestLarge0 1; Exec mapList.save; Exec mapList.setNextMapIndex 0; Exec mapList.runNextRound; Set %ini_server_lowpop% 1; # On Spawn;ServerFirst;If %ini_server_lowpop% == 0;If %ts1% + %ts2% < 48; Exec mapList.clear; Exec mapList.save; Exec mapList.add MP_Siege ConquestLarge0 1; Exec mapList.add MP_Prison ConquestLarge0 1; Exec mapList.add MP_Tremors ConquestLarge0 1; Exec mapList.add MP_Resort ConquestLarge0 1; Exec mapList.add MP_Journey ConquestLarge0 1; Exec mapList.add MP_Flooded ConquestLarge0 1; Exec mapList.add MP_Abandoned ConquestLarge0 1; Exec mapList.add MP_TheDish ConquestLarge0 1; Exec mapList.add MP_Damage ConquestLarge0 1; Exec mapList.add MP_Naval ConquestLarge0 1; Exec mapList.save; Set %ini_server_lowpop% 1; |