Jump to content
  • 0

Requesting a script for assassin job only can enter inside the pvp room


Astro Young

Question


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  10
  • Reputation:   0
  • Joined:  06/12/22
  • Last Seen:  

Requesting a script for

1. assassin job only can enter inside the pvp room 

2. only custom item will allowed to use inside the sinx pvp room

thanks in advance!

here's my script 

 

prt_ext,165,138,5    script    PvP Arena    574,{

if(agitcheck()) goto nowoetime;
mes "[PvP Battle Room]";
mes "Let's Go!!!!!";
menu    
    "No limit [" + getmapusers("guild_vs3") + "]",pvp1, 
    "Non Donate [" + getmapusers("guild_vs4") + "]",spvp,
    "Guild vs Guild [" + getmapusers("guild_vs2") + "]",gvg1; 
    nowoetime:
    mes "[PvP Warper]";
    mes "You cannot enter to PvP Room during WoE!";
    close;

pvp1:
    warp "guild_vs3",0,0;
    announce ""+ strcharinfo(0) +" Has Entered The PVP Room.",bc_all; 
    close;
gvg1:
    warp "guild_vs2",0,0;
    announce ""+ strcharinfo(0) +" Has Entered The GVG Room.",bc_all; 
    close;
spvp:
    if(countitem(59138) > 0 
    || countitem(59139) > 0 
    || countitem(59140) > 0
    || countitem(59141) > 0

    || countitem(59142) > 0
    || countitem(59143) > 0
    || countitem(59144) > 0

    || countitem(59145) > 0
    || countitem(59146) > 0
    || countitem(59147) > 0

    || countitem(59148) > 0
    || countitem(59149) > 0
    || countitem(59155) > 0

    || countitem(59150) > 0
    || countitem(59151) > 0
    || countitem(59152) > 0
    || countitem(59153) > 0
    || countitem(59154) > 0


    //donate weapon
    || countitem(59000) > 0
    || countitem(59001) > 0
    || countitem(59002) > 0
    || countitem(59003) > 0
    || countitem(59004) > 0
    || countitem(59005) > 0
    || countitem(59006) > 0
    || countitem(59007) > 0 
    || countitem(59008) > 0
    || countitem(59009) > 0
    || countitem(59010) > 0
    || countitem(59011) > 0
    || countitem(59012) > 0 
    || countitem(59013) > 0
    || countitem(59014) > 0


    //Pointers
    || countitem(501) > 0) 
goto donator; 
    warp "guild_vs4",0,0;
    announce ""+ strcharinfo(0) +" Has Entered The PVP Room Non Donate.",bc_all; 
    close;
        
donator:
    mes "You are a donator you are not allowed to this room";

    

      close; 


//OnPCDieEvent:
//set @Die,@Die + 1;
//if( @Die % 2 == 0 ) warp "SavePoint",0,0;
//end; 

}

//Mapflag


guild_vs4    mapflag    pvp 
guild_vs4    mapflag    nowarp
guild_vs4    mapflag    nowarpto
guild_vs4    mapflag    noreturn
guild_vs4    mapflag    nosave    SavePoint 
guild_vs4    mapflag    notrade


guild_vs3    mapflag    pvp 
guild_vs3    mapflag    nowarp
guild_vs3    mapflag    nowarpto
guild_vs3    mapflag    noreturn 
guild_vs3    mapflag    nosave    SavePoint
guild_vs3    mapflag    noicewall
guild_vs3    mapflag    pvp_noparty
guild_vs3    mapflag    pvp_noguild
guild_vs4    mapflag    notrade


guild_vs2    mapflag    pvp 
guild_vs2    mapflag    nowarp
guild_vs2    mapflag    nowarpto
guild_vs2    mapflag    noreturn
guild_vs2    mapflag    nosave    SavePoint


 


-    script    DOTAPVP    -1,{

OnInit:

// Config
 set .sound, 2; // soundeffect : 0 - disable, 1 - play soundeffect to all players on map, 2 - play soundeffect to an area around the killer, 3 - play soundeffect to killer only
 set .ownage, 2; // ownage announcement : 0 - disable, 1 - party owns, 2 - guild owns
 set .announce, 0; // make announce to : 0 - global, 1 - map
 set .announcemap, 1; // announce the map name in the announcement ? : 0 - off, 1 - on

 set .announcekill, 1; // announce who pawn who's head : 0 - off, 1- on
 set .msg_die, 0; // show message who kill you when die : 0 - off, 1- on
 set .msg_kill, 0; // show message you kill who when killed someone : 0 - off, 1- on

 set .gmnokill, 0; // GMs are not suppose to kill players. A GM with <this number> level or higher will do nothing. IF set to 60, GM60 and above kill any player will not get anything : 0 - off

 set .killingspree, 3;
 set .dominating, 4;
 set .megakill, 5;
 set .unstoppable, 6;
 set .wickedsick, 7;
 set .monsterkill, 8;
 set .godlike, 9;
 set .holyshit, 10;
 set .continue, 1; // after beyond-godlike, every <this number> kills will make announcement again

 set .owned, 5; // how many times the party/guild has to kill to announce ownage
 set .owncontinue, 1; // after ownage, every <this number> party/guild cumulative kills will make ownage announce again

 setarray .maptrigger$, // only these maps will trigger this script
  "all", // comment this line to only trigger this script on these listed maps
  "guild_vs1",
  "guild_vs2",
  "guild_vs3",
  "guild_vs4",
  "guild_vs5",
  "guild_vs2-1";

 // anti-sit-killer system
 // a player must kill another player with this minimum <this number> level to get the announcement and in the ladder.
 // Otherwise only have streak ended announcement and killed player's streak reset.
 // Its possible for a level 1 novice to kill a level 55 player and he/she will still get in the ladder
 // but a level 55 kill a level 1 player will get nothing
 // 0 - off this system ( default is 55, pk setting )
 set .lvltokill, 0;

 // when a player kill another same player <this number> times in a row, the player is warp back to save point.
 // and the player's streak and ownage count will deduct accordingly
 // 0 - off this system
 set .counttopunish, 0; 

 // minimum level range to kill another player
 // eg. when set to 20, player level 99 needs to kill another player with minimum level of 79 to get announcement and increase the kill rank.
 // but a player with base level 50 kills a level 99 will also get the announcement
 // higher base level cannot kill lower level, but lower level can kill higher level
 // 0 - off this system
 set .minlvlrange, 0;

// Config ends ------------------------------------------------------------------------------------------

// to prevent bug happen
 if ( .ownage < 0 || .ownage > 2 ) set .ownage, 0;
 if ( .announce < 0 || .announce > 1 ) set .announce,0;
 if ( .continue < 1 ) set .continue, 1;
 if ( .owncontinue < 1 ) set .owncontinue, 1;
 if ( .gmnokill <= 0 ) set .gmnokill, 100;
 if ( .lvltokill <= 1 ) set .lvltokill, 0;
 if ( .counttopunish <= 1 ) set .counttopunish, 0;
 set .maptriggersize, getarraysize(.maptrigger$);
 end;

// script start
OnPCKillEvent:
 if ( getgmlevel() >= .gmnokill ) end;
 getmapxy .@map$, .@x, .@y;
 if ( .maptrigger$ != "all" ) {
  for ( set .@i, 0; .@i < .maptriggersize; set .@i, .@i +1 ) {
   if ( .@map$ == .maptrigger$[.@i] ) break;
  }
  if ( .@i == .maptriggersize ) end;
 }
 attachrid killedrid;
  if ( killerrid != getcharid(3) && ( .msg_die || .msg_kill ) ) {
   if ( .msg_die ) message strcharinfo(0),"You have been killed by "+ rid2name(killerrid);
   if ( .msg_kill ) message rid2name(killerrid),"You just killed "+ strcharinfo(0);
  }
  if ( @PlayersKilledStreak >= .holyshit )
   set .@streakname$,"Beyond Godlike";
  else if ( @PlayersKilledStreak >= .godlike )
   set .@streakname$,"Godlike";
  else if ( @PlayersKilledStreak >= .monsterkill )
   set .@streakname$,"Monster Kill";
  else if ( @PlayersKilledStreak >= .wickedsick )
   set .@streakname$,"Wicked Sick";
  else if ( @PlayersKilledStreak >= .unstoppable )
   set .@streakname$,"Unstoppable";
  else if ( @PlayersKilledStreak >= .megakill )
   set .@streakname$,"Mega-kill";
  else if ( @PlayersKilledStreak >= .dominating )
   set .@streakname$,"Dominating";
  else if ( @PlayersKilledStreak >= .killingspree )
   set .@streakname$,"Killing Spree";
 if ( @PlayersKilledStreak >= .killingspree && killerrid == getcharid(3) )
  announce strcharinfo(0) +" has ended "+( (sex)?"him":"her" )+" own "+ .@streakname$ +"["+ @PlayersKilledStreak +"] streak "+( (.announcemap)?("at "+ .@map$):""),16|.announce;
 else if ( @PlayersKilledStreak >= .killingspree )
  announce rid2name(killerrid) +" has ended "+ strcharinfo(0) +"'s "+ .@streakname$ +"["+ @PlayersKilledStreak +"] streak "+( (.announcemap)?("at "+ .@map$):""),16|.announce;
 else if ( .announcekill && killerrid != getcharid(3) )
  announce rid2name(killerrid) +" has pawned "+ strcharinfo(0) +"'s head "+( (.announcemap)?("at "+ .@map$):""),16|.announce;
 set @PlayersKilledStreak,0;
 set @dota_multikills,0;
 if ( .ownage && getcharid(.ownage) ) {
  setd ".dotaown_"+ getcharid(.ownage), 0;
  set .@killedgroup, getcharid(.ownage);
 }
 if ( killerrid == getcharid(3) || baselevel < .lvltokill ) end;
 if ( .minlvlrange ) set .@killedlvl, baselevel;
 attachrid killerrid;
 if ( .minlvlrange && .@killedlvl + .minlvlrange < baselevel ) end;
 if ( .counttopunish ) {
  if ( @sitkillminute != gettime(2) ) {
   deletearray @sitkillid, 128;
   deletearray @sitkilltimes, 128;
   set @sitkillminute, gettime(2);
  }
  set .@sitkillsize, getarraysize(@sitkillid);
  for ( set .@i,0; .@i < .@sitkillsize; set .@i, .@i +1 ) {
   if ( @sitkillid[.@i] != killedrid ) continue;
   else {
    set @sitkilltimes[.@i], @sitkilltimes[.@i] +1 ;
    if ( @sitkilltimes[.@i] >= .counttopunish ) {
     warp "SavePoint",0,0;
     announce strcharinfo(0) +" , Stop killing "+ rid2name(killedrid) + " !!!",0;
     debugmes strcharinfo(0) +" is sit-killing "+ rid2name(killedrid) +" for "+ @sitkilltimes[.@i] + " times";
     logmes "is sit-killing "+ rid2name(killedrid) +" for "+ @sitkilltimes[.@i] +" times";
     set @PlayersKilledStreak, @PlayersKilledStreak +1 - .counttopunish;
     set PlayersKilled, PlayersKilled +1 - .counttopunish;
     if ( .ownage && getcharid(.ownage) )
      setd ".dotaown_"+ getcharid(.ownage), getd(".dotaown_"+ getcharid(.ownage) ) +1 - .counttopunish;
     end;
    }
    break;
   }
  }
  if ( .@i == .@sitkillsize ) {
   set @sitkillid[.@i], killedrid;
   set @sitkilltimes[.@i], 1;
  }
 }
 set @PlayersKilledStreak, @PlayersKilledStreak + 1;
 set PlayersKilled, PlayersKilled + 1;
  if ( @PlayersKilledStreak == .killingspree )
   setarray .@streakname$,"killingspree.wav","is on a KILLING SPREE","!";
  else if ( @PlayersKilledStreak == .dominating )
   setarray .@streakname$,"dominating.wav","is DOMINATING","!";
  else if ( @PlayersKilledStreak == .megakill )
   setarray .@streakname$,"megakill.wav","has a MEGA KILL","!";
  else if ( @PlayersKilledStreak == .unstoppable )
   setarray .@streakname$,"unstoppable.wav","is UNSTOPPABLE","!!";
  else if ( @PlayersKilledStreak == .wickedsick )
   setarray .@streakname$,"wickedsick.wav","is WICKED SICK","!!";
  else if ( @PlayersKilledStreak == .monsterkill )
   setarray .@streakname$,"monsterkill.wav","has a MONSTER KILL","!!";
  else if ( @PlayersKilledStreak == .godlike )
   setarray .@streakname$,"godlike.wav","is GODLIKE","!!!";
  else if ( @PlayersKilledStreak >= .holyshit && ( (@PlayersKilledStreak - .holyshit) % .continue == 0 ) )
   setarray .@streakname$,"triplekill.wav","is BEYOND GODLIKE",". Someone KILL "+( (sex)?"HIM":"HER" ) +"!!!!!!"; 
 if ( .@streakname$[1] != "" ) {
  announce strcharinfo(0) +" "+ .@streakname$[1] +"["+ @PlayersKilledStreak +"] "+( (.announcemap)?("at "+ .@map$):"") + .@streakname$[2],16|.announce;
  if ( .sound == 1 ) soundeffectall .@streakname$[0],0,.@map$;
  else if ( .sound == 2 ) soundeffectall .@streakname$[0],0;
  else if ( .sound == 3 ) soundeffect .@streakname$[0],0;
 }
 set @dota_multikills, @dota_multikills + 1; 
 deltimer "DOTAPVP::OnStreakReset";
 addtimer 18000,"DOTAPVP::OnStreakReset";
 if ( .ownage ) {
  set .@sideid, getcharid(.ownage);
  if ( .@sideid != .@killedgroup ) setd ".dotaown_"+ .@sideid, getd(".dotaown_"+ .@sideid ) + 1;
 }
 set .@dota_multikills, @dota_multikills;
 set .@origin, getcharid(3);
 sleep 1500;
 if ( .@sideid && .ownage && .@sideid != .@killedgroup && getd(".dotaown_"+ .@sideid) >= .owned && ( ( getd(".dotaown_"+ .@sideid) - .owned ) % .owncontinue == 0 ) ) {
  if ( .announce ) mapannounce .@map$, "The "+( (.ownage == 1)?"party":"guild" )+" ["+( (.ownage == 1)?getpartyname(.@sideid):getguildname(.@sideid) )+"] is OWNING["+ getd(".dotaown_"+ .@sideid) +"] !!!",16;
  else announce "The "+( (.ownage == 1)?"party":"guild" )+" ["+( (.ownage == 1)?getpartyname(.@sideid):getguildname(.@sideid) )+"] is OWNING["+ getd(".dotaown_"+ .@sideid) +"] !!!",16;
  if ( .sound == 1 ) soundeffectall "ownage.wav",0,.@map$;
  else if ( .sound == 2 ) soundeffectall "ownage.wav",0;
  else if ( .sound == 3 && attachrid(.@origin) ) soundeffect "ownage.wav",0;
 }
 sleep 1250;
 if ( !attachrid(.@origin) ) end;
 if ( .@dota_multikills == 2 ) {
  if ( .announce ) mapannounce .@map$, strcharinfo(0) +" just got a Double Kill !",16;
  else announce strcharinfo(0) +" just got a Double Kill !",16;
  if ( .sound == 1 ) soundeffectall "doublekill.wav",0,.@map$;
  else if ( .sound == 2 ) soundeffectall "doublekill.wav",0;
  else if ( .sound == 3 ) soundeffect "doublekill.wav",0;
 }
 else if ( .@dota_multikills == 3 ) {
  if ( .announce ) mapannounce .@map$, strcharinfo(0) +" just got a Triple Kill !!!",16;
  else announce strcharinfo(0) +" just got a Triple Kill !!!",16;
  if ( .sound == 1 ) soundeffectall "triplekill.wav",0,.@map$;
  else if ( .sound == 2 ) soundeffectall "triplekill.wav",0;
  else if ( .sound == 3 ) soundeffect "triplekill.wav",0;
 }
 else if ( .@dota_multikills == 4 ) {
  if ( .announce ) mapannounce .@map$, strcharinfo(0) +" just got a Ultra Kill !!!",16;
  else announce strcharinfo(0) +" just got a Ultra Kill !!!",16;
  if ( .sound == 1 ) soundeffectall "ultrakill.wav",0,.@map$;
  else if ( .sound == 2 ) soundeffectall "ultrakill.wav",0;
  else if ( .sound == 3 ) soundeffect "ultrakill.wav",0;
 }
 else if ( .@dota_multikills >= 5 ) {
  if ( .announce ) mapannounce .@map$, strcharinfo(0) +" is on a Rampage !!!",16;
  else announce strcharinfo(0) +" is on a Rampage !!!",16;
  if ( .sound == 1 ) soundeffectall "killingspree.wav",0,.@map$;
  else if ( .sound == 2 ) soundeffectall "killingspree.wav",0;
  else if ( .sound == 3 ) soundeffect "killingspree.wav",0;
 }
 end;
OnWhisperGlobal:
 dispbottom "Your current Streak : "+ @PlayersKilledStreak;
 dispbottom "Your total Kills    : "+ PlayersKilled;
 if ( .ownage && getcharid(.ownage) )
  dispbottom "Your "+( (.ownage ==1)?"party":"guild" )+" Own  : "+ getd(".dotaown_"+ getcharid(.ownage) );
 end;
OnStreakReset:
 set @dota_multikills, 0;
 end;
}

//-    script    Unfro113    -1,{
//OnPCStatCalcEvent:
//if(isequipped(4302)) {    
//bonus2 bSubRace,RC_Player,12; 
//end;
//}
//}

//-    script    Unfro113    -1,{
//OnPCStatCalcEvent:
//if(isequipped(60166)) {    
//if(BaseClass==Job_Taekwon) bonus bstr,5;  
//end;
//}
//}


 

Edited by Astro Young
Link to comment
Share on other sites

8 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  220
  • Reputation:   95
  • Joined:  06/02/12
  • Last Seen:  

Hi

Spoiler
prt_ext,165,138,5	script	PvP Arena	574,{

	if(agitcheck()) goto nowoetime;
	mes "[PvP Battle Room]";
	mes "Let's Go!!!!!";
	menu    
		"No limit [" + getmapusers("guild_vs3") + "]",pvp1, 
		"Non Donate [" + getmapusers("guild_vs4") + "]",spvp,
		"Guild vs Guild [" + getmapusers("guild_vs2") + "]",gvg1,
		"Sinx [" + getmapusers("guild_vs1") + "]",sinx; 
	
nowoetime:
	mes "[PvP Battle Room]";
	mes "You cannot enter to PvP Room during WoE!";
	close;

pvp1:
	warp "guild_vs3",0,0;
	announce ""+ strcharinfo(0) +" Has Entered The PVP Room.",bc_all; 
	close;
gvg1:
	warp "guild_vs2",0,0;
	announce ""+ strcharinfo(0) +" Has Entered The GVG Room.",bc_all; 
	close;
spvp:
	if(countitem(59138) > 0 
	|| countitem(59139) > 0 
	|| countitem(59140) > 0
	|| countitem(59141) > 0

	|| countitem(59142) > 0
	|| countitem(59143) > 0
	|| countitem(59144) > 0

	|| countitem(59145) > 0
	|| countitem(59146) > 0
	|| countitem(59147) > 0

	|| countitem(59148) > 0
	|| countitem(59149) > 0
	|| countitem(59155) > 0

	|| countitem(59150) > 0
	|| countitem(59151) > 0
	|| countitem(59152) > 0
	|| countitem(59153) > 0
	|| countitem(59154) > 0


	//donate weapon
	|| countitem(59000) > 0
	|| countitem(59001) > 0
	|| countitem(59002) > 0
	|| countitem(59003) > 0
	|| countitem(59004) > 0
	|| countitem(59005) > 0
	|| countitem(59006) > 0
	|| countitem(59007) > 0 
	|| countitem(59008) > 0
	|| countitem(59009) > 0
	|| countitem(59010) > 0
	|| countitem(59011) > 0
	|| countitem(59012) > 0 
	|| countitem(59013) > 0
	|| countitem(59014) > 0


	//Pointers
	|| countitem(501) > 0) 
goto donator; 
	warp "guild_vs4",0,0;
	announce ""+ strcharinfo(0) +" Has Entered The PVP Room Non Donate.",bc_all; 
	close;
		
donator:
	mes "You are a donator you are not allowed to this room";
	close; 

sinx:
	//Put the Custom Items IDs here
	setarray .@sinx_CustomItems,2538,2435,2378,2721,13036,13411,1279,13037,13410,1280,2772,2773,2774,1281,1282;

	clear;
	mes "[PvP Battle Room]";
	mes "This room is for ^0000FFAssassin job only^000000.";
	if (BaseJob != Job_Assassin)
		close;
	switch(select("Enter", "Allowed items list", "Cancel")) {
		case 1:
			break;
		case 2:
			clear;
			mes "[PvP Battle Room]";
			mes "You can use only the following inside:";
			for(.@i = 0; .@i < getarraysize(.@sinx_CustomItems); .@i++)
				mes "" + mesitemlink(.@sinx_CustomItems[.@i]);
			if (getarraysize(.@sinx_CustomItems) > 5)
				setdialogsize(280,cap_value(185+((getarraysize(.@sinx_CustomItems)-5)*20),185,600));
			close;
		case 3:
			close;
	}
	getinventorylist;
	for (.@i = 0; .@i < @inventorylist_count; .@i++) {
		.@item_id = @inventorylist_id[.@i];
		if (getiteminfo(.@item_id, ITEMINFO_TYPE) != IT_ARMOR && getiteminfo(.@item_id, ITEMINFO_TYPE) != IT_WEAPON && getiteminfo(.@item_id, ITEMINFO_TYPE) != IT_SHADOWGEAR)
			continue;
		if (inarray(.@sinx_CustomItems, .@item_id) > -1 || inarray(.@has_forbidden, .@item_id) > -1)
			continue;
		.@has_forbidden[.@count++] = .@item_id;
	}
	if (.@has_forbidden[0]) {
		clear;
		mes "[PvP Battle Room]";
		mes "You have forbidden items in your inventory. Store or put them away before entering:";
		for(.@i = 0; .@i < getarraysize(.@has_forbidden); .@i++)
			mes "" + mesitemlink(.@has_forbidden[.@i]);
		if (getarraysize(.@has_forbidden) > 3)
			setdialogsize(280,cap_value(185+((getarraysize(.@has_forbidden)-3)*20),185,600));
		close;
	}
	announce strcharinfo(0) +" has entered the PVP Room Sinx.",bc_all; 
	warp "guild_vs1",0,0;
	end;

//OnPCDieEvent:
//	set @Die,@Die + 1;
//	if( @Die % 2 == 0 ) warp "SavePoint",0,0;
//	end; 

}

 

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  10
  • Reputation:   0
  • Joined:  06/12/22
  • Last Seen:  

Hi i got this error

 

Capture4.PNG

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  220
  • Reputation:   95
  • Joined:  06/02/12
  • Last Seen:  

15 minutes ago, Astro Young said:

Hi i got this error

 

Capture4.PNG

Your rAthena is outdated. You can update it or use this version below:

prt_ext,165,138,5	script	PvP Arena	574,{

	if(agitcheck()) goto nowoetime;
	mes "[PvP Battle Room]";
	mes "Let's Go!!!!!";
	menu    
		"No limit [" + getmapusers("guild_vs3") + "]",pvp1, 
		"Non Donate [" + getmapusers("guild_vs4") + "]",spvp,
		"Guild vs Guild [" + getmapusers("guild_vs2") + "]",gvg1,
		"Sinx [" + getmapusers("guild_vs1") + "]",sinx; 
	
nowoetime:
	mes "[PvP Battle Room]";
	mes "You cannot enter to PvP Room during WoE!";
	close;

pvp1:
	warp "guild_vs3",0,0;
	announce ""+ strcharinfo(0) +" Has Entered The PVP Room.",bc_all; 
	close;
gvg1:
	warp "guild_vs2",0,0;
	announce ""+ strcharinfo(0) +" Has Entered The GVG Room.",bc_all; 
	close;
spvp:
	if(countitem(59138) > 0 
	|| countitem(59139) > 0 
	|| countitem(59140) > 0
	|| countitem(59141) > 0

	|| countitem(59142) > 0
	|| countitem(59143) > 0
	|| countitem(59144) > 0

	|| countitem(59145) > 0
	|| countitem(59146) > 0
	|| countitem(59147) > 0

	|| countitem(59148) > 0
	|| countitem(59149) > 0
	|| countitem(59155) > 0

	|| countitem(59150) > 0
	|| countitem(59151) > 0
	|| countitem(59152) > 0
	|| countitem(59153) > 0
	|| countitem(59154) > 0


	//donate weapon
	|| countitem(59000) > 0
	|| countitem(59001) > 0
	|| countitem(59002) > 0
	|| countitem(59003) > 0
	|| countitem(59004) > 0
	|| countitem(59005) > 0
	|| countitem(59006) > 0
	|| countitem(59007) > 0 
	|| countitem(59008) > 0
	|| countitem(59009) > 0
	|| countitem(59010) > 0
	|| countitem(59011) > 0
	|| countitem(59012) > 0 
	|| countitem(59013) > 0
	|| countitem(59014) > 0


	//Pointers
	|| countitem(501) > 0) 
goto donator; 
	warp "guild_vs4",0,0;
	announce ""+ strcharinfo(0) +" Has Entered The PVP Room Non Donate.",bc_all; 
	close;
		
donator:
	mes "You are a donator you are not allowed to this room";
	close; 

sinx:
	//Put the Custom Items IDs here
	setarray .@sinx_CustomItems,2538,2435,2378,2721,13036,13411,1279,13037,13410,1280,2772,2773,2774,1281,1282;

	clear;
	mes "[PvP Battle Room]";
	mes "This room is for ^0000FFAssassin job only^000000.";
	if (BaseJob != Job_Assassin)
		close;
	switch(select("Enter", "Allowed items list", "Cancel")) {
		case 1:
			break;
		case 2:
			clear;
			mes "[PvP Battle Room]";
			mes "You can use only the following inside:";
			for(.@i = 0; .@i < getarraysize(.@sinx_CustomItems); .@i++)
				mes "" + getitemname(.@sinx_CustomItems[.@i]);
			close;
		case 3:
			close;
	}
	getinventorylist;
	for (.@i = 0; .@i < @inventorylist_count; .@i++) {
		.@item_id = @inventorylist_id[.@i];
		if (getiteminfo(.@item_id, ITEMINFO_TYPE) != IT_ARMOR && getiteminfo(.@item_id, ITEMINFO_TYPE) != IT_WEAPON && getiteminfo(.@item_id, ITEMINFO_TYPE) != IT_SHADOWGEAR)
			continue;
		if (inarray(.@sinx_CustomItems, .@item_id) > -1 || inarray(.@has_forbidden, .@item_id) > -1)
			continue;
		.@has_forbidden[.@count++] = .@item_id;
	}
	if (.@has_forbidden[0]) {
		clear;
		mes "[PvP Battle Room]";
		mes "You have forbidden items in your inventory. Store or put them away before entering:";
		for(.@i = 0; .@i < getarraysize(.@has_forbidden); .@i++)
			mes "" + getitemname(.@has_forbidden[.@i]);
		close;
	}
	announce strcharinfo(0) +" has entered the PVP Room Sinx.",bc_all; 
	warp "guild_vs1",0,0;
	end;

//OnPCDieEvent:
//	set @Die,@Die + 1;
//	if( @Die % 2 == 0 ) warp "SavePoint",0,0;
//	end; 

}

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  10
  • Reputation:   0
  • Joined:  06/12/22
  • Last Seen:  

When i enter the sinx room as assassin my character is stuck on this

screenElysiumRO037.jpg

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  10
  • Reputation:   0
  • Joined:  06/12/22
  • Last Seen:  

I still enter the room with a custom item.. i already change the customItem but still can enter

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  220
  • Reputation:   95
  • Joined:  06/02/12
  • Last Seen:  

17 minutes ago, Astro Young said:

I still enter the room with a custom item.. i already change the customItem but still can enter

That's your request, right? "only custom item will allowed to use inside the sinx pvp room".

Is it allow custom items and block everything else or block custom items and allow everything else?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  10
  • Reputation:   0
  • Joined:  06/12/22
  • Last Seen:  

hi sir block custom items and allow everything.. thanks!!

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  220
  • Reputation:   95
  • Joined:  06/02/12
  • Last Seen:  

44 minutes ago, Astro Young said:

hi sir block custom items and allow everything.. thanks!!

 

👍

prt_ext,165,138,5	script	PvP Arena	574,{

	if(agitcheck()) goto nowoetime;
	mes "[PvP Battle Room]";
	mes "Let's Go!!!!!";
	menu    
		"No limit [" + getmapusers("guild_vs3") + "]",pvp1, 
		"Non Donate [" + getmapusers("guild_vs4") + "]",spvp,
		"Guild vs Guild [" + getmapusers("guild_vs2") + "]",gvg1,
		"Sinx [" + getmapusers("guild_vs1") + "]",sinx; 
	
nowoetime:
	mes "[PvP Battle Room]";
	mes "You cannot enter to PvP Room during WoE!";
	close;

pvp1:
	warp "guild_vs3",0,0;
	announce ""+ strcharinfo(0) +" Has Entered The PVP Room.",bc_all; 
	close;
gvg1:
	warp "guild_vs2",0,0;
	announce ""+ strcharinfo(0) +" Has Entered The GVG Room.",bc_all; 
	close;
spvp:
	if(countitem(59138) > 0 
	|| countitem(59139) > 0 
	|| countitem(59140) > 0
	|| countitem(59141) > 0
	|| countitem(59142) > 0
	|| countitem(59143) > 0
	|| countitem(59144) > 0
	|| countitem(59145) > 0
	|| countitem(59146) > 0
	|| countitem(59147) > 0
	|| countitem(59148) > 0
	|| countitem(59149) > 0
	|| countitem(59155) > 0
	|| countitem(59150) > 0
	|| countitem(59151) > 0
	|| countitem(59152) > 0
	|| countitem(59153) > 0
	|| countitem(59154) > 0
	//donate weapon
	|| countitem(59000) > 0
	|| countitem(59001) > 0
	|| countitem(59002) > 0
	|| countitem(59003) > 0
	|| countitem(59004) > 0
	|| countitem(59005) > 0
	|| countitem(59006) > 0
	|| countitem(59007) > 0 
	|| countitem(59008) > 0
	|| countitem(59009) > 0
	|| countitem(59010) > 0
	|| countitem(59011) > 0
	|| countitem(59012) > 0 
	|| countitem(59013) > 0
	|| countitem(59014) > 0
	
//Pointers
	|| countitem(501) > 0) 
		goto donator; 
	warp "guild_vs4",0,0;
	announce ""+ strcharinfo(0) +" Has Entered The PVP Room Non Donate.",bc_all; 
	close;
		
donator:
	mes "You are a donator you are not allowed to this room";
	close; 

sinx:
	//Put the Custom Items IDs here
	setarray .@sinx_CustomItems,59000,59001,59002,59003,59004,59005,59006,59007,
					59008,59009,59010,59011,59012,59013,59014,59138,59139,59140,
					59141,59142,59143,59144,59145,59146,59147,59148,59149,59150,
					59151,59152,59153,59154,59155;

	clear;
	mes "[PvP Battle Room]";
	mes "This room is for ^0000FFAssassin job only^000000.";
	if (BaseJob != Job_Assassin)
		close;
	switch(select("Enter", "Restricted items list", "Cancel")) {
		case 1:
			break;
		case 2:
			clear;
			mes "[PvP Battle Room]";
			mes "You can't use the following inside:";
			for(.@i = 0; .@i < getarraysize(.@sinx_CustomItems); .@i++)
				mes "" + getitemname(.@sinx_CustomItems[.@i]);
			close;
		case 3:
			close;
	}
	for (.@i = 0; .@i < getarraysize(.@sinx_CustomItems); .@i++) {
		if (countitem(.@sinx_CustomItems[.@i]))
			.@has_forbidden[.@count++] =.@sinx_CustomItems[.@i];
	}
	if (.@has_forbidden[0]) {
		clear;
		mes "[PvP Battle Room]";
		mes "You can't enter the room with the following items in your inventory:";
		for(.@i = 0; .@i < getarraysize(.@has_forbidden); .@i++)
			mes "" + getitemname(.@has_forbidden[.@i]);
		close;
	}
	announce strcharinfo(0) +" has entered the PVP Room Sinx.",bc_all; 
	warp "guild_vs1",0,0;
	end;

//OnPCDieEvent:
//	set @Die,@Die + 1;
//	if( @Die % 2 == 0 ) warp "SavePoint",0,0;
//	end; 

}

 

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