Thread: 718/742 Rage-scape help

Results 1 to 5 of 5
  1. #1 718/742 Rage-scape help 
    Registered Member
    Join Date
    Nov 2013
    Posts
    31
    Thanks given
    2
    Thanks received
    0
    Rep Power
    11
    Hi ive tried a few methods out for making untradeable items tradeable i can't seem to find one that works ([718] Fixing tradeable and untradeable items!) (didn't work)

    Is there a break statement i can make or something quick like istradeable and add all the items i want?

    All help is appreciated.

    Thank you.
    Reply With Quote  
     

  2. #2  
    Donator

    Join Date
    Mar 2012
    Posts
    110
    Thanks given
    13
    Thanks received
    3
    Rep Power
    11
    Quote Originally Posted by solarbear123 View Post
    Hi ive tried a few methods out for making untradeable items tradeable i can't seem to find one that works ([718] Fixing tradeable and untradeable items!) (didn't work)

    Is there a break statement i can make or something quick like istradeable and add all the items i want?

    All help is appreciated.

    Thank you.
    look in itemconstants.java for

    Code:
    public static boolean isTradeable(Item item) {
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Nov 2013
    Posts
    31
    Thanks given
    2
    Thanks received
    0
    Rep Power
    11
    thank you i figured out if i delete

    if (item.getDefinitions().isDestroyItem()
    || item.getDefinitions().isLended()
    || ItemConstants.getItemDefaultCharges(item.getId()) != -1)
    return false;
    to this
    if (item.getDefinitions().isLended()
    || ItemConstants.getItemDefaultCharges(item.getId()) != -1)
    return false;
    it makes all items tradeable but know i just add itemsthat i don't want to be tradeable so it works
    Reply With Quote  
     

  4. #4  
    Donator

    Join Date
    Mar 2012
    Posts
    110
    Thanks given
    13
    Thanks received
    3
    Rep Power
    11
    Quote Originally Posted by solarbear123 View Post
    thank you i figured out if i delete

    if (item.getDefinitions().isDestroyItem()
    || item.getDefinitions().isLended()
    || ItemConstants.getItemDefaultCharges(item.getId()) != -1)
    return false;
    to this
    if (item.getDefinitions().isLended()
    || ItemConstants.getItemDefaultCharges(item.getId()) != -1)
    return false;
    it makes all items tradeable but know i just add itemsthat i don't want to be tradeable so it works
    no don't delete that
    Code:
    public static boolean isTradeable(Item item) {
    		if (item.getDefinitions().getName().toLowerCase()
    				.contains("flaming skull"))
    			return false;
    		if (item.getDefinitions().isDestroyItem()
    				|| item.getDefinitions().isLended()
    				|| ItemConstants.getItemDefaultCharges(item.getId()) != -1)
    			return false;
    		String name = ItemDefinitions.getItemDefinitions(item.getId())
    				.getName().toLowerCase();
    		if (name.contains("fire cape")
    				|| name.contains("tokhaar") || name.contains("defender") || name.contains("drygore")
    				|| name.contains("lucky")|| name.contains("lamp")
    				|| name.contains("spin ticket") || name.contains("ceremonial")
    				|| name.contains("diamond jubilee") || name.contains("souvenir")
    				|| name.contains("diamond sceptre") || name.contains("diamond crown") || name.contains("token"))
    			return false;
    		if (name.contains("aura") || name.contains("supreme"))
    			return true;
    		if (name.contains("goliath") || name.contains("swift") || name.contains("spellcaster"))
    			return true;
    If you erase like the drygore and put something else it will be tradeble and the item you put there will not be tradeble
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Nov 2013
    Posts
    31
    Thanks given
    2
    Thanks received
    0
    Rep Power
    11
    ok i understand what your saying but if the item that has a destroy button it will be untrableable no matter what even if u add it to the if statement and return it true.
    Reply With Quote  
     


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. 718/742 Rage-scape help
    By solarbear123 in forum Help
    Replies: 5
    Last Post: 03-10-2015, 09:21 AM
  2. 718/742 Rage-scape help
    By solarbear123 in forum Help
    Replies: 1
    Last Post: 03-06-2015, 06:15 PM
  3. [718/742] Death Null Help
    By Lost Redemption in forum Help
    Replies: 0
    Last Post: 04-06-2013, 03:19 AM
  4. 718/742 - I NEED HELP WITH Random Logouts
    By Lost Redemption in forum Help
    Replies: 14
    Last Post: 02-23-2013, 07:04 AM
  5. 718/742 client crash help
    By Justino689 in forum Help
    Replies: 4
    Last Post: 02-02-2013, 10:20 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •