Thread: Iron man help REP ++

Page 1 of 2 12 LastLast
Results 1 to 10 of 17
  1. #1 Iron man help REP ++ 
    Banned
    Join Date
    Jan 2015
    Posts
    29
    Thanks given
    1
    Thanks received
    2
    Rep Power
    0
    Hello,
    How can I make an exception for iron man to open 2-3 shops.
    I've got this currently in my OpenShop method
    if (ShopID != 81 && c.playerRights == 5) {
    c.getDH().sendStatement("you're an iron man sorry");
    return;
    }
    How would I make it so, they can open another shop ID such as Shop ID 33?
    Thanks in advance
    Reply With Quote  
     

  2. #2  
    Donator
    abd1's Avatar
    Join Date
    Nov 2011
    Posts
    707
    Thanks given
    150
    Thanks received
    67
    Rep Power
    38
    Code:
    if ((ShopID != 81 ||ShopID != 33)  && c.playerRights == 5) {
    c.getDH().sendStatement("you're an iron man sorry");
    return;
    }
    Try this.
    Reply With Quote  
     

  3. #3  
    Banned
    Join Date
    Jan 2015
    Posts
    29
    Thanks given
    1
    Thanks received
    2
    Rep Power
    0
    Quote Originally Posted by abd1 View Post
    Code:
    if ((ShopID != 81 ||ShopID != 33)  && c.playerRights == 5) {
    c.getDH().sendStatement("you're an iron man sorry");
    return;
    }
    Try this.
    No Errors > Doesn't work o.o
    Reply With Quote  
     

  4. #4  
    Donator
    The Stoned's Avatar
    Join Date
    Jan 2013
    Posts
    647
    Thanks given
    62
    Thanks received
    82
    Rep Power
    62
    Code:
    if (c.playerRights == 5 && ShopID != 81 || ShopID != 33) {
    c.getDH().sendStatement("you're an iron man sorry");
    return;
    }
    Reply With Quote  
     

  5. #5  
    Banned
    Join Date
    Jan 2015
    Posts
    29
    Thanks given
    1
    Thanks received
    2
    Rep Power
    0
    Quote Originally Posted by focus clutch View Post
    Code:
    if (c.playerRights == 5 && ShopID != 81 || ShopID != 33) {
    c.getDH().sendStatement("you're an iron man sorry");
    return;
    }
    Still not working o.o
    No errors.
    Reply With Quote  
     

  6. #6  
    Donator

    Join Date
    Oct 2014
    Posts
    587
    Thanks given
    29
    Thanks received
    76
    Rep Power
    26
    Quote Originally Posted by Top Gun View Post
    Still not working o.o
    No errors.
    Then I suggest you put it at the right place.

    Edit: use && instead of ||
    Programming service - Fast, Cheap & Quality
    http://www.rune-server.org/black-mar...-services.html

    Project that I am currently working on:
    http://www.rune-server.org/runescape...emon-rsps.html

    Reply With Quote  
     

  7. #7  
    Registered Member

    Join Date
    Mar 2013
    Age
    11
    Posts
    509
    Thanks given
    18
    Thanks received
    30
    Rep Power
    89
    Quote Originally Posted by Top Gun View Post
    Still not working o.o
    No errors.
    ... Change != to ==

    REP++ if it works
    Reply With Quote  
     

  8. #8  
    Banned
    Join Date
    Jan 2015
    Posts
    29
    Thanks given
    1
    Thanks received
    2
    Rep Power
    0
    Quote Originally Posted by Yourbad View Post
    ... Change != to ==

    REP++ if it works
    public void openShop(int ShopID){
    if (c.playerRights == 5 && ShopID == 81 || ShopID == 33) {
    c.getDH().sendStatement("You cannot perform this action.");
    return;
    }
    c.getItems().resetItems(3823);
    resetShop(ShopID);
    c.isShopping = true;
    c.myShopId = ShopID;
    c.getPA().sendFrame248(3824, 3822);
    c.getPA().sendFrame126(ShopHandler.ShopName[ShopID], 3901);
    }
    mhm?
    Reply With Quote  
     

  9. #9  
    Registered Member

    Join Date
    Mar 2013
    Age
    11
    Posts
    509
    Thanks given
    18
    Thanks received
    30
    Rep Power
    89
    Quote Originally Posted by Top Gun View Post
    mhm?
    Code:
    if (c.playerRights == 5 && ShopID == 81 || ShopID == 33) {
    c.getDH().sendStatement("you're an iron man sorry");
    return;
    }
    Try it
    Reply With Quote  
     

  10. #10  
    Donator
    The Stoned's Avatar
    Join Date
    Jan 2013
    Posts
    647
    Thanks given
    62
    Thanks received
    82
    Rep Power
    62
    The code you just posted, would check to see if they are iron man and specifically not allow them to open the shops with those IDs.
    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. Iron Man sig
    By Bullet in forum Showcase
    Replies: 12
    Last Post: 04-12-2008, 12:59 AM
  2. Iron Man - Legacy
    By LEGOTRooPa in forum Showcase
    Replies: 2
    Last Post: 03-10-2008, 09:07 PM
  3. Need Serious Help Rep+
    By Alex in forum Chat
    Replies: 2
    Last Post: 02-16-2008, 07:07 PM
  4. new sig:iron man
    By pureownage in forum Showcase
    Replies: 8
    Last Post: 10-30-2007, 07:53 PM
  5. help rep++
    By b0nb0n 0wnzzzz in forum RS2 Server
    Replies: 5
    Last Post: 09-22-2007, 05:53 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
  •