Pets - OdinMS

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

i was manually patching it but i dont have these
commands/CharCommands.java

=/ im using sean repack 5.9
 
Re: [Release] Pets - OdinMS

Hi
Before nothing thanks for that awesome release...

I only want to know in what folder I have to tell the TortoiseSVN apply the patch for CS pets... I try like is in a guide in guides section but tells me...

The "line index was not found" something like that...
Thanks again & sorry my bad english

Dont double post and patch manually.
 
Re: [Release] Pets - OdinMS

i was manually patching it but i dont have these
commands/CharCommands.java

=/ im using sean repack 5.9

The things in "charcommands" and "debugcommands" both need to be put in your CommandProcesspr.java
 
Re: [Release] Pets - OdinMS

thnx alot man

but when ppl change pet name they cant use command on it

and when i use pets shop and buy i got dc but i get the item

cash shop works fine

thnx alot
 
Re: [Release] Pets - OdinMS

Dont double post and patch manually.

Maybe you could help telling us how to manual patch...
I'm quite new in java so don't know much, so if you tell me only
how I must understand the lines in the .patch file...

Thanks....
 
Re: [Release] Pets - OdinMS

Maybe you could help telling us how to manual patch...
I'm quite new in java so don't know much, so if you tell me only
how I must understand the lines in the .patch file...

Thanks....

Or maybe, you can use the search button for once in your life...​
 
Re: [Release] Pets - OdinMS

this is my !item command

Code:
else if (splitted[0].equals("!item")) {
				short quantity = (short) getOptionalIntArg(splitted, 2, 1);
                                if (Integer.parseInt(splitted[1]) >= 5000000 && Integer.parseInt(splitted[1]) <= 5000045) {
				try {
					if (quantity > 1) {
						quantity = 1;
					}
					MapleItemInformationProvider ii = MapleItemInformationProvider.getInstance();
					Connection con = DatabaseConnection.getConnection();
					PreparedStatement ps = con.prepareStatement("INSERT INTO pets (name, level, closeness, fullness) VALUES (?, ?, ?, ?)");
					ps.setString(1, ii.getName(Integer.parseInt(splitted[1])));
					ps.setInt(2, 1);
					ps.setInt(3, 0);
					ps.setInt(4, 100);
					ps.executeUpdate();
					ResultSet rs = ps.getGeneratedKeys();
					rs.next();
					//c.getPlayer().equipChanged();
				MapleInventoryManipulator.addById(c, Integer.parseInt(splitted[1]), quantity, c.getPlayer().getName() +
                                      "used !item with quantity " + quantity, player.getName(), rs.getInt(1));
					rs.close();
					ps.close();
				} catch (SQLException ex) {
					java.util.logging.Logger.getLogger(CommandProcessor.class.getName()).log(Level.SEVERE, null, ex);
				}
			}
			MapleInventoryManipulator.addById(c, Integer.parseInt(splitted[1]), quantity, c.getPlayer().getName() +
                                "used !item with quantity " + quantity, player.getName());
			}
 
Re: [Release] Pets - OdinMS

I get 1 error D:

Code:
init:
deps-clean:
Deleting directory C:\Documents and Settings\Mariokiller644\Desktop\OdinMS\OdinMSUpdate\build
clean:
init:
deps-jar:
Created dir: C:\Documents and Settings\Mariokiller644\Desktop\OdinMS\OdinMSUpdate\build\classes
Compiling 297 source files to C:\Documents and Settings\Mariokiller644\Desktop\OdinMS\OdinMSUpdate\build\classes
C:\Documents and Settings\Mariokiller644\Desktop\OdinMS\src\net\sf\odinms\provider\xmlwz\FileStoredPngMapleCanvas.java:14: warning: com.sun.imageio.plugins.png.PNGImageReaderSpi is Sun proprietary API and may be removed in a future release
import com.sun.imageio.plugins.png.PNGImageReaderSpi;
C:\Documents and Settings\Mariokiller644\Desktop\OdinMS\src\net\sf\odinms\net\channel\handler\ItemPickupHandler.java:123: cannot find symbol
symbol  : class BuyCSItemHandler
location: class net.sf.odinms.net.channel.handler.ItemPickupHandler
                                                        java.util.logging.Logger.getLogger(BuyCSItemHandler.class.getName()).log(Level.SEVERE, null, ex);
                                                                                           ^
C:\Documents and Settings\Mariokiller644\Desktop\OdinMS\src\net\sf\odinms\provider\xmlwz\FileStoredPngMapleCanvas.java:47: warning: com.sun.imageio.plugins.png.PNGImageReaderSpi is Sun proprietary API and may be removed in a future release
                        ImageReaderSpi readerSpi = iioRegistry.getServiceProviderByClass(PNGImageReaderSpi.class);
                                                                                         ^
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
2 warnings
BUILD FAILED (total time: 4 seconds)
I don't have that beta cash shop thing released which is probably why D:
 
im getting this error after 2 hours of manually patching x.x
Code:
init:
deps-jar:
Compiling 27 source files to C:\Users\Alejandro\Desktop\sean\dist\build\classes
C:\Users\Alejandro\Desktop\sean\src\net\sf\odinms\client\MapleClient.java:605: cannot find symbol
symbol  : class SpawnPetHandler
location: class net.sf.odinms.client.MapleClient
                                SpawnPetHandler pethandler = new SpawnPetHandler();
                                ^
C:\Users\Alejandro\Desktop\sean\src\net\sf\odinms\client\MapleClient.java:605: cannot find symbol
symbol  : class SpawnPetHandler
location: class net.sf.odinms.client.MapleClient
                                SpawnPetHandler pethandler = new SpawnPetHandler();
                                                                 ^
C:\Users\Alejandro\Desktop\sean\src\net\sf\odinms\client\messages\CommandProcessor.java:536: cannot find symbol
symbol  : class CharCommands
location: class net.sf.odinms.client.messages.CommandProcessor
                                        java.util.logging.Logger.getLogger(CharCommands.class.getName()).log(Level.SEVERE, null, ex);
                                                                           ^
C:\Users\Alejandro\Desktop\sean\src\net\sf\odinms\client\messages\CommandProcessor.java:920: cannot find symbol
symbol  : class ArrayList
location: class net.sf.odinms.client.messages.CommandProcessor
                List<Pair<MapleStat, Integer>> stats = new ArrayList<Pair<MapleStat, Integer>>();
                                                           ^
C:\Users\Alejandro\Desktop\sean\src\net\sf\odinms\net\channel\handler\UseCashItemHandler.java:107: cannot find symbol
symbol  : variable ExpTable
location: class net.sf.odinms.net.channel.handler.UseCashItemHandler
                                while (c.getPlayer().getPet().getCloseness() >= ExpTable.getClosenessNeededForLevel(c.getPlayer().getPet().getLevel())) {
                                                                                ^
C:\Users\Alejandro\Desktop\sean\src\net\sf\odinms\net\channel\handler\UseCashItemHandler.java:119: cannot find symbol
symbol  : class MaplePet
location: class net.sf.odinms.net.channel.handler.UseCashItemHandler
                                MaplePet pet = c.getPlayer().getPet();
                                ^
6 errors
BUILD FAILED (total time: 1 second)
^
 
Re: [Release] Pets - OdinMS

Changing the pets name means you can't use commands anymore? I'll have a look at this.

I can use the commands fine after changing the name, I think he means stuff like

"Lucky, sit" or "White Tiger, sit"


Also, there's a bug in the charinfo (when you double click a player), the pet equips don't show on the pet page.

Leifde - Pets - OdinMS - RaGEZONE Forums


I don't know if you are aware of this or not, not that big of a bug.
 
Re: [Release] Pets - OdinMS

kk i add the ArrayList and SpawnPetHandler in every single .java im having error but i just reduced it to 13 errors =/
Code:
C:\Users\Alejandro\Desktop\sean\src\net\sf\odinms\provider\xmlwz\FileStoredPngMapleCanvas.java:15: warning: com.sun.imageio.plugins.png.PNGImageReaderSpi is Sun proprietary API and may be removed in a future release
import com.sun.imageio.plugins.png.PNGImageReaderSpi;
C:\Users\Alejandro\Desktop\sean\src\net\sf\odinms\client\MapleCharacter.java:386: cannot find symbol
symbol  : constructor Item(int,byte,short,int)
location: class net.sf.odinms.client.Item
                                Item item = new Item(rs.getInt("itemid"), (byte) rs.getInt("position"), (short) rs.getInt("quantity"), rs.getInt("petid"));
                                            ^
C:\Users\Alejandro\Desktop\sean\src\net\sf\odinms\client\MapleCharacter.java:686: cannot find symbol
symbol  : method getPetId()
location: interface net.sf.odinms.client.IItem
                                        ps.setInt(7, item.getPetId());
C:\Users\Alejandro\Desktop\sean\src\net\sf\odinms\client\messages\CommandProcessor.java:923: cannot find symbol
symbol  : variable PET
location: class net.sf.odinms.client.MapleStat
                        stats.add(new Pair<MapleStat, Integer>(MapleStat.PET, Integer.valueOf(c.getPlayer().getPet().getUniqueId())));
                                                                        ^
C:\Users\Alejandro\Desktop\sean\src\net\sf\odinms\net\channel\handler\PetCommandHandler.java:73: cannot find symbol
symbol  : method getClosenessNeededForLevel(int)
location: class net.sf.odinms.client.ExpTable
                                if (newCloseness >= ExpTable.getClosenessNeededForLevel(pet.getLevel() + 1)) {
                                                            ^
C:\Users\Alejandro\Desktop\sean\src\net\sf\odinms\net\channel\handler\PetFoodHandler.java:75: cannot find symbol
symbol  : method getClosenessNeededForLevel(int)
location: class net.sf.odinms.client.ExpTable
                                if (newCloseness >= ExpTable.getClosenessNeededForLevel(pet.getLevel() + 1)) {
                                                            ^
C:\Users\Alejandro\Desktop\sean\src\net\sf\odinms\net\channel\handler\PetFoodHandler.java:89: cannot find symbol
symbol  : method getClosenessNeededForLevel(int)
location: class net.sf.odinms.client.ExpTable
                                if (newCloseness < ExpTable.getClosenessNeededForLevel(pet.getLevel())) {
                                                           ^
C:\Users\Alejandro\Desktop\sean\src\net\sf\odinms\net\channel\handler\SpawnPetHandler.java:74: cannot find symbol
symbol  : method getPetId()
location: interface net.sf.odinms.client.IItem
                        MaplePet pet = MaplePet.loadFromDb(c.getPlayer().getInventory(MapleInventoryType.CASH).getItem(slot).getItemId(), slot, c.getPlayer().getInventory(MapleInventoryType.CASH).getItem(slot).getPetId());
                                                                                                                                                                                                                 ^
C:\Users\Alejandro\Desktop\sean\src\net\sf\odinms\net\channel\handler\SpawnPetHandler.java:89: cannot find symbol
symbol  : variable PET
location: class net.sf.odinms.client.MapleStat
                        stats.add(new Pair<MapleStat, Integer>(MapleStat.PET, Integer.valueOf(uniqueid)));
                                                                        ^
C:\Users\Alejandro\Desktop\sean\src\net\sf\odinms\net\channel\handler\SpawnPetHandler.java:135: cannot find symbol
symbol  : variable PET
location: class net.sf.odinms.client.MapleStat
                        stats.add(new Pair<MapleStat, Integer>(MapleStat.PET, Integer.valueOf(0)));
                                                                        ^
C:\Users\Alejandro\Desktop\sean\src\net\sf\odinms\net\channel\handler\UseCashItemHandler.java:111: cannot find symbol
symbol  : method getClosenessNeededForLevel(int)
location: class net.sf.odinms.client.ExpTable
                                while (c.getPlayer().getPet().getCloseness() >= ExpTable.getClosenessNeededForLevel(c.getPlayer().getPet().getLevel())) {
                                                                                        ^
C:\Users\Alejandro\Desktop\sean\src\net\sf\odinms\provider\xmlwz\FileStoredPngMapleCanvas.java:48: warning: com.sun.imageio.plugins.png.PNGImageReaderSpi is Sun proprietary API and may be removed in a future release
                        ImageReaderSpi readerSpi = iioRegistry.getServiceProviderByClass(PNGImageReaderSpi.class);
                                                                                         ^
C:\Users\Alejandro\Desktop\sean\src\net\sf\odinms\server\MapleInventoryManipulator.java:107: cannot find symbol
symbol  : constructor Item(int,byte,short,int)
location: class net.sf.odinms.client.Item
                Item nItem = new Item(itemId, (byte) 0, newQ, petid); 
C:\Users\Alejandro\Desktop\sean\src\net\sf\odinms\tools\MaplePacketCreator.java:1023: cannot find symbol
symbol  : method getPetId()
location: interface net.sf.odinms.client.IItem
                        MaplePet pet = MaplePet.loadFromDb(item.getItemId(), item.getPosition(), item.getPetId());
                                                                                                     ^
C:\Users\Alejandro\Desktop\sean\src\net\sf\odinms\tools\MaplePacketCreator.java:1026: cannot find symbol
symbol  : method getPetId()
location: interface net.sf.odinms.client.IItem
                        mplew.writeInt(item.getPetId());
                                           ^
 
Re: [Release] Pets - OdinMS

kk i add the ArrayList and SpawnPetHandler in every single .java im having error but i just reduced it to 13 errors =/
Code:
C:\Users\Alejandro\Desktop\sean\src\net\sf\odinms\provider\xmlwz\FileStoredPngMapleCanvas.java:15: warning: com.sun.imageio.plugins.png.PNGImageReaderSpi is Sun proprietary API and may be removed in a future release
import com.sun.imageio.plugins.png.PNGImageReaderSpi;
C:\Users\Alejandro\Desktop\sean\src\net\sf\odinms\client\MapleCharacter.java:386: cannot find symbol
symbol  : constructor Item(int,byte,short,int)
location: class net.sf.odinms.client.Item
                                Item item = new Item(rs.getInt("itemid"), (byte) rs.getInt("position"), (short) rs.getInt("quantity"), rs.getInt("petid"));
                                            ^
C:\Users\Alejandro\Desktop\sean\src\net\sf\odinms\client\MapleCharacter.java:686: cannot find symbol
symbol  : method getPetId()
location: interface net.sf.odinms.client.IItem
                                        ps.setInt(7, item.getPetId());
C:\Users\Alejandro\Desktop\sean\src\net\sf\odinms\client\messages\CommandProcessor.java:923: cannot find symbol
symbol  : variable PET
location: class net.sf.odinms.client.MapleStat
                        stats.add(new Pair<MapleStat, Integer>(MapleStat.PET, Integer.valueOf(c.getPlayer().getPet().getUniqueId())));
                                                                        ^
C:\Users\Alejandro\Desktop\sean\src\net\sf\odinms\net\channel\handler\PetCommandHandler.java:73: cannot find symbol
symbol  : method getClosenessNeededForLevel(int)
location: class net.sf.odinms.client.ExpTable
                                if (newCloseness >= ExpTable.getClosenessNeededForLevel(pet.getLevel() + 1)) {
                                                            ^
C:\Users\Alejandro\Desktop\sean\src\net\sf\odinms\net\channel\handler\PetFoodHandler.java:75: cannot find symbol
symbol  : method getClosenessNeededForLevel(int)
location: class net.sf.odinms.client.ExpTable
                                if (newCloseness >= ExpTable.getClosenessNeededForLevel(pet.getLevel() + 1)) {
                                                            ^
C:\Users\Alejandro\Desktop\sean\src\net\sf\odinms\net\channel\handler\PetFoodHandler.java:89: cannot find symbol
symbol  : method getClosenessNeededForLevel(int)
location: class net.sf.odinms.client.ExpTable
                                if (newCloseness < ExpTable.getClosenessNeededForLevel(pet.getLevel())) {
                                                           ^
C:\Users\Alejandro\Desktop\sean\src\net\sf\odinms\net\channel\handler\SpawnPetHandler.java:74: cannot find symbol
symbol  : method getPetId()
location: interface net.sf.odinms.client.IItem
                        MaplePet pet = MaplePet.loadFromDb(c.getPlayer().getInventory(MapleInventoryType.CASH).getItem(slot).getItemId(), slot, c.getPlayer().getInventory(MapleInventoryType.CASH).getItem(slot).getPetId());
                                                                                                                                                                                                                 ^
C:\Users\Alejandro\Desktop\sean\src\net\sf\odinms\net\channel\handler\SpawnPetHandler.java:89: cannot find symbol
symbol  : variable PET
location: class net.sf.odinms.client.MapleStat
                        stats.add(new Pair<MapleStat, Integer>(MapleStat.PET, Integer.valueOf(uniqueid)));
                                                                        ^
C:\Users\Alejandro\Desktop\sean\src\net\sf\odinms\net\channel\handler\SpawnPetHandler.java:135: cannot find symbol
symbol  : variable PET
location: class net.sf.odinms.client.MapleStat
                        stats.add(new Pair<MapleStat, Integer>(MapleStat.PET, Integer.valueOf(0)));
                                                                        ^
C:\Users\Alejandro\Desktop\sean\src\net\sf\odinms\net\channel\handler\UseCashItemHandler.java:111: cannot find symbol
symbol  : method getClosenessNeededForLevel(int)
location: class net.sf.odinms.client.ExpTable
                                while (c.getPlayer().getPet().getCloseness() >= ExpTable.getClosenessNeededForLevel(c.getPlayer().getPet().getLevel())) {
                                                                                        ^
C:\Users\Alejandro\Desktop\sean\src\net\sf\odinms\provider\xmlwz\FileStoredPngMapleCanvas.java:48: warning: com.sun.imageio.plugins.png.PNGImageReaderSpi is Sun proprietary API and may be removed in a future release
                        ImageReaderSpi readerSpi = iioRegistry.getServiceProviderByClass(PNGImageReaderSpi.class);
                                                                                         ^
C:\Users\Alejandro\Desktop\sean\src\net\sf\odinms\server\MapleInventoryManipulator.java:107: cannot find symbol
symbol  : constructor Item(int,byte,short,int)
location: class net.sf.odinms.client.Item
                Item nItem = new Item(itemId, (byte) 0, newQ, petid); 
C:\Users\Alejandro\Desktop\sean\src\net\sf\odinms\tools\MaplePacketCreator.java:1023: cannot find symbol
symbol  : method getPetId()
location: interface net.sf.odinms.client.IItem
                        MaplePet pet = MaplePet.loadFromDb(item.getItemId(), item.getPosition(), item.getPetId());
                                                                                                     ^
C:\Users\Alejandro\Desktop\sean\src\net\sf\odinms\tools\MaplePacketCreator.java:1026: cannot find symbol
symbol  : method getPetId()
location: interface net.sf.odinms.client.IItem
                        mplew.writeInt(item.getPetId());
                                           ^

SORRY FOR DOUBLE POST I WAS LAGUED
 
Re: [Release] Pets - OdinMS

I got it working along with our custom source at ElliteMS. Takes a hell of a long time to manual patch. We've been having lots of fun though.

One of our GM's made his dragon's name so long it goes accross the whole screen :D

Leifde - Pets - OdinMS - RaGEZONE Forums
 
Re: [Release] Pets - OdinMS

sweet. Its working like 100% only known bug is when you log out or change channels the pet goes back to the inventory. No big deal about that. I havent had a problem with the cant login part (:
 
Status
Not open for further replies.
Back