Jump to content
  • 0

help pvp points system.


Question

Posted

how to change this from cashpoint to a custom points? Im using eA. Thank you!

- script PvP Points -1,{
OnPCKillEvent:
if ( strcharinfo(3) == "5@tower" ){
set #CASHPOINTS,#CASHPOINTS+1;
dispbottom "You have gained 1 Cash Point. Total is "+#CASHPOINTS+" Cash Points.";
}
end;

OnPCDieEvent:
if ( strcharinfo(3) == "5@tower" ){
if ( #CASHPOINTS <= 0 ) end;
set #CASHPOINTS,#CASHPOINTS-1;
dispbottom "You have lose 1 Cash Point. Total is "+#CASHPOINTS+" Cash Points.";
}
end;
}

3 answers to this question

Recommended Posts

Posted (edited)

- script PvP Points -1,{
OnPCKillEvent:
if ( strcharinfo(3) == "5@tower" ){
getitem ItemID,quantity; //put the item that the player will receive if they kill a player

}
end;
OnPCDieEvent:
if ( strcharinfo(3) == "5@tower" ){
delitem ItemID,quantity //put the item that will be deleted on the player's inventory when killed
}
end;

if I misunderstood what you want you can explain it then I'll try to do it

Edited by Thanna
Posted

how to change this from cashpoint to a custom points? Im using eA. Thank you!

change

#CASHPOINTS

to any custom variable that you are using..

For Example..

#CustomPoints

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...