Fresh prince Posted February 10, 2014 Group: Members Topic Count: 69 Topics Per Day: 0.02 Content Count: 295 Reputation: 6 Joined: 10/14/12 Last Seen: June 12, 2021 Share Posted February 10, 2014 Hello rathena, I would like to know if its possible to duplicate this wonderful battleground script made by ma'am annie? http://rathena.org/board/index.php?app=core&module=attach§ion=attach&attach_id=5375 Would it be possible if ever duplicate, run at the same time? So that it wont overcrowd people that wants to get in? If its possible, mind telling me how? Im thinking just to change the map and npc, i could be wrong though Thanks! Quote Link to comment Share on other sites More sharing options...
Kido Posted February 10, 2014 Group: Members Topic Count: 127 Topics Per Day: 0.03 Content Count: 1445 Reputation: 164 Joined: 08/17/13 Last Seen: July 11, 2019 Share Posted February 10, 2014 Hello rathena, I would like to know if its possible to duplicate this wonderful battleground script made by ma'am annie? http://rathena.org/board/index.php?app=core&module=attach§ion=attach&attach_id=5375 Would it be possible if ever duplicate, run at the same time? So that it wont overcrowd people that wants to get in? If its possible, mind telling me how? Im thinking just to change the map and npc, i could be wrong though Thanks! oh lol was about to say the same change map npc and inside script maps D: for example this lines to another map .red = createbgid( "guild_vs3", 13,50, strnpcinfo(0)+"::Onredout", strnpcinfo(0)+"::Onredout" ); .blue = createbgid( "guild_vs3", 86,50, strnpcinfo(0)+"::Onblueout", strnpcinfo(0)+"::Onblueout" ); callfunc "rand__", .min2start *2, $@rand; for ( .@i = 0; .@i < $@warpwaitingpcnum; .@i++ ) setbgid ( .@i %2 )? .red : .blue, $@warpwaitingpc[ $@rand[.@i] ]; delwaitingroom strnpcinfo(0); bg_warp .red, "guild_vs3", 13,50; bg_warp .blue, "guild_vs3", 86,50; bg_updatescore "guild_vs3", 0,0; sleep .eventlasting * 1000; Quote Link to comment Share on other sites More sharing options...
chromus28 Posted February 11, 2014 Group: Members Topic Count: 91 Topics Per Day: 0.02 Content Count: 263 Reputation: 1 Joined: 04/25/13 Last Seen: December 20, 2014 Share Posted February 11, 2014 Hello rathena, I would like to know if its possible to duplicate this wonderful battleground script made by ma'am annie? http://rathena.org/board/index.php?app=core&module=attach§ion=attach&attach_id=5375 Would it be possible if ever duplicate, run at the same time? So that it wont overcrowd people that wants to get in? If its possible, mind telling me how? Im thinking just to change the map and npc, i could be wrong though Thanks! oh lol was about to say the same change map npc and inside script maps D: for example this lines to another map .red = createbgid( "guild_vs3", 13,50, strnpcinfo(0)+"::Onredout", strnpcinfo(0)+"::Onredout" ); .blue = createbgid( "guild_vs3", 86,50, strnpcinfo(0)+"::Onblueout", strnpcinfo(0)+"::Onblueout" ); callfunc "rand__", .min2start *2, $@rand; for ( .@i = 0; .@i < $@warpwaitingpcnum; .@i++ ) setbgid ( .@i %2 )? .red : .blue, $@warpwaitingpc[ $@rand[.@i] ]; delwaitingroom strnpcinfo(0); bg_warp .red, "guild_vs3", 13,50; bg_warp .blue, "guild_vs3", 86,50; bg_updatescore "guild_vs3", 0,0; sleep .eventlasting * 1000; got error on this script parse_line: expect command, missing function name or calling undeclared function 192 : next; 193 : if ( input( .min2start, 1, 9 ) ) { 194 : mes "invalid range"; 195 : close; 196 : } * 197 : '.'start = 1; 198 : announce strcharinfo(0) +" has hosted a "+ .min2start +"vs"+ .min2start +" battleground", 0; 199 : waitingroom "BG PVP", .min2start *2 +1, strnpcinfo(0)+"::OnStart", .min2start *2; 200 : } 201 : else if ( .start == 1 ) { 202 : mes "abort registration?"; Quote Link to comment Share on other sites More sharing options...
Kido Posted February 11, 2014 Group: Members Topic Count: 127 Topics Per Day: 0.03 Content Count: 1445 Reputation: 164 Joined: 08/17/13 Last Seen: July 11, 2019 Share Posted February 11, 2014 huh maybe you have to adapt it to eathena, i guess the script is for rathena D: Quote Link to comment Share on other sites More sharing options...
chromus28 Posted February 11, 2014 Group: Members Topic Count: 91 Topics Per Day: 0.02 Content Count: 263 Reputation: 1 Joined: 04/25/13 Last Seen: December 20, 2014 Share Posted February 11, 2014 huh maybe you have to adapt it to eathena, i guess the script is for rathena D: awww ok T_T Quote Link to comment Share on other sites More sharing options...
Fresh prince Posted February 11, 2014 Group: Members Topic Count: 69 Topics Per Day: 0.02 Content Count: 295 Reputation: 6 Joined: 10/14/12 Last Seen: June 12, 2021 Author Share Posted February 11, 2014 you have to apply a patch with setbgid Quote Link to comment Share on other sites More sharing options...
Kido Posted February 11, 2014 Group: Members Topic Count: 127 Topics Per Day: 0.03 Content Count: 1445 Reputation: 164 Joined: 08/17/13 Last Seen: July 11, 2019 Share Posted February 11, 2014 you have to apply a patch with setbgid do you have a link to the patch or something D:? i googled it and just fnd a url with the word setbgid on it @_@ Quote Link to comment Share on other sites More sharing options...
Fresh prince Posted February 11, 2014 Group: Members Topic Count: 69 Topics Per Day: 0.02 Content Count: 295 Reputation: 6 Joined: 10/14/12 Last Seen: June 12, 2021 Author Share Posted February 11, 2014 This one mate. http://rathena.org/board/topic/72571-battleground-system-without-waitingroom/ Have an error though, Error:script: callfunc rand___ Say does not exist or something like this. Help please Quote Link to comment Share on other sites More sharing options...
AnnieRuru Posted February 11, 2014 Group: Members Topic Count: 18 Topics Per Day: 0.00 Content Count: 2044 Reputation: 682 Joined: 10/09/12 Last Seen: December 20, 2020 Share Posted February 11, 2014 I just load rathena and see my name on the recent topics you should either post the topic in hercules board or send me a PM here now that you say you wanna have the other battleground script yeah, I actually made 2 of them bg_pvp and bg_emp I give you 3 solutions 1. in this script, the maximum player can play is 9vs9 because of the max chatroom size in the source https://github.com/rathena/rathena/blob/master/src/map/chat.h#L27 you can change [20] into [61] to allow 30vs30 2. I made bg_emp, but I haven't made bg_emp_random script that can host by a GM think make one ? 3. I make another bg_pvp_random just with using another map ? xD 1 Quote Link to comment Share on other sites More sharing options...
Fresh prince Posted February 11, 2014 Group: Members Topic Count: 69 Topics Per Day: 0.02 Content Count: 295 Reputation: 6 Joined: 10/14/12 Last Seen: June 12, 2021 Author Share Posted February 11, 2014 Thanks miss annie. I actually tried both and theyre great! I also used your random assigned battleground and made a patch that you made but after getting both teams inside the pub, they warp all to the npc and console says, [edit] script:callfunc: function not found! [rand___] Also, whyd you move to hercules? Like lebron james did to cleveland :< theres no rings at stake Thanks Quote Link to comment Share on other sites More sharing options...
AnnieRuru Posted February 11, 2014 Group: Members Topic Count: 18 Topics Per Day: 0.00 Content Count: 2044 Reputation: 682 Joined: 10/09/12 Last Seen: December 20, 2020 Share Posted February 11, 2014 [rand__] function is inside my script release topic, under shuffle algorithm http://rathena.org/board/topic/78269-annieruru-lame-script-collection/?hl=rand__ I move to hercules because they have better script engine and better source coders rathena emulator took about 4~8 seconds to load the mapcache, hercules took only 1 second etc etc ... well this is not the place to discuss about this so how you want the modification be ? the one inside SVN doesn't has any features ... if I put back all the custom stuffs (including source modifications), the script will be unreadable you still haven't tell me you want 1, 2 or 3 1 Quote Link to comment Share on other sites More sharing options...
Fresh prince Posted February 11, 2014 Group: Members Topic Count: 69 Topics Per Day: 0.02 Content Count: 295 Reputation: 6 Joined: 10/14/12 Last Seen: June 12, 2021 Author Share Posted February 11, 2014 (edited) Ma'am annie, i followed everything and it is working great!! http://rathena.org/b...&attach_id=5375 <---(battleground random) Please i have a couple of requests, 1. Could you please edit this by making the match score adjustable from 10 to 50? Like if the score was set to 50. If the Red team reaches 50 kills, the game is over and Red team wins! Thanks! 2. Please have the losing team get items too. say, 10 red potions for the winning team and 2 red potions for the losing team! Thank you very much! Edited February 12, 2014 by Fresh prince 1 Quote Link to comment Share on other sites More sharing options...
chromus28 Posted February 12, 2014 Group: Members Topic Count: 91 Topics Per Day: 0.02 Content Count: 263 Reputation: 1 Joined: 04/25/13 Last Seen: December 20, 2014 Share Posted February 12, 2014 Ma'am annie, i followed everything and it is working great!! http://rathena.org/b...&attach_id=5375 <---(battleground random) Please i have a couple of requests, 1. Could you please edit this by making the match score adjustable from 10 to 50? Like if the score was set to 50. If the Red team reaches 50 kills, the game is over and Red team wins! Thanks! 2. Please have the losing team get items too. say, 10 red potions for the winning team and 2 red potions for the losing team! Thank you very much! this is for rathena only? Quote Link to comment Share on other sites More sharing options...
Fresh prince Posted February 12, 2014 Group: Members Topic Count: 69 Topics Per Day: 0.02 Content Count: 295 Reputation: 6 Joined: 10/14/12 Last Seen: June 12, 2021 Author Share Posted February 12, 2014 (edited) Could work for both ea and ra, NOT! only compatible with rathena or herculeseathena or 3ceam is not supported Edited February 12, 2014 by Fresh prince Quote Link to comment Share on other sites More sharing options...
Kido Posted February 12, 2014 Group: Members Topic Count: 127 Topics Per Day: 0.03 Content Count: 1445 Reputation: 164 Joined: 08/17/13 Last Seen: July 11, 2019 Share Posted February 12, 2014 i was going to prupose something but i think it will be more a different bg request D: however i would like also your request of that R/B team reaches X point the bg ends o:! edit: sry i hardly understan the script, some new scripts for me @_@ Quote Link to comment Share on other sites More sharing options...
AnnieRuru Posted February 12, 2014 Group: Members Topic Count: 18 Topics Per Day: 0.00 Content Count: 2044 Reputation: 682 Joined: 10/09/12 Last Seen: December 20, 2020 Share Posted February 12, 2014 the source modification for hercules seems different than rathena this one is for hercules users, you don't need this http://upaste.me/637f10590efeb783e source modification http://rathena.org/board/topic/72571-battleground-system-without-waitingroom/ shuffle function function script rand__ { .@range = getarg(0); .@count = getarg(2, 0); if ( !.@count || .@count > .@range ) .@count = .@range; else if ( .@count > 128 ) .@count = 128; while ( .@i < .@count ) { .@r = .@save = rand( .@i, .@range -1 ) ; if ( !getd( ".@tmp1_"+ .@i ) ) { .@r = ( getd(".@tmp1_"+ .@r ) )? getd( ".@tmp2_"+ .@r ) : .@r; setd ".@tmp2_"+ .@i, .@r; setd ".@tmp2_"+ .@save , .@i; setd ".@tmp1_"+ .@save , 1; set getelementofarray( getarg(1), .@i ), .@r; if ( .@save < .@count ) set getelementofarray( getarg(1), .@save ), .@i; } .@i++; } return .@count; }and the scripthttp://rathena.org/board/pastebin/36ijhtnn876m/ @chromus28 only compatible with rathena or hercules eathena or 3ceam is not supported @kido propose in hercules script request section, I'll definitely make it because writing battleground script is my hobby now 1 Quote Link to comment Share on other sites More sharing options...
Fresh prince Posted February 12, 2014 Group: Members Topic Count: 69 Topics Per Day: 0.02 Content Count: 295 Reputation: 6 Joined: 10/14/12 Last Seen: June 12, 2021 Author Share Posted February 12, 2014 Thank you ma'am annie :*( I'll now call you master like master cydh and master emistry! Thanks again!! Quote Link to comment Share on other sites More sharing options...
Kido Posted February 12, 2014 Group: Members Topic Count: 127 Topics Per Day: 0.03 Content Count: 1445 Reputation: 164 Joined: 08/17/13 Last Seen: July 11, 2019 Share Posted February 12, 2014 oh, yommy wouldn't like it at all, she already explained me that is best to ask on the current emulator running because hE and rA are going to be incopatible soon D: or something like that i can't remember well, was halfsleep z_Z thank you Annie you always are so kind i got the best answer o:! gonna write this on my secret diary Quote Link to comment Share on other sites More sharing options...
Fresh prince Posted February 13, 2014 Group: Members Topic Count: 69 Topics Per Day: 0.02 Content Count: 295 Reputation: 6 Joined: 10/14/12 Last Seen: June 12, 2021 Author Share Posted February 13, 2014 (edited) With regards to the topic, yes kiddo!Thanks ------------------------------------------------------------------------------------------ the source modification for hercules seems different than rathenathis one is for hercules users, you don't need thishttp://upaste.me/637f10590efeb783e source modificationhttp://rathena.org/board/topic/72571-battleground-system-without-waitingroom/shuffle function function script rand__ { .@range = getarg(0); .@count = getarg(2, 0); if ( !.@count || .@count > .@range ) .@count = .@range; else if ( .@count > 128 ) .@count = 128; while ( .@i < .@count ) { .@r = .@save = rand( .@i, .@range -1 ) ; if ( !getd( ".@tmp1_"+ .@i ) ) { .@r = ( getd(".@tmp1_"+ .@r ) )? getd( ".@tmp2_"+ .@r ) : .@r; setd ".@tmp2_"+ .@i, .@r; setd ".@tmp2_"+ .@save , .@i; setd ".@tmp1_"+ .@save , 1; set getelementofarray( getarg(1), .@i ), .@r; if ( .@save < .@count ) set getelementofarray( getarg(1), .@save ), .@i; } .@i++; } return .@count; }and the scripthttp://rathena.org/board/pastebin/36ijhtnn876m/@chromus28only compatible with rathena or herculeseathena or 3ceam is not supported@kidopropose in hercules script request section,I'll definitely make it because writing battleground script is my hobby now Ma'am Annie, there's an error. Everytime I kill a participant the pops out of the console. ~Also, If I configured it the match has to be from 0-10 points, Instead of the starting score to be 0, it starts with 10 and never gets updated upon killing an opponent. Please help. Thanks!!!!!!! Edited February 13, 2014 by Fresh prince Quote Link to comment Share on other sites More sharing options...
chromus28 Posted February 13, 2014 Group: Members Topic Count: 91 Topics Per Day: 0.02 Content Count: 263 Reputation: 1 Joined: 04/25/13 Last Seen: December 20, 2014 Share Posted February 13, 2014 the source modification for hercules seems different than rathena this one is for hercules users, you don't need this http://upaste.me/637f10590efeb783e source modification http://rathena.org/board/topic/72571-battleground-system-without-waitingroom/ shuffle function function script rand__ { .@range = getarg(0); .@count = getarg(2, 0); if ( !.@count || .@count > .@range ) .@count = .@range; else if ( .@count > 128 ) .@count = 128; while ( .@i < .@count ) { .@r = .@save = rand( .@i, .@range -1 ) ; if ( !getd( ".@tmp1_"+ .@i ) ) { .@r = ( getd(".@tmp1_"+ .@r ) )? getd( ".@tmp2_"+ .@r ) : .@r; setd ".@tmp2_"+ .@i, .@r; setd ".@tmp2_"+ .@save , .@i; setd ".@tmp1_"+ .@save , 1; set getelementofarray( getarg(1), .@i ), .@r; if ( .@save < .@count ) set getelementofarray( getarg(1), .@save ), .@i; } .@i++; } return .@count; }and the scripthttp://rathena.org/board/pastebin/36ijhtnn876m/ @chromus28 only compatible with rathena or hercules eathena or 3ceam is not supported @kido propose in hercules script request section, I'll definitely make it because writing battleground script is my hobby now ok T_T Quote Link to comment Share on other sites More sharing options...
AnnieRuru Posted February 13, 2014 Group: Members Topic Count: 18 Topics Per Day: 0.00 Content Count: 2044 Reputation: 682 Joined: 10/09/12 Last Seen: December 20, 2020 Share Posted February 13, 2014 Ma'am Annie, there's an error. Everytime I kill a participant the pops out of the console. when I test on Hercules it doesn't have this problem its rathena can't do a case-sensitive label http://rathena.org/board/tracker/issue-6988-monster-with-onkill-label/?gopid=17168#entry17168 perhaps your server already has OnReddead label somewhere, makes this label unable to run ~Also, If I configured it the match has to be from 0-10 points, Instead of the starting score to be 0, it starts with 10 and never gets updated upon killing an opponent.because OnRedDead or OnBlueDead label isn't functioning, that's why the score gets stuck try this one [paste=3hgeb7z95yoo] @Kido doesn't matter to me lol, just make a topic then send me a PM I'll make any battleground script no matter which forum you post on lol 1 Quote Link to comment Share on other sites More sharing options...
Fresh prince Posted February 13, 2014 Group: Members Topic Count: 69 Topics Per Day: 0.02 Content Count: 295 Reputation: 6 Joined: 10/14/12 Last Seen: June 12, 2021 Author Share Posted February 13, 2014 Dang thats right! Theres another redlabel that im testing and I forgot to turn it off! Another question maam, what if a participant gets disconnected? How can they get back in the match? Lastly, how can I make this fixed with 15 vs 15 without inputing 1-15? I already edit the chat.c Thanks very much ma'am annie!! Quote Link to comment Share on other sites More sharing options...
AnnieRuru Posted February 13, 2014 Group: Members Topic Count: 18 Topics Per Day: 0.00 Content Count: 2044 Reputation: 682 Joined: 10/09/12 Last Seen: December 20, 2020 Share Posted February 13, 2014 Another question maam, what if a participant gets disconnected? How can they get back in the match?if participants get disconnected, they are out from the match however if you want this kind of modification, you need a section of an unused map act as a waiting room (like gon_test) when they quit the map from guild_vs3, they will warp into gon_test inside gon_test got another npc to join back into the match however doing like this is extremely discourage because I wrote a AFK script to exactly counter some afk players inside a battleground map to cheat for the prize http://www.eathena.ws/board/index.php?showtopic=272411 if you want to make like this, I'm sure they will multi-client to claim multiple prizes so what ... you want another script to prevent multi-client ? lol you needs 3 scripts to run an event ? lol Lastly, how can I make this fixed with 15 vs 15 without inputing 1-15? I already edit the chat.c Thanks very much ma'am annie!! change [20] into [31] inside chat.h, recompile then change the script on Line 11 if ( input( .min2start, 1, 9 ) ) {into if ( input( .min2start, 1, 15 ) ) { Edit, wait a minute, you mean you want a FIXED amount of 15vs15 and it start by itself on certain time of day ? Quote Link to comment Share on other sites More sharing options...
Fresh prince Posted February 13, 2014 Group: Members Topic Count: 69 Topics Per Day: 0.02 Content Count: 295 Reputation: 6 Joined: 10/14/12 Last Seen: June 12, 2021 Author Share Posted February 13, 2014 Okay forget about re-joining the match. Yeah i meant 15 vs 15, and it's open 24/7. In other words, everyone can access it anytime Thank so much! Quote Link to comment Share on other sites More sharing options...
AnnieRuru Posted February 14, 2014 Group: Members Topic Count: 18 Topics Per Day: 0.00 Content Count: 2044 Reputation: 682 Joined: 10/09/12 Last Seen: December 20, 2020 Share Posted February 14, 2014 [paste=53zbugq43p0] actually I already made quite a similar one ... but instead of points here, its rounds over there http://rathena.org/board/topic/90734-annieruru-custom-bg 2 Quote Link to comment Share on other sites More sharing options...
Kido Posted February 14, 2014 Group: Members Topic Count: 127 Topics Per Day: 0.03 Content Count: 1445 Reputation: 164 Joined: 08/17/13 Last Seen: July 11, 2019 Share Posted February 14, 2014 lol gonna take all your bg Annie and make a BG city all of them are so good o: Quote Link to comment Share on other sites More sharing options...
Question
Fresh prince
Hello rathena,
I would like to know if its possible to duplicate this wonderful battleground script made by ma'am annie?
http://rathena.org/board/index.php?app=core&module=attach§ion=attach&attach_id=5375
Would it be possible if ever duplicate, run at the same time? So that it wont overcrowd people that wants to get in?
If its possible, mind telling me how? Im thinking just to change the map and npc, i could be wrong though
Thanks!
Link to comment
Share on other sites
32 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.