Jump to content

Question

Posted (edited)

How to add announcer for this script(when a players enters the pvp room)

prontera,162,190,4    script    PvP Warper    651,{

mes .Npc_Name$;

mes "Hello!";

switch(select("Free For All PvP:Party PvP:1v1 PvP")) {

next;

mes .Npc_Name$;

case 1:

mes "Goodluck!";

specialeffect2 EF_EARTHSPIKE;
specialeffect2 EF_DEVIL;
specialeffect2 EF_COIN;
specialeffect2 EF_SIGHTRASHER;
sleep2 1000;

warp .Map$[0],0,0;

close; break;

case 2:

if( strcharinfo(1) == "" ) {

mes "You must have a party in order to enter!";

close;

}

mes "Goodluck!";

warp .Map$[1],0,0;

specialeffect2 EF_EARTHSPIKE;
specialeffect2 EF_DEVIL;
specialeffect2 EF_COIN;
specialeffect2 EF_SIGHTRASHER;
sleep2 1000;

close; break;

case 3:

if(getmapusers(.Map$[2]) > 1) {

mes "There are people fighting in this map!";

close;

}

mes "Goodluck!";

specialeffect2 EF_EARTHSPIKE;
specialeffect2 EF_DEVIL;
specialeffect2 EF_COIN;
specialeffect2 EF_SIGHTRASHER;
sleep2 1000;

warp .Map$[2],0,0;

close; break;

}

end;

OnInit:

.Npc_Name$ = "[^0000FF "+strnpcinfo(1)+" ^000000]";

setarray .Map$[0],"guild_vs2","guild_vs3","guild_vs1";

end;

}

//-------exitnpc---free for all
guild_vs2,93,50,3    script    PvP Exit#0    497,{

// ==============================================================

set .@n$,"^0000FF[ PvP Exit ]^000000";

// ==============================================================

mes .@n$;

mes "PvP exit ??";

next;

switch(select("Yes!:No!")) {

case 1:

warp "prontera",156,191;

close;

case 2:

mes .@n$;

mes "Okay bye!";

close;

}

}

 

Edited by Cyro
use code box

2 answers to this question

Recommended Posts

  • 0
Posted
prontera,162,190,4    script    PvP Warper    651,{

mes .Npc_Name$;

mes "Hello!";

switch(select("Free For All PvP:Party PvP:1v1 PvP")) {

next;

mes .Npc_Name$;

case 1:

mes "Goodluck!";

specialeffect2 EF_EARTHSPIKE;
specialeffect2 EF_DEVIL;
specialeffect2 EF_COIN;
specialeffect2 EF_SIGHTRASHER;
sleep2 1000;

warp .Map$[0],0,0;
    announce strcharinfo(0) +" entered the PVP Room - Free for All.",0;

close; break;

case 2:

if( strcharinfo(1) == "" ) {

mes "You must have a party in order to enter!";

close;

}

mes "Goodluck!";

warp .Map$[1],0,0;
    announce strcharinfo(0) +" entered the PVP Room - Party vs Party.",0;

specialeffect2 EF_EARTHSPIKE;
specialeffect2 EF_DEVIL;
specialeffect2 EF_COIN;
specialeffect2 EF_SIGHTRASHER;
sleep2 1000;

close; break;

case 3:

if(getmapusers(.Map$[2]) > 1) {

mes "There are people fighting in this map!";

close;

}

mes "Goodluck!";

specialeffect2 EF_EARTHSPIKE;
specialeffect2 EF_DEVIL;
specialeffect2 EF_COIN;
specialeffect2 EF_SIGHTRASHER;
sleep2 1000;

warp .Map$[2],0,0;
    announce strcharinfo(0) +" entered the PVP Room - 1 vs 1.",0;

close; break;

}

end;

OnInit:

.Npc_Name$ = "[^0000FF "+strnpcinfo(1)+" ^000000]";

setarray .Map$[0],"guild_vs2","guild_vs3","guild_vs1";

end;

}

//-------exitnpc---free for all
guild_vs2,93,50,3    script    PvP Exit#0    497,{

// ==============================================================

set .@n$,"^0000FF[ PvP Exit ]^000000";

// ==============================================================

mes .@n$;

mes "PvP exit ??";

next;

switch(select("Yes!:No!")) {

case 1:

warp "prontera",156,191;

close;

case 2:

mes .@n$;

mes "Okay bye!";

close;

}

}

 

  • 0
Posted (edited)

thank you that worked really well and can any one provide me the script that gives full hp after killing a person in pvp (player1 kills player2 and players 1 gets healed) for the above script

Edited by NakedWolf

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...