Thread: Donators recieve 2x pkp

Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1 Donators recieve 2x pkp 
    Registered Member
    Join Date
    Jan 2014
    Posts
    142
    Thanks given
    9
    Thanks received
    0
    Rep Power
    11
    Ok so i was wondering if i could make it so Regular playres get 1 pkp a kill like it is now

    But make donators get 2x pkp per kill

    if (Server.playerHandler.players[c.playerId].connectedFrom != o.lastKilled && c.duelStatus == 0) {
    o.pkPoints = (o.pkPoints + 1);
    o.sendMessage("You recieved 1 PKP.");
    o.sendMessage("You have defeated " +Misc.optimizeText(c.playerName)+ "!");
    o.lastKilled = Server.playerHandler.players[c.playerId].connectedFrom;
    o.getPA().addSkillXP(20000, 23);
    //c.getPA().addSkillXP(-4000, 23);
    if (o.earningPotential >= 85) {
    o.earningPotential -= 40 + Misc.random(50);
    int random = (int)(Math.random() * (xEP.length - 1));
    Server.itemHandler.createGroundItem(o, xEP[random][0], c.absX, c.absY,
    xEP[random][1], o.playerId);
    o.sendMessage("You recieved an EP drop.");
    o.sendMessage("Your EP decreased to: "+c.earningPotential+".");
    }
    } else {
    //c.getPA().addSkillXP(-4000, 23);
    o.sendMessage("You do not recieve PKP because you have killed " +c.playerName+ " twice in a row.");
    if (o.earningPotential >= 85) {
    o.earningPotential -= 40 + Misc.random(50);
    int random = (int)(Math.random() * (xEP.length - 1));
    Server.itemHandler.createGroundItem(o, xEP[random][0], c.absX, c.absY,
    xEP[random][1], c.playerId);
    o.sendMessage("Your EP decreased to: "+c.earningPotential+".");
    }
    }
    }
    }
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    May 2013
    Posts
    1,169
    Thanks given
    28
    Thanks received
    133
    Rep Power
    53
    int pointsToGive = 1;
    if (!o.isDonator == 1) {
    o.pkPoints += pointsToGive;
    } else {
    o.pkPoints += pointsToGive * 2;
    }
    If only I hadn't given you up, my life could've been different.
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Jan 2014
    Posts
    142
    Thanks given
    9
    Thanks received
    0
    Rep Power
    11
    Where do i add that? can u add it in soz man im zoning. can u copy that code add it in the original post and paste it soz
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    May 2013
    Posts
    1,169
    Thanks given
    28
    Thanks received
    133
    Rep Power
    53
    Quote Originally Posted by Deadly-pkerz View Post
    Where do i add that? can u add it in soz man im zoning. can u copy that code add it in the original post and paste it soz
    Nah, should be simple af to do it yourself if you use your head
    If only I hadn't given you up, my life could've been different.
    Reply With Quote  
     

  5. #5  
    Banned

    Join Date
    Nov 2013
    Posts
    1,015
    Thanks given
    240
    Thanks received
    265
    Rep Power
    0
    Please try using the code option when posting a code; makes it alot easier to most people.. And if you're having trouble finding the symbol on the editor, well.. your simply retarded - here is what the symbol looks like: #

    Thank you, now please edit this.
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Jan 2014
    Posts
    142
    Thanks given
    9
    Thanks received
    0
    Rep Power
    11
    that one doesnt even work. plus i want a message.

    "You recieved 2 PKP becuase your're a donator"
    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    May 2013
    Posts
    1,169
    Thanks given
    28
    Thanks received
    133
    Rep Power
    53
    Quote Originally Posted by Deadly-pkerz View Post
    that one doesnt even work. plus i want a message.

    "You recieved 2 PKP becuase your're a donator"
    If you can't make it send that message yourself lol.. The answer to your question lies in many parts in your server
    If only I hadn't given you up, my life could've been different.
    Reply With Quote  
     

  8. #8  
    Banned

    Join Date
    Nov 2013
    Posts
    1,015
    Thanks given
    240
    Thanks received
    265
    Rep Power
    0
    Code:
    c.sendMessage("You've received "+amount+" PKP Points");
              break;
    And if your having trouble editing this if needed; please follow these instructions below:

    1. Get a baseball bat of some kind, or something really sturdy but liable.
    2. Unplug all connections to your computer.
    3. Simple line the baseball bat or whatever your using, line it up.
    4. Then simple enjoy smashing.
    5. Then your completely finished! No more having to worry about bugs or anything; your server is 100% Coded.
    Reply With Quote  
     

  9. #9  
    Registered Member
    Join Date
    May 2013
    Posts
    1,169
    Thanks given
    28
    Thanks received
    133
    Rep Power
    53
    Quote Originally Posted by Santiago View Post
    Code:
    c.sendMessage("You've received "+amount+" PKP Points");
              break;
    And if your having trouble editing this if needed; please follow these instructions below:

    1. Get a baseball bat of some kind, or something really sturdy but liable.
    2. Unplug all connections to your computer.
    3. Simple line the baseball bat or whatever your using, line it up.
    4. Then simple enjoy smashing.
    5. Then your completely finished! No more having to worry about bugs or anything; your server is 100% Coded.
    Why do you have a break;
    If only I hadn't given you up, my life could've been different.
    Reply With Quote  
     

  10. #10  
    Banned

    Join Date
    Nov 2013
    Posts
    1,015
    Thanks given
    240
    Thanks received
    265
    Rep Power
    0
    Maybe because your supposed to? Or maybe because I'm used to writing Project Insanity code.
    Reply With Quote  
     

Page 1 of 2 12 LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. [PI] 2x pkp for donators?
    By nubia in forum Help
    Replies: 12
    Last Post: 02-08-2013, 05:53 PM
  2. How to make donators have double pkp?
    By Solstice in forum Requests
    Replies: 11
    Last Post: 07-18-2012, 05:51 AM
  3. Replies: 5
    Last Post: 12-16-2011, 07:54 AM
  4. [PI] Donator Gets 2x PC Points
    By Rockstar Jax in forum Help
    Replies: 1
    Last Post: 06-11-2011, 01:42 AM
  5. How do you recieve donations
    By T-Sex in forum Help
    Replies: 9
    Last Post: 07-28-2010, 04:10 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •