Jump to content
  • 0

Fixed Deathmatch Pvp By Philip


Yugosh

Question


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  65
  • Reputation:   0
  • Joined:  05/09/12
  • Last Seen:  

Some one can help me? no body help me in anyforum there :(

 

i need to change.

if i kill the same player 3/5 didnt get point and cant drop item from there.

and if i die my item fall down. huh

please some one help me thanks

 

 

 

 

Deathmatch.txt

Link to comment
Share on other sites

5 answers to this question

Recommended Posts


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

if i kill the same player 3/5 didnt get point

A kill B                                                                                                 A kill B

A kill B                                                                                                 A kill C

A kill B                                                                                                 A kill B

A kill B                                                                                                 A kill C

A kill B                                                                                                 A kill B

--------                                                              or                                ---------

kills x3 the same player

1/ In following                                                                                     2/ Not following

 

Don't get a points                                                                           Don't get a point if he kills him x3 in 5min

if he kills the same in following

 

Which option ? 1 or 2

 

 

cant drop item from there

You mean Mapflag#nodrop ?

 

 

if i die my item fall down

Mapflag#pvp_nightmaredrop ?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  65
  • Reputation:   0
  • Joined:  05/09/12
  • Last Seen:  

if i kill the same player 3/5 didnt get point

A kill B                                                                                                 A kill B

A kill B                                                                                                 A kill C

A kill B                                                                                                 A kill B

A kill B                                                                                                 A kill C

A kill B                                                                                                 A kill B

--------                                                              or                                ---------

kills x3 the same player

1/ In following                                                                                     2/ Not following

 

Don't get a points                                                                           Don't get a point if he kills him x3 in 5min

if he kills the same in following

 

Which option ? 1 or 2

 

 

>cant drop item from there

You mean Mapflag#nodrop ?

 

 

if i die my item fall down

Mapflag#pvp_nightmaredrop ?

 

 

opsi number 2 bro /no1

 

thanks for your help nodrop item /ok

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  


//Author-Script PHiLiP

prontera,156,180,6 script DeathMatch 733,{

mes "[DeathMatch Warper]";

mes "Do you really wanna go to the Arena?";

switch(select("Yeah:Nope")) {

case 1:

announce "["+strcharinfo(0)+"] Has Enter DeathMatch Arena",bc_all,"0xFF0066",FW_BOLD,10;

warp "pvp_n_1-5",0,0;

end;

case 2:

mes "Ok,see you later.";

close;

}

OnPCKillEvent:

if( killedrid == getcharid(3) || strcharinfo(3) != "pvp_n_1-5" ) end;

announce strcharinfo(0)+" has killed "+ rid2name( killedrid ), 0;

.@killed = killedrid;

if( getd( "@timer_pvp"+ .@killed ) < gettimetick(2) ) {

setd "@points_pvp"+ .@killed, 0;

setd "@timer_pvp"+ .@killed, 0;

}

if( getd( "@points_pvp"+ .@killed ) > 2 ) {

dispbottom "[Battle Points] : You already kill "+ rid2name( .@killed ) +" more than 3 times in the last 5 min.";

if( attachrid( .@killed ) ) {

sleep2 100;

atcommand "@Alive";

warp strcharinfo(3),0,0;

}

end;

}

else if( getd( "@points_pvp"+ .@killed ) == 0 )

setd "@timer_pvp"+ .@killed, gettimetick(2) + .delay * 60;

setd "@points_pvp"+ .@killed, getd( "@points_pvp"+ .@killed ) + 1;

set #dmpoint, #dmpoint + 2;

dispbottom "[Battle Points] : +2 Deathmatch Points, Current Points = "+#dmpoint;

if( attachrid( .@killed ) ) {

sleep2 100;

atcommand "@Alive";

warp strcharinfo(3),0,0;

set #dmpoint, #dmpoint - 1;

dispbottom "[Battle Points] :-1 Deathmatch Points, Current Points = "+#dmpoint;

}

end;

OnInit:

.delay = 5; // 5 mins

end;

}

// ----------- Heal Buff Repair -----------

pvp_n_1-5,96,69,5 script Healer 936,{

if(TimeHealed > gettimetick(2)) {

mes "[Healer]";

mes "I am sorry, but I am not a robot.";

mes "I am still exhausted from the last time I healed you.";

close;

}

sleep2 100;

skilleffect 34,0; sc_start SC_BLESSING,300000,10;

skilleffect 29,0; sc_start SC_INCREASEAGI,300000,10;

percentheal 100,100;

emotion e_no1;

set TimeHealed, gettimetick(2) + 10;

while (getbrokenid(1)) {

repair(1);

set .@a, .@a +1;

}

if (.@a) dispbottom .@a + " items repaired.";

end;

}

// --------------- Exit ---------------------

pvp_n_1-5,103,69,5 script Exit 902,{

warp "prontera.gat" ,155,176;

}

// --------------Enter/exit from heaker----------

pvp_n_1-5,99,83,2 script Enter 964,{

warp "pvp_n_1-5" ,99,66;

}

pvp_n_1-5,99,73,5 script Back To Arena 964,{

warp "pvp_n_1-5" ,0,0;

}

// --------------- Wall ---------------------

pvp_n_1-5,103,60,5 script wall -1,{

OnInit:

setcell "pvp_n_1-5",101,62,98,82,cell_walkable,0;

end;

}

//mapflags

pvp_n_1-5 mapflag pvp

pvp_n_1-5 mapflag nosave

pvp_n_1-5 mapflag noteleport

pvp_n_1-5 mapflag nowarpto

pvp_n_1-5 mapflag nowarp

pvp_n_1-5 mapflag nogo

pvp_n_1-5 mapflag nobranch

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  65
  • Reputation:   0
  • Joined:  05/09/12
  • Last Seen:  

Line 19 i got error this script for rathena right?

if we change to eathena how change it? thanksssss

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  


//Author-Script		PHiLiP

prontera,156,180,6	script	DeathMatch	733,{
	mes "[DeathMatch Warper]";
	mes "Do you really wanna go to the Arena?";
	switch(select("Yeah:Nope")) {
	case 1:
		announce "["+strcharinfo(0)+"] Has Enter DeathMatch Arena",bc_all,"0xFF0066",FW_BOLD,10;
		warp "pvp_n_1-5",0,0;
		end;
	case 2:
		mes "Ok,see you later.";
		close;
	}
OnPCKillEvent:
	if( killedrid == getcharid(3) || strcharinfo(3) != "pvp_n_1-5" ) end;
	announce strcharinfo(0)+" has killed "+ rid2name( killedrid ), 0;
	
	set .@killed, killedrid;
	if( getd( "@timer_pvp"+ .@killed ) < gettimetick(2) ) {
		setd "@points_pvp"+ .@killed, 0;
		setd "@timer_pvp"+ .@killed, 0;
	}
	if( getd( "@points_pvp"+ .@killed ) > 2 ) {
		dispbottom "[Battle Points] : You already kill "+ rid2name( .@killed ) +" more than 3 times in the last 5 min.";
		if( attachrid( .@killed ) ) {
			sleep2 100;
			atcommand "@Alive";
			warp strcharinfo(3),0,0;
		}
		end;
	}
	else if( getd( "@points_pvp"+ .@killed ) == 0 )
		setd "@timer_pvp"+ .@killed, gettimetick(2) + .delay * 60;
	setd "@points_pvp"+ .@killed, getd( "@points_pvp"+ .@killed ) + 1;
	set #dmpoint, #dmpoint + 2;
	dispbottom "[Battle Points] : +2 Deathmatch Points, Current Points = "+#dmpoint;
	if( attachrid( .@killed ) ) {
		sleep2 100;
		atcommand "@Alive";
		warp strcharinfo(3),0,0;
		set #dmpoint, #dmpoint - 1;
		dispbottom "[Battle Points] :-1 Deathmatch Points, Current Points = "+#dmpoint;
	}
	end;
OnInit:
	set .delay, 5; // 5 mins
	end;
}

// ----------- Heal Buff Repair -----------
pvp_n_1-5,96,69,5	script	Healer 	936,{
if(TimeHealed > gettimetick(2)) {
	mes "[Healer]";
	mes "I am sorry, but I am not a robot.";
	mes "I am still exhausted from the last time I healed you.";
	close;
	}
	sleep2 100;
	skilleffect 34,0; sc_start SC_BLESSING,300000,10;
	skilleffect 29,0; sc_start SC_INCREASEAGI,300000,10;
	percentheal 100,100;
	emotion e_no1;
	set TimeHealed, gettimetick(2) + 10;
	while (getbrokenid(1)) {
        repair(1);
        set .@a, .@a +1;
    }
    if (.@a) dispbottom .@a + " items repaired.";
    end;
}

// --------------- Exit ---------------------
pvp_n_1-5,103,69,5	script	Exit	902,{
	warp "prontera.gat" ,155,176;
}
// --------------Enter/exit from heaker----------
pvp_n_1-5,99,83,2	script	Enter	964,{
	warp "pvp_n_1-5" ,99,66;
}
pvp_n_1-5,99,73,5	script	Back To Arena	964,{
	warp "pvp_n_1-5" ,0,0;
}
// --------------- Wall ---------------------
pvp_n_1-5,103,60,5	script	wall	-1,{
OnInit:
	setcell "pvp_n_1-5",101,62,98,82,cell_walkable,0;
	end;
}

//mapflags
pvp_n_1-5	mapflag	pvp
pvp_n_1-5	mapflag	nosave
pvp_n_1-5	mapflag	noteleport
pvp_n_1-5	mapflag	nowarpto
pvp_n_1-5	mapflag	nowarp
pvp_n_1-5	mapflag	nogo
pvp_n_1-5	mapflag	nobranch

= for eA

  • Upvote 1
Link to comment
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.   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.

×
×
  • Create New...