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/
 
HomeHome  Download Client  WebClient  FAQFAQ  SearchSearch  UsergroupsUsergroups  RegisterRegister  Log inLog in  MemberlistMemberlist  CalendarCalendar  

Share | 
 

 Adding selling back to the store

Go down 
AuthorMessage
Quit
New Member
New Member


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

PostSubject: Adding selling back to the store   Fri 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
View user profile
omfgpku
New Member
New Member


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

PostSubject: Re: Adding selling back to the store   Fri 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
View user profile
Quit
New Member
New Member


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

PostSubject: Re: Adding selling back to the store   Fri 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
View user profile
omfgpku
New Member
New Member


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

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

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


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

PostSubject: Re: Adding selling back to the store   Fri 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
View user profile
omfgpku
New Member
New Member


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

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

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

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

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

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


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

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

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


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

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

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


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

PostSubject: store   Sun Aug 28, 2011 3:10 am

Agree!
Back to top Go down
View user profile
Sponsored content




PostSubject: Re: Adding selling back to the store   

Back to top Go down
 
Adding selling back to the store
Back to top 
Page 1 of 1
 Similar topics
-
» how to get one muxxu Account back after getting banned. (no Garantee!)
» MM app store rating
» When do you go back to school?
» Uk app store rating
» Selling my Star Wars Lego Collection (Dioramas)

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