Thread: [HELP] How to make an item unspawnable in 508s [HELP]

Page 1 of 3 123 LastLast
Results 1 to 10 of 28
  1. #1 [HELP] How to make an item unspawnable in 508s [HELP] 
    Registered Member
    Jumper''s Avatar
    Join Date
    Jan 2009
    Posts
    893
    Thanks given
    4
    Thanks received
    6
    Rep Power
    204
    Hey Rune-server people

    I just need a little help, I am sure most of you ownage coders know how to do this

    How do I make an item unspawnable?

    I've tried the method in commands.java, where it says "You can't spwan that", but it still appears in my inv

    and please dont tell me to go in Player.java and search for :economy items, cause i dont got it in my server.

    So PLEASE help me!

    ---------- Post added at 02:32 PM ---------- Previous post was at 02:31 PM ----------

    I really need this
    Reply With Quote  
     

  2. #2  
    Registered Member SilentZPrO's Avatar
    Join Date
    Dec 2008
    Posts
    727
    Thanks given
    3
    Thanks received
    4
    Rep Power
    12
    If you tried the method in commands.java you probably did it wrong and placed it in the wrong spot.
    Reply With Quote  
     

  3. #3  
    Registered Member
    Jumper''s Avatar
    Join Date
    Jan 2009
    Posts
    893
    Thanks given
    4
    Thanks received
    6
    Rep Power
    204
    Quote Originally Posted by silentzpro View Post
    If you tried the method in commands.java you probably did it wrong and placed it in the wrong spot.
    No, The command is right

    It says "you cant spawn that", but it still appears in my INV.
    Reply With Quote  
     

  4. #4  
    Registered Member SilentZPrO's Avatar
    Join Date
    Dec 2008
    Posts
    727
    Thanks given
    3
    Thanks received
    4
    Rep Power
    12
    Are you admin? Cause if you are. Admins can spawn anything on my server. But regular players can't spawn those "certain" items.
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Aug 2008
    Age
    28
    Posts
    323
    Thanks given
    0
    Thanks received
    5
    Rep Power
    21
    LEARN JAVA, cause there is obviously not an else if both happen.
    make an array and put the number and thers yu want in there then try
    if (putsubsringhere == yourarrayofnumbers)
    {sM("You cannot spawn that!")}
    else
    { additem(putsubstringhere) }
    sigs annoy people
    Reply With Quote  
     

  6. #6  
    Registered Member
    Jumper''s Avatar
    Join Date
    Jan 2009
    Posts
    893
    Thanks given
    4
    Thanks received
    6
    Rep Power
    204
    Quote Originally Posted by blueflamepaintball View Post
    LEARN JAVA, cause there is obviously not an else if both happen.
    make an array and put the number and thers yu want in there then try
    if (putsubsringhere == yourarrayofnumbers)
    {sM("You cannot spawn that!")}
    else
    { additem(putsubstringhere) }
    that is what i did
    That makes it say the message, but item still comes in iventory

    And it would help me if u just post the whole item code here



    ^.^

    ---------- Post added at 02:52 PM ---------- Previous post was at 02:51 PM ----------

    Quote Originally Posted by silentzpro View Post
    Are you admin? Cause if you are. Admins can spawn anything on my server. But regular players can't spawn those "certain" items.
    nah i went on a regular player and tried to teset and this incedent, tragic thing, happaned
    Reply With Quote  
     

  7. #7  
    Registered Member
    Santaher0's Avatar
    Join Date
    Sep 2008
    Posts
    2,033
    Thanks given
    324
    Thanks received
    49
    Rep Power
    1282
    if (cmd[0].equals("item"))
    {
    if (cmd[1].equals("11686") || cmd[1].equals("11688") || cmd[1].equals("11690") || cmd[1].equals("11692") || cmd[1].equals("11694") || cmd[1].equals("11696") || cmd[1].equals("11698") || cmd[1].equals("11700") || cmd[1].equals("11710") || cmd[1].equals("11712") || cmd[1].equals("11714") || cmd[1].equals("11730") || cmd[1].equals("11702") || cmd[1].equals("11704") || cmd[1].equals("11706") || cmd[1].equals("11708") || cmd[1].equals("11724") || cmd[1].equals("11726") || cmd[1].equals("11728") || cmd[1].equals("11718") || cmd[1].equals("11720") || cmd[1].equals("11722") || cmd[1].equals("995")) {
    p.frames.sendMessage(p, "You can't get that item via a command!");
    } else {
    Engine.playerItems.addItem(p, Integer.parseInt(cmd[1]),
    Integer.parseInt(cmd[2]));
    }
    }
    this should work worked for me
    - Support my project [Only registered and activated users can see links. ]

    - Santaher0's [Only registered and activated users can see links. ]

    - Santaher0's [Only registered and activated users can see links. ]
    Reply With Quote  
     

  8. #8  
    Codex
    Rowan's Avatar
    Join Date
    Sep 2008
    Age
    25
    Posts
    1,593
    Thanks given
    0
    Thanks received
    20
    Rep Power
    1092
    Simply declare the economyItems int or whatever it is and use the code as its used to be, problem fixed
    [Only registered and activated users can see links. ] - [Only registered and activated users can see links. ] - [Only registered and activated users can see links. ] - [Only registered and activated users can see links. ] - [Only registered and activated users can see links. ]
    Reply With Quote  
     

  9. #9  
    Registered Member SilentZPrO's Avatar
    Join Date
    Dec 2008
    Posts
    727
    Thanks given
    3
    Thanks received
    4
    Rep Power
    12
    But couldn't they still do ::item or :ickup 0995 99999 or 0000995 999999?
    Reply With Quote  
     

  10. #10  
    Registered Member
    Jumper''s Avatar
    Join Date
    Jan 2009
    Posts
    893
    Thanks given
    4
    Thanks received
    6
    Rep Power
    204
    Quote Originally Posted by Santaher0 View Post
    this should work worked for me
    thanks santaheart

    NOW I CANT SPAWN ANYTHING AT [email protected][email protected][email protected][email protected]
    lol

    ---------- Post added at 03:48 PM ---------- Previous post was at 03:47 PM ----------

    Quote Originally Posted by Rowan View Post
    Simply declare the economyItems int or whatever it is and use the code as its used to be, problem fixed
    little more detail please?
    Reply With Quote  
     

Page 1 of 3 123 LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Tags for this Thread

View Tag Cloud

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •