Jump to content
  • 0

Simple Script Problem


Question

5 answers to this question

Recommended Posts

Posted

isnt that is the default behavious of pvp map ?

 

unless you have your own custom src mod and changed it..

hi Emistry, my pvp map is guild_vs3. i removed the guild_vs3 in gvg mapflags. and set it to pvp map.

Posted

Yes it should work then.

As long as the map has the pvp mapflag, does NOT have the pvp_nocalcrank mapflag, and pk_mode is off.

This is the source code trunk/src/map/pc.c (line 6796)

	// pvp
	// disable certain pvp functions on pk_mode [Valaris]
	if( map[sd->bl.m].flag.pvp && !battle_config.pk_mode && !map[sd->bl.m].flag.pvp_nocalcrank )
	{
		sd->pvp_point -= 5;
		sd->pvp_lost++;
		if( src && src->type == BL_PC )
		{
			struct map_session_data *ssd = (struct map_session_data *)src;
			ssd->pvp_point++;
			ssd->pvp_won++;
		}
		if( sd->pvp_point < 0 )
		{
			add_timer(tick+1000, pc_respawn_timer,sd->bl.id,0);
			return 1|8;
		}
	}
Posted

Yes it should work then.

As long as the map has the pvp mapflag, does NOT have the pvp_nocalcrank mapflag, and pk_mode is off.

This is the source code trunk/src/map/pc.c (line 6796)

	// pvp
	// disable certain pvp functions on pk_mode [Valaris]
	if( map[sd->bl.m].flag.pvp && !battle_config.pk_mode && !map[sd->bl.m].flag.pvp_nocalcrank )
	{
		sd->pvp_point -= 5;
		sd->pvp_lost++;
		if( src && src->type == BL_PC )
		{
			struct map_session_data *ssd = (struct map_session_data *)src;
			ssd->pvp_point++;
			ssd->pvp_won++;
		}
		if( sd->pvp_point < 0 )
		{
			add_timer(tick+1000, pc_respawn_timer,sd->bl.id,0);
			return 1|8;
		}
	}
i got the script, but how can i set this just for guild_vs3

 

-    script    respawn    -1,{
OnPCDieEvent:
    sleep2 1;
    set @pk_death, @pk_death + 1;
    if ( @pk_death >= 2 ) {
        warp "SavePoint",0,0;
        atcommand "@alive";
        set hp,1;
        set @pk_death,0;
    }
}
Posted

You would have to edit or remove lines 6796-6813.

Option 1: remove those lines and use a custom OnPCDieEvent script to warp them out after 2 deaths

Option 2: edit line 6798 and add a mapname check to see if they are on guild_vs3.

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.   Paste as plain text instead

  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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...