Jump to content
  • 0

R> MvP Event Script


chrisharvz

Question


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  12
  • Reputation:   1
  • Joined:  08/10/16
  • Last Seen:  

Requesting a script that does the following:

Every 6 hours, an announcement is made to tell people of an MvP Event.
The event warp appears for 30 seconds, and then disappears
The people who make it to the warp get teleported to <map name>
A countdown begins on the map from 10 seconds
After 10 seconds the <Mvp name/id> spawns
If the MvP is killed, all members on the map receive <item name/ID>
After receiving the <Item name/ID> everyone on the map gets teleported back to prontera

If anyone could help me, that'd be great

Thanks :)

  • Upvote 1
Link to comment
Share on other sites

8 answers to this question

Recommended Posts

  • 0

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

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  4
  • Reputation:   0
  • Joined:  01/25/16
  • Last Seen:  

Up!

I need this NPC please.

Edited by Jodeci
Link to comment
Share on other sites

  • 0

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

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  12
  • Reputation:   1
  • Joined:  08/10/16
  • Last Seen:  

As it takes 5 hours for me to test, I wasnt able to manage it aha. When I implemented it though, it seemed have the warp constantly up rather than appearing for 30 seconds every 6 hours.
Im really trying hard to learn the language using the commands text file, but I am struggling, and struggling to to fix it.
Any idea what might be causing the warp to constantly be there rather than appearing for 30 seconds every 6 hours?

Thanks very much btw! This is incredibly helpful to me! :)

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  12
  • Reputation:   1
  • Joined:  08/10/16
  • Last Seen:  

Ok, So i eddited the script a bit as to what I think might be the fix.

This is what I came up with

// https://rathena.org/board/topic/107191-r-mvp-event-script/

-	script	mvp_event_main	-1,{
	
	OnInit:
		.map$ = "guild_vs1";
		end;

disablenpc "mvp_event_main_warp"
	
OnMinute52:
		if ( !.status ) {
			.status = 1;
			enablenpc "mvp_event_main_warp";
			for ( .@i = 3; .@i > 0; .@i-- ) {
				announce "MVP Event start in "+.@i+" minutes.",bc_all;
				sleep 60000;
			}
			disablenpc "mvp_event_main_warp";
			announce "MVP Event start now.",bc_all;
			
			for ( .@i = 10; .@i > 0; .@i-- ) {
				mapannounce .map$,"MVP Event start in "+.@i+" seconds.",bc_map;
				sleep 1000;
			}
			monster .map$,0,0,"--ja--",1002,1,strnpcinfo(3)+"::OnKilled";
			.status = 2;
			initnpctimer;
		}
		end;

	OnTimer1800000: // 30 minutes.
	OnEnd:
		stopnpctimer;
		.status = 0;
		end;
		
	OnKilled:
		if ( .status == 2 ) {
			donpcevent strnpcinfo(3)+"::OnEnd";
			addrid(1);
			getitem 512,1;
			getitem 512,2;
			getitem 512,3;
			mes "Gained rewards";
			close2;
			warp "SavePoint",0,0;
		}
		end;

prontera,155,181,5	warp	mvp_event_main_warp	2,2,guild_vs1,50,50

}

I moved the prontera warp to the bottom, as otherwise the warp was constantly staying in place without disabling.
Also for testing purpose I changed the OnTime to OnMinute.

I don't seem to be getting any announcement whatsoever, before or after it was editted.

Any ideas on a fix?

Thanks in advanced!

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  12
  • Reputation:   1
  • Joined:  08/10/16
  • Last Seen:  

Hi Emistry, the issue still persists.
The warp is still permanently placed in prontera when this script is active.
Could it have anything to do with me using Hercules rather than rAthena?
I also don't get any announcements, no MvP spawning ect, all's it does is places a the warp.
Sorry if im being a pain?

Link to comment
Share on other sites

  • 0

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

Hi Emistry, the issue still persists.

The warp is still permanently placed in prontera when this script is active.

Could it have anything to do with me using Hercules rather than rAthena?

I also don't get any announcements, no MvP spawning ect, all's it does is places a the warp.

Sorry if im being a pain?

work just fine in my test server...

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  12
  • Reputation:   1
  • Joined:  08/10/16
  • Last Seen:  

Hmm strange, I wonder whats wrong I my end :S

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
Answer this question...

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