Flav
Posts: 24 Join date: 2008-08-16
 | Subject: 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 |
|
|
f1r3
Posts: 17 Join date: 2008-08-18
 | Subject: Re: Make Cash items not buy able Mon Aug 18, 2008 10:53 am | |
|  good job! my users wont lose items and skills anymore? |
|
Flav
Posts: 24 Join date: 2008-08-16
 | Subject: 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. |
|