Jump to content
  • 0

Question

Posted

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

8 answers to this question

Recommended Posts

  • 0
Posted

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

  • 0
Posted

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!

  • 0
Posted

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?

  • 0
Posted

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

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...