Jump to content
  • 1

Requesting Pvp Warper w/ Announcer COntrol


Brahms

Question


  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.02
  • Content Count:  149
  • Reputation:   3
  • Joined:  07/29/16
  • Last Seen:  

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

Link to comment
Share on other sites

10 answers to this question

Recommended Posts

  • 1

  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.01
  • Content Count:  193
  • Reputation:   41
  • Joined:  07/21/16
  • Last Seen:  

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
Link to comment
Share on other sites

  • 1

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2345
  • Joined:  10/28/11
  • Last Seen:  

On 9/14/2022 at 6:10 PM, kalabasa said:

[PvP Annoucement]: has entered the PvP Room

.@enter$

change to

.enter$

 

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  477
  • Reputation:   269
  • Joined:  06/13/17
  • Last Seen:  

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 ^_~

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.01
  • Content Count:  193
  • Reputation:   41
  • Joined:  07/21/16
  • Last Seen:  

-	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
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.02
  • Content Count:  149
  • Reputation:   3
  • Joined:  07/29/16
  • Last Seen:  

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

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.01
  • Content Count:  193
  • Reputation:   41
  • Joined:  07/21/16
  • Last Seen:  

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.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.02
  • Content Count:  149
  • Reputation:   3
  • Joined:  07/29/16
  • Last Seen:  

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

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.01
  • Content Count:  193
  • Reputation:   41
  • Joined:  07/21/16
  • Last Seen:  

3 minutes ago, Brahms said:

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

You're welcome, please mark the topic as answered. Cheers!

Edited by Hijirikawa
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  1
  • Reputation:   0
  • Joined:  03/01/20
  • Last Seen:  

how to create NPC Like this thanks

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  123
  • Topics Per Day:  0.05
  • Content Count:  478
  • Reputation:   14
  • Joined:  11/30/17
  • Last Seen:  

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

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