Thread: How to change shop prices | 718 Revised Matrix Source

Results 1 to 10 of 10
  1. #1 How to change shop prices | 718 Revised Matrix Source 
    Registered Member Grown's Avatar
    Join Date
    Oct 2012
    Posts
    838
    Thanks given
    650
    Thanks received
    86
    Rep Power
    54
    I don't have a clue on how to change shop buying prices/718 Revised Matrix Source

    Please do not tell me to use a Item Def Editor, I do not need to change interface prices.

    Please do not flame/spam



    -Will Thank you...
    Ice Cream Tastes Good.
    "Programs aren’t just built in one go, like a bridge. They are talked about,
    sketched out, prototyped, played with, refactored, tuned, tested, tweaked,
    deleted, rewritten....
    A program is not built; it is grown.
    Because a program is always growing and always changing, it must be written
    with change in mind."
    Reply With Quote  
     

  2. #2  
    Strive for whats best.

    Chaz's Avatar
    Join Date
    Jul 2012
    Age
    28
    Posts
    2,499
    Thanks given
    376
    Thanks received
    614
    Rep Power
    170
    ItemDefenitionsEditor.
    Reply With Quote  
     

  3. #3  
    Registered Member Grown's Avatar
    Join Date
    Oct 2012
    Posts
    838
    Thanks given
    650
    Thanks received
    86
    Rep Power
    54
    Quote Originally Posted by Java! View Post
    ItemDefenitionsEditor.

    I know this is going to sound pathetic, but how does that change buying prices, I change the price on the module and it only changes the price shown, not for how much you actually buy.

    For instance, change price in ItemDefenitionsEditor to 160 this is the only thing it affects.

    ec5fd0f9b7336ea67a045d4b2c51196c.png
    "Programs aren’t just built in one go, like a bridge. They are talked about,
    sketched out, prototyped, played with, refactored, tuned, tested, tweaked,
    deleted, rewritten....
    A program is not built; it is grown.
    Because a program is always growing and always changing, it must be written
    with change in mind."
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Jun 2012
    Posts
    166
    Thanks given
    67
    Thanks received
    9
    Rep Power
    11
    Replace your getbuyprice with;
    Code:
    public int getBuyPrice(Item item) {
        int price = item.getDefinitions().getValue();
        if (price == 0) {
            price = 1;
        }
        switch(item.getId()) {
            case 6585:
                price = 250000;
            break;
    	case 2581:
                price = 5000000;
            break;
    	case 2577:
                price = 20000000;
            break;
    	case 9185:
                price = 5000;
            break;
    	case 11335:
                price = 30000000;
            break;
    	case 1187:
                price = 500000;
            break;
    	case 4087:
                price = 200000;
            break;
    	case 13481:
                price = 4000000;
            break;
    	case 4151:
                price = 2000000;
            break;
    	case 21371:
                price = 7000000;
            break;
        }
        return price;
    }
    and getsellprice with;
    Code:
    public int getSellPrice(Item item, int dq) {
            switch (item.getId()) {
            case 269:
                item.getDefinitions().setValue(10000);
                break;
                    case 15270:
                            item.getDefinitions().setValue(10000);
                break;
                    }
                    return item.getDefinitions().getValue();
     
            }
    Cases are item ID's as i'm sure you can tell
    Vulcanic RSPS Coming soon!


    Reply With Quote  
     

  5. Thankful user:


  6. #5  
    Registered Member Grown's Avatar
    Join Date
    Oct 2012
    Posts
    838
    Thanks given
    650
    Thanks received
    86
    Rep Power
    54
    Quote Originally Posted by Vulcan View Post
    Replace your getbuyprice with;
    Code:
    public int getBuyPrice(Item item) {
        int price = item.getDefinitions().getValue();
        if (price == 0) {
            price = 1;
        }
        switch(item.getId()) {
            case 6585:
                price = 250000;
            break;
    	case 2581:
                price = 5000000;
            break;
    	case 2577:
                price = 20000000;
            break;
    	case 9185:
                price = 5000;
            break;
    	case 11335:
                price = 30000000;
            break;
    	case 1187:
                price = 500000;
            break;
    	case 4087:
                price = 200000;
            break;
    	case 13481:
                price = 4000000;
            break;
    	case 4151:
                price = 2000000;
            break;
    	case 21371:
                price = 7000000;
            break;
        }
        return price;
    }
    and getsellprice with;
    Code:
    public int getSellPrice(Item item, int dq) {
            switch (item.getId()) {
            case 269:
                item.getDefinitions().setValue(10000);
                break;
                    case 15270:
                            item.getDefinitions().setValue(10000);
                break;
                    }
                    return item.getDefinitions().getValue();
     
            }
    Cases are item ID's as i'm sure you can tell
    Can you please be more specific as what I'm replacing in shops.java
    "Programs aren’t just built in one go, like a bridge. They are talked about,
    sketched out, prototyped, played with, refactored, tuned, tested, tweaked,
    deleted, rewritten....
    A program is not built; it is grown.
    Because a program is always growing and always changing, it must be written
    with change in mind."
    Reply With Quote  
     

  7. #6  
    Banned
    Join Date
    Oct 2012
    Posts
    164
    Thanks given
    12
    Thanks received
    6
    Rep Power
    0
    Quote Originally Posted by Vulcan View Post
    Replace your getbuyprice and getsellprice
    This is what you replace...
    Reply With Quote  
     

  8. Thankful user:


  9. #7  
    Registered Member
    Join Date
    May 2011
    Age
    29
    Posts
    2,246
    Thanks given
    2,469
    Thanks received
    1,120
    Rep Power
    943
    Reply With Quote  
     

  10. Thankful user:


  11. #8  
    Registered Member
    Join Date
    Jun 2012
    Posts
    166
    Thanks given
    67
    Thanks received
    9
    Rep Power
    11
    Quote Originally Posted by Afghan Dream View Post
    Can you please be more specific as what I'm replacing in shops.java
    Didn't I say it? :O
    Vulcanic RSPS Coming soon!


    Reply With Quote  
     

  12. #9  
    Registered Member
    Join Date
    Jun 2010
    Posts
    4
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    I am having the same problem, does anyone know where to change multipliers/dividers or price checker and shops?
    Reply With Quote  
     

  13. #10  
    Registered Member
    Join Date
    Jun 2015
    Posts
    6
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    I also having the same problem

    screenshots here:




    Still says it's 75M



    I tried editing in shops.java the price from ags to 1B (at sell/buy)



    Which also resulted as not working please some1 help me
    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 Shop Prices
    By Destruction Rsps in forum Help
    Replies: 13
    Last Post: 03-12-2014, 06:16 AM
  2. Replies: 4
    Last Post: 11-15-2012, 10:05 PM
  3. Replies: 1
    Last Post: 11-14-2012, 05:33 AM
Tags for this Thread

View Tag Cloud

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