Thread: Item names on attack tab

Page 1 of 2 12 LastLast
Results 1 to 10 of 16
  1. #1 Item names on attack tab 
    Registered Member
    AlexMason's Avatar
    Join Date
    Aug 2007
    Age
    30
    Posts
    1,199
    Thanks given
    17
    Thanks received
    27
    Rep Power
    98
    Open up RSPlayer.java and find:
    Code:
    		} else if (Items.itemIs2H(itemID)) {
    Replace the whole thing with this:
    Code:
    if (Items.itemIs2H(itemID)) {
    			if (playerEquipment[playerWeapon] < 0) {
    				finalEquip(playerWeapon, slot);
                                    setInterface(1, 75, 99);
                                    if (playerEquipment[playerWeapon] == 11730) {//sara sword
    								sendStringFrame("Saradomain Sword", 82, 0, 0, 0);         
                                    setInterface(1, 82, 99);                       }
                                    if (playerEquipment[playerWeapon] == 11696) {//bandos sword
    								sendStringFrame("Bandos Godsword", 82, 0, 0, 0);       
                                    setInterface(1, 82, 99);
                                    }
                                    if (playerEquipment[playerWeapon] == 11694) {//armydal sword
    								sendStringFrame("Armydal Godsword", 82, 0, 0, 0);       
                                    setInterface(1, 82, 99);
                                    }
                                    if (playerEquipment[playerWeapon] == 11698) {//sara sword
    								sendStringFrame("Saradomain Godsword", 82, 0, 0, 0);       
                                    setInterface(1, 82, 99);
                                    }
                                    if (playerEquipment[playerWeapon] == 11700) {//zammy sword
    								sendStringFrame("Zamorak Godsword", 82, 0, 0, 0);
                                    setInterface(1, 82, 99);
                                    }
    								if (playerEquipment[playerWeapon] == 4151) {
    								sendStringFrame("Abyssal Whip", 93, 0, 0, 0);
    								setInterface(1, 93, 99);
    								}
    				return true;
    			} else {
    				replaceEquipment(playerWeapon, slot);
                                    if (playerEquipment[playerWeapon] == 11730) {//sara sword
    								sendStringFrame("Saradomain Sword", 82, 0, 0, 0);        
                                    setInterface(1, 82, 99);
                                    }
                                    if (playerEquipment[playerWeapon] == 11696) {//bandos sword
    								sendStringFrame("Bandos Godsword", 82, 0, 0, 0);       
                                    setInterface(1, 82, 99);
                                    }
                                    if (playerEquipment[playerWeapon] == 11694) {//armydal sword
    								sendStringFrame("Armydal Godsword", 82, 0, 0, 0);       
                                    setInterface(1, 82, 99);
                                    }
                                    if (playerEquipment[playerWeapon] == 11698) {//sara sword
    								sendStringFrame("Saradomain Godsword", 82, 0, 0, 0);      
                                    setInterface(1, 82, 99);
                                    }
                                    if (playerEquipment[playerWeapon] == 11700) {//zammy sword
    								sendStringFrame("Zamorak Godsword", 82, 0, 0, 0);
                                    setInterface(1, 82, 99);
                                    }
    								if (playerEquipment[playerWeapon] == 4151) {
    								sendStringFrame("Abyssal Whip", 93, 0, 0, 0);
    								setInterface(1, 93, 99);
    								}
    				return true;
    			}
    		}

    Reply With Quote  
     

  2. #2  
    Officially Retired


    Join Date
    Oct 2007
    Age
    30
    Posts
    5,454
    Thanks given
    558
    Thanks received
    122
    Rep Power
    1364
    nice tut man
    Reply With Quote  
     

  3. #3 Nice Job 
    Death Wish X
    Guest
    Nice Job (M T S)
    Reply With Quote  
     

  4. #4  
    Registered Member

    Join Date
    Jun 2007
    Age
    35
    Posts
    770
    Thanks given
    0
    Thanks received
    17
    Rep Power
    156
    why dont we just make an item database and have it read names from that instead of hardcoding.



    Reply With Quote  
     

  5. #5  
    HcoFlame
    Guest
    lol...this is extremely inefficient. Load all the item data into a list, and then have it display the name. That way you can have ALL weapons, isntead of what you just choose.
    Reply With Quote  
     

  6. #6  
    Registered Member runescapedds's Avatar
    Join Date
    Jan 2008
    Posts
    514
    Thanks given
    9
    Thanks received
    2
    Rep Power
    41
    ehh will do till we get someone finds out how to make an item.cfg =)
    [IMG]pokeplushies.com/images/adoptables/312899.gif[/IMG]

    www.pokeplushies.com/feed/312899 << level my plushie please
    Reply With Quote  
     

  7. #7  
    xStanyer
    Guest
    /Extreme failure overload.
    Reply With Quote  
     

  8. #8  
    Registered Member
    ncarug02's Avatar
    Join Date
    May 2008
    Age
    30
    Posts
    893
    Thanks given
    6
    Thanks received
    4
    Rep Power
    92
    cant you just make a void that in rsplayer.java you can just make a void then make a cfg that loads all the itesm



    ~Nick
    Reply With Quote  
     

  9. #9  
    Registered Member
    AlexMason's Avatar
    Join Date
    Aug 2007
    Age
    30
    Posts
    1,199
    Thanks given
    17
    Thanks received
    27
    Rep Power
    98
    Quote Originally Posted by HcoJustin View Post
    lol...this is extremely inefficient. Load all the item data into a list, and then have it display the name. That way you can have ALL weapons, isntead of what you just choose.
    duh! obviously im not gonna sit here and make an item.cfg for 10k+ items and just release it with this der! how about you do it?

    Reply With Quote  
     

  10. #10  
    Registered Member runescapedds's Avatar
    Join Date
    Jan 2008
    Posts
    514
    Thanks given
    9
    Thanks received
    2
    Rep Power
    41
    Quote Originally Posted by AlexMason View Post
    duh! obviously im not gonna sit here and make an item.cfg for 10k+ items and just release it with this der! how about you do it?
    you can use the item.cfg the 317's use.
    [IMG]pokeplushies.com/images/adoptables/312899.gif[/IMG]

    www.pokeplushies.com/feed/312899 << level my plushie please
    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

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