Thread: 317 [pi] useitem

Results 1 to 4 of 4
  1. #1 317 [pi] useitem 
    Banned

    Join Date
    Oct 2012
    Posts
    4,710
    Thanks given
    1,679
    Thanks received
    1,105
    Rep Power
    0
    So when im using a noted pot on a unnoted pot or otherwise it unnotes the pot, so ive been trying to return it so that it doesnt unnote the pot but it doesnt work wtf?

    my code

    useitem.java

    Code:
    if (itemUsed == 6685 || useWith == 6686)
    	        return;
    Kind Regards,


    Ipkmills
    Reply With Quote  
     

  2. #2  
    Banned

    Join Date
    Oct 2012
    Posts
    4,710
    Thanks given
    1,679
    Thanks received
    1,105
    Rep Power
    0
    anyone
    Reply With Quote  
     

  3. #3  
    Registered Member
    Edd -'s Avatar
    Join Date
    Jul 2011
    Posts
    664
    Thanks given
    62
    Thanks received
    43
    Rep Power
    84
    Code:
    	public boolean isPotion(int itemId) {
    		String name = c.getItems().getItemName(itemId);
    		return name.contains("(4)") || name.contains("(3)") || name.contains("(2)") || name.contains("(1)");	
    	}
    }
    potions.java

    this is probably causing the issue,

    if your desperate for a quick fix.

    go in your item.cfg

    change all your noted potions to..(n)

    for example
    Code:
    item = 189	Zamorak_brew(3)	A_Zamorak_Brew.	175	175	175	0	0	0	0	0	0	0	0	0	0	0	0
    item = 190	Zamorak_brew(n)	Swap_this_note_at_any_bank_for_the_equivalent_item.	175	175	175	0	0	0	0	0	0	0	0	0	0	0	0
    this will remove the (3) check and still show ingame as just a (3) potion, only problem is in trade screen it may show in the second window as (n) + there is alot of potions so it may take some time to change them all.

    you could also just make is [3] or even 3.

    this is just a cheap fix for that im sure you can add a diffrent type of check but i hope this helps anywyas.
    Reply With Quote  
     

  4. #4  
    Banned

    Join Date
    Oct 2012
    Posts
    4,710
    Thanks given
    1,679
    Thanks received
    1,105
    Rep Power
    0
    Quote Originally Posted by Edd is pro View Post
    Code:
    	public boolean isPotion(int itemId) {
    		String name = c.getItems().getItemName(itemId);
    		return name.contains("(4)") || name.contains("(3)") || name.contains("(2)") || name.contains("(1)");	
    	}
    }
    potions.java

    this is probably causing the issue,

    if your desperate for a quick fix.

    go in your item.cfg

    change all your noted potions to..

    for example
    Code:
    item = 189	Zamorak_brew(3)	A_Zamorak_Brew.	175	175	175	0	0	0	0	0	0	0	0	0	0	0	0
    item = 190	Zamorak_brew(n)	Swap_this_note_at_any_bank_for_the_equivalent_item.	175	175	175	0	0	0	0	0	0	0	0	0	0	0	0
    this will remove the (3) check and still show ingame as just a (3) potion, only problem is in trade screen it may show in the second window as + there is alot of potions so it may take some time to change them all.

    you could also just make is [3] or even 3.

    this is just a cheap fix for that im sure you can add a diffrent type of check but i hope this helps anywyas.


    Thank you was looking at the wrong class all along
    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. Help Command [317 PI]
    By king dark in forum Snippets
    Replies: 3
    Last Post: 08-14-2016, 02:32 PM
  2. VisageSpawnPk 317 [PI] [Need online tester]
    By meedis in forum Advertise
    Replies: 5
    Last Post: 06-14-2013, 09:18 PM
  3. 317 PI blank, fixed eclipse warnings
    By Exidia in forum Requests
    Replies: 3
    Last Post: 06-05-2013, 06:29 PM
  4. RuneMaster 317 PI Come Now ECO
    By boystar50 in forum Advertise
    Replies: 8
    Last Post: 06-01-2013, 05:00 PM
  5. Replies: 2
    Last Post: 04-23-2013, 08:23 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
  •