Jump to content
  • 0
Sign in to follow this  
Cabrera

About our BG src ~

Question

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

5 answers to this question

Recommended Posts

  • 0

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

Share this post


Link to post
Share on other sites
  • 0

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 ! :) :)

Share this post


Link to post
Share on other sites
  • 0

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 script

http://upaste.me/2549105918b144448

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.