HomeHome  ­FAQFAQ  ­SearchSearch  ­MemberlistMemberlist  ­UsergroupsUsergroups  ­RegisterRegister  ­Log inLog in  
Post new topic   Reply to topicShare | 
 

 Make Cash items not buy able

View previous topic View next topic Go down 
AuthorMessage
Flav



Posts: 24
Join date: 2008-08-16

PostSubject: Make Cash items not buy able   Sat Aug 16, 2008 7:42 pm

I made this for Magic Scales, as most of you know it bugs your character if you use it.

Open BuyCSItemHandler.java and change
Code:
      } else {
                    MapleInventoryManipulator.addById(c, item.getId(), (short) item.getCount(), "Cash Item was purchased.");
      }

to
Code:
      } else if (item.getId() == 1812006) {
                    c.getPlayer().modifyCSPoints(0, item.getPrice());
                } else {
                    MapleInventoryManipulator.addById(c, item.getId(), (short) item.getCount(), "Cash Item was purchased.");
      }


If you want to disable other items you can easily add them by adding this
Code:
 || item.getId() == ITEM ID

after
Code:
item.getId() == 1812006
Back to top Go down
View user profile
f1r3



Posts: 17
Join date: 2008-08-18

PostSubject: Re: Make Cash items not buy able   Mon Aug 18, 2008 10:53 am

Shocked good job!
my users wont lose items and skills anymore?
Back to top Go down
View user profile
Flav



Posts: 24
Join date: 2008-08-16

PostSubject: Re: Make Cash items not buy able   Mon Aug 18, 2008 10:58 am

Yea, that's also a fix for the disappearing items and skills after equipping the pet with Magic Scales.
Back to top Go down
View user profile
 

Make Cash items not buy able

View previous topic View next topic Back to top 
Page 1 of 1

Permissions of this forum:You cannot reply to topics in this forum
 :: OdinMS :: Guides-
Post new topic   Reply to topic