Thread: PI shop help

Results 1 to 9 of 9
  1. #1 PI shop help 
    Registered Member
    Join Date
    Nov 2009
    Posts
    519
    Thanks given
    135
    Thanks received
    10
    Rep Power
    32
    i need help i want it so that this shop only opens to donators how do i do that?


    my charcter file thing is c.isDonator and hear is the shop code i have tryed tuts but they kept opening to normal players


    case 518:
    c.getShops().openShop(78);
    c.sendMessage("You currently have <col=255>" + c.pkPoints + "</col> PKP.");
    break;
    Reply With Quote  
     

  2. #2  
    ᙢᗩᖇᓰᒎᘎᗩﬡᗩ ᙢᙓﬡᗩᑕᙓ
    Imworth73m's Avatar
    Join Date
    Jun 2011
    Posts
    640
    Thanks given
    35
    Thanks received
    115
    Rep Power
    184
    State that the shop is for a certain player.

    Code:
    if (c.playerRights == 1){
    Change the 1 to whatever your donator number is.
    Reply With Quote  
     

  3. #3  
    Spoonfeed Me Bitch
    AddictivePkz's Avatar
    Join Date
    Jun 2012
    Age
    28
    Posts
    733
    Thanks given
    79
    Thanks received
    51
    Rep Power
    0
    [CODE] case 518
    c.isDonator=1
    c.getShops().openShop(78);
    c.sendMessage..
    c.pkPoints..
    }Else return some shit like that idr
    Quote Originally Posted by Fakeblitz View Post
    What does [PI] mean? (sorry i am used to 503+)
    And what base is this?
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Nov 2009
    Posts
    519
    Thanks given
    135
    Thanks received
    10
    Rep Power
    32
    that didnt help please give me a proper code
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Nov 2009
    Posts
    519
    Thanks given
    135
    Thanks received
    10
    Rep Power
    32
    case 518:
    if (c.isDonator > 4){
    c.getShops().openShop(78);
    c.sendMessage("You currently have <col=255>" + c.pkPoints + "</col> PKP.");
    break;


    is this correct?
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Nov 2009
    Posts
    519
    Thanks given
    135
    Thanks received
    10
    Rep Power
    32
    this is my code now but this still opens up for normal players why...

    case 518:
    c.isDonator = 1;
    c.getShops().openShop(78);
    c.sendMessage("You currently have <col=255>" + c.pkPoints + "</col> PKP.");
    break;
    Reply With Quote  
     

  7. #7  
    Registered Member Rexx's Avatar
    Join Date
    Jul 2012
    Posts
    34
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    This is the code i have for my Donator Shop
    Code:
    case ###:
                    if (c.isDonator == 1 || c.playerRights == 1 || c.playerRights == 2 || c.playerRights == 3) {
    				c.getShops().openShop(68);
    c.sendMessage("DONT SELL THIS TO NORMAL PLAYERS!!");
    } else {
    				c.sendMessage("Only donators/staff can view this shop!");
    			}
    Than if you are not staff or donator you can not open it. Replace the case ### and replace it with your number also, the openShop(##) and make that your shop number that you edit in shops.cfg need any more help just ask
    Just another Signature.
    Reply With Quote  
     

  8. #8  
    Registered Member sky skunk's Avatar
    Join Date
    Jun 2012
    Posts
    68
    Thanks given
    2
    Thanks received
    0
    Rep Power
    11
    google
    Reply With Quote  
     

  9. #9  
    Spoonfeed Me Bitch
    AddictivePkz's Avatar
    Join Date
    Jun 2012
    Age
    28
    Posts
    733
    Thanks given
    79
    Thanks received
    51
    Rep Power
    0
    Just use the same code as u have in the beginning but above c.openshop put c.playerRights >= 1
    Then under c.pkpoints put else if{
    c.sendMessage you need to be a donator to view this shop..

    Just edit it to work but that's the format. Ur an idiot if u can't do what I said properly and u can't expect to be spoonfed all the time
    Quote Originally Posted by Fakeblitz View Post
    What does [PI] mean? (sorry i am used to 503+)
    And what base is this?
    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. Replies: 38
    Last Post: 10-02-2011, 10:57 PM
  2. Replies: 2
    Last Post: 09-08-2011, 06:19 AM
  3. Replies: 13
    Last Post: 06-20-2011, 02:25 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
  •