Jump to content

Question

Posted

i am using 3ceam svn

i am requesting for pvproom script 3 in 1(non donator pvp room, donator pvp room, pvp for all)

in the script i should add the items that are prohibited to the specific pvp room also what items are only available on a pvp room

6 answers to this question

Recommended Posts

Posted

something like this? (untested)

map,x,y,f	script	name	1,{
	mes .Name$;
	mes "Which Pvp would you like to join?";
	switch(select(((#donor)?":Donor":"Non-Donor:")+":Anyone")){
		case 1:
			for(set .@x,0; .@x < getarraysize(Ban_Itm_NonDoner); set .@x,.@x + 1){
				if(countitem(Ban_Itm_NonDoner[.@x]){
					mes "Please put away your"+ getitemname(Ban_Itm_NonDoner[.@x]) in storage before continuing;
					 close;
				}
			}
		close2;
		warp "Pvp_1",0,0;
		break;
		case 2:
			for(set .@x,0; .@x < getarraysize(Ban_Itm_Doner); set .@x,.@x + 1){
				if(countitem(Ban_Itm_Doner[.@x]){
					mes "Please put away your"+ getitemname(Ban_Itm_Doner[.@x]) in storage before continuing;
					 close;
				}
			}
		close2;
		warp "Pvp_2",0,0;
		break;
		case 3:
			for(set .@x,0; .@x < getarraysize(Ban_Itm_All); set .@x,.@x + 1){
				if(countitem(Ban_Itm_All[.@x]){
					mes "Please put away your"+ getitemname(Ban_Itm_All[.@x]) in storage before continuing;
					 close;
				}
			}
		close2;
		warp "Pvp_3",0,0;
		break;
	}
end;
OnInit:
	set .Name$,"[NPC Name]";
	setarray Ban_Itm_NonDoner,512;
	setarray Ban_Itm_Doner,512;
	setarray Ban_Itm_All,512;
end;
}
Posted

something like this? (untested)

map,x,y,f	script	name	1,{
	mes .Name$;
	mes "Which Pvp would you like to join?";
	switch(select(((#donor)?":Donor":"Non-Donor:")+":Anyone")){
		case 1:
			for(set .@x,0; .@x < getarraysize(Ban_Itm_NonDoner); set .@x,.@x + 1){
				if(countitem(Ban_Itm_NonDoner[.@x]){
					mes "Please put away your"+ getitemname(Ban_Itm_NonDoner[.@x]) in storage before continuing;
					 close;
				}
			}
		close2;
		warp "Pvp_1",0,0;
		break;
		case 2:
			for(set .@x,0; .@x < getarraysize(Ban_Itm_Doner); set .@x,.@x + 1){
				if(countitem(Ban_Itm_Doner[.@x]){
					mes "Please put away your"+ getitemname(Ban_Itm_Doner[.@x]) in storage before continuing;
					 close;
				}
			}
		close2;
		warp "Pvp_2",0,0;
		break;
		case 3:
			for(set .@x,0; .@x < getarraysize(Ban_Itm_All); set .@x,.@x + 1){
				if(countitem(Ban_Itm_All[.@x]){
					mes "Please put away your"+ getitemname(Ban_Itm_All[.@x]) in storage before continuing;
					 close;
				}
			}
		close2;
		warp "Pvp_3",0,0;
		break;
	}
end;
OnInit:
	set .Name$,"[NPC Name]";
	setarray Ban_Itm_NonDoner,512;
	setarray Ban_Itm_Doner,512;
	setarray Ban_Itm_All,512;
end;
}

i'm gonna try this out but where can i set the items that are prohibited..and does this works in 3ceam svn?

Posted (edited)

it should.

 

and each pvp room has its own banned items

    setarray Ban_Itm_NonDoner,512;
    setarray Ban_Itm_Doner,512;
    setarray Ban_Itm_All,512;

its an array so up to 128 items per room

Edited by Stolao

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