Thread: Item Naming conventions

Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1 Item Naming conventions 
    Registered Member

    Join Date
    Dec 2009
    Posts
    1,142
    Thanks given
    275
    Thanks received
    169
    Rep Power
    164
    I was googling java naming conventions but I accidentally searched for 'jagex naming conventions' and I found this page which I think someone will find useful.

    Here is the link: RuneScape - News - Naming conventions

    22-Aug-2006 - Naming conventions

    Many objects in the game have brackets in their names to indicate a special feature or function, such as Dragon dagger (p) for a poisoned dragon dagger. Some of the letters used in these brackets meant different things on different items. This got a bit confusing in a few cases:
    (s) - either "Saradomin" or "poisoned with super-strong weapon poison"
    (p) - either "poisoned" or "permanent"
    (u) - either "unstrung" or "unlocked"
    (g) - either "Guthix" or "gold-trimmed" or "contains a gold coin"

    We've renamed a few items so that the letters can be consistent. Please note that the items themselves haven't changed at all. We've just tweaked their names.
    Code:
    Object								Old notation		New notation
    Weapon with extra-strong poison				(+)				(p+)
    Weapon with super-strong poison			(s)				(p++)
    Ring of Charos							(u) = unlocked		(a) = activated
    Permanent serum from Shades of Mort'ton		Serum 207 (p)		Serum 208
    Blackjack								(a) = assault		(o) = offensive
    Special beer from Recipe for Disaster			Asgarnian Ale (g)	Asgoldian Ale
    Prayer book pages						Torn page (s)		Saradomin page
    									Torn page (z)		Zamorak page
    									Torn page (g)		Guthix page
    Please note - Some of these changes have already been in the game for a while.
    Also note the date of the article, August 2006, so 420ish?
    Last edited by Sadistic; 07-07-2010 at 04:19 AM. Reason: Stupid smileys.
    Reply With Quote  
     

  2. #2  
    Banned

    Join Date
    May 2008
    Posts
    823
    Thanks given
    16
    Thanks received
    31
    Rep Power
    0
    ...Cool?
    Reply With Quote  
     

  3. #3  
    Registered Member
    Mister Maggot's Avatar
    Join Date
    Dec 2008
    Posts
    7,227
    Thanks given
    3,283
    Thanks received
    2,875
    Rep Power
    5000
    I don't get it?
    Reply With Quote  
     

  4. #4  
    Donator


    Join Date
    Mar 2008
    Posts
    1,945
    Thanks given
    118
    Thanks received
    201
    Rep Power
    2104
    it can be used to read the brackets rather then make huge switch statements.
    Attached image
    Reply With Quote  
     

  5. #5  
    Registered Member
    Mister Maggot's Avatar
    Join Date
    Dec 2008
    Posts
    7,227
    Thanks given
    3,283
    Thanks received
    2,875
    Rep Power
    5000
    What?
    Reply With Quote  
     

  6. #6  
    Registered Member hybrent's Avatar
    Join Date
    Nov 2007
    Posts
    566
    Thanks given
    73
    Thanks received
    90
    Rep Power
    28
    Quote Originally Posted by i r maggot View Post
    What?
    He was saying:

    If (Item.nameContains("") {
    poison = true;
    }

    instead of:

    switch (itemId) {
    case id:
    case id:
    case id:
    case id:
    poison = true;
    Amused as I am not, I must continue to try. -Keith Charles
    Quote Originally Posted by Ayton View Post
    I'm sorry, but I have to agree with Hybrent.
    Reply With Quote  
     

  7. #7  
    Banned

    Join Date
    Jul 2008
    Age
    28
    Posts
    5,827
    Thanks given
    1,301
    Thanks received
    197
    Rep Power
    0
    Quote Originally Posted by hybrent View Post
    He was saying:

    If (Item.nameContains("") {
    poison = true;
    }

    instead of:

    switch (itemId) {
    case id:
    case id:
    case id:
    case id:
    poison = true;
    Yeah, but thats WAY slower. Using a Map would be better, or just load it into your ItemDef.
    Reply With Quote  
     

  8. #8  
    Registered Member
    Mister Maggot's Avatar
    Join Date
    Dec 2008
    Posts
    7,227
    Thanks given
    3,283
    Thanks received
    2,875
    Rep Power
    5000
    Quote Originally Posted by Colby View Post
    Yeah, but thats WAY slower. Using a Map would be better, or just load it into your ItemDef.
    You always beat me..
    Reply With Quote  
     

  9. #9  
    Registered Member hybrent's Avatar
    Join Date
    Nov 2007
    Posts
    566
    Thanks given
    73
    Thanks received
    90
    Rep Power
    28
    Quote Originally Posted by i r maggot View Post
    You always beat me..
    Beat you to what? I wasn't telling you to do it that way, I was explaining what he was telling you because you didn't understand.

    lmfao.
    Amused as I am not, I must continue to try. -Keith Charles
    Quote Originally Posted by Ayton View Post
    I'm sorry, but I have to agree with Hybrent.
    Reply With Quote  
     

  10. #10  
    Tropicosaurus
    Guest
    Quote Originally Posted by hybrent View Post
    Beat you to what? I wasn't telling you to do it that way, I was explaining what he was telling you because you didn't understand.

    lmfao.
    You've gotta be the biggest idiot I've ever seen.
    Reply With Quote  
     

  11. Thankful user:


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

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