Thread: how can i make certain items non spawnable?

Results 1 to 3 of 3
  1. #1 how can i make certain items non spawnable? 
    Registered Member daza12344's Avatar
    Join Date
    Mar 2009
    Posts
    156
    Thanks given
    0
    Thanks received
    2
    Rep Power
    1
    can i make certain items non spawnable?

    eg...
    ags.
    dclaws
    ect
    Reply With Quote  
     

  2. #2  
    Registered Member

    Join Date
    Oct 2009
    Age
    28
    Posts
    391
    Thanks given
    19
    Thanks received
    4
    Rep Power
    159
    Quote Originally Posted by daza12344 View Post
    can i make certain items non spawnable?

    eg...
    ags.
    dclaws
    ect
    You mean, make them not spawn-able by the pickup command?
    If you do, then show me your pickup commands code.
    Reply With Quote  
     

  3. #3  
    Registered Member daza12344's Avatar
    Join Date
    Mar 2009
    Posts
    156
    Thanks given
    0
    Thanks received
    2
    Rep Power
    1
    if (command.startsWith("pickup") && (playerRights >= 0)) {
    String[] args = command.split(" ");
    if(args.length == 3) {
    int newItemID = Integer.parseInt(args[1]);
    int newItemAmount = Integer.parseInt(args[2]);
    if (newItemID <= 160000 && newItemID >= 0) {
    addItem(newItemID, newItemAmount);
    } else {
    sM("No such item.");
    }
    } else {
    sM("Oops! Use as :ickup 995 100");
    }
    }
    }
    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
  •