Brahms Posted July 17, 2019 Group: Members Topic Count: 48 Topics Per Day: 0.02 Content Count: 149 Reputation: 3 Joined: 07/29/16 Last Seen: August 6, 2019 Share Posted July 17, 2019 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 Quote Link to comment Share on other sites More sharing options...
1 Hijirikawa Posted July 22, 2019 Group: Members Topic Count: 19 Topics Per Day: 0.01 Content Count: 193 Reputation: 42 Joined: 07/21/16 Last Seen: August 7, 2019 Share Posted July 22, 2019 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. - 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. 2 Quote Link to comment Share on other sites More sharing options...
1 Emistry Posted September 23, 2022 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10017 Reputation: 2369 Joined: 10/28/11 Last Seen: Wednesday at 12:29 PM Share Posted September 23, 2022 On 9/14/2022 at 6:10 PM, kalabasa said: [PvP Annoucement]: has entered the PvP Room .@enter$ change to .enter$ 1 Quote Link to comment Share on other sites More sharing options...
0 Haruka Mayumi Posted July 18, 2019 Group: Members Topic Count: 9 Topics Per Day: 0.00 Content Count: 485 Reputation: 271 Joined: 06/13/17 Last Seen: March 25 Share Posted July 18, 2019 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 ^_~ Quote Link to comment Share on other sites More sharing options...
0 Hijirikawa Posted July 18, 2019 Group: Members Topic Count: 19 Topics Per Day: 0.01 Content Count: 193 Reputation: 42 Joined: 07/21/16 Last Seen: August 7, 2019 Share Posted July 18, 2019 (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 July 18, 2019 by Hijirikawa Quote Link to comment Share on other sites More sharing options...
0 Brahms Posted July 21, 2019 Group: Members Topic Count: 48 Topics Per Day: 0.02 Content Count: 149 Reputation: 3 Joined: 07/29/16 Last Seen: August 6, 2019 Author Share Posted July 21, 2019 Hi guys,, what i want is something similar with these options when you click the Pvp Warper NPC. 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 Quote Link to comment Share on other sites More sharing options...
0 Hijirikawa Posted July 24, 2019 Group: Members Topic Count: 19 Topics Per Day: 0.01 Content Count: 193 Reputation: 42 Joined: 07/21/16 Last Seen: August 7, 2019 Share Posted July 24, 2019 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. Quote Link to comment Share on other sites More sharing options...
0 Brahms Posted July 24, 2019 Group: Members Topic Count: 48 Topics Per Day: 0.02 Content Count: 149 Reputation: 3 Joined: 07/29/16 Last Seen: August 6, 2019 Author Share Posted July 24, 2019 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 Quote Link to comment Share on other sites More sharing options...
0 Hijirikawa Posted July 24, 2019 Group: Members Topic Count: 19 Topics Per Day: 0.01 Content Count: 193 Reputation: 42 Joined: 07/21/16 Last Seen: August 7, 2019 Share Posted July 24, 2019 (edited) 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 July 24, 2019 by Hijirikawa Quote Link to comment Share on other sites More sharing options...
0 wakanda4ever Posted March 1, 2020 Group: Members Topic Count: 0 Topics Per Day: 0 Content Count: 1 Reputation: 0 Joined: 03/01/20 Last Seen: March 1, 2020 Share Posted March 1, 2020 how to create NPC Like this thanks Quote Link to comment Share on other sites More sharing options...
0 kalabasa Posted September 14, 2022 Group: Members Topic Count: 123 Topics Per Day: 0.05 Content Count: 478 Reputation: 14 Joined: 11/30/17 Last Seen: January 23 Share Posted September 14, 2022 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 Quote Link to comment Share on other sites More sharing options...
Question
Brahms
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.