Thread: item help!!

Results 1 to 6 of 6
  1. #1 item help!! 
    Registered Member Santi Cazorla's Avatar
    Join Date
    Aug 2009
    Posts
    1,137
    Thanks given
    258
    Thanks received
    55
    Rep Power
    7
    hey ok so i've added a halloween event from a tut.. but my server is pickup.. so the reward are useless.. is there a way for it so you cant pick it up..if not then is there a way were u hve to complete the event to wear it.. and its not tradable
    Reply With Quote  
     

  2. #2  
    Banned

    Join Date
    Jan 2009
    Posts
    2,178
    Thanks given
    135
    Thanks received
    158
    Rep Power
    0
    stop the :ickup command make it for rights = 2
    Reply With Quote  
     

  3. #3  
    Registered Member Santi Cazorla's Avatar
    Join Date
    Aug 2009
    Posts
    1,137
    Thanks given
    258
    Thanks received
    55
    Rep Power
    7
    Quote Originally Posted by h y b r i d z View Post
    stop the :ickup command make it for rights = 2
    but i want to leave pickup on.. for everyone..
    Reply With Quote  
     

  4. #4  
    :')


    Join Date
    Oct 2008
    Age
    29
    Posts
    1,946
    Thanks given
    48
    Thanks received
    47
    Rep Power
    1545
    Code:
    } else {
    if (itemid == itemID) {
    sendMessage("Go do the halloween even to get this item!");
    }
    Just a guess change itemID to the id of your item, and if you're using delta replace sendMessage with sM, Also here's what your pickup code should look like when it's done, or close to it;

    Code:
    		if (command.startsWith("pickup")) {
    			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 {
    					sendMessage("No such item.");
    				}
    			} else {
    				sendMessage(Use as ::pickup ITEMID AMOUNT");
    			}
                            } else {
                                    if (itemid == itemID) {
                                    sendMessage("Go do the halloween even to get this item!");
                             }
    		}
    	}
    Reply With Quote  
     

  5. #5  
    Registered Member Santi Cazorla's Avatar
    Join Date
    Aug 2009
    Posts
    1,137
    Thanks given
    258
    Thanks received
    55
    Rep Power
    7
    help

    Code:
    client.java:10918: cannot find symbol
    symbol  : variable itemid
    location: class client
                                    if (itemid == 10054) {
                                        ^
    1 error
    Finished!
    Press any key to continue . . .
    Reply With Quote  
     

  6. #6  
    Registered Member
    Hunter's Avatar
    Join Date
    Jun 2009
    Age
    33
    Posts
    857
    Thanks given
    3
    Thanks received
    23
    Rep Power
    216
    Let's correct the above shall we..?

    Code:
    if(command.equalsIgnoreCase("pickup")) {
    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) {
          if(newItemID != halloweenitemidhere) {
           addItem(newItemID, newItemAmount);
          }
          else {
            sM("Goto the halloween event for this item!");
          }
        }
        else {
         sM("Item ID Limit: 0 - 160000");
        }
       }
       else {
        sM("Oops! Use as ::pickup ItemID Amount");
       }
    }
    Just replace "halloweenitemidhere" with your halloween item ID.
    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
  •