Jump to content
  • 1

Requesting Pvp Warper w/ Announcer COntrol


Question

Posted

As the Title Say, I want a pvp warper where the players can control the announcement if someone enter the pvp room and have these options.

- Enter Pvp Room
- Broadcast if someone enter the pvp room. [ON/OFF]

Kindly help please.. Thank you in advance.. Godbless

10 answers to this question

Recommended Posts

  • 1
Posted
On 7/21/2019 at 7:00 AM, Brahms said:

Hi guys,, what i want is something similar with these options when you click the Pvp Warper NPC.


1591673838_67332126_649723145507420_1260843321106890752_n(1).jpg.57b4c87dedb8cf12fa131f34522f6804.jpg

-	script	asdfjkl	-1,{
	if(pvp_announce)
		.@menu$ = "Warp:[^00ff00Enabled^000000]Announce:Close";
	else
		.@menu$ = "Warp:[^ff0000Disabled^000000]Announce:Close";
	mes "[ PVP Warper ]";
	mes "Warp?";
	switch(select(.@menu$)){
		case 1:
			close2;
			warp "prontera",0,0;
			.@enter$ = strcharinfo(0);
			addrid(0);
			if(pvp_announce){
				announce "[ PvP Announcement ]: "+.@enter$+" has entered the PvP Room",bc_blue|bc_self;
			}
			end;
		case 2:
			if(pvp_announce){
				pvp_announce = 0;
				mes "Announce disabled";
				close;
			}
			else{
				pvp_announce = 1;
				mes "Announce enabled";
				close;
			}
		case 3:
			break;
	}
end;
OnInit:
	.announce = 1; // 0 = off
end;
}

Untested.

  • Upvote 2
  • 0
Posted

i don't quite understand what you want.
1. If you want the player that wants to enter pvp to disable the announce when he enters. OR
2. if you want the player to disable the announce when someone enters pvp so he wont see it.

1. is possible through script.

2. is yes possible with script using addrid(0); then use if(), but this won't trigger to players that are currently talking to NPC's. and this is not really recommended. My recommendation is tweak a little on clif.cpp ^_~

  • 0
Posted (edited)
-	script	asdfjkl	-1,{
	mes "[ PVP Warper ]";
	mes "Warp?";
	menu "Yeshhhh",-;
	close2;
	if(.announce){
		announce strcharinf(0)+" has entered the PvP Room",0;
	}
	warp "prontera",0,0;
	end;
OnInit:
	.announce = 1; // 0 = off
end;
}

If you want players to be able to control it, that would be chaotic since they can just turn it off when someone turns it on, so I'm not gonna even go there since that just sounds silly.

Edited by Hijirikawa
  • 0
Posted

Hi guys,, what i want is something similar with these options when you click the Pvp Warper NPC.


1591673838_67332126_649723145507420_1260843321106890752_n(1).jpg.57b4c87dedb8cf12fa131f34522f6804.jpg

 

On 7/23/2019 at 6:34 AM, Hijirikawa said:

-	script	asdfjkl	-1,{
	if(pvp_announce)
		.@menu$ = "Warp:[^00ff00Enabled^000000]Announce:Close";
	else
		.@menu$ = "Warp:[^ff0000Disabled^000000]Announce:Close";
	mes "[ PVP Warper ]";
	mes "Warp?";
	switch(select(.@menu$)){
		case 1:
			close2;
			warp "prontera",0,0;
			.@enter$ = strcharinfo(0);
			addrid(0);
			if(pvp_announce){
				announce "[ PvP Announcement ]: "+.@enter$+" has entered the PvP Room",bc_blue|bc_self;
			}
			end;
		case 2:
			if(pvp_announce){
				pvp_announce = 0;
				mes "Announce disabled";
				close;
			}
			else{
				pvp_announce = 1;
				mes "Announce enabled";
				close;
			}
		case 3:
			break;
	}
end;
OnInit:
	.announce = 1; // 0 = off
end;
}

Untested.

Hi Thank you for this. Do i need to add another script if im going to implement this? Thanks

  • 0
Posted
4 minutes ago, Brahms said:

Hi Thank you for this. Do i need to add another script if im going to implement this? Thanks

The script above is just bare bones, you'd have to fill it in to make it more presentable.

  • 0
Posted
7 minutes ago, Hijirikawa said:

The script above is just bare bones, you'd have to fill it in to make it more presentable.

It Works.. Thank you so much for these.. Godbless

  • 0
Posted
On 7/23/2019 at 6:34 AM, Hijirikawa said:
-	script	asdfjkl	-1,{
	if(pvp_announce)
		.@menu$ = "Warp:[^00ff00Enabled^000000]Announce:Close";
	else
		.@menu$ = "Warp:[^ff0000Disabled^000000]Announce:Close";
	mes "[ PVP Warper ]";
	mes "Warp?";
	switch(select(.@menu$)){
		case 1:
			close2;
			warp "prontera",0,0;
			.@enter$ = strcharinfo(0);
			addrid(0);
			if(pvp_announce){
				announce "[ PvP Announcement ]: "+.@enter$+" has entered the PvP Room",bc_blue|bc_self;
			}
			end;
		case 2:
			if(pvp_announce){
				pvp_announce = 0;
				mes "Announce disabled";
				close;
			}
			else{
				pvp_announce = 1;
				mes "Announce enabled";
				close;
			}
		case 3:
			break;
	}
end;
OnInit:
	.announce = 1; // 0 = off
end;
}

Untested.

if  a player enters the PvP room and they have choose to turn OFF their annoucement 

the other players that have their annoucement ON on the other hand they will recieve the annoucement blank 

[PvP Annoucement]: has entered the PvP Room

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