Jump to content
  • 0

Cash Point On Pvp Kills Script


Nash

Question


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  174
  • Reputation:   0
  • Joined:  02/17/12
  • Last Seen:  

Hi Guys,

I wanna request a script that gives Cash Point On killing any 1 anywhere
and i want it like if player 1 kills other player 5 times in line again and again without killing anyother players
then player 1 gets Nuked and gets -3 cash points so it can stop PlayerS From Farming cash points
please Help

 

Regards,

Nash ^^

Link to comment
Share on other sites

7 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  331
  • Reputation:   63
  • Joined:  11/29/11
  • Last Seen:  

 

-    script    KillCashPoint    -1,{
OnPCKillEvent:
if (killedrid==getcharid(0)) end;    //No Points, killed himself
if (lastkilled==killedrid){
    set lkcount,lkcount+1;
    if (lkcount>=5){
        set #CASHPOINTS,#CASHPOINTS-3;
        dispbottom "You have Lose 3 points of Honour. Your Total Points are "+#CASHPOINTS;
        atcommand "@nuke "+strcharinfo(0);
        end;
    }
    else{
        set #CASHPOINTS,#CASHPOINTS+1;
        dispbottom "You have gained 1 Point of Honour. Your Total Points are "+#CASHPOINTS;
        end;
    }
}
else{
    set lastkilled,killedrid;
    set lkcount,1;
    set #CASHPOINTS,#CASHPOINTS+1;
    dispbottom "You have gained 1 Point of Honour. Your Total Points are "+#CASHPOINTS;
    end;
}
}

Haven't Tested.

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  174
  • Reputation:   0
  • Joined:  02/17/12
  • Last Seen:  

Ty man ill test and reply



Edit :Its Awesome And Working Thx alot bro

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  47
  • Reputation:   0
  • Joined:  01/16/12
  • Last Seen:  


 

-    script    KillCashPoint    -1,{
OnPCKillEvent:
if (killedrid==getcharid(0)) end;    //No Points, killed himself
if (lastkilled==killedrid){
    set lkcount,lkcount+1;
    if (lkcount>=5){
        set #CASHPOINTS,#CASHPOINTS-3;
        dispbottom "You have Lose 3 points of Honour. Your Total Points are "+#CASHPOINTS;
        atcommand "@nuke "+strcharinfo(0);
        end;
    }
    else{
        set #CASHPOINTS,#CASHPOINTS+1;
        dispbottom "You have gained 1 Point of Honour. Your Total Points are "+#CASHPOINTS;
        end;
    }
}
else{
    set lastkilled,killedrid;
    set lkcount,1;
    set #CASHPOINTS,#CASHPOINTS+1;
    dispbottom "You have gained 1 Point of Honour. Your Total Points are "+#CASHPOINTS;
    end;
}
}
 

 

Haven't Tested.

sir.. how to change the reward of this script into item? like Treasure Box ID 7721

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  567
  • Reputation:   18
  • Joined:  04/15/13
  • Last Seen:  

 


-    script    KillCashPoint    -1,{
OnPCKillEvent:
if (killedrid==getcharid(0)) end;    //No Points, killed himself
if (lastkilled==killedrid){
    set lkcount,lkcount+1;
    if (lkcount>=5){
        set #CASHPOINTS,#CASHPOINTS-3;
        dispbottom "You have Lose 3 points of Honour. Your Total Points are "+#CASHPOINTS;
        atcommand "@nuke "+strcharinfo(0);
        end;
    }
    else{
        set #CASHPOINTS,#CASHPOINTS+1;
        dispbottom "You have gained 1 Point of Honour. Your Total Points are "+#CASHPOINTS;
        end;
    }
}
else{
    set lastkilled,killedrid;
    set lkcount,1;
    set #CASHPOINTS,#CASHPOINTS+1;
    dispbottom "You have gained 1 Point of Honour. Your Total Points are "+#CASHPOINTS;
    end;
}
}
 

Haven't Tested.

sir.. how to change the reward of this script into item? like Treasure Box ID 7721

 

 

Change

set #CASHPOINTS,#CASHPOINTS+1;

into:

getitem 7721, 10; 
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  


- if (killedrid==getcharid(0)) end;

+ if (killedrid==getcharid(0) || stcharinfo(3) != "prontera") end; // no suicide, works only on prontera

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