Jump to content
  • 0

PVP Points


DEsMOn

Question


  • Group:  Members
  • Topic Count:  63
  • Topics Per Day:  0.05
  • Content Count:  172
  • Reputation:   1
  • Joined:  11/16/20
  • Last Seen:  

Hello Scripters,

Can any 1 guide in this PVP Point.

How do i add restrictions to avoid point farm in same ip /dual log.

-	script	PVPPOINTS	-1,{
OnPCKillEvent:
getmapxy.@map$,.@x,.@y,BL_PC;
if(getcharid(3)==killedrid) end;
if(.@map$ != "pvp_y_1-2") end;

set .@player1, getcharid(3);
set .@player2, killedrid; 

attachrid(.@player2);
set .@player2points, #PVPCPOINTS;
if(.@player2points) {
 set #PVPCPOINTS, #PVPCPOINTS -1;
 dispbottom "You Lost 1 PvP Point from "+rid2name(killerrid);
 dispbottom "You have total of "+#PVPCPOINTS+" Pvp Points";
}


attachrid(.@player1);
if(.@player2points) {
 dispbottom "Sorry no PvP points on the "+rid2name(killedrid);

}
else
 set #PVPCPOINTS, #PVPCPOINTS +1;
 dispbottom "You Gained 1 PvP Point from "+rid2name(killedrid);
 dispbottom "You have total of "+#PVPCPOINTS+" Pvp Points";
end;

}

 

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  171
  • Reputation:   68
  • Joined:  10/25/20
  • Last Seen:  

Add this in your script and check if it works. https://github.com/rathena/rathena/blob/master/doc/script_commands.txt#L2557

 

	if(getcharip(.@player1) == getcharip(.@player2))
		end;

 

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  63
  • Topics Per Day:  0.05
  • Content Count:  172
  • Reputation:   1
  • Joined:  11/16/20
  • Last Seen:  

5 hours ago, cook1e said:

Add this in your script and check if it works. https://github.com/rathena/rathena/blob/master/doc/script_commands.txt#L2557

 

	if(getcharip(.@player1) == getcharip(.@player2))
		end;

 

in which line need to mention?

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  171
  • Reputation:   68
  • Joined:  10/25/20
  • Last Seen:  

-	script	PVPPOINTS	-1,{
OnPCKillEvent:
getmapxy.@map$,.@x,.@y,BL_PC;
if(getcharid(3)==killedrid) end;
if(.@map$ != "pvp_y_1-2") end;

set .@player1, getcharid(3);
set .@player2, killedrid;

if(getcharip(.@player1) == getcharip(.@player2))
	end; 

attachrid(.@player2);
set .@player2points, #PVPCPOINTS;
if(.@player2points) {
 set #PVPCPOINTS, #PVPCPOINTS -1;
 dispbottom "You Lost 1 PvP Point from "+rid2name(killerrid);
 dispbottom "You have total of "+#PVPCPOINTS+" Pvp Points";
}


attachrid(.@player1);
if(.@player2points) {
 dispbottom "Sorry no PvP points on the "+rid2name(killedrid);

}
else
 set #PVPCPOINTS, #PVPCPOINTS +1;
 dispbottom "You Gained 1 PvP Point from "+rid2name(killedrid);
 dispbottom "You have total of "+#PVPCPOINTS+" Pvp Points";
end;

}
  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  63
  • Topics Per Day:  0.05
  • Content Count:  172
  • Reputation:   1
  • Joined:  11/16/20
  • Last Seen:  

59 minutes ago, cook1e said:
-	script	PVPPOINTS	-1,{
OnPCKillEvent:
getmapxy.@map$,.@x,.@y,BL_PC;
if(getcharid(3)==killedrid) end;
if(.@map$ != "pvp_y_1-2") end;

set .@player1, getcharid(3);
set .@player2, killedrid;

if(getcharip(.@player1) == getcharip(.@player2))
	end; 

attachrid(.@player2);
set .@player2points, #PVPCPOINTS;
if(.@player2points) {
 set #PVPCPOINTS, #PVPCPOINTS -1;
 dispbottom "You Lost 1 PvP Point from "+rid2name(killerrid);
 dispbottom "You have total of "+#PVPCPOINTS+" Pvp Points";
}


attachrid(.@player1);
if(.@player2points) {
 dispbottom "Sorry no PvP points on the "+rid2name(killedrid);

}
else
 set #PVPCPOINTS, #PVPCPOINTS +1;
 dispbottom "You Gained 1 PvP Point from "+rid2name(killedrid);
 dispbottom "You have total of "+#PVPCPOINTS+" Pvp Points";
end;

}

Thank you sir will check & update...

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...