Thread: need help with shop

Results 1 to 3 of 3
  1. #1 need help with shop 
    Retard Strength


    Join Date
    Dec 2007
    Posts
    1,539
    Thanks given
    32
    Thanks received
    74
    Rep Power
    97
    on emulous i want to make it so you need 99 magic to view a shop, how can i make that?

    case 553: // Shop keeper
    c.getShops().openShop(2);
    break;
    Reply With Quote  
     

  2. #2  
    skatty1
    Guest
    i dont now how add shop to richscape v4.somebody can help me?
    Reply With Quote  
     

  3. #3  
    Registered Member

    Join Date
    Jul 2008
    Posts
    939
    Thanks given
    0
    Thanks received
    3
    Rep Power
    781
    Code:
    case 553:
              if (playerLevel[Magic] == 99) {
                      c.getShops().openShop(2);
              }
              break;
    Okay, I'll admit I don't the exact method for levels, but I'm sure you find it. Basically, if you have the magic level of 99, then it'll do what it's told however if you don't have it, it'll do nothing. If you want it to send a message notifying you that you need a certain level, then add this. Again, change the identifiers that won't cause any errors.

    Code:
    case 553:
              if (playerLevel[Magic] == 99) {
                      c.getShops().openShop(2);
              } else {
                      sendMessage("You need a magic level of 99!");
              }
              break;
    I'm Rog3r, fool.
    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

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •