Cabrera 10 Posted February 12, 2014 Hey all i will be trying to input the bg queue system (@joinbg) and just wanted to know if hercules Battleground.c and .h is the same as rAs? (if its true then i can begin xD if it isnt then i cant do it for now T_T Quote Share this post Link to post Share on other sites
0 evilpuncker 503 Posted February 12, 2014 Battleground.c and .h is the same as rAs? nop Quote Share this post Link to post Share on other sites
0 AnnieRuru 957 Posted February 12, 2014 its not the same, but the script commands can easily port over honestly, when I wrote the bg queue system, the queue is done in npc script, not in the source http://rathena.org/board/topic/78493-help-in-battleground-script/?p=178573 Quote Share this post Link to post Share on other sites
0 Cabrera 10 Posted February 12, 2014 its not the same, but the script commands can easily port over honestly, when I wrote the bg queue system, the queue is done in npc script, not in the source http://rathena.org/board/topic/78493-help-in-battleground-script/?p=178573 Cool annie D: is it compatible with hercules? i mean should i use that battleground.diff for the setbgid? thx alot ! :) Quote Share this post Link to post Share on other sites
0 AnnieRuru 957 Posted February 12, 2014 nah, in fact I just completed a battleground script request on rathena an hour ago lol since I'm using hercules to write, I had to convert the source modification into hercules ones in order to start writing so ... source modification http://upaste.me/637f10590efeb783e 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://upaste.me/2549105918b144448 Quote Share this post Link to post Share on other sites
Hey all i will be trying to input the bg queue system (@joinbg) and just wanted to know if hercules Battleground.c and .h is the same as rAs? (if its true then i can begin xD if it isnt then i cant do it for now T_T
Share this post
Link to post
Share on other sites