http://thelaststand659.ucoz.com/
Would You Like To Log In To The Last Stand 659 Forum's Please Remember To Vote And Invite Your Friends
http://thelaststand659.ucoz.com/
Would You Like To Log In To The Last Stand 659 Forum's Please Remember To Vote And Invite Your Friends
http://thelaststand659.ucoz.com/
Would you like to react to this message? Create an account in a few clicks or log in to continue.


http://thelaststand659.ucoz.com/
 
HomeHome  Download Client  WebClient  SearchSearch  Latest imagesLatest images  RegisterRegister  Log inLog in  

 

 Adding selling back to the store

Go down 
4 posters
AuthorMessage
Quit
New Member
New Member



Posts : 18
Reputation : 1
Join date : 2011-08-26

Adding selling back to the store Empty
PostSubject: Adding selling back to the store   Adding selling back to the store EmptyFri Aug 26, 2011 8:48 pm

This may be a way to make skillers more common as this provides a method of profit for them.

Go to com.rs2hd.content.ShopHandler and search for:

Code:
case 621:

Replace the entire case with this:

Code:
case 621:
         if (buttonId == 0) {
            Item def = p.getInventory().getContainer().get(buttonId2);
            int itemid = def.getId();
            switch (packetId) {
            case 216:
               /* Value. */
               p.sm("That costs "
                     + GameEngine.prices.getMaximumPrice(itemid));
               break;
            case 19:
               /*
                * Buy 1.
                */
               if (p.getInventory().contains(itemid, 1)) {
                  p.getInventory().deleteItem(itemid, 1);

                  p.getInventory()
                        .addItem(
                              (1 * GameEngine.prices
                                    .getMaximumPrice(itemid)),
                              1);
               }

               break;
            case 193:
               /*
                * Buy 5.
                */
               if (p.getInventory().contains(itemid, 5)) {
                  p.getInventory().deleteItem(itemid, 5);

                  p.getInventory()
                        .addItem(
                              (5 * GameEngine.prices
                                    .getMaximumPrice(itemid)),
                              5);
               }
               break;
            case 76:
               /*
                * Buy 10.
                */
               if (p.getInventory().contains(itemid, 10)) {
                  p.getInventory().deleteItem(itemid, 10);

                  p.getInventory()
                        .addItem(
                              (10 * GameEngine.prices
                                    .getMaximumPrice(itemid)),
                              10);
               }
               break;
            case 173:
               if (p.getInventory().contains(itemid, 500)) {
                  p.getInventory().deleteItem(itemid, 500);

                  p.getInventory()
                        .addItem(
                              (500 * GameEngine.prices
                                    .getMaximumPrice(itemid)),
                              500);
               }
               break;
            case 3:
               /*
                * Examine.
                */
               p.sm("" + def.getDefinition().getExamine());
               break;
            }
         }
         break;


Last edited by Hax on Fri Aug 26, 2011 9:41 pm; edited 1 time in total
Back to top Go down
omfgpku
New Member
New Member



Posts : 38
Reputation : 4
Join date : 2011-08-26

Adding selling back to the store Empty
PostSubject: Re: Adding selling back to the store   Adding selling back to the store EmptyFri Aug 26, 2011 9:11 pm

Are you a coder or something because you seem to know a lot. Another great suggestion as not being able to sell cause your bank to fill up with useless junk like potions.
Back to top Go down
Quit
New Member
New Member



Posts : 18
Reputation : 1
Join date : 2011-08-26

Adding selling back to the store Empty
PostSubject: Re: Adding selling back to the store   Adding selling back to the store EmptyFri Aug 26, 2011 9:13 pm

Yes, I've actually been programming in various languages (including one I made myself) since I was 11. I have been programming RSPS for about a week now.
Back to top Go down
omfgpku
New Member
New Member



Posts : 38
Reputation : 4
Join date : 2011-08-26

Adding selling back to the store Empty
PostSubject: Re: Adding selling back to the store   Adding selling back to the store EmptyFri Aug 26, 2011 9:26 pm

Apply to be the coder. I think you would get accepted.
Back to top Go down
Quit
New Member
New Member



Posts : 18
Reputation : 1
Join date : 2011-08-26

Adding selling back to the store Empty
PostSubject: Re: Adding selling back to the store   Adding selling back to the store EmptyFri Aug 26, 2011 9:29 pm

I had that in mind, but unfortunately, begging for staff is not acceptable Sad
Back to top Go down
omfgpku
New Member
New Member



Posts : 38
Reputation : 4
Join date : 2011-08-26

Adding selling back to the store Empty
PostSubject: Re: Adding selling back to the store   Adding selling back to the store EmptyFri Aug 26, 2011 9:30 pm

That is why you apply in the application section silly Razz
Back to top Go down
Jason
Graphic Designer
Graphic Designer
Jason


Posts : 30
Reputation : 0
Join date : 2011-08-26

Adding selling back to the store Empty
PostSubject: Re: Adding selling back to the store   Adding selling back to the store EmptyFri Aug 26, 2011 11:24 pm

wasn't this posted on runelocus? lol!
Back to top Go down
https://thelaststand659.forumotion.com
Quit
New Member
New Member



Posts : 18
Reputation : 1
Join date : 2011-08-26

Adding selling back to the store Empty
PostSubject: Re: Adding selling back to the store   Adding selling back to the store EmptySat Aug 27, 2011 12:43 am

Was it? I did not know that.
Back to top Go down
omfgpku
New Member
New Member



Posts : 38
Reputation : 4
Join date : 2011-08-26

Adding selling back to the store Empty
PostSubject: Re: Adding selling back to the store   Adding selling back to the store EmptySat Aug 27, 2011 10:04 am

No mater where it was posted it is still helpful to this server.
Back to top Go down
pk ancients
New Member
New Member



Posts : 23
Reputation : 10
Join date : 2011-08-27
Age : 28
Location : Netherland

Adding selling back to the store Empty
PostSubject: store   Adding selling back to the store EmptySun Aug 28, 2011 3:10 am

Agree!
Back to top Go down
Sponsored content





Adding selling back to the store Empty
PostSubject: Re: Adding selling back to the store   Adding selling back to the store Empty

Back to top Go down
 
Adding selling back to the store
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
http://thelaststand659.ucoz.com/ :: Suggestions And Ideas-
Jump to: