Thread: Minigame help

Results 1 to 2 of 2
  1. #1 Minigame help 
    tphat
    Guest
    I'm making a minigame for my server and I need to know how to make it so that if you have a certain amount of keys you can use them on a chest and get items?
    Help would be appreciated.


    this is what I have right now, would this work?

    if(objectID == 2566){
    if(playerHasItem(709, 5)) {
    deleteItem(709, getItemSlot(709), 1);
    addItem(8002, 1);
    addItem(995,1000000);
    sM("You search the chest and find some crap");
    } else
    sM("You need 5 keys to obtain the reward!");
    }
    Reply With Quote  
     

  2. #2  
    tphat
    Guest
    Nevermind I got it! Woot!
    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
  •