Thread: [PI] GE Box Opening

Results 1 to 2 of 2
  1. #1 [PI] GE Box Opening 
    Registered Member
    Join Date
    Dec 2011
    Posts
    454
    Thanks given
    17
    Thanks received
    37
    Rep Power
    61
    What im trying to do is add in GE box opening but then I noticed that if the inventory is full than the items will disappear could anyone tell me how to drop items/ make it not work if inventory is full or at least put a link to a snippet/tut for this.

    Code:
    if (itemUsed == 1755 && useWith == 11858){
                            if (c.playerLevel[c.playerCrafting] >= 30) {
                                    c.getItems().deleteItem(11858, c.getItems().getItemSlot(111858), 1);
                                   
                                    c.getItems().addItem(full3rdagemelee, 1);
                                    
                            } else {
                                    c.sendMessage("You need a crafting level of 30 to open this item.");
                            }
                    }
    Reply With Quote  
     

  2. #2  
    OoO Donor <3
    Rockstar Jax's Avatar
    Join Date
    Mar 2011
    Age
    27
    Posts
    608
    Thanks given
    77
    Thanks received
    78
    Rep Power
    21
    Code:
    if (itemUsed == 1755 && useWith == 11858){
                            if (c.playerLevel[c.playerCrafting] >= 30) {
                                    c.getItems().deleteItem(11858, c.getItems().getItemSlot(111858), 1);
                                    c.getItems().addItem(full3rdagemelee, 1);
    						} else if(c.getItems().freeSlots() <= 14) {
    								c.sendMessage("You need atleast 14 free slot's to use this feature.");		
                                    
                            } else {
                                    c.sendMessage("You need a crafting level of 30 to open this item.");
                            }
                    }
    change the 14 to the amount of spaces it takes up

    <-- amateur sig skills dont hate
    Reply With Quote  
     

  3. Thankful user:



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. Donation Box (Mystery Box)
    By Project in forum Tutorials
    Replies: 24
    Last Post: 04-24-2014, 03:54 AM
  2. [Official Opening] Rune-Designs [Official Opening]
    By MrHewlett10 in forum Selling
    Replies: 321
    Last Post: 04-01-2014, 11:06 AM
  3. Replies: 2
    Last Post: 07-05-2011, 10:36 PM
  4. Replies: 2
    Last Post: 02-09-2011, 11:20 PM
  5. Replies: 2
    Last Post: 02-09-2011, 08:40 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
  •