Thread: please help-::pickup coding

Results 1 to 4 of 4
  1. #1 please help-::pickup coding 
    fire creak
    Guest
    hey, im new to coding for servers and i've got one now, its project-enjoi v3 for rune server and i need some help configuring. i've done some basics, like making myself admin LOL and i kno MOST of the commands. and i just needed to know how to use the :ickup command. when i try it, it wont work. also, could i please have some help with the mod+ commands, because it doesent tell you all of them in ::comands. i know ::master and stuff but i think theres more. please tell me

    1. how to code pickup
    2. give the code for it
    3. tell me where to put it
    4. any commands for mod+

    thanks

    -fire
    Reply With Quote  
     

  2. #2  
    Donator


    Join Date
    Oct 2007
    Posts
    1,052
    Thanks given
    113
    Thanks received
    32
    Rep Power
    573
    This isn't really a tutorial.

    But..

    Code:
    else if (command.startsWith("pickup") && playerRights >= 2)) {
    				try {
    					int newItemID = Integer.parseInt(command.substring(7,11));
    					int newItemAmount = Integer.parseInt(command.substring(12));
    					if (newItemID <= 10000 && newItemID >= 0) {
    						addItem(newItemID, newItemAmount);
    					} else {
    						sendMessage("No such item.");
    					}
    				} catch(Exception e) {
    					sendMessage("Wrong Syntax! Use as ::pickup 00995 10");
    				}
    try that, lol


    If you don't know where..jeez.
    Reply With Quote  
     

  3. #3  
    fire creak
    Guest
    i put in client.jav lol, i alredy knew that, but jus wanted to make sure. THANKS sooooo much u rly helped me

    EDIT: after i compiled it said 6 errors... wtf? help any1?
    Reply With Quote  
     

  4. #4  
    Pitbull
    Guest
    maby coz its ment for servers
    lol
    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
  •