Fixes to cash shop

Status
Not open for further replies.
Junior Spellweaver
Joined
Jul 28, 2008
Messages
131
Reaction score
0
Re: [Release] Fixes to cash shop

What about , you cant buy some stuff from cashshop?

THat sucks
 
Junior Spellweaver
Joined
Jun 25, 2008
Messages
166
Reaction score
0
Re: [Release] Fixes to cash shop

oh F things have bug? i though im the only one with this problem.. o.o

and i have error too there is something wrong with your syntax in this code
Code:
} else { // hax
                        AutobanManager.getInstance().autoban(c.getPlayer().getClient(),
                                "Attempting to buy a cash item with insufficient funds (NX: " + c.getPlayer().getNX() + " REQ NX: " + item.getPrice() + ")");
                    }
} else { // hax
                    AutobanManager.getInstance().autoban(c.getPlayer().getClient(),
                            "Attempting to buy a cash item outside of the cash shop");
                }

i get thos errors when i try to compile
Code:
D:\Shortcuts\CherryTale\Server\CherryTale\SERVER\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:62: illegal start of type
} else { // hax
D:\Shortcuts\CherryTale\Server\CherryTale\SERVER\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:62: ';' expected
} else { // hax
D:\Shortcuts\CherryTale\Server\CherryTale\SERVER\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:63: <identifier> expected
                    AutobanManager.getInstance().autoban(c.getPlayer().getClient(),
D:\Shortcuts\CherryTale\Server\CherryTale\SERVER\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:63: ';' expected
                    AutobanManager.getInstance().autoban(c.getPlayer().getClient(),
D:\Shortcuts\CherryTale\Server\CherryTale\SERVER\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:66: class, interface, or enum expected
                int mode = slea.readByte();
D:\Shortcuts\CherryTale\Server\CherryTale\SERVER\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:67: class, interface, or enum expected
                MapleItemInformationProvider ii = MapleItemInformationProvider.getInstance();
                ^
D:\Shortcuts\CherryTale\Server\CherryTale\SERVER\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:68: class, interface, or enum expected
                slea.skip(1);
                ^
D:\Shortcuts\CherryTale\Server\CherryTale\SERVER\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:69: class, interface, or enum expected
                int snCS = slea.readInt();
                ^
D:\Shortcuts\CherryTale\Server\CherryTale\SERVER\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:70: class, interface, or enum expected
                CashItemInfo item = CashItemFactory.getItem(snCS);
                ^
D:\Shortcuts\CherryTale\Server\CherryTale\SERVER\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:71: class, interface, or enum expected
                if(c.getPlayer().getNX() >= item.getPrice()) {
D:\Shortcuts\CherryTale\Server\CherryTale\SERVER\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:74: class, interface, or enum expected
                    c.getSession().write(MaplePacketCreator.showNXMapleTokens(c.getPlayer()));
D:\Shortcuts\CherryTale\Server\CherryTale\SERVER\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:75: class, interface, or enum expected
                    c.getSession().write(MaplePacketCreator.enableCSUse0());
D:\Shortcuts\CherryTale\Server\CherryTale\SERVER\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:76: class, interface, or enum expected
                    c.getSession().write(MaplePacketCreator.enableCSUse1());
D:\Shortcuts\CherryTale\Server\CherryTale\SERVER\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:77: class, interface, or enum expected
                    c.getSession().write(MaplePacketCreator.enableCSUse2());
D:\Shortcuts\CherryTale\Server\CherryTale\SERVER\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:78: class, interface, or enum expected
                    c.getSession().write(MaplePacketCreator.enableCSUse3());
D:\Shortcuts\CherryTale\Server\CherryTale\SERVER\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:79: class, interface, or enum expected
                    return;
D:\Shortcuts\CherryTale\Server\CherryTale\SERVER\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:80: class, interface, or enum expected
                }  
D:\Shortcuts\CherryTale\Server\CherryTale\SERVER\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:85: class, interface, or enum expected
                                PreparedStatement ps = con.prepareStatement("INSERT INTO pets (name, level, closeness, fullness) VALUES (?, ?, ?, ?)");
                                ^
D:\Shortcuts\CherryTale\Server\CherryTale\SERVER\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:86: class, interface, or enum expected
                                ps.setString(1, ii.getName(item.getId()));
                                ^
D:\Shortcuts\CherryTale\Server\CherryTale\SERVER\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:87: class, interface, or enum expected
                                ps.setInt(2, 1);
                                ^
D:\Shortcuts\CherryTale\Server\CherryTale\SERVER\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:88: class, interface, or enum expected
                                ps.setInt(3, 0);
                                ^
D:\Shortcuts\CherryTale\Server\CherryTale\SERVER\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:89: class, interface, or enum expected
                                ps.setInt(4, 100);
                                ^
D:\Shortcuts\CherryTale\Server\CherryTale\SERVER\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:90: class, interface, or enum expected
                                ps.executeUpdate();
                                ^
D:\Shortcuts\CherryTale\Server\CherryTale\SERVER\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:91: class, interface, or enum expected
                                ResultSet rs = ps.getGeneratedKeys();
                                ^
D:\Shortcuts\CherryTale\Server\CherryTale\SERVER\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:92: class, interface, or enum expected
                                rs.next();
                                ^
D:\Shortcuts\CherryTale\Server\CherryTale\SERVER\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:94: class, interface, or enum expected
                                MapleInventoryManipulator.addById(c, item.getId(), (short) item.getCount(), "Cash Item was purchased.", null, rs.getInt(1));
                                ^
D:\Shortcuts\CherryTale\Server\CherryTale\SERVER\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:95: class, interface, or enum expected
                                rs.close();
                                ^
D:\Shortcuts\CherryTale\Server\CherryTale\SERVER\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:96: class, interface, or enum expected
                                ps.close();
                                ^
D:\Shortcuts\CherryTale\Server\CherryTale\SERVER\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:97: class, interface, or enum expected
                        } catch (SQLException ex) {
                        ^
D:\Shortcuts\CherryTale\Server\CherryTale\SERVER\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:98: <identifier> expected
                                java.util.logging.Logger.getLogger(BuyCSItemHandler.class.getName()).log(Level.SEVERE, null, ex);
                                                                                         ^
D:\Shortcuts\CherryTale\Server\CherryTale\SERVER\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:98: invalid method declaration; return type required
                                java.util.logging.Logger.getLogger(BuyCSItemHandler.class.getName()).log(Level.SEVERE, null, ex);
                                                                                          ^
D:\Shortcuts\CherryTale\Server\CherryTale\SERVER\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:98: ';' expected
                                java.util.logging.Logger.getLogger(BuyCSItemHandler.class.getName()).log(Level.SEVERE, null, ex);
                                                                                                   ^
D:\Shortcuts\CherryTale\Server\CherryTale\SERVER\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:100: class, interface, or enum expected
                } else {
                ^
D:\Shortcuts\CherryTale\Server\CherryTale\SERVER\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:102: class, interface, or enum expected
                }
D:\Shortcuts\CherryTale\Server\CherryTale\SERVER\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:104: class, interface, or enum expected
                c.getPlayer().modifyCSPoints(0, -item.getPrice());
                ^
D:\Shortcuts\CherryTale\Server\CherryTale\SERVER\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:105: class, interface, or enum expected
                c.getSession().write(MaplePacketCreator.showNXMapleTokens(c.getPlayer()));
                ^
D:\Shortcuts\CherryTale\Server\CherryTale\SERVER\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:106: class, interface, or enum expected
                c.getSession().write(MaplePacketCreator.enableCSUse0());
                ^
D:\Shortcuts\CherryTale\Server\CherryTale\SERVER\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:107: class, interface, or enum expected
                c.getSession().write(MaplePacketCreator.enableCSUse1());
                ^
D:\Shortcuts\CherryTale\Server\CherryTale\SERVER\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:108: class, interface, or enum expected
                c.getSession().write(MaplePacketCreator.enableCSUse2());
                ^
D:\Shortcuts\CherryTale\Server\CherryTale\SERVER\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:109: class, interface, or enum expected
                c.getSession().write(MaplePacketCreator.enableCSUse3());
                ^
D:\Shortcuts\CherryTale\Server\CherryTale\SERVER\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:110: class, interface, or enum expected
        }
        ^
41 errors
BUILD FAILED (total time: 0 seconds)
 
Banned
Banned
Joined
Oct 19, 2006
Messages
400
Reaction score
1
Re: [Release] Fixes to cash shop

I made this weeks before the pet release but never released the SQL script. Good job anyway =p
 
Newbie Spellweaver
Joined
Jan 31, 2008
Messages
47
Reaction score
0
Re: [Release] Fixes to cash shop

oh F things have bug? i though im the only one with this problem.. o.o

and i have error too there is something wrong with your syntax in this code
Code:
} else { // hax
                        AutobanManager.getInstance().autoban(c.getPlayer().getClient(),
                                "Attempting to buy a cash item with insufficient funds (NX: " + c.getPlayer().getNX() + " REQ NX: " + item.getPrice() + ")");
                    }
} else { // hax
                    AutobanManager.getInstance().autoban(c.getPlayer().getClient(),
                            "Attempting to buy a cash item outside of the cash shop");
                }

i get thos errors when i try to compile
Code:
D:\Shortcuts\CherryTale\Server\CherryTale\SERVER\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:62: illegal start of type
} else { // hax
D:\Shortcuts\CherryTale\Server\CherryTale\SERVER\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:62: ';' expected
} else { // hax
D:\Shortcuts\CherryTale\Server\CherryTale\SERVER\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:63: <identifier> expected
                    AutobanManager.getInstance().autoban(c.getPlayer().getClient(),
D:\Shortcuts\CherryTale\Server\CherryTale\SERVER\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:63: ';' expected
                    AutobanManager.getInstance().autoban(c.getPlayer().getClient(),
D:\Shortcuts\CherryTale\Server\CherryTale\SERVER\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:66: class, interface, or enum expected
                int mode = slea.readByte();
D:\Shortcuts\CherryTale\Server\CherryTale\SERVER\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:67: class, interface, or enum expected
                MapleItemInformationProvider ii = MapleItemInformationProvider.getInstance();
                ^
D:\Shortcuts\CherryTale\Server\CherryTale\SERVER\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:68: class, interface, or enum expected
                slea.skip(1);
                ^
D:\Shortcuts\CherryTale\Server\CherryTale\SERVER\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:69: class, interface, or enum expected
                int snCS = slea.readInt();
                ^
D:\Shortcuts\CherryTale\Server\CherryTale\SERVER\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:70: class, interface, or enum expected
                CashItemInfo item = CashItemFactory.getItem(snCS);
                ^
D:\Shortcuts\CherryTale\Server\CherryTale\SERVER\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:71: class, interface, or enum expected
                if(c.getPlayer().getNX() >= item.getPrice()) {
D:\Shortcuts\CherryTale\Server\CherryTale\SERVER\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:74: class, interface, or enum expected
                    c.getSession().write(MaplePacketCreator.showNXMapleTokens(c.getPlayer()));
D:\Shortcuts\CherryTale\Server\CherryTale\SERVER\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:75: class, interface, or enum expected
                    c.getSession().write(MaplePacketCreator.enableCSUse0());
D:\Shortcuts\CherryTale\Server\CherryTale\SERVER\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:76: class, interface, or enum expected
                    c.getSession().write(MaplePacketCreator.enableCSUse1());
D:\Shortcuts\CherryTale\Server\CherryTale\SERVER\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:77: class, interface, or enum expected
                    c.getSession().write(MaplePacketCreator.enableCSUse2());
D:\Shortcuts\CherryTale\Server\CherryTale\SERVER\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:78: class, interface, or enum expected
                    c.getSession().write(MaplePacketCreator.enableCSUse3());
D:\Shortcuts\CherryTale\Server\CherryTale\SERVER\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:79: class, interface, or enum expected
                    return;
D:\Shortcuts\CherryTale\Server\CherryTale\SERVER\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:80: class, interface, or enum expected
                }  
D:\Shortcuts\CherryTale\Server\CherryTale\SERVER\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:85: class, interface, or enum expected
                                PreparedStatement ps = con.prepareStatement("INSERT INTO pets (name, level, closeness, fullness) VALUES (?, ?, ?, ?)");
                                ^
D:\Shortcuts\CherryTale\Server\CherryTale\SERVER\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:86: class, interface, or enum expected
                                ps.setString(1, ii.getName(item.getId()));
                                ^
D:\Shortcuts\CherryTale\Server\CherryTale\SERVER\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:87: class, interface, or enum expected
                                ps.setInt(2, 1);
                                ^
D:\Shortcuts\CherryTale\Server\CherryTale\SERVER\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:88: class, interface, or enum expected
                                ps.setInt(3, 0);
                                ^
D:\Shortcuts\CherryTale\Server\CherryTale\SERVER\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:89: class, interface, or enum expected
                                ps.setInt(4, 100);
                                ^
D:\Shortcuts\CherryTale\Server\CherryTale\SERVER\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:90: class, interface, or enum expected
                                ps.executeUpdate();
                                ^
D:\Shortcuts\CherryTale\Server\CherryTale\SERVER\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:91: class, interface, or enum expected
                                ResultSet rs = ps.getGeneratedKeys();
                                ^
D:\Shortcuts\CherryTale\Server\CherryTale\SERVER\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:92: class, interface, or enum expected
                                rs.next();
                                ^
D:\Shortcuts\CherryTale\Server\CherryTale\SERVER\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:94: class, interface, or enum expected
                                MapleInventoryManipulator.addById(c, item.getId(), (short) item.getCount(), "Cash Item was purchased.", null, rs.getInt(1));
                                ^
D:\Shortcuts\CherryTale\Server\CherryTale\SERVER\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:95: class, interface, or enum expected
                                rs.close();
                                ^
D:\Shortcuts\CherryTale\Server\CherryTale\SERVER\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:96: class, interface, or enum expected
                                ps.close();
                                ^
D:\Shortcuts\CherryTale\Server\CherryTale\SERVER\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:97: class, interface, or enum expected
                        } catch (SQLException ex) {
                        ^
D:\Shortcuts\CherryTale\Server\CherryTale\SERVER\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:98: <identifier> expected
                                java.util.logging.Logger.getLogger(BuyCSItemHandler.class.getName()).log(Level.SEVERE, null, ex);
                                                                                         ^
D:\Shortcuts\CherryTale\Server\CherryTale\SERVER\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:98: invalid method declaration; return type required
                                java.util.logging.Logger.getLogger(BuyCSItemHandler.class.getName()).log(Level.SEVERE, null, ex);
                                                                                          ^
D:\Shortcuts\CherryTale\Server\CherryTale\SERVER\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:98: ';' expected
                                java.util.logging.Logger.getLogger(BuyCSItemHandler.class.getName()).log(Level.SEVERE, null, ex);
                                                                                                   ^
D:\Shortcuts\CherryTale\Server\CherryTale\SERVER\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:100: class, interface, or enum expected
                } else {
                ^
D:\Shortcuts\CherryTale\Server\CherryTale\SERVER\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:102: class, interface, or enum expected
                }
D:\Shortcuts\CherryTale\Server\CherryTale\SERVER\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:104: class, interface, or enum expected
                c.getPlayer().modifyCSPoints(0, -item.getPrice());
                ^
D:\Shortcuts\CherryTale\Server\CherryTale\SERVER\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:105: class, interface, or enum expected
                c.getSession().write(MaplePacketCreator.showNXMapleTokens(c.getPlayer()));
                ^
D:\Shortcuts\CherryTale\Server\CherryTale\SERVER\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:106: class, interface, or enum expected
                c.getSession().write(MaplePacketCreator.enableCSUse0());
                ^
D:\Shortcuts\CherryTale\Server\CherryTale\SERVER\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:107: class, interface, or enum expected
                c.getSession().write(MaplePacketCreator.enableCSUse1());
                ^
D:\Shortcuts\CherryTale\Server\CherryTale\SERVER\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:108: class, interface, or enum expected
                c.getSession().write(MaplePacketCreator.enableCSUse2());
                ^
D:\Shortcuts\CherryTale\Server\CherryTale\SERVER\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:109: class, interface, or enum expected
                c.getSession().write(MaplePacketCreator.enableCSUse3());
                ^
D:\Shortcuts\CherryTale\Server\CherryTale\SERVER\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:110: class, interface, or enum expected
        }
        ^
41 errors
BUILD FAILED (total time: 0 seconds)
I have the same problem please help me please!!!
 
You've got my respect!
Joined
Apr 8, 2008
Messages
508
Reaction score
147
Re: [Release] Fixes to cash shop

Sorry, you must have added it wrong.
I made this weeks before the pet release but never released the SQL script. Good job anyway =p
what.
never released the sql script? you sound like you have no idea what you're talking about.
unless you posted this in the wrong thread
 
Elite Diviner
Joined
Apr 7, 2008
Messages
494
Reaction score
66
Re: [Release] Fixes to cash shop

Well Afew More Bugs Need To Be Fix

~ Unable Buy From MaplePoints
~ D/c When Buy Stack Items
~ Upon Enter CS You Naked
~ Cash Item Dont Go CS Purchase Tab
~ Afew More

You Must As Well Fix All 0.0 Since You Started This Thread :drinks_no

Can You Do This
 
Junior Spellweaver
Joined
May 20, 2008
Messages
153
Reaction score
0
Re: [Release] Fixes to cash shop

Cool might try this out
 
Newbie Spellweaver
Joined
Jan 31, 2008
Messages
47
Reaction score
0
Re: [Release] Fixes to cash shop

init:
deps-jar:
Compiling 6 source files to C:\Documents and Settings\יניב\שולחן העבודה\קימפול\build\classes
D:\CliperMS\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:61: illegal start of type
else {
D:\CliperMS\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:61: ';' expected
else {
D:\CliperMS\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:62: <identifier> expected
AutobanManager.getInstance().autoban(c.getPlayer().getClient(),
D:\CliperMS\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:62: ';' expected
AutobanManager.getInstance().autoban(c.getPlayer().getClient(),
D:\CliperMS\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:65: class, interface, or enum expected
int mode = slea.readByte();
D:\CliperMS\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:66: class, interface, or enum expected
MapleItemInformationProvider ii = MapleItemInformationProvider.getInstance();
^
D:\CliperMS\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:67: class, interface, or enum expected
slea.skip(1);
^
D:\CliperMS\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:68: class, interface, or enum expected
int snCS = slea.readInt();
^
D:\CliperMS\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:69: class, interface, or enum expected
CashItemInfo item = CashItemFactory.getItem(snCS);
^
D:\CliperMS\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:70: class, interface, or enum expected
if(c.getPlayer().getNX() >= item.getPrice())
D:\CliperMS\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:75: class, interface, or enum expected
PreparedStatement ps = con.prepareStatement("INSERT INTO pets (name, level, closeness, fullness) VALUES (?, ?, ?, ?)");
^
D:\CliperMS\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:76: class, interface, or enum expected
ps.setString(1, ii.getName(item.getId()));
^
D:\CliperMS\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:77: class, interface, or enum expected
ps.setInt(2, 1);
^
D:\CliperMS\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:78: class, interface, or enum expected
ps.setInt(3, 0);
^
D:\CliperMS\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:79: class, interface, or enum expected
ps.setInt(4, 100);
^
D:\CliperMS\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:80: class, interface, or enum expected
ps.executeUpdate();
^
D:\CliperMS\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:81: class, interface, or enum expected
ResultSet rs = ps.getGeneratedKeys();
^
D:\CliperMS\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:82: class, interface, or enum expected
rs.next();
^
D:\CliperMS\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:84: class, interface, or enum expected
MapleInventoryManipulator.addById(c, item.getId(), (short) item.getCount(), "Cash Item was purchased.", null, rs.getInt(1));
^
D:\CliperMS\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:85: class, interface, or enum expected
rs.close();
^
D:\CliperMS\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:86: class, interface, or enum expected
ps.close();
^
D:\CliperMS\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:87: class, interface, or enum expected
} catch (SQLException ex) {
^
D:\CliperMS\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:88: <identifier> expected
java.util.logging.Logger.getLogger(BuyCSItemHandler.class.getName()).log(Level.SEVERE, null, ex);
^
D:\CliperMS\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:88: invalid method declaration; return type required
java.util.logging.Logger.getLogger(BuyCSItemHandler.class.getName()).log(Level.SEVERE, null, ex);
^
D:\CliperMS\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:88: ';' expected
java.util.logging.Logger.getLogger(BuyCSItemHandler.class.getName()).log(Level.SEVERE, null, ex);
^
D:\CliperMS\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:90: class, interface, or enum expected
} else {
^
D:\CliperMS\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:92: class, interface, or enum expected
}
^
D:\CliperMS\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:94: class, interface, or enum expected
c.getPlayer().modifyCSPoints(0, -item.getPrice());
^
D:\CliperMS\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:95: class, interface, or enum expected
c.getSession().write(MaplePacketCreator.showNXMapleTokens(c.getPlayer()));
^
D:\CliperMS\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:96: class, interface, or enum expected
c.getSession().write(MaplePacketCreator.enableCSUse0());
^
D:\CliperMS\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:97: class, interface, or enum expected
c.getSession().write(MaplePacketCreator.enableCSUse1());
^
D:\CliperMS\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:98: class, interface, or enum expected
c.getSession().write(MaplePacketCreator.enableCSUse2());
^
D:\CliperMS\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:99: class, interface, or enum expected
c.getSession().write(MaplePacketCreator.enableCSUse3());
^
D:\CliperMS\src\net\sf\odinms\net\channel\handler\BuyCSItemHandler.java:100: class, interface, or enum expected
}
34 errors
BUILD FAILED (total time: 1 second)
Now what?? I have the same problem and I tested all whats wrong??
Please I needc this help I am putting it exectly as you say here look:
log.info(slea.toString());
} else { // hax
AutobanManager.getInstance().autoban(c.getPlayer().getClient(),
"Attempting to buy a cash item with insufficient funds (NX: " + c.getPlayer().getNX() + " REQ NX: " + item.getPrice() + ")");
}
} else { // hax
AutobanManager.getInstance().autoban(c.getPlayer().getClient(),
"Attempting to buy a cash item outside of the cash shop");
}
 
Status
Not open for further replies.
Back
Top