Jump to content

Nokia

Members
  • Posts

    150
  • Joined

  • Last visited

Posts posted by Nokia

  1. hey, im currently using this src add on from annie -> http://rathena.org/board/topic/72571-battleground-system-without-waitingroom/

     

    plus this script:

     

    waitingroom "blub bg", .minplayer2start, strnpcinfo(0) +"::OnStart", .minplayer2start,0,90,99;
    OnStart:
    	getmapxy .@map$, .@x, .@y, 1;
    	warpwaitingpc .@map$, .@x, .@y;
    	callfunc "rand__", .minplayer2start, $@rand;
    	for ( .@i = 0; .@i < $@warpwaitingpcnum; .@i++ )
    		setbgid ( .@i % 2 )? .red : .blue, $@warpwaitingpc[ $@rand[.@i] ];
    	delwaitingroom strnpcinfo(0);
    	bg_warp .red, "bat_c01", 50,124;
    	bg_warp .blue, "bat_c01", 149,59;
    	sleep 500;
    	setwall "bat_c01",54,122,6,7,0,"batc01wall_a";
    	setwall "bat_c01",55,122,5,7,0,"batc01wall_b";
    	setwall "bat_c01",140,56,6,7,0,"batc01wall_c";
    	setwall "bat_c01",140,57,5,7,0,"batc01wall_d";
    	bg_updatescore "bat_c01", 0, 0;
    
    OnInit:
    	.red = 3; // red team bg ID
    	.blue = 4; // blue team bg ID
    	set .minplayer2start, 6; // minimum player to start
    
     

    my question is, how to make this script without use waitingrooms?

  2. Hey, can someone help me to realize the following...?

    I want to create 3 commands with bindatcmd

     

    command 1: @eventon (for gms only)

    set a variable to 1

     

    command 2: @eventoff (for gms only)

    set variable to 0

     

    command 3: @joinevent (for players)

    warp the player to the gm

     

     

    for example:

    GM types @event

    announce GM bla has hosted an event, type @joinevent to join him

    (set variable on)

    so if a player types @joinevent he will be warped to the gm

    if @eventoff was used, he cant warp anymore

     

    i think the hardest part is to warp the player to the gm, i actually have no idea how to do this..

  3. Hey, im currently using the following src code for my koe event:

     

    +	if ( s_bl->type == BL_PC && t_bl->type == BL_MOB ) {
    +		struct map_session_data *sd = BL_CAST(BL_PC, s_bl);
    +		struct mob_data *md = BL_CAST(BL_MOB, t_bl);
    +		if ( ( ( md->class_ == 1288 || md->class_ == 1905 )
    +			&& !strcmp( mapindex_id2name(sd->mapindex), "arug_que01" ) ) &&
    +			( sd->status.guild_id == mapreg_readreg( add_str("$koegid") ) || battle_getcurrentskill(src) > 0 ) )
    +		return 0;
    +	}
    +
    

     

    as far i understand, it checks if the map is aruq_que01 and if the mobs are 1288/1905 <- if so, any skill wont work on the mobs.

     

    so is there a way to allow certain skills? such as pneuma, safety wall, sanc, etc?

  4. hey can i request a simple afk check script for bg maps?

     

    like..:

     

    if a player is afk for 60 seconds:

     

    "please move or you will get kicked"

     

    30 seconds later

     

    "you got 30 seconds to move"

     

    after 30 seconds warp the char to save point

  5. Can i ask for another function?

     

    actually If the bg starts, the waitingroom will be deleted, so how about creating a new waitingroom for users to join an running game?

     

    example:

     

    - all users joined and the round starts

    - the chatroom will be deleted and a new one appears

    - the new chatroom have to check how many players are inside, if the limit is reached no one can join the running game

    - like.. to start the round you need 3 players, but the limit is set to 6, so after the round starts another 3 players can join

×
×
  • Create New...