Ghost Posted January 31, 2012 Posted January 31, 2012 (edited) Ghost's PvP System An automated multi-announcer + ladder pvp script with configurable features. Feeder detection with stat rollback configuration Switchable announcers (Dota and all HoN announcers) Configurable map setting, pvp ladder, reward setting, penalty setting, broadcast message and color, Payback and Nemesis Kill Death Ratio calculation (Kill/Death, popular in most first person shooting game) Quote Version: 1.3 Pastebin: http://pastebin.com/xSNqYtJm SQL Table: http://pastebin.com/dEqrkczy Required File: http://www.mediafire...i3uutvdp00jw4r8 Russian Roulette A GM activated russian roulette mini-game script. Quote Version: 1.0 Pastebin: http://pastebin.com/tj3A3gsz Required File: http://www.mediafire...ry9k4uolxlmj4kv [ Edit: Skorm ] Because this is such a popular script I updated it and fixed a few things in the process. Link to v1.4 https://pastebin.com/pX5nFgdp Edited February 28, 2022 by Skorm Updated Links 6 Quote
ngek202 Posted January 31, 2012 Posted January 31, 2012 @Ghost Sir can i ask what are the Features of the PVP System script? Quote
Ghost Posted January 31, 2012 Author Posted January 31, 2012 (edited) @Ghost Sir can i ask what are the Features of the PVP System script? Feeder detection with stat rollback configuration Switchable announcers Configurable map setting, pvp ladder, reward setting, penalty setting, broadcast message and color, Payback and Nemesis Kill Death Ratio calculation (Kill/Death, popular in most first person shooting game) Edited January 31, 2012 by Ghost 1 Quote
Drakkus Posted February 3, 2012 Posted February 3, 2012 (edited) Check also your 'Wav' files. i think there is an 'VIRUS' i can't DOWNLOAD and it also blockeds the URL.Regards,Vlync Edited March 31, 2013 by VLYNC Quote
KeiKun Posted February 4, 2012 Posted February 4, 2012 the WAV Files has been Checked and there are not Virus Found.. Software Used are AVG IS 2011/ IS BE 2012, Norton 360 and McAfee AP 2012 Quote
Ghost Posted February 4, 2012 Author Posted February 4, 2012 Check also your 'Wav' files. i think there is an 'VIRUS' i can't DOWNLOAD and it also blockeds the URL. Regards, Mindless Fixed, just removed "break;". No virus man, check your dns restrictions. Quote
ngek202 Posted February 5, 2012 Posted February 5, 2012 how do you set Announcement if DoTa or HoN? Quote
Ghost Posted February 5, 2012 Author Posted February 5, 2012 how do you set Announcement if DoTa or HoN? Go to line 285 and change morocc,162,107,3 to your preferences. Talk to npc to switch between announcers. Quote
aRiley Posted February 6, 2012 Posted February 6, 2012 (edited) Can't help but post here. Saw the Ghost PvP system, pretty neat especially when it isn't always "Dota" ( my own personal opinion since i got used to servers only having the dota announcement everytime you killed someone ). You can make fun of the announcements too! Going to upload it soon on my server tho. 'Bout the Run for your life, yeah it's almost similar to the "Novice vs Zombies" event but Ghost integrated the all job and novice RFYL as an automated and GM activated event which is very helpful indeed. The mob isnt "all zombies" but the novice rfyl is. Can set the preferred monsters for the All Job RFYL. Basically, thanks babe for the script i know you really worked hard for it. Keep up the good work! Will be testing your script on my server in a while then i'll keep you posted. With much love Edited February 6, 2012 by aRiley Quote
Mystery Posted February 7, 2012 Posted February 7, 2012 To add PvP maps, don't you remove "ALL" and replace with "map_name","map_name","map_name","map_name"; for multiple maps? Quote
Ghost Posted February 7, 2012 Author Posted February 7, 2012 To add PvP maps, don't you remove "ALL" and replace with "map_name","map_name","map_name","map_name"; for multiple maps? Yes. e.g. setarray .PvPMap$[0], "pvp_vs1-1","pvp_vs1-2"; //List all pvp maps here (Index 0:"All" to enable all maps) Quote
Drakkus Posted February 7, 2012 Posted February 7, 2012 Why i got [Error]: in my map-server-sql.exe? [Debug]: 2000000 110028840 : Error in KDR Function, getarg(1) invalid value Regards, Mindless Quote
Ghost Posted February 8, 2012 Author Posted February 8, 2012 (edited) Why i got [Error]: in my map-server-sql.exe? [Debug]: 2000000 110028840 : Error in KDR Function, getarg(1) invalid value Regards, Mindless That's no problem. It's just a notification, it tells you that the value of getarg(1) (Death) is 0. Where any number divided by 0 is undefined. So no calculations can be made but return 0 instead. Edited February 8, 2012 by Ghost Quote
Petey Pablo Posted February 14, 2012 Posted February 14, 2012 how to solve this sql error fixed!! Quote
ngek202 Posted February 14, 2012 Posted February 14, 2012 problem when setting list of maps Announce doesn't work anymore: setarray .PvPMap$[0], "guild_vs3","guild_vs1","pvp_y_8-2","1@orcs"; //List all pvp maps here (Index 0:"All" to enable all maps) Quote
koloridjo Posted February 17, 2012 Posted February 17, 2012 (edited) there is little wrong here in the flamboyant anncounce here written ms pudding case 4: //Flamboyant if(#Announcer == 3){ goto L_Announce; } if((.AnnouncerFee) && (!#Flamboyant)){ next; mes "[Loki]"; mes "Do you want to purchase Flamboyant announcer for "+.AnnouncerFee+" Kill Point?"; switch(select("No:Yes")){ case 1: close; case 2: if(#CASHPOINTS < .AnnouncerFee){ next; mes "[Loki]"; mes "You don't have enough Kill Point."; close; } set #CASHPOINTS, #CASHPOINTS - .AnnouncerFee; set #Flamboyant, 1; } } soundeffect "3_KS1.wav", 0; set #Announcer, 3; announce "[Loki] Ms. Pudding announcer has been configured to your account.",bc_self,0xFF0000; close; Edited November 12, 2013 by Patskie Change to code Quote
MelMel Posted February 22, 2012 Posted February 22, 2012 (edited) yup i have same problem as ngek 202 >.< problem when setting list of maps Announce doesn't work. problems solved thanks^^ Edited February 22, 2012 by hysoka44 Quote
Elijah23 Posted February 26, 2012 Posted February 26, 2012 Nice scripts ghost.. But I have a question regarding the pvp script of yours?.. I have use this in all maps... But is it possible to disable it from certain maps?.. Like 3-5 maps?... Thanks.. Quote
ngek202 Posted February 26, 2012 Posted February 26, 2012 problem when setting list of maps Announce doesn't work anymore: setarray .PvPMap$[0], "guild_vs3","guild_vs1","pvp_y_8-2","1@orcs"; //List all pvp maps here (Index 0:"All" to enable all maps) Nice scripts ghost.. But I have a question regarding the pvp script of yours?.. I have use this in all maps... But is it possible to disable it from certain maps?.. Like 3-5 maps?... Thanks.. Already tried it but the announcer doesn't work anymore, I've already told Ghost about this on Irc and he said he'll fix it.. Quote
Ghost Posted February 27, 2012 Author Posted February 27, 2012 (edited) Script Updated: (Not yet tested at the moment) //Changelog: //v1.3 = Fixed .PvPMap$[0] settings [Ghost] // = Added .GMLevel at configuration [Ghost] // = Change SK Hex Color to ^00FF00 for visibility [Ghost] // = Fixed Streak Kill ended broadcast [Ghost] // = Typographical error (Ms. Pudding to Flamboyant) on Announcer Setting corrected [Ghost] // = Changed Top 10 Players ranking from KDR to Kills [Ghost] Edited February 27, 2012 by Ghost 2 Quote
ngek202 Posted February 27, 2012 Posted February 27, 2012 (edited) @Ghost tested it with: setarray .PvPMap$[0], "guild_vs3","guild_vs1","pvp_y_8-2","1@orcs"; but still Announce didn't work tested with normal accounts (Non GM). but if setarray .PvPMap$[0], "All"; works.. // = Added .GMLevel at configuration [Ghost] this is for Announcer too right? they will get ignored if they are GM's Edited February 27, 2012 by ngek202 Quote
Emistry Posted February 27, 2012 Posted February 27, 2012 uhm....i am lazy to re-organize that part so i just do it like this... the problem for didnt announce...is because of this part. if(.PvPMap$[0] != "All"){ for(set .@i, 0; .@i < (getarraysize(.PvPMap$) - 1); set .@i, .@i + 1){ if(strcharinfo(3) != .PvPMap$[.@i]){ end; } } } as you can see from the line... when the script is doing checking wether the users is in the map listed in the array or not.. it STOPPED when the users are not located at the 1st map.. ( .PvPMap$[.@i] ) the loop process start with the 1st number..so it checking the 1st map... but you end the process when the users are not in the 1st map.. that's why it doesnt announce... i just simply write 1 here. if(.PvPMap$[0] != "All"){ for(set .@i, 0; .@i < getarraysize(.PvPMap$); set .@i, .@i + 1) if(strcharinfo(3) != .PvPMap$[.@i]) set .@MatchMap,1; } if( !.@MatchMap ) end; and same goes to this part if(.PvPMap$[0] != "All"){ for(set .@i, 0; .@i < getarraysize(.PvPMap$) ; set .@i, .@i + 1){ if(strcharinfo(3) != .PvPMap$[.@i]){ end; } set Death, Death + 1; } } modify it like what i did at above or use your own way... and why use (getarraysize(.PvPMap$) - 1) hmm ? is your own mistake typo or ? i dont think there is needed for you to minus the count here ^^ Advise : for this part. if((.PvPMap$[0] == "ALL")||(.PvPMap$[0] == "ALl")||(.PvPMap$[0] == "AlL")||(.PvPMap$[0] == "aLL")||(.PvPMap$[0] == "aLl") || (.PvPMap$[0] == "alL")){ setarray .PvPMap$[0], "All"; } actually you can just do it like this if( compare( .PvPMap$[0],"All" ) ){ //blablabla............. } 1 Quote
ngek202 Posted February 27, 2012 Posted February 27, 2012 (edited) Thanks Emistry It's working now.. Oh noticed when I tested killing spree and double kill I think there's a problem with it.. SinX wasn't killed but everytime he gets a Kill the Announcer announces that the one who he killed ended he's Killing Streak(Killing Spree) . Edited February 27, 2012 by ngek202 Quote
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.