[TUT] How to add items ---- A Tutorial by K!LL3R

Discussion in 'Archives' started by K!LL3R, Feb 6, 2007.

[TUT] How to add items ---- A Tutorial by K!LL3R
  1. Unread #1 - Feb 6, 2007 at 12:02 AM
  2. K!LL3R
    Joined:
    Jan 31, 2007
    Posts:
    54
    Referrals:
    0
    Sythe Gold:
    0

    K!LL3R Member

    [TUT] How to add items ---- A Tutorial by K!LL3R

    Difficulty: easy if you know basics of java

    Things to modify: Client.java

    -------------------------------
    ok first of all open say client.java and press Ctrl+F and a little window will come up, type in command.starts now this is where you will be adding your new command to add an item.
    Then go here http://codefasga.com/list.php?type=item
    and search for the item you want to add for the command.
    Ok now for the actual command now when you have found the item you want to add, Copy (Ctrl+C) and paste (Ctrl+V) into this code.
    Code:
    if (command.startsWith("name of command")&& (playerRights >= 1 or 2, 1 being mod and 2 being admin))
    	{
    		addItem(add the item id here, add the amount of that item here);
    
    ok edit the playerights this is optional of course for those servers that like to have easy spawning and stuff. But anyway edit that and add that somewhere after a } and before a { reason is because they are the end and the start of two different commands.
    Well basically if you got basic knowledge of java you'll know this and it wont be that hard for you. Now you can do this for alot of things you can add more then one item just like the barrows command
    Code:
    if (command.startsWith("barrows")&& (playerRights >= 2))
    	{
    		addItem(4716, 1);
    		addItem(4718, 1);
    		addItem(4720, 1);
    		addItem(4722, 1);
    		addItem(4708, 1);
    		addItem(4710, 1);
    		addItem(4712, 1);
    		addItem(4714, 1);
    		addItem(4753, 1);
    		addItem(4755, 1);
    		addItem(4757, 1);
    		addItem(4759, 1);
    		addItem(4745, 1);
    		addItem(4747, 1);
    		addItem(4749, 1);
    		addItem(4751, 1);
    		addItem(4732, 1);
    		addItem(4734, 1);
    		addItem(4736, 1);
    		addItem(4738, 1);
    		addItem(4726, 1);
    		addItem(4728, 1);
    		addItem(4730, 1);
    		addItem(4724, 1);
    	}
    
    As you can see its for admins only in this command but big tip is to just search for command.starts and just look at other commands such as adding items or teleporting you will learn just like i did.
    ----------------------------------------------
    Does this tutorial suck? or did it actualy help post feedback please cuz i need to know if i suck at writeing these
     
  3. Unread #2 - Feb 6, 2007 at 6:39 PM
  4. Jord4nPdeBest
    Joined:
    Jul 17, 2006
    Posts:
    198
    Referrals:
    0
    Sythe Gold:
    0

    Jord4nPdeBest Active Member

    [TUT] How to add items ---- A Tutorial by K!LL3R

    good guide, basic and easy to understand( noob friendly ). I would add a part explaining how to make general commands ( commands for everyone ( no player rights ))

    7/10 nice guide
     
  5. Unread #3 - Feb 6, 2007 at 8:33 PM
  6. K!LL3R
    Joined:
    Jan 31, 2007
    Posts:
    54
    Referrals:
    0
    Sythe Gold:
    0

    K!LL3R Member

    [TUT] How to add items ---- A Tutorial by K!LL3R

    well the player rights you can put 0 and everyone can use the command
     
  7. Unread #4 - Feb 6, 2007 at 8:35 PM
  8. josh5498
    Joined:
    Jan 30, 2006
    Posts:
    1,072
    Referrals:
    0
    Sythe Gold:
    6

    josh5498 Guru
    Banned

    [TUT] How to add items ---- A Tutorial by K!LL3R

    leecher friendly and strait to the point good work :)
     
  9. Unread #5 - Feb 7, 2007 at 11:22 AM
  10. K!LL3R
    Joined:
    Jan 31, 2007
    Posts:
    54
    Referrals:
    0
    Sythe Gold:
    0

    K!LL3R Member

    [TUT] How to add items ---- A Tutorial by K!LL3R

    thanks for the feedback even know theres very little of it lol
     
  11. Unread #6 - Feb 9, 2007 at 7:26 PM
  12. Bubbsy7
    Referrals:
    1

    Bubbsy7 Guest

    [TUT] How to add items ---- A Tutorial by K!LL3R

    Um where do i open client.java? haha i'm new to this i just got my server started
     
  13. Unread #7 - Feb 10, 2007 at 6:25 AM
  14. syth4
    Joined:
    Jan 28, 2007
    Posts:
    173
    Referrals:
    1
    Sythe Gold:
    1

    syth4 Active Member

    [TUT] How to add items ---- A Tutorial by K!LL3R

    In your server folder
     
  15. Unread #8 - Feb 11, 2007 at 9:28 AM
  16. agent766
    Referrals:
    0

    agent766 Guest

    [TUT] How to add items ---- A Tutorial by K!LL3R

    I had to find this out for myself. Pretty user friendly though. I have to log all the commands. That'll take a while :)
     
  17. Unread #9 - May 24, 2007 at 9:01 PM
  18. dbmain
    Referrals:
    0

    dbmain Guest

    [TUT] How to add items ---- A Tutorial by K!LL3R

    How do you add items if you have hybrid scape the one that came with Moparscape?
     
  19. Unread #10 - May 26, 2007 at 6:54 AM
  20. azza4215
    Referrals:
    0

    azza4215 Guest

    [TUT] How to add items ---- A Tutorial by K!LL3R

    come onto my server its hamachi :( hamachi user: azzapk pass: 123
    ip number: 5.170.106.160 the first person to come online gets to b admin the 2nd person can b a mod the first person to become lvl 225 or advertise my thread on the moparscape forums can b co-owener
     
  21. Unread #11 - Jun 2, 2007 at 11:53 PM
  22. integame3
    Referrals:
    0

    integame3 Guest

    [TUT] How to add items ---- A Tutorial by K!LL3R

< Selling GOOD Hybrid!! LOOK! | sellin 3 ownage pures!!!! >

Users viewing this thread
1 guest


 
 
Adblock breaks this site