Jump to content
  • 0

help pvp points system.


Petey Pablo

Question


  • Group:  Members
  • Topic Count:  152
  • Topics Per Day:  0.03
  • Content Count:  569
  • Reputation:   11
  • Joined:  11/24/11
  • Last Seen:  

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;
}

Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  45
  • Topics Per Day:  0.01
  • Content Count:  271
  • Reputation:   7
  • Joined:  01/06/12
  • Last Seen:  

- 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
Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  152
  • Topics Per Day:  0.03
  • Content Count:  569
  • Reputation:   11
  • Joined:  11/24/11
  • Last Seen:  

Thank you. Topic closed

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