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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

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