About our BG src ~

Cabrera

New member
Messages
81
Points
0
Age
30
Location
Under Your Bed~
Emulator
Hercules
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

 
Ah k
default_smile.png


 
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

 
Back
Top