Jump to content

[RELEASE] Boss Time Attack (Based on Jin Freecs Script)


Recommended Posts


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  382
  • Reputation:   38
  • Joined:  01/17/12
  • Last Seen:  

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

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 by Bahmut
Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

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....

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  63
  • Reputation:   3
  • Joined:  12/22/11
  • Last Seen:  

wow this is more good enough i think i will use your modified Boss Time Attack XD

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  382
  • Reputation:   38
  • Joined:  01/17/12
  • Last Seen:  

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 :) .

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...