Thread: 718 (Matrix) Unspawnable/Spawnable items

Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1 718 (Matrix) Unspawnable/Spawnable items 
    Registered Member
    Join Date
    Sep 2012
    Posts
    37
    Thanks given
    2
    Thanks received
    0
    Rep Power
    11
    Hey guys,

    I am kind of confused - I want to make a spawn/eco server, but right now, if I do ::item, I can spawn ANY item.

    I want to make it so nearly all items are unspawnable, except for a few. (Such as Dragon Claws, etc). I have a basic idea on how to code it, but I'm unsure, which is why I came here.

    If I get a fully explained answer I will rep
    Reply With Quote  
     

  2. #2  
    https://podcaster.one


    Join Date
    Nov 2012
    Posts
    522
    Thanks given
    193
    Thanks received
    83
    Rep Power
    97
    Running a server sure is a fun thing to do. However, not knowing the language (Java) can be a pain. So I'd really recommend you to spend a couple of months with Java, and I promise you'd be telling people what I'm telling you know.

    I'm not a Java coder, but I guess it's still relevant.
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Sep 2012
    Posts
    37
    Thanks given
    2
    Thanks received
    0
    Rep Power
    11
    Quote Originally Posted by DharmeshPHP View Post
    Running a server sure is a fun thing to do. However, not knowing the language (Java) can be a pain. So I'd really recommend you to spend a couple of months with Java, and I promise you'd be telling people what I'm telling you know.

    I'm not a Java coder, but I guess it's still relevant.
    I kind of know the Language, I've managed to do quite a few things already, just can't do this -_-
    Reply With Quote  
     

  4. #4  
    Member
    Join Date
    Oct 2012
    Posts
    74
    Thanks given
    3
    Thanks received
    2
    Rep Power
    0
    As Dharmesh said I recoment Learnign Java First Before Owning server
    Reply With Quote  
     

  5. #5  
    Community Veteran

    mige5's Avatar
    Join Date
    Aug 2008
    Posts
    5,528
    Thanks given
    573
    Thanks received
    1,410
    Rep Power
    2114
    Put this somewhere:
    Code:
    public int[] items = {3140,4151};
    and heres example how to modify ur item command:
    Code:
    for (int i = 0; i < items.length; i++) {
    if(itemId == items[i])
    spawnitem(itemId);
    now ur only able to spawn d chain and whip.
    Number of page #1 releases with most views & posts: (Updated: 2023)
    RS2 server section: 1
    RS2 client section: 2
    Reply With Quote  
     

  6. Thankful user:


  7. #6  
    Registered Member
    Join Date
    Sep 2012
    Posts
    37
    Thanks given
    2
    Thanks received
    0
    Rep Power
    11
    Quote Originally Posted by mige5 View Post
    Put this somewhere:
    Code:
    public int[] items = {3140,4151};
    and heres example how to modify ur item command:
    Code:
    for (int i = 0; i < items.length; i++) {
    if(itemId == items[i])
    spawnitem(itemId);
    now ur only able to spawn d chain and whip.
    Thanks, but you didn't really explain it fully
    Reply With Quote  
     

  8. #7  
    Registered Member
    Sirloin's Avatar
    Join Date
    Feb 2012
    Age
    27
    Posts
    782
    Thanks given
    186
    Thanks received
    175
    Rep Power
    105
    Quote Originally Posted by Litee View Post
    Thanks, but you didn't really explain it fully
    The player can only spawn what's inside of the brackets.
    The code Mige5 mentioned goes into the commands file.
    Reply With Quote  
     

  9. #8  
    Registered Member Thee Haze's Avatar
    Join Date
    Dec 2012
    Posts
    6
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    You should just go back to 317's, take your time there, then when you've figured everything out about developing an 317, then come back. :3

    Just saying that in a nice way.

    I've spent 3 years on developing 317's and yet still haven't learned everything there is to know.
    Reply With Quote  
     

  10. #9  
    Donator

    Josh''s Avatar
    Join Date
    Jul 2012
    Age
    26
    Posts
    2,036
    Thanks given
    1,119
    Thanks received
    520
    Rep Power
    192
    settings.java
    Reply With Quote  
     

  11. #10  
    Registered Member

    Join Date
    Dec 2012
    Posts
    2,999
    Thanks given
    894
    Thanks received
    921
    Rep Power
    2555
    Quote Originally Posted by Joshreynolds123 View Post
    settings.java
    No.facepalm
    Attached image
    Reply With Quote  
     

Page 1 of 2 12 LastLast

Thread Information
Users Browsing this Thread

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


User Tag List

Similar Threads

  1. Matrix 718 Donator Items
    By Destruction Rsps in forum Help
    Replies: 5
    Last Post: 11-08-2015, 07:42 PM
  2. [718/Matrix]Itemdb.biz Search Command[718/Matrix]
    By benjamin94 in forum Snippets
    Replies: 12
    Last Post: 08-11-2012, 12:10 PM
  3. Non De-spawnable Items?
    By Gooman130 in forum Help
    Replies: 7
    Last Post: 06-04-2012, 06:30 PM
  4. how can i make certain items non spawnable?
    By daza12344 in forum Help
    Replies: 2
    Last Post: 11-03-2009, 04:26 PM
  5. items not spawnable.
    By xxlukexx in forum Tutorials
    Replies: 7
    Last Post: 03-25-2009, 02:57 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •