darking123 Posted July 7, 2013 Posted July 7, 2013 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 Quote
Stolao Posted July 7, 2013 Posted July 7, 2013 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; } Quote
darking123 Posted July 8, 2013 Author Posted July 8, 2013 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? Quote
Stolao Posted July 8, 2013 Posted July 8, 2013 (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 July 8, 2013 by Stolao Quote
Capuche Posted July 16, 2013 Posted July 16, 2013 This error means your script miss a bracket at line * 7 Quote
Question
darking123
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.