Jump to content
  • 1

Farming PvP points by killing in pvp problem.


Currently

Question


  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.04
  • Content Count:  313
  • Reputation:   1
  • Joined:  01/22/12
  • Last Seen:  

Can I request a script where they have to kill another player to earn another pvp points?

Example:

Player 1 killed Player 2 for a point.

Player 1 has to kill Player 3 for a point.

Player 1 can kill Player 2 again for a point.

Overview: Player 1 can't keep killing Player 2. Player 1 have to kill another player.

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 1

  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

-	script	PVP_Points	-1,{
OnPCKillEvent:
if (killedrid == getcharid(3) || killedrid == last_kill) end;
set last_kill, killedrid;
set #CASHPOINTS, #CASHPOINTS+1;
dispbottom "Gained a kill point! Total: "+#CASHPOINTS;
end;
}

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  100
  • Reputation:   0
  • Joined:  10/22/16
  • Last Seen:  

On 12/21/2012 at 10:18 AM, Euphy said:

-	script	PVP_Points	-1,{
OnPCKillEvent:
if (killedrid == getcharid(3) || killedrid == last_kill) end;
set last_kill, killedrid;
set #CASHPOINTS, #CASHPOINTS+1;
dispbottom "Gained a kill point! Total: "+#CASHPOINTS;
end;
}
 

 

Hi sir, what if I want to add to PvP and WoE Maps only? And minus points everytime you die.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

I think the last_kill variable can be change into a temporary player variable ...

this killedrid is not a permanent player variable, its a constant

http://www.eathena.ws/board/index.php?autocom=bugtracker&showbug=3249

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.04
  • Content Count:  313
  • Reputation:   1
  • Joined:  01/22/12
  • Last Seen:  

Thank you! Working perfectly (:

Edited by Dreamworks
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

I think the last_kill variable can be change into a temporary player variable ...

You can farm kills logging in and out, then.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

I think the last_kill variable can be change into a temporary player variable ...

You can farm kills logging in and out, then.

ahh ... that's because its from my experiences from working on a live server ...

because every pvp maps has nosave mapflag to prevent them from ambushing other players by logging-out-and-in

... it has become an instinct to me that every event script has nowarp/nowarpto/noteleport/nosave mapflags =/

PS: and ... I usually never use permanent player variable in an event script ... I guess this one is an exception ...

Edited by AnnieRuru
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  92
  • Topics Per Day:  0.02
  • Content Count:  354
  • Reputation:   22
  • Joined:  11/17/11
  • Last Seen:  

-	script	PVP_Points	-1,{
OnPCKillEvent:
if (killedrid == getcharid(3) || killedrid == last_kill) end;
set last_kill, killedrid;
set Pvp Points, Pvp Points+1;
dispbottom "Gained a kill point! Total: "+Pvp Points;
end;
}

is this possible?

or do i have to make it "Pvp Points" ?

nvm, solved it, used @Emistry's Custom Currency Shop. :) Thanks

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