Jump to content
  • 0

request for seperate pvp for trans and 3rd job in one npc


Enoch

Question


  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.02
  • Content Count:  65
  • Reputation:   0
  • Joined:  10/21/19
  • Last Seen:  

good day i would like to request a pvp script one npc but 2 option 1 Trans pvp 3rd job cant enter, option 2 3rd job pvp trans cant enter thank you, same with woe castle if trans woe 3rd job cant enter and if 3rd job woe trans cant enter 

 

here is my pvp script how can i add that restrictions

 

core,141,124,5    script    PvP Warper::PvP Warper    4_M_FAIRYSOLDIER,{
mes "[ ^0065DFPVP Warper^000000 ]";
mes "Welcome To PvP Warper";
mes "I Can Help You Warp To PVP Room";
next;
mes "[ ^0065DFPvP Warper^000000 ]";
mes "You Ready?";
switch(select("^6ED1E1Trans Martial Arts^000000 - ^FF0000["+getmapusers("dbz_tour")+"]^000000 Players.:^FF33CC3rd Job Arena^000000 - ^FF0000["+getmapusers("cell_game")+"]^000000 Players.:^BAB9B9Coliseum Guild Arena^000000 - ^FF0000["+getmapusers("coliseum")+"]^000000 Players.:^FF7F00PvP Champion^000000 - ^FF0000["+getmapusers("1@ge_st")+"^000000 Players.:No")) {
    case 1:
        announce "[ "+ strcharinfo(0) +" ] has joined Trans Martial Arts",0,0x6ED1E1; //announce and end
        switch( rand(1,6) ){
        case 1:    warp "dbz_tour", 85, 118; end;
        case 2:    warp "dbz_tour", 109, 118; end;
        case 3:    warp "dbz_tour", 108, 93; end;
        case 4:    warp "dbz_tour", 86, 92; end;
        case 5:    warp "dbz_tour", 96, 106; end;
        case 6:    warp "dbz_tour", 98, 129; end;
        }
    case 2:
        announce "[ "+ strcharinfo(0) +" ] has joined 3rd Job Arena",0,0xFF33CC; //announce and end
        warp "cell_game",0,0;
        end;

    case 3:
        announce "[ "+ strcharinfo(0) +" ] has joined Coliseum Guild Arena",0,0xBAB9B9; //announce and end
        switch( rand(1,6) ){
        case 1:    warp "coliseum", 70, 103; end;
        case 2:    warp "coliseum", 86, 86; end;
        case 3:    warp "coliseum", 117, 96; end;
        case 4:    warp "coliseum", 105, 72; end;
        case 5:    warp "coliseum", 128, 77; end;
        case 6:    warp "coliseum", 69, 75; end;
        }

    case 4:
        if(Class != .class) {
            mes "I'm sorry, but only "+jobname(.class)+"s are allowed to join this PvP Room.";
            close;
        }
        mes "Do you want to go to the PvP Room?";
        if(select("- Yes:- No") - 1) close;
        close2;
        announce "[ "+ strcharinfo(0) +" ] has entered Champion 1 On 1  Arena!!",0,0x00BFFF; //announce and end
        warp "1@ge_st",0,0;
        end;

        OnInit:
        set .n$,"["+strnpcinfo(1)+"]"; // NPC Name
        set .class,4016; // Allowed Class
        end;    
    case 5:
        close;
}
 

Edited by Enoch
missing question
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.01
  • Content Count:  241
  • Reputation:   18
  • Joined:  06/04/14
  • Last Seen:  

On 1/21/2022 at 5:27 AM, Enoch said:

good day i would like to request a pvp script one npc but 2 option 1 Trans pvp 3rd job cant enter, option 2 3rd job pvp trans cant enter thank you, same with woe castle if trans woe 3rd job cant enter and if 3rd job woe trans cant enter 

 

here is my pvp script how can i add that restrictions

 

core,141,124,5    script    PvP Warper::PvP Warper    4_M_FAIRYSOLDIER,{
mes "[ ^0065DFPVP Warper^000000 ]";
mes "Welcome To PvP Warper";
mes "I Can Help You Warp To PVP Room";
next;
mes "[ ^0065DFPvP Warper^000000 ]";
mes "You Ready?";
switch(select("^6ED1E1Trans Martial Arts^000000 - ^FF0000["+getmapusers("dbz_tour")+"]^000000 Players.:^FF33CC3rd Job Arena^000000 - ^FF0000["+getmapusers("cell_game")+"]^000000 Players.:^BAB9B9Coliseum Guild Arena^000000 - ^FF0000["+getmapusers("coliseum")+"]^000000 Players.:^FF7F00PvP Champion^000000 - ^FF0000["+getmapusers("1@ge_st")+"^000000 Players.:No")) {
    case 1:
        announce "[ "+ strcharinfo(0) +" ] has joined Trans Martial Arts",0,0x6ED1E1; //announce and end
        switch( rand(1,6) ){
        case 1:    warp "dbz_tour", 85, 118; end;
        case 2:    warp "dbz_tour", 109, 118; end;
        case 3:    warp "dbz_tour", 108, 93; end;
        case 4:    warp "dbz_tour", 86, 92; end;
        case 5:    warp "dbz_tour", 96, 106; end;
        case 6:    warp "dbz_tour", 98, 129; end;
        }
    case 2:
        announce "[ "+ strcharinfo(0) +" ] has joined 3rd Job Arena",0,0xFF33CC; //announce and end
        warp "cell_game",0,0;
        end;

    case 3:
        announce "[ "+ strcharinfo(0) +" ] has joined Coliseum Guild Arena",0,0xBAB9B9; //announce and end
        switch( rand(1,6) ){
        case 1:    warp "coliseum", 70, 103; end;
        case 2:    warp "coliseum", 86, 86; end;
        case 3:    warp "coliseum", 117, 96; end;
        case 4:    warp "coliseum", 105, 72; end;
        case 5:    warp "coliseum", 128, 77; end;
        case 6:    warp "coliseum", 69, 75; end;
        }

    case 4:
        if(Class != .class) {
            mes "I'm sorry, but only "+jobname(.class)+"s are allowed to join this PvP Room.";
            close;
        }
        mes "Do you want to go to the PvP Room?";
        if(select("- Yes:- No") - 1) close;
        close2;
        announce "[ "+ strcharinfo(0) +" ] has entered Champion 1 On 1  Arena!!",0,0x00BFFF; //announce and end
        warp "1@ge_st",0,0;
        end;

        OnInit:
        set .n$,"["+strnpcinfo(1)+"]"; // NPC Name
        set .class,4016; // Allowed Class
        end;    
    case 5:
        close;
}
 

I've seen that you already created a thread about this one on this thread.

 

And then this might be an old thread but this might help you get the idea of it.

Basically the script you provided should work. You just need to add the conditional statements the way how you want it to work for class.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  177
  • Reputation:   25
  • Joined:  12/24/14
  • Last Seen:  


core,141,124,5	script	PvP Warper::PvP Warper	4_M_FAIRYSOLDIER,{
	mes ""+.n$;
	mes "Welcome To PvP Warper";
	next;
	switch (select("^6ED1E1Trans Martial Arts^000000 - ^FF0000["+getmapusers("dbz_tour")+"]^000000 Players.",
			"^FF33CC3rd Job Arena^000000 - ^FF0000["+getmapusers("cell_game")+"]^000000 Players.",
			"^BAB9B9Coliseum Guild Arena^000000 - ^FF0000["+getmapusers("coliseum")+"]^000000 Players.",
			"^FF7F00PvP Champion^000000 - ^FF0000["+getmapusers("1@ge_st")+"]^000000 Players.",
			"Cancel")) {
		case 1:
			if (Class >= 4008 && Class <= 4022) {		// Allows any Trans Class, Lord Knight - Paladin
				announce "[ "+ strcharinfo(0) +" ] has joined Trans Martial Arts",0,0x6ED1E1; //announce and end
				switch( rand(1,6) ){
					case 1:
						warp "dbz_tour", 85, 118;
						end;
					case 2:
						warp "dbz_tour", 109, 118;
						end;
					case 3:
						warp "dbz_tour", 108, 93;
						end;
					case 4:
						warp "dbz_tour", 86, 92;
						end;
					case 5:
						warp "dbz_tour", 96, 106;
						end;
					case 6:
						warp "dbz_tour", 98, 129;
						end;
				}
			}
			mes ""+.n$;
			mes "I'm sorry, but only ^FF0000 Transcendent Job^000000 are allowed to join this PvP Room.";
			close;

		case 2:
			if (Class >= 4054 && Class <= 4079) {		// Allows any 3rd Class, Rune Knight, etc
				announce "[ "+ strcharinfo(0) +" ] has joined 3rd Job Arena",0,0xFF33CC; //announce and end
				warp "cell_game",0,0;
				end;
			}
			mes ""+.n$;
			mes "I'm sorry, but only ^FF0000 3rd Job^000000 are allowed to join this PvP Room.";
			close;

		case 3:
			announce "[ "+ strcharinfo(0) +" ] has joined Coliseum Guild Arena",0,0xBAB9B9; //announce and end
			switch( rand(1,6) ){
				case 1:
					warp "coliseum", 70, 103;
					end;
				case 2:
					warp "coliseum", 86, 86;
					end;
				case 3:
					warp "coliseum", 117, 96;
					end;
				case 4:
					warp "coliseum", 105, 72;
					end;
				case 5:
					warp "coliseum", 128, 77;
					end;
				case 6:
					warp "coliseum", 69, 75;
					end;
			}

		case 4:
			for ( .@i = 0; .@i < getarraysize(.@item_list); .@i = .@i + 1 )
			if (Class == .class[.@i]) {
				announce "[ "+ strcharinfo(0) +" ] has entered Champion 1 On 1  Arena!!",0,0x00BFFF; //announce and end
				warp "1@ge_st",0,0;
				end;
			}
			mes ""+.n$;
			mes "I'm sorry, but only "+jobname(.class[0])+" & "+jobname(.class[1])+" are allowed to join this PvP Room.";
			close;
    
		case 5:
			mes ""+.n$;
			mes "See you ~";
			close;
	}

OnInit:
	set .n$,"[ ^0065DF"+strnpcinfo(1)+"^000000 ]";	// NPC Name
	setarray .class[0],15,4016,4077;		// Allowed Class
	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...