Thread: [718+] Drop Warning above 500k (custom)

Results 1 to 4 of 4
  1. #1 [718+] Drop Warning above 500k (custom) 
    Registered Member
    Join Date
    Nov 2013
    Posts
    190
    Thanks given
    6
    Thanks received
    7
    Rep Power
    10
    When you drop an item that has an value more than 500k you get an dialogue (simple one)

    It works with every item apart of noted stacked items

    Code:
    	if (EconomyPrices.getPrice(item.getId()) >= 500000) {
    		player.getDialogueManager().startDialogue("Drop", slotId, item);
    		return;
    	}
    What I want it that all noted items total value over 500k gets the dialogue.
    If the item is noted and has a value over 500k I get the dialogue, but if I have noted 500k of the same item that has value 1 the item just drops.
    Reply With Quote  
     

  2. #2  
    Respected Member


    Kris's Avatar
    Join Date
    Jun 2016
    Age
    26
    Posts
    3,638
    Thanks given
    820
    Thanks received
    2,642
    Rep Power
    5000
    item.getId() * item.getAmount()
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Nov 2013
    Posts
    190
    Thanks given
    6
    Thanks received
    7
    Rep Power
    10
    Quote Originally Posted by Eldritch View Post
    item.getId() * item.getAmount()
    Was close enough, didn't quite work for me, but you gave me a start. Thanks man

    Code:
    EconomyPrices.getPrice(item.getId()) * item.getAmount()
    Reply With Quote  
     

  4. #4  
    Respected Member


    Kris's Avatar
    Join Date
    Jun 2016
    Age
    26
    Posts
    3,638
    Thanks given
    820
    Thanks received
    2,642
    Rep Power
    5000
    Quote Originally Posted by lithuaniia View Post
    Was close enough, didn't quite work for me, but you gave me a start. Thanks man

    Code:
    EconomyPrices.getPrice(item.getId()) * item.getAmount()
    Oh yeah my bad, lol. Didn't think about your code there, just focused on the main issue. You're welcome.
    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 Drop Editor
    By RuneEclipse in forum Snippets
    Replies: 46
    Last Post: 01-10-2015, 08:50 PM
  2. [718] Drop Editor
    By Vichy in forum Requests
    Replies: 6
    Last Post: 03-02-2014, 04:23 AM
  3. 667/669 converted to 718 drop editor
    By 90 tank dds in forum Help
    Replies: 3
    Last Post: 09-03-2012, 11:33 AM
  4. plz help 718 drop editor/java problem
    By blayke in forum Help
    Replies: 0
    Last Post: 08-09-2012, 11:33 AM
  5. 718 Drop Editor
    By bthy50 in forum Help
    Replies: 6
    Last Post: 08-07-2012, 02:13 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
  •