Pets - OdinMS

Status
Not open for further replies.
Re: [Release] Pets - OdinMS

Still trying to make purchasing pets from the CS possible. :| Anyone want to help? So far, I've added in the bit from the modified !item command and that seems to work, but I get a NullPointerException error when I attempt to purchase a pet.

PHP:
public class BuyCSItemHandler extends AbstractMaplePacketHandler {
	private final static Logger log = LoggerFactory.getLogger(MapleServerHandler.class);
	@Override
	public void handlePacket(SeekableLittleEndianAccessor slea, MapleClient c) {
		slea.skip(2);
		int snCS = slea.readInt();
		CashItemInfo item = CashItemFactory.getItem(snCS);
                if (item.getId() >= 5000000 && item.getId() <= 5000045) {
				try {
					MapleItemInformationProvider ii = MapleItemInformationProvider.getInstance();
					java.sql.Connection con = DatabaseConnection.getConnection();
					java.sql.PreparedStatement ps = con.prepareStatement("INSERT INTO pets (name, level, closeness, fullness) VALUES (?, ?, ?, ?)");
					ps.setString(1, ii.getName(item.getId()));
					ps.setInt(2, 1);
					ps.setInt(3, 0);
					ps.setInt(4, 100);
					ps.executeUpdate();
					ResultSet rs = ps.getGeneratedKeys();
					rs.next();
					rs.close();
					ps.close();
				} catch (SQLException ex) {
					java.util.logging.Logger.getLogger(CharCommands.class.getName()).log(Level.SEVERE, null, ex);
				}
                }
		MapleInventoryManipulator.addById(c, item.getId(), (short) item.getCount(), "Cash Item was purchased.");
		c.getSession().write(MaplePacketCreator.showBoughtCSItem(item.getId()));
		c.getPlayer().modifyCSPoints(0, -item.getPrice());
		c.getSession().write(MaplePacketCreator.showNXMapleTokens(c.getPlayer()));
		c.getSession().write(MaplePacketCreator.enableCSUse0());
		c.getSession().write(MaplePacketCreator.enableCSUse1());
		c.getSession().write(MaplePacketCreator.enableCSUse2());
		c.getSession().write(MaplePacketCreator.enableCSUse3());
		log.info(slea.toString());
	}
 
Re: [Release] Pets - OdinMS

Still trying to figure out whats causing the addByteID error :(

Using sean pack 5.9 btw.

Help is always appreciated
 
Re: [Release] Pets - OdinMS

Still trying to make purchasing pets from the CS possible. :| Anyone want to help? So far, I've added in the bit from the modified !item command and that seems to work, but I get a NullPointerException error when I attempt to purchase a pet.

PHP:
public class BuyCSItemHandler extends AbstractMaplePacketHandler {
	private final static Logger log = LoggerFactory.getLogger(MapleServerHandler.class);
	@Override
	public void handlePacket(SeekableLittleEndianAccessor slea, MapleClient c) {
		slea.skip(2);
		int snCS = slea.readInt();
		CashItemInfo item = CashItemFactory.getItem(snCS);
                if (item.getId() >= 5000000 && item.getId() <= 5000045) {
				try {
					MapleItemInformationProvider ii = MapleItemInformationProvider.getInstance();
					java.sql.Connection con = DatabaseConnection.getConnection();
					java.sql.PreparedStatement ps = con.prepareStatement("INSERT INTO pets (name, level, closeness, fullness) VALUES (?, ?, ?, ?)");
					ps.setString(1, ii.getName(item.getId()));
					ps.setInt(2, 1);
					ps.setInt(3, 0);
					ps.setInt(4, 100);
					ps.executeUpdate();
					ResultSet rs = ps.getGeneratedKeys();
					rs.next();
					rs.close();
					ps.close();
				} catch (SQLException ex) {
					java.util.logging.Logger.getLogger(CharCommands.class.getName()).log(Level.SEVERE, null, ex);
				}
                }
		MapleInventoryManipulator.addById(c, item.getId(), (short) item.getCount(), "Cash Item was purchased.");
		c.getSession().write(MaplePacketCreator.showBoughtCSItem(item.getId()));
		c.getPlayer().modifyCSPoints(0, -item.getPrice());
		c.getSession().write(MaplePacketCreator.showNXMapleTokens(c.getPlayer()));
		c.getSession().write(MaplePacketCreator.enableCSUse0());
		c.getSession().write(MaplePacketCreator.enableCSUse1());
		c.getSession().write(MaplePacketCreator.enableCSUse2());
		c.getSession().write(MaplePacketCreator.enableCSUse3());
		log.info(slea.toString());
	}

Just on a side note, In Sean Pack v5.9 it is possible to purchase pets from the CS. Works just fine O_o
 
Re: [Release] Pets - OdinMS

Finished patching and got these errors
Code:
init:
deps-jar:
Compiling 19 source files to C:\Documents and Settings\Administrator\My Documents\NetBeansProjects\Odinms\build\classes
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\client\ExpTable.java:51: illegal start of expression
        public static int getClosenessNeededForLevel(int level) {
        ^
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\client\ExpTable.java:51: illegal start of expression
        public static int getClosenessNeededForLevel(int level) {
               ^
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\client\ExpTable.java:51: ';' expected
        public static int getClosenessNeededForLevel(int level) {
                     ^
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\client\ExpTable.java:51: '.class' expected
        public static int getClosenessNeededForLevel(int level) {
                                                         ^
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\client\ExpTable.java:51: ';' expected
        public static int getClosenessNeededForLevel(int level) {
                                                              ^
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\client\MapleCharacter.java:1: illegal character: \65279
?/*
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\client\MaplePet.java:28: class, interface, or enum expected
+import java.sql.Connection;
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\client\MaplePet.java:29: class, interface, or enum expected
+import java.sql.PreparedStatement;
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\client\MaplePet.java:30: class, interface, or enum expected
+import java.sql.ResultSet;
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\client\MaplePet.java:31: class, interface, or enum expected
+import java.sql.SQLException;
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\client\MaplePet.java:32: class, interface, or enum expected
+
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\client\MaplePet.java:34: class, interface, or enum expected
+import java.util.logging.Logger;
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\client\MaplePet.java:35: class, interface, or enum expected
+import net.sf.odinms.database.DatabaseConnection;
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\client\MaplePet.java:42: illegal start of type
        private String name;+        private int uniqueid;
                            ^
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\client\MaplePet.java:42: ';' expected
        private String name;+        private int uniqueid;
                             ^
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\client\MaplePet.java:47: illegal start of type
        +        
        ^
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\client\MaplePet.java:47: ';' expected
        +        
         ^
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\client\MaplePet.java:76: illegal start of type
                super(id, position, (short) 1);
                ^
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\client\MaplePet.java:76: <identifier> expected
                super(id, position, (short) 1);
                        ^
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\client\MaplePet.java:76: <identifier> expected
                super(id, position, (short) 1);
                                  ^
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\client\MaplePet.java:76: illegal start of type
                super(id, position, (short) 1);
                                    ^
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\client\MaplePet.java:76: ')' expected
                super(id, position, (short) 1);
                                     ^
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\client\MaplePet.java:76: ';' expected
                super(id, position, (short) 1);
                                          ^
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\client\MaplePet.java:76: illegal start of type
                super(id, position, (short) 1);
                                            ^
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\client\MaplePet.java:76: <identifier> expected
                super(id, position, (short) 1);
                                             ^
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\client\MaplePet.java:79: class, interface, or enum expected
        public String getName() {
               ^
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\client\MaplePet.java:81: class, interface, or enum expected
        }
        ^
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\client\MaplePet.java:83: class, interface, or enum expected
        public void setName(String name) {
               ^
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\client\MaplePet.java:85: class, interface, or enum expected
        }
        ^
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\client\MaplePet.java:86: class, interface, or enum expected
        public int getUniqueId() {
               ^
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\client\MaplePet.java:89: class, interface, or enum expected
}
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\client\MaplePet.java:90: class, interface, or enum expected
        public void setUniqueId(int id) {
               ^
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\client\MaplePet.java:92: class, interface, or enum expected
        }
        ^
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\client\MaplePet.java:94: class, interface, or enum expected
        public int getCloseness() {
               ^
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\client\MaplePet.java:96: class, interface, or enum expected
        }
        ^
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\client\MaplePet.java:98: class, interface, or enum expected
        public void setCloseness(int closeness) {
               ^
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\client\MaplePet.java:100: class, interface, or enum expected
        }
        ^
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\client\MaplePet.java:102: class, interface, or enum expected
        public int getLevel() {
               ^
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\client\MaplePet.java:104: class, interface, or enum expected
        }
        ^
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\client\MaplePet.java:106: class, interface, or enum expected
        public void setLevel(int level) {
               ^
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\client\MaplePet.java:108: class, interface, or enum expected
        }
        ^
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\client\MaplePet.java:110: class, interface, or enum expected
        public int getFullness() {
               ^
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\client\MaplePet.java:112: class, interface, or enum expected
        }
        ^
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\client\MaplePet.java:114: class, interface, or enum expected
        public void setFullness(int fullness) {
               ^
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\client\MaplePet.java:116: class, interface, or enum expected
        }
        ^
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\client\messages\CommandProcessor.java:1109: not a statement
                        List<Pair<MapleStat, Integer>> stats = new ArrayList<Pair<MapleStat, Integer>>();
                                 ^
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\client\messages\CommandProcessor.java:1109: ';' expected
                        List<Pair<MapleStat, Integer>> stats = new ArrayList<Pair<MapleStat, Integer>>();
                                           ^
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\net\channel\handler\ItemPickupHandler.java:101: illegal start of expression
                                        logInfo.append(c.getPlayer().getName());+                                        if (mapitem.getItem().getItemId() >= 5000000 && mapitem.getItem().getItemId() <= 5000045) {
                                                                                                                         ^
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\net\channel\handler\ItemPickupHandler.java:101: not a statement
                                        logInfo.append(c.getPlayer().getName());+                                        if (mapitem.getItem().getItemId() >= 5000000 && mapitem.getItem().getItemId() <= 5000045) {
                                                                                ^
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\net\channel\handler\ItemPickupHandler.java:101: not a statement
                                        logInfo.append(c.getPlayer().getName());+                                        if (mapitem.getItem().getItemId() >= 5000000 && mapitem.getItem().getItemId() <= 5000045) {
                                                                                                                            ^
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\net\channel\handler\ItemPickupHandler.java:101: ';' expected
                                        logInfo.append(c.getPlayer().getName());+                                        if (mapitem.getItem().getItemId() >= 5000000 && mapitem.getItem().getItemId() <= 5000045) {
                                                                                                                                                                                                                  ^
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\net\channel\handler\ItemPickupHandler.java:125: 'else' without 'if'
                                        } else {
                                          ^
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\net\channel\handler\UseCashItemHandler.java:104: illegal start of expression
                                        c.getPlayer().getMap().startMapEffect(ii.getMsg(itemId).replaceFirst("%s", c.getPlayer().getName()).replaceFirst("%s", slea.readMapleAsciiString()), itemId);+                        } else if (itemType == 524) {
                                                                                                                                                                                                                              ^
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\net\channel\handler\UseCashItemHandler.java:104: not a statement
                                        c.getPlayer().getMap().startMapEffect(ii.getMsg(itemId).replaceFirst("%s", c.getPlayer().getName()).replaceFirst("%s", slea.readMapleAsciiString()), itemId);+                        } else if (itemType == 524) {
                                                                                                                                                                                                     ^
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\net\channel\handler\UseCashItemHandler.java:104: 'else' without 'if'
                                        c.getPlayer().getMap().startMapEffect(ii.getMsg(itemId).replaceFirst("%s", c.getPlayer().getName()).replaceFirst("%s", slea.readMapleAsciiString()), itemId);+                        } else if (itemType == 524) {
                                                                                                                                                                                                                                ^
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\server\MapleStorage.java:135: not a statement
                                                +                                                Item item = new Item(rs.getInt("itemid"), (byte) rs.getInt("position"), (short) rs.getInt("quantity"), rs.getInt("petid"));
                                                ^
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\server\MapleStorage.java:135: ';' expected
                                                +                                                Item item = new Item(rs.getInt("itemid"), (byte) rs.getInt("position"), (short) rs.getInt("quantity"), rs.getInt("petid"));
                                                                                                     ^
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\server\maps\MapleMap.java:1: illegal character: \65279
?/*
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\tools\MaplePacketCreator.java:1038: illegal start of expression
        public static MaplePacket showPet(MapleCharacter chr, MaplePet pet) {
        ^
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\tools\MaplePacketCreator.java:1038: illegal start of expression
        public static MaplePacket showPet(MapleCharacter chr, MaplePet pet) {
               ^
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\tools\MaplePacketCreator.java:1038: ';' expected
        public static MaplePacket showPet(MapleCharacter chr, MaplePet pet) {
                                 ^
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\tools\MaplePacketCreator.java:1038: ')' expected
        public static MaplePacket showPet(MapleCharacter chr, MaplePet pet) {
                                                        ^
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\tools\MaplePacketCreator.java:1038: illegal start of expression
        public static MaplePacket showPet(MapleCharacter chr, MaplePet pet) {
                                                            ^
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\tools\MaplePacketCreator.java:1038: ';' expected
        public static MaplePacket showPet(MapleCharacter chr, MaplePet pet) {
                                                                      ^
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\tools\MaplePacketCreator.java:1038: not a statement
        public static MaplePacket showPet(MapleCharacter chr, MaplePet pet) {
                                                                       ^
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\tools\MaplePacketCreator.java:1038: ';' expected
        public static MaplePacket showPet(MapleCharacter chr, MaplePet pet) {
                                                                          ^
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\tools\MaplePacketCreator.java:1066: illegal start of expression
        public static MaplePacket movePet(int cid, int pid, List<LifeMovementFragment> moves) {
        ^
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\tools\MaplePacketCreator.java:1066: illegal start of expression
        public static MaplePacket movePet(int cid, int pid, List<LifeMovementFragment> moves) {
               ^
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\tools\MaplePacketCreator.java:1066: ';' expected
        public static MaplePacket movePet(int cid, int pid, List<LifeMovementFragment> moves) {
                                 ^
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\tools\MaplePacketCreator.java:1066: '.class' expected
        public static MaplePacket movePet(int cid, int pid, List<LifeMovementFragment> moves) {
                                              ^
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\tools\MaplePacketCreator.java:1066: ';' expected
        public static MaplePacket movePet(int cid, int pid, List<LifeMovementFragment> moves) {
                                                 ^
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\tools\MaplePacketCreator.java:1066: ';' expected
        public static MaplePacket movePet(int cid, int pid, List<LifeMovementFragment> moves) {
                                                                ^
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\tools\MaplePacketCreator.java:1066: illegal start of expression
        public static MaplePacket movePet(int cid, int pid, List<LifeMovementFragment> moves) {
                                                                                       ^
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\tools\MaplePacketCreator.java:1066: illegal start of expression
        public static MaplePacket movePet(int cid, int pid, List<LifeMovementFragment> moves) {
                                                                                            ^
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\tools\MaplePacketCreator.java:1066: ';' expected
        public static MaplePacket movePet(int cid, int pid, List<LifeMovementFragment> moves) {
                                                                                             ^
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\tools\MaplePacketCreator.java:1158: class, interface, or enum expected
                        mplew.writeAsciiString(petname);
                        ^
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\tools\MaplePacketCreator.java:1159: class, interface, or enum expected
                        for (int i = petname.length(); i < 13; i++) {
                        ^
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\tools\MaplePacketCreator.java:1159: class, interface, or enum expected
                        for (int i = petname.length(); i < 13; i++) {
                                                       ^
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\tools\MaplePacketCreator.java:1159: class, interface, or enum expected
                        for (int i = petname.length(); i < 13; i++) {
                                                               ^
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\tools\MaplePacketCreator.java:1161: class, interface, or enum expected
                        }
                        ^
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\tools\MaplePacketCreator.java:1163: class, interface, or enum expected
                        mplew.writeShort(pet.getCloseness());
                        ^
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\tools\MaplePacketCreator.java:1164: class, interface, or enum expected
                        mplew.write(pet.getFullness());
                        ^
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\tools\MaplePacketCreator.java:1165: class, interface, or enum expected
                        mplew.writeLong(getKoreanTimestamp((long) (System.currentTimeMillis() * 1.5)));
                        ^
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\tools\MaplePacketCreator.java:1166: class, interface, or enum expected
                        mplew.writeInt(0);
                        ^
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\tools\MaplePacketCreator.java:1167: class, interface, or enum expected
                        return;
                        ^
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\tools\MaplePacketCreator.java:1168: class, interface, or enum expected
                }
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\tools\MaplePacketCreator.java:1173: class, interface, or enum expected
                } else {
                ^
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\tools\MaplePacketCreator.java:1175: class, interface, or enum expected
                        mplew.write(ITEM_MAGIC);
                        ^
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\tools\MaplePacketCreator.java:1176: class, interface, or enum expected
                }
                ^
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\tools\MaplePacketCreator.java:1180: class, interface, or enum expected
                if (item.getType() == IItem.EQUIP) {
                ^
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\tools\MaplePacketCreator.java:1182: class, interface, or enum expected
                        mplew.write(equip.getUpgradeSlots());
                        ^
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\tools\MaplePacketCreator.java:1183: class, interface, or enum expected
                        mplew.write(equip.getLevel());
                        ^
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\tools\MaplePacketCreator.java:1184: class, interface, or enum expected
                        mplew.writeShort(equip.getStr()); // str
                        ^
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\tools\MaplePacketCreator.java:1186: class, interface, or enum expected
                        mplew.writeShort(equip.getDex()); // dex
                        ^
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\tools\MaplePacketCreator.java:1188: class, interface, or enum expected
                        mplew.writeShort(equip.getInt()); // int
                        ^
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\tools\MaplePacketCreator.java:1190: class, interface, or enum expected
                        mplew.writeShort(equip.getLuk()); // luk
                        ^
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\tools\MaplePacketCreator.java:1192: class, interface, or enum expected
                        mplew.writeShort(equip.getHp()); // hp
                        ^
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\tools\MaplePacketCreator.java:1194: class, interface, or enum expected
                        mplew.writeShort(equip.getMp()); // mp
                        ^
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\tools\MaplePacketCreator.java:1196: class, interface, or enum expected
                        mplew.writeShort(equip.getWatk()); // watk
                        ^
C:\Documents and Settings\Administrator\Desktop\UnownMS\net.sf.odinms\src\net\sf\odinms\tools\MaplePacketCreator.java:1198: class, interface, or enum expected
                        mplew.writeShort(equip.getMatk()); // matk
                        ^
100 errors
BUILD FAILED (total time: 0 seconds)

Anyone?
 
Re: [Release] Pets - OdinMS

at sean pack 5.9 its works?

Purchasing pets in sean pack 5.9 works, but this patch doesn't quiet work yet.

If you patched it correctly, you will be left with 5 errors from AddByteID :(

Leifde, help pls :)
 
Re: [Release] Pets - OdinMS

So This Will not Work For anyrepack o.o besides clean odin source?

Unless you manual patch, I rather doubt it.

However, Bavilo's saying it works with 5.9?.. If he said that apparently, it works when he tries to buy it in CS.

o_o but if you patch, you shouldn't be able to buy it in CS. =_=
 
Re: [Release] Pets - OdinMS

Unless you manual patch, I rather doubt it.

However, Bavilo's saying it works with 5.9?.. If he said that apparently, it works when he tries to buy it in CS.

o_o but if you patch, you shouldn't be able to buy it in CS. =_=

No what I am saying is that, on a clean Sean Pack v5.9. You are able to buy them from the CS.

However, I have not been able to get the pets patch to work yet due to one minor error :(
 
Re: [Release] Pets - OdinMS

No what I am saying is that, on a clean Sean Pack v5.9. You are able to buy them from the CS.

However, I have not been able to get the pets patch to work yet due to one minor error :(

Oh okay, I thought so too... eum, unless you edit one of those, you supposedly "can't" buy it from CS. =[

Oh well, and manual patch IS going to take an extremely long period of time. So if you want pets bad, the only way for this to work is the get a clean source and patch it. =\ Or wait...
 
Re: [Release] Pets - OdinMS

Leifde - Pets - OdinMS - RaGEZONE Forums

Leifde - Pets - OdinMS - RaGEZONE Forums

Leifde - Pets - OdinMS - RaGEZONE Forums


Works! >:D
 
Status
Not open for further replies.
Back