Jump to content
  • 0

Announcement when someone enters PVP room


AinsLord

Question


  • Group:  Members
  • Topic Count:  257
  • Topics Per Day:  0.08
  • Content Count:  737
  • Reputation:   18
  • Joined:  11/21/15
  • Last Seen:  

i would like to have some edit with the PVP script i found

what should i put when it needs to announce everyone who enters the PVP

here is the script:

-	script	PvP Warper	843,{
mes "[ ^ff0000PVP Warper^000000 ]";
mes "Do you want to warp to the PvP Arena and fight your enemies?";
menu "Sure, Bring it on!",L_Yes,"Nah, I'm not ready yet.",L_No;

L_Yes:
next;
mes "[ ^ff0000PVP Warper^000000 ]";
mes "Which PvP Arena do you want to enter?";
menu	"PvP Arena [ Ancient - Normal ] [" + getmapusers("guild_vs3.gat") + " / 20]",L1,
	"PvP Arena [ No - Yggdrasil Berry ] [" + getmapusers("guild_vs4.gat") + " / 20]",L2;

L1:
if (getmapusers("guild_vs3.gat") >= 20) goto Lsorry;
warp "guild_vs3",0,0;
close;

L2:
if (getmapusers("guild_vs4.gat") >= 20) goto Lsorry;
if(countitem(607)) goto Lsorry2;
warp "guild_vs4",0,0;
close;

Lsorry:
next;
mes "[ ^ff0000PVP Warper^000000 ]";
mes "Sorry but this PvP Arena is full, maybe you could try another one.";
close;

Lsorry2:
next;
mes "[ ^ff0000PVP Warper^000000 ]";
mes "I'm sorry but you can't have any "+getitemname(607)+" when entering the pvp room, please storage them and try again.";
close;

L_No:
close;
}

// Mapflags
//force_4-1	mapflag	pvp
guild_vs3	mapflag	pvp
guild_vs4	mapflag	pvp

alexandria,151,151,5	duplicate(PvP Warper)	PvP Warper#Alex	843
hugel,101,147,4	duplicate(PvP Warper)	PvP Warper#hugel	843	
alberta,31,239,4	duplicate(PvP Warper)	PvP Warper#alber	843

//force_4-1	mapflag	nocommand	99
//force_4-1	mapflag	nosave	SavePoint
//force_4-1	mapflag	noteleport
//force_4-1	mapflag	nowarp
//force_4-1	mapflag	nowarpto
//force_4-1	mapflag	nomemo
//force_4-1	mapflag	notrade
//force_4-1	mapflag	noreturn
//force_4-1	mapflag	nobranch

//guild_vs3	mapflag	nocommand	99
guild_vs3	mapflag	nosave	SavePoint
guild_vs3	mapflag	noteleport
guild_vs3	mapflag	nowarp
guild_vs3	mapflag	nowarpto
guild_vs3	mapflag	nomemo
guild_vs3	mapflag	notrade
guild_vs3	mapflag	noreturn
guild_vs3	mapflag	nobranch

guild_vs4	mapflag	nocommand	99
guild_vs4	mapflag	nosave	SavePoint
guild_vs4	mapflag	noteleport
guild_vs4	mapflag	nowarp
guild_vs4	mapflag	nowarpto
guild_vs4	mapflag	nomemo
guild_vs4	mapflag	notrade
guild_vs4	mapflag	noreturn
guild_vs4	mapflag	nobranch

thanks in advance ❤️

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  63
  • Reputation:   35
  • Joined:  07/04/19
  • Last Seen:  

announce "Player "+strcharinfo(0)+" Enters the PvP Room.",bc_all|bc_blue;

The line above announces it to the entire server. You want this line right above the warp script.

To make the announcement only inside the pvp room:

mapannounce strcharinfo(3),"Player "+strcharinfo(0)+" Enters the PvP Room.",bc_map|bc_blue;

 

Edited by Mastagoon
  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  257
  • Topics Per Day:  0.08
  • Content Count:  737
  • Reputation:   18
  • Joined:  11/21/15
  • Last Seen:  

thanks man ❤️❤️ 

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