Brahms Posted July 17, 2019 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
1 Hijirikawa Posted July 22, 2019 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
1 Emistry Posted September 23, 2022 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
0 Haruka Mayumi Posted July 18, 2019 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
0 Hijirikawa Posted July 18, 2019 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
0 Brahms Posted July 21, 2019 Author 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
0 Hijirikawa Posted July 24, 2019 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
0 Brahms Posted July 24, 2019 Author 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
0 Hijirikawa Posted July 24, 2019 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
0 kalabasa Posted September 14, 2022 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
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
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.