Jump to content
  • 0

PVP Point


PapaZola

Question


  • Group:  Members
  • Topic Count:  318
  • Topics Per Day:  0.07
  • Content Count:  925
  • Reputation:   32
  • Joined:  12/05/11
  • Last Seen:  

hello

may i have a script

when kill player on pvp will get 2 points

but when die on pvp map pvp point -1

Link to comment
Share on other sites

9 answers to this question

Recommended Posts

  • 1

  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  118
  • Reputation:   6
  • Joined:  01/25/12
  • Last Seen:  

- script pvppoint -1,{
OnInit:
set .killaddpoint, 2;    //points to add when kill
set .diedeductpoint, 1; //points to deduct when died
end;
OnPCKillEvent:
getmapxy .@map$,.@mapx,.@mapy,0;
if ( .@map$ != "guild_vs3" && .@map$ != "pvp_y_1-2" && .@map!="prtg_cas01") end;
if(getcharid(3)==killedrid) end;
set points, points+.killaddpoint;
dispbottom "You killed "+rid2name(killedrid)+" you gained "+.killaddpoint+" points";
attachrid(killedrid);
set points, points-.diedeductpoint;
dispbottom "You are killed by "+rid2name(killerrid)+" you lost "+.diedeductpoint+" points";
end;
}

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  118
  • Reputation:   6
  • Joined:  01/25/12
  • Last Seen:  

- script pvppoint -1,{
OnInit:
set .killaddpoint, 2;    //points to add when kill
set .diedeductpoint, 1; //points to deduct when died
end;
OnPCKillEvent:
if(!getmapflag(strcharinfo(3),mf_pvp)) end;
if(getcharid(3)==killedrid) end;
set points, points+.killaddpoint;
dispbottom "You killed "+rid2name(killedrid)+" you gained "+.killaddpoint+" points";
attachrid(killedrid);
set points, points-.diedeductpoint;
dispbottom "You are killed by "+rid2name(killerrid)+" you lost "+.diedeductpoint+" points";
end;
}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  318
  • Topics Per Day:  0.07
  • Content Count:  925
  • Reputation:   32
  • Joined:  12/05/11
  • Last Seen:  

this work on map sir? and this cash point?

-guild_vs3

-pvp_y_1-2

-prtg_cas01

Edited by PapaZola
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  118
  • Reputation:   6
  • Joined:  01/25/12
  • Last Seen:  

you only said if the map is a pvp, so this script only works when a map has a mapflag pvp not gvg

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  318
  • Topics Per Day:  0.07
  • Content Count:  925
  • Reputation:   32
  • Joined:  12/05/11
  • Last Seen:  

how if i want make like on map?

-guild_vs3

-pvp_y_1-2

-prtg_cas01

kill will get 2 cashpoint

die will -1 cashpoint

bump

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  94
  • Topics Per Day:  0.02
  • Content Count:  2192
  • Reputation:   252
  • Joined:  11/11/11
  • Last Seen:  

You can also just simply add pvp map flags to those maps and the first script would work just fine lol.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  318
  • Topics Per Day:  0.07
  • Content Count:  925
  • Reputation:   32
  • Joined:  12/05/11
  • Last Seen:  

not working

got his debug

id2o4i37ya.png

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  118
  • Reputation:   6
  • Joined:  01/25/12
  • Last Seen:  

edit .@map to .@map$

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