Jump to content
  • 0

pvp room


darking123

Question


  • Group:  Members
  • Topic Count:  318
  • Topics Per Day:  0.07
  • Content Count:  931
  • Reputation:   13
  • Joined:  12/20/11
  • Last Seen:  

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

Link to comment
Share on other sites

6 answers to this question

Recommended Posts


  • Group:  Developer
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1443
  • Reputation:   344
  • Joined:  10/17/12
  • Last Seen:  

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;
}
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  318
  • Topics Per Day:  0.07
  • Content Count:  931
  • Reputation:   13
  • Joined:  12/20/11
  • Last Seen:  

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?

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1443
  • Reputation:   344
  • Joined:  10/17/12
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  318
  • Topics Per Day:  0.07
  • Content Count:  931
  • Reputation:   13
  • Joined:  12/20/11
  • Last Seen:  

help

 

2eyyk4n.png

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  318
  • Topics Per Day:  0.07
  • Content Count:  931
  • Reputation:   13
  • Joined:  12/20/11
  • Last Seen:  

bump!

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   616
  • Joined:  07/05/12
  • Last Seen:  

post-5984-0-86069700-1374000050_thumb.png

This error means your script miss a bracket at line * 7

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