Bahmut Posted March 18, 2012 Group: Members Topic Count: 17 Topics Per Day: 0.00 Content Count: 382 Reputation: 39 Joined: 01/17/12 Last Seen: February 13, 2020 Share Posted March 18, 2012 (edited) Hi, I liked the idea of a MVP Time Attack Event like Jin Freecs Boss Time Attack script. So I started editing his script to be more easy to configure and use. How to use it To start the script just whisper anything ingame to NPC:MVPTA You can configure the script easily. There are comments in it, on how to add new spawnable monsters and theres also a config area where you can set this Settings: set .@mapName$,"pvp_2vs2"; // On which map should the event be set .@spawnCordX,40; // X-Cordinate where the mob spawns set .@spawnCordY,33; // Y-Cordinate where the mob spawns set .@minGmRank,99; // Minimal GM level to use this script set .@globalAnnounce,1; // Should the script announce kills global Preview //===== rAthena Script ======================================= //= MVP Time Attack //===== By: ================================================== //= Bahmut //= Freecs => http://rathena.org/board/user/949-jin-freecs/ //===== Current Version: ===================================== //= 1.0 //===== Description: ========================================= //= //============================================================ // You may want to use this mapflag if you want give the players only your prices and no monster loot pvp_2vs2 mapflag noloot - script MVPTA -1,{ OnWhisperGlobal: // - NPC Config // --------------------------------------------------------------------------- set .@mapName$,"pvp_2vs2"; // On which map should the event be set .@spawnCordX,40; // X-Cordinate where the mob spawns set .@spawnCordY,33; // Y-Cordinate where the mob spawns set .@minGmRank,$gm_Rank_Event; // Minimal GM level to use this script set .@globalAnnounce,1; // Should the script announce kills global // --------------------------------------------------------------------------- if (getgmlevel() < .@minGmRank) end; mes "[MVP Time Attack]"; mes "Hello " + strcharinfo(0) + ", what do you want to do?"; menu "Choose Monster",L_Start,"Kill all Monsters",L_End,"Cancel",-; close; L_Start: next; mes "[MVP Time Attack]"; mes "Choose a monster to spawn."; next; // Also add new monsters to this menu menu "Orc Hero",L_Mob_OrcHero, "Atroce",L_Mob_Atroce, "RSX-0806",L_Mob_RSX, // "<Monster Name>,<label>, <= Template "Cancel",-; close; // - Start Monster Labels (add new Monsters here) // --------------------------------------------------------------------------- // Template: // <label>: <= Same as used in the menu // set .mobName$,"<Monster Name>"; <= Will be shown in the broadcasts // set .mobId,<Monster ID>; <= Monster ID from your Database // goto L_execute; <= Never remove this line // --------------------------------------------------------------------------- L_Mob_OrcHero: set .mobName$,"Orc Hero"; set .mobId,1087; goto L_execute; L_Mob_Atroce: set .mobName$,"Atroce"; set .mobId,1785; goto L_execute; L_Mob_RSX: set .mobName$,"RSX-0806"; set .mobId,1623; goto L_execute; // --------------------------------------------------------------------------- // - End Monster Labels ------------------------------------------------------ // --------------------------------------------------------------------------- L_execute: mes "[MVP Time Attack]"; mes "The monster " + .mobName$ + " will be spawned."; close2; if (.@globalAnnounce == 1) { announce "Boss Time Attack: " + .mobName$,0; } else { mapannounce .@mapName$,"Boss Time Attack: " + .mobName$ + " in 5",0; } sleep2 1500; if (.@globalAnnounce == 1) { announce "Boss Time Attack: 4",0; } else { mapannounce .@mapName$,"Boss Time Attack: 4",0; } sleep2 1500; if (.@globalAnnounce == 1) { announce "Boss Time Attack: 3",0; } else { mapannounce .@mapName$,"Boss Time Attack: 3",0; } sleep2 1500; if (.@globalAnnounce == 1) { announce "Boss Time Attack: 2",0; } else { mapannounce .@mapName$,"Boss Time Attack: 2",0; } sleep2 1500; if (.@globalAnnounce == 1) { announce "Boss Time Attack: 1",0; } else { mapannounce .@mapName$,"Boss Time Attack: 1",0; } sleep2 1500; if (.@globalAnnounce == 1) { announce "Boss Time Attack: GO!",0; } else { mapannounce .@mapName$,"Boss Time Attack: GO!",0; } sleep2 1000; set .MOBStartTick, gettimetick(2); set .MOBKillTime, 0; monster .@mapName$,.@spawnCordX,.@spawnCordY,.mobName$ + " - MVP Time Attack",.mobId,1,"MVPTA::OnMVPTAKilled"; end; L_End: next; killmonster .@mapName$,"All"; mes "[MVP Time Attack]"; mes "All monster(s) on the map " + .@mapName$ + " have been killed"; close; OnMVPTAKilled: set .MOBKillTime, gettimetick(2) - .MOBStartTick; announce "Boss Time Attack '" + .mobName$ + "': Time " + (.MOBKillTime / 60)+ "min " + (.MOBKillTime % 60) + "sec",0; end; } Download MVPTimeAttack.txt Credits Bahmut Jin Freecs Changelog 1.0 Initial Release I'm planning to add a full ladder with SQL, but for now this will have to be enough. Edited March 19, 2012 by Bahmut Quote Link to comment Share on other sites More sharing options...
Emistry Posted March 18, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2371 Joined: 10/28/11 Last Seen: Saturday at 07:13 PM Share Posted March 18, 2012 well....you can even shorten it using the array to store the data...and using Loop process to do the same works... [ Pastebin ] Boss Time Attack and...at your script... // You may want to use this mapflag if you want give the players only your prices and no monster loot //pvp_2vs2 mapflag noloot the above mapflag usage cant be used inside a script.must be located outside of the script.... Quote Link to comment Share on other sites More sharing options...
Jin Freecs Posted March 18, 2012 Group: Members Topic Count: 20 Topics Per Day: 0.00 Content Count: 63 Reputation: 3 Joined: 12/22/11 Last Seen: May 30, 2020 Share Posted March 18, 2012 wow this is more good enough i think i will use your modified Boss Time Attack XD Quote Link to comment Share on other sites More sharing options...
Bahmut Posted March 19, 2012 Group: Members Topic Count: 17 Topics Per Day: 0.00 Content Count: 382 Reputation: 39 Joined: 01/17/12 Last Seen: February 13, 2020 Author Share Posted March 19, 2012 well....you can even shorten it using the array to store the data...and using Loop process to do the same works... [ Pastebin ] Boss Time Attack and...at your script... // You may want to use this mapflag if you want give the players only your prices and no monster loot //pvp_2vs2 mapflag noloot the above mapflag usage cant be used inside a script.must be located outside of the script.... The mapflag was only wrong in the preview and I will stick with my solution . Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.