Jump to content
  • 0

pvp change


toohot22

Question


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  56
  • Reputation:   0
  • Joined:  11/05/12
  • Last Seen:  

Hi all

 

Could someone be kind to make a small change to this script

i would like the player to be respawned in the pvp aruna or to there save point if this is possable

 

prontera.gat,162,183,6 script PvP Warper 939,{

mes "[PvP Warper]";
mes "Which arena do you want to go to?";
next;
switch(select("PVP Arena["+getmapusers("pvp_y_1-2")+"/100]:Baby PvP  Room ["+getmapusers("pvp_y_5-2")+"/100]")) {


case 1: // Normal Pvp
if (getmapusers("pvp_y_1-2") > 99) callsub S_full;
sc_end SC_ALL;
percentheal 100,100;
sc_start SC_BLESSING,300000,10;
sc_start SC_INCREASEAGI,300000,10;
specialeffect2 EF_BLESSING;
specialeffect2 EF_INCAGILITY;
warp "pvp_y_1-2",0,0;
end;




Case 2: // Baby 3rd job PvP Room
if (getmapusers("pvp_y_5-2") > 99) callsub S_full;
if (class < 4096 || class > 4108) goto L_Not3Baby;
warp "pvp_y_5-2",0,0;
end;
L_Not3Baby:
mes "[PvP Warper]";
mes "Only  baby class can enter this room";
close; 

}

S_full:
mes "[PvP Warper]";
mes "I'm sorry, this arena is full.  Please try again later...";
close;

}

thanks inadvance

Link to comment
Share on other sites

1 answer to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  188
  • Reputation:   16
  • Joined:  06/12/12
  • Last Seen:  


prontera.gat,162,183,6 script PvP Warper 939,{

mes "[PvP Warper]";

mes "Which arena do you want to go to?";

next;

switch(select("PVP Arena["+getmapusers("pvp_y_1-2")+"/100]:Baby PvP  Room ["+getmapusers("pvp_y_5-2")+"/100]")) {

case 1: // Normal Pvp

if (getmapusers("pvp_y_1-2") > 99) callsub S_full;

sc_end SC_ALL;

percentheal 100,100;

sc_start SC_BLESSING,300000,10;

sc_start SC_INCREASEAGI,300000,10;

specialeffect2 EF_BLESSING;

specialeffect2 EF_INCAGILITY;

warp "pvp_y_1-2",0,0;

OnPCDieEvent:

if( strcharinfo(3) == "pvp_n_1-2" ){

    sleep2 100;

    atcommand "@Alive";

    warp strcharinfo(3),0,0;

}

end;

Case 2: // Baby 3rd job PvP Room

if (getmapusers("pvp_y_5-2") > 99) callsub S_full;

if (class < 4096 || class > 4108) goto L_Not3Baby;

warp "pvp_y_5-2",0,0;

OnPCDieEvent:

if( strcharinfo(3) == "pvp_y_5-2" ){

    sleep2 100;

    atcommand "@Alive";

    warp strcharinfo(3),0,0;

}

end;

L_Not3Baby:

mes "[PvP Warper]";

mes "Only  baby class can enter this room";

close;

}

S_full:

mes "[PvP Warper]";

mes "I'm sorry, this arena is full.  Please try again later...";

close;

}

 

Edited by Rayan
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...