Jump to content

rans

Members
  • Posts

    429
  • Joined

  • Last visited

  • Days Won

    7

Posts posted by rans

  1. Hi, 
    I know this is not the harmony forum but i have no where to ask. 

    does anyone encounter a problem like this?
    Harmony Client = failed to connect (no message to login-server)

    Non-Harmony Client = Game Exe is not latest ( with message in login-server )


    Thnx!

  2. f11fc847dd.png

    Remove the bracket on line 130.

    Fatal error: Call to a member function toArray() on a non-object in /home/hosting/public_html/yourro/lib/Flux/Athena.php on line 175

    Bump for this

    nvm. solved

     

    1.                                 'MapServer'       => array(
    2.                                         'Address'     => 'xx.x.x.x',
    3.                                         'Port'        => 5121
    4.                                 )
    5. ),

      1.     array(
      2.                                 'ServerName'      => '1234ro',
      3.                                 'Renewal'         => true,
      4.                                 'MaxCharSlots'    => 9,
  3. If we go by the line numbers on your pastebin code, you need another ), on line 43 and another on 84. Remove the ; from line 170 on your servers.php though, as that shouldn't be there.

     

    If you get stuck, upload your servers.php code to rAthena's pastebin, then let me know you've done it and i'll edit your pastebin so you can see what i've added, then you'll be good to go.

    Thank you for replying.

    I have now this (http://pastebin.com/JvVFFApp)

    but i get an error

    Parse error: syntax error, unexpected ')' in /home/hosting/public_html/yourro/config/servers.php on line 131 

     I have already check my ( and ) and it seems to be no extra ( ) . I don't know what the problem is.

    EDIT: Sorry i don't know where is the rAthena pastebin

  4. You'd just copy/paste another array into config/servers.php so it would contain something like this:

     

    		'CharMapServers' => array(
    			array(
    				'ServerName'      => 'Midgard',
    				'Renewal'         => false,
    				'MaxCharSlots'    => 9,
    				...etc
    			),
    			array(
    				'ServerName'      => 'Asgard',
    				'Renewal'         => true,
    				'MaxCharSlots'    => 9,
    				...etc
    			)
    
    
    And bob's your uncle!

     

    Thank you for your reply. 

    I will try this.

    Hi,

    I tried what you have said but it did'nt work or did i just missing something?

    When i try to copy paste ( http://pastebin.com/KsVEZrs8 ) <== my code

    i got an error 

    Parse error: syntax error, unexpected ';', expecting ')' in /home/hosting/public_html/yourro/config/servers.php on line 170

    170 line is the last 

    );
    ?>
  5.  

    Holy sh*t !

    I have been scripted battleground script for 3 years and only today I know there's a secret room for this map LOL

    [paste=21hkxlqx2h6a]

    rand__ function is everywhere in this forum

    just a simple search and you'll find it

    EDIT: nvm ...

    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;
    }

    When only around 2 mins and it announced "Time Out. Aborting the match.".(No one break the emp.....)

    Then all people warped out...

    It is this problem??

    .eventlasting = 100; // abort the system if there's no progress, 20 mins * seconds

    100 seconds??

     

    it is 100seconds

    try doing it like this

    .eventlasting = 20 * 60;

  6. Holy sh*t !

    I have been scripted battleground script for 3 years and only today I know there's a secret room for this map LOL

    [paste=21hkxlqx2h6a]

    rand__ function is everywhere in this forum

    just a simple search and you'll find it

    EDIT: nvm ...

    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;
    }

    I appreciate your help ^_^ THank you very much

  7. you need to know ... bumping your topic will not make the script finish faster

    it depends how much free time on the author's have,

    its not like bumping the topic will suddenly makes me have more free time you know ?

    [paste=e6puqfaaqqn]

    I can do no.2 and no.3, but this no.1

    1st. - When you die. you will be warp into a small room with healer and a delay before you can join the battle again.

    where is the small room ?

    in bat_a01 there is no small room,

    and I'm not a map designer that knows how to edit the map either

     

    Hi sorry for that.

    Anyway thank you for your script.

     

    where is the small room ?

    in bat_a01 there is no small room,

    and I'm not a map designer that knows how to edit the map either

     

    Hi, sorry if my details was incomplete. i was referring to this place

    ok1o2s.jpg

    There is also Error on your provided Script (e6puqfaaqqn/txt/)

     

    [Error]: script:callfunc: function not found! [rand__]
    [Debug]: Source (NPC): bg_emp#control (invisible/not on a map)

     

  8. ok ... ok ... I know

    because the script you posted were using very old technique of mine

    I have to rewrite the whole script from scratch

    [paste=3k6v0lc64gm2] <--- just a rewrite of previous script you posted with newer techniques

    now I have to double post after I done your request ... pssshhh....

    Sorry ^_^

    Anyway thankyou for your reply. 

    I tested the script and work well. but my request was not here :( 

    1st. - When you die. you will be warp into a small room with healer and a delay before you can join the battle again.

    2nd. - 2nd. A 3 layer Barricade to be destroyed before you are able to attack Emperium.

    (Destroy 1st barricard> destroy 2nd barricard > destroy 3rd Barricade > emperium)

    and this barricade can be only restore when the game is restart or move to next round.

    and also if i could request (optional only hehe if you dont want its okay :) )

     a post of you but i can't understand and don't know how to add this in your BG_EMP script (with bindcmnd - @bgemp @bgleave)

    (http://rathena.org/board/topic/72571-battleground-system-without-waitingroom/)

    Really appreciate your help :)

    Thnx

     

  9. from eathena

    Download:

    attachicon.gifbattleground_17102.diff

    -----------------------------------------

    *createbgid <respawn map>, <respawn x>, <respawn y>, <On Quit event>, <On Death event>;

    create a specific battleground ID, for the rest .... refer to doc

    .red = createbgid( "guild_vs3", 13,50, strnpcinfo(0)+"::Onredout", strnpcinfo(0)+"::Onreddead" );
    .blue = createbgid( "guild_vs3", 86,50, strnpcinfo(0)+"::Onblueout", strnpcinfo(0)+"::Onbluedead" );

    -----------------------------------------

    *setbgid <battleground ID> {, <player name> };

    *setbgid <battleground ID> {, <player account ID> };

    player attached to the script will join the battleground team,

    but if a player name ( or account ID ) is specify, will let that player join the battleground team

    warpwaitingpc "guild_vs3", 0,0;
    for ( .@i = 0; .@i < $@warpwaitingpcnum; .@i++ )
    setbgid ( .@i % 2 )? .red : .blue, $@warpwaitingpc[.@i];

     

    the command returns positive number ( > 0 ) if the function is successful

    if it return negative :-

    -1: the battleground team haven't create yet ... has to be create with createbgid

    -2: the team already full, it reached MAX_BG_MEMBERS = 30 which can increase at src\map\battleground.h

    -3: player not found ... happens when the input <player name> is not online or not found

    -5: the player already join the battleground ID that you specify

    if the player has joined battleground ID 500, and you use setbgid 700;

    this will force the player to leave battleground ID 500 and join battleground ID 700 without any notification 

    ( player who same group will receive a message mention that "player xxx leaving battlefield" )

    only when the player joined bg ID 500, and use setbgid 500; then only the command return -5

    but the script will still continue running without posting any error, so don't worry

    setbgid 0; is equal to bg_leave;

    and setbgid 0, "annie"; or setbgid 0, 2000000;

    will make the player "annie" ( or account id 2000000 ) leave the battleground team without using attachrid + bg_leave

    -----------------------------------------

    *getbgusers <battleground ID>;

    similar to getpartymember <party ID>, 2; // <-- return account ID

    this will create an array "$@arenamembers" holding all the player's account ID from the battleground team

    and $@arenamembersnum is equal to bg_get_data(<battleground ID>, 0), just like $@partymembercount

    getbgusers .red;
    for ( .@i = 0; .@i < $@arenamembersnum; .@i++ )
    getitem 501, 1, $@arenamembers[.@i];

    -----------------------------------------

    *bg_kickall <battleground ID>;

    kick every player out from the battleground team

    this command is counter-part from bg_destroy

    -----------------------------------------

    currently don't have enough samples for this new method,

    because I've done a few battleground script ...

    and it seems members are prefer not to use source modification ... o.o

    [spoiler=OLD method]

    Download:

    attachicon.gifbattleground_16873.diff

    -----------------------------------------

    *createbgid <respawn map>, <respawn x>, <respawn y>, <On Quit event>, <On Death event>;

    create a specific battleground ID, for the rest .... refer to doc

    -----------------------------------------

    *setbgid <battleground ID> {, <player name> };

    player attached to the script will join the battleground team,

    but if a player name ( or account ID ) is specify, will let that player join the battleground team

    the command returns positive number ( > 0 ) if the function is successful

    if it return negative :-

    -1: the battleground team haven't create yet ... has to be create with createbgid

    -2: the team already full, it reached MAX_BG_MEMBERS = 30 which can increase at src\map\battleground.h

    -3: player not found ... happens when the input <player name> is not online or not found

    -4: invalid battleground ID ... currently only accept ID range within 1~1000

    -5: the player already join the battleground ID that you specify

    if the player has joined battleground ID 500, and you use setbgid 700;

    this will force the player to leave battleground ID 500 and join battleground ID 700 without any notification

    only when the player joined bg ID 500, and use setbgid 500; then only the command return -5 <-- failed

    setbgid 0; is equal to bg_leave;

    and setbgid 0, "annie"; or setbgid 0, 2000000;

    will make the player "annie" ( or account id "]2000000 ) leave the battleground team without using attachrid + bg_leave

    -----------------------------------------

    *getbgusers <battleground ID>;

    similar to getpartymember <party ID>, 2; // <-- return account ID

    this will create an array "$@arenamembers" holding all the player's account ID from the battleground team

    and $@arenamembersnum is equal to bg_get_data(<battleground ID>, 0), just like $@partymembercount

    -----------------------------------------

    *bg_kickall <battleground ID>;

    kick every player out from the battleground team

    this command is counter-part from bg_destroy

    -----------------------------------------

    remember these steps

    1. use OnInit with createbgid
    2. use setbgid to let player join
    don't use bg_destroy command, but use bg_kickall command instead remember different script use different teams, there's a limit of 30 players on each team only <- can increase at src/map/battleground.h#L10

    eg: this battleground script use bg id 1 & 2, next battleground script use bg id 3 & 4  ( bg id is self generated in ascending order )

    Example ...

    difference is quite a lot

    although both also can achieve the battleground team creation,

    but its obvious the 2nd one is much much cleaner and more feature

    Example :

    use OnInit + createbgid, then use setbgid to attach 2 teams on the event controller npc

    if your script assigned bg_id 1 & 2, then your script use bg_warp 1 ... and bg_warp 2 ...

    EDITED SCRIPT :

    
    prontera,155,181,5	script	Sample	100,{
    	mes "Battlegound";
        if ( select ( "join/leave", "warp all bg members to you" ) == 1 )
            if( getcharid(4) ){
    			bg_leave;
    			dispbottom "Leave BG";
    		}else{
    			setbgid .bg_id;
    			dispbottom "Joined BG";
    		}
        else if ( getcharid(4) == 0 )
            dispbottom "you didn't join a battleground team";
    		
        else {
            getmapxy .@map$, .@x, .@y, 0;
            bg_warp .bg_id, .@map$, .@x, .@y;
    		
        }
        close;
    OnInit:
        getmapxy .@map$, .@x, .@y, 1;
        .bg_id = createbgid( .@map$, .@x, .@y, "", "" );
        end;
    }
    

    the current sample script should be look like this now .... battleground will auto generate the Battle Group ID , you cant assign the ID. :)

    tested and work fine in rev 17532 ...

    [spoiler='Archive']

    attachicon.gifbattleground_16819.diff

    attachicon.gifbattleground_16873.diff

    attachicon.gifbattleground_17101.diff

    Hello Annie,

    Can i request if you could provide a Sample script of this with your BG_EMP? i really appreciate your works :)

  10. Hi,

    Can i request for edits for AnnieRuru's BG Emp(http://pastebin.com/9S1VsJYJ)  like 
    When you die. you will be warp into a small room with healer and a delay before you can join the battle again.

    2nd. A 3 layer Barricade to be destroyed before you are able to attack Emperium.
    (Destroy 1st barricard> destroy 2nd barricard > destroy 3rd Barricade > emperium)
    and this barricade can be only restore when the game is restart or move to next round.

    Thank you.

  11. How about setting up an ro? Is it the same?

    And does it have ddos protection?

    And i also use putty and winscp to communicate with my server, not using vnc.

    Yes. 

    Unamanage vps - you still need to install phpmyadmin (Linux)

    and same procedure installing ragnarok server.

    i think http://budgetvm.com/ does not offer a ddos protection. try searching in the google.

    yes root access with ssh remote. 

  12. Hey, I just wanted to know if using a non-ro vps is actually better than using an RO vps. And if yes, what's the best hosting should I go for?

     

    And also, is there any difference in setting up a RO on a non-RO VPS? If yes, would you please help me? :)

    You men Unmanage vps?

    The advantage of this its more cheaper that the Ro vps

    also its more Free to access to this.

    try http://budgetvm.com/

  13. @unloadnpcpath

    @loadnpc

     

    /doc/atcommands.txt

    As i remember something like that already implement.

    Sometimes unloadnpcfile does not work.

    It says (cannot unloadnpcfile not found) even i just enter it using loadnpc.

    And it would be too much time loading the script of all hehe

  14. Hi, 
    Anyone can edit this command? 
    example 
    @reloadscript (will reload All script)
    if 
    @reloadscript scripts_athena.conf - will reload all the contents in this file only
    @reloadscript pre/scripts_athena.conf - will reload all the contents in this file only



    Thank you,
    the reason of this is i want to seperate the Mob reload. 
    So that when i reloadscript it will not affect the mobs.
     

  15. seconds = DIFF_TICK(td->tick,gettick())/1000;

     

    try replacing 1000 with 5000 might work

     

    im not sure its worth the try though

    Already tried replacing /1000 with some numbers

    Still can't find out the 60seconds

  16.  

    skill_cast_db.txt

    check it in db/pre-re if your using prere

    check it in db/re if your using renewal
     
    //===== Guild Skills =======================
    //-- GD_EMERGENCYCALL
    10013,0,0,0,0,300000,0,5000
    // SkillID,CastingTime,AfterCastActDelay,AfterCastWalkDelay,Duration1,Duration2,Cool Down,Fixed Casting Time
     
    change the cool down to your liking

     

    Hi,

    Thanks for the reply

    This still block by that src command . 

    im using rAmod. so i was asking about src time script

    This Script 

    seconds = DIFF_TICK(td->tick,gettick())/1000; 

    Is for 5minutes

    how can i make it 1minute?

  17. Hi,

    Anyone can help me w/ this script?

    I want it to make the cooldown t 1minute only



    (5mins cd, ecall)

    void guild_block_skill_status(struct guild *g, int skill_id)
    {
    const struct TimerData * td;
    char output[128];
    int seconds, idx;
     
    idx = battle_config.guild_skills_separed_delay ? skill_id - GD_SKILLBASE : 0;
    if( g == NULL || idx < 0 || idx >= MAX_GUILDSKILL || g->skill_block_timer[idx] == INVALID_TIMER )
    return;
     
    if( (td = get_timer(g->skill_block_timer[idx])) == NULL )
    return;
     
    seconds = DIFF_TICK(td->tick,gettick())/1000;
    sprintf(output, "%s : Cannot use guild skill %s. %d seconds remaining...", g->name, skill_get_desc(skill_id), seconds);
    clif_guild_message(g, 0, output, strlen(output)); 
    }
     
×
×
  • Create New...