Jump to content

Question

1 answer to this question

Recommended Posts

  • 0
Posted (edited)
2 hours ago, kylrie said:

Hello Rathena can i request for PVP room with Non-Donators and Donators map that works in aEthena version .. TIA

Hi, not sure if this would work on eAthena I assumed it would be in loopings that will caused errors.
You can found this: https://github.com/rathena/rathena/wiki/Loops

prontera.gat, 143, 171, 4	script	PvP Arena	4_M_REDSWORD,{

	mes .n$;
	mes "Which PvP Areas would you like to be warped?";
	next;
	switch(select(
	"- Donator Area ["+getmapusers(.pkmap_1$)+"]",
	"- Non-Donator Area ["+getmapusers(.pkmap_2$)+"]",
	"- Anyone ["+getmapusers(.pkmap_3$)+"]"
	)){
	case 1:
	for( .@j = 0; .@j < .size; .@j++ )
	{
		if( countitem(.Ban_Item_NonDonator[.@j]) )
		{
			mes .n$;
			mes "Please put away your ^FF0000"+ getitemname( .Ban_Item_NonDonator[.@j] ) +"^000000 in storage before entering the PvP Area.";
			close;
		}
	}
	close2;
	warp ".pkmap_1$",0,0;
	break;
	case 2:
	for( .@j = 0; .@j < .size; .@j++ )
	{
		if( countitem(.Ban_Item_Donator[.@j]) )
		{
			mes .n$;
			mes "Please put away your ^FF0000"+ getitemname( .Ban_Item_Donator[.@j] ) +"^000000 in storage before entering the PvP Area.";
			close;
		}
	}
	close2;
	warp ".pkmap_2$",0,0;
	break;
	case 3:
	for( .@j = 0; .@j < .size; .@j++ )
	{
		if( countitem(.Ban_Item_All[.@j]) )
		{
			mes .n$;
			mes "Please put away your ^FF0000"+ getitemname( .Ban_Item_All[.@j] ) +"^000000 in storage before entering the PvP Area.";
			close;
		}
	}
	close2;
	warp ".pkmap_3$",0,0;
	break;
}
end;

OnInit:
	.n$ = "[ PvP Arena ]";
	
	setarray .Ban_Item_NonDonator,501,502,503;
	setarray .Ban_Item_Donator,501,502,503;
	setarray .Ban_Item_All,501,502,503;
	
	.pkmap_1$ = "guild_vs1";
	.pkmap_2$ = "guild_vs2";
	.pkmap_3$ = "guild_vs3";

	.size = getarraysize(.Ban_Item_NonDonator);
	.size = getarraysize(.Ban_Item_Donator);
	.size = getarraysize(.Ban_Item_All);	
	end;
}



Raw Link: http://immortalsro.com/rAScripts/pvp_options.txt

Edited by Kaze

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