Thread: [Pi] Pkp requirement

Results 1 to 6 of 6
  1. #1 [Pi] Pkp requirement 
    Registered Member
    Join Date
    Jan 2013
    Posts
    15
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    [AD]IF(itemName.contains("verac") || itemName.contains("guthan") || itemName.contains("dharok") || itemName.contains("torag")) {


    IF(itemName.contains("hammers")) {
    c.attackLevelReq = 70;
    c.strengthLevelReq = 70;
    } ELSE IF(itemName.contains("axe")) {
    c.attackLevelReq = 70;
    c.strengthLevelReq = 70;
    } ELSE IF(itemName.contains("warspear")) {
    c.attackLevelReq = 70;
    c.strengthLevelReq = 70;
    } ELSE IF(itemName.contains("flail")) {
    c.attackLevelReq = 70;
    c.strengthLevelReq = 70;
    } ELSE {
    c.defenceLevelReq = 70;
    }
    }[/AD]

    How do i make it so that, when someone wants to wear these items, they need a certain ammount of pkp?
    Reply With Quote  
     

  2. #2  
    Dark-Perfection Owner

    Join Date
    Jun 2012
    Posts
    485
    Thanks given
    51
    Thanks received
    45
    Rep Power
    22
    if (c.pkp > 100) {
    blablabla
    } else {
    c.sendMessage("U need 100+ pkp points to wear this item.");

    Add this at clickitem or wearitem. not the code above.


    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Jan 2013
    Posts
    15
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    Quote Originally Posted by reader View Post
    if (c.pkp > 100) {
    blablabla
    } else {
    c.sendMessage("U need 100+ pkp points to wear this item.");

    Add this at clickitem or wearitem. not the code above.
    ?? why not item assistant?
    Reply With Quote  
     

  4. #4  
    Dark-Perfection Owner

    Join Date
    Jun 2012
    Posts
    485
    Thanks given
    51
    Thanks received
    45
    Rep Power
    22
    U cud add it in item ass Works the same.


    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Jan 2013
    Posts
    15
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    Quote Originally Posted by reader View Post
    U cud add it in item ass Works the same.
    not working when i put it in clickitem, i just want to know what i put if i were to put in itemassistant.
    Reply With Quote  
     

  6. #6  
    Dark-Perfection Owner

    Join Date
    Jun 2012
    Posts
    485
    Thanks given
    51
    Thanks received
    45
    Rep Power
    22
    Well search: wearitem in itemassistant.java

    Paste this there:

    if(wearID == itemid && (c.pkp > 100)) {
    targetSlot = 0;
    } else {
    c.sendMessage("U need 100+ pkp points to wear this item.");
    return;

    Change the itemslot to where its suppose to be.


    Reply With Quote  
     


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. Shoutbox Requirement
    By Scott Perretta in forum Suggestions
    Replies: 9
    Last Post: 01-01-2013, 07:56 AM
  2. Staff Requirement
    By iPhoneGuy in forum Suggestions
    Replies: 15
    Last Post: 01-02-2010, 07:04 PM
  3. Combat lev Requirement to Go in ?
    By Akeid in forum Help
    Replies: 4
    Last Post: 12-13-2009, 02:53 AM
  4. Requirement:
    By Lingerz in forum Requests
    Replies: 0
    Last Post: 05-09-2009, 09:37 PM
  5. A requirement
    By Ventrix in forum Models
    Replies: 0
    Last Post: 03-21-2009, 03:03 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •