Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Wing Boots + Binocular

Supreme Arcanarch
Loyal Member
Joined
Jul 21, 2008
Messages
969
Reaction score
1
Re: [RELEASE]Wing Boots + Binocular

Thanks for this awesome release ^^
 
Legendary Battlemage
Joined
May 23, 2008
Messages
628
Reaction score
4
Re: [RELEASE]Wing Boots + Binocular

Lol...Woot works
I edited mine so it doesn't look much like item vac XD
 
Supreme Arcanarch
Loyal Member
Joined
Jul 21, 2008
Messages
969
Reaction score
1
Re: [RELEASE]Wing Boots + Binocular

Works and compiled perfectly. But it loots like vac hack lol.
 
Newbie Spellweaver
Joined
Jun 26, 2008
Messages
25
Reaction score
0
Re: [RELEASE]Wing Boots + Binocular

Code:
init:
deps-jar:
Compiling 1 source file to C:\Documents and Settings\Administrator\Desktop\SeanPack V.5.9 Beta\SeanPack V.5.9 Beta\build\classes
C:\Documents and Settings\Administrator\Desktop\SeanPack V.5.9 Beta\SeanPack V.5.9 Beta\SeanSource V.5.9\src\net\sf\odinms\net\channel\handler\MovePetHandler.java:121: incompatible types
found   : java.lang.Object
required: net.sf.odinms.server.maps.MapleMapObject
                                for (MapleMapObject map_object : objects) {
C:\Documents and Settings\Administrator\Desktop\SeanPack V.5.9 Beta\SeanPack V.5.9 Beta\SeanSource V.5.9\src\net\sf\odinms\net\channel\handler\MovePetHandler.java:167: incompatible types
found   : java.lang.Object
required: net.sf.odinms.server.maps.MapleMapObject
                                for (MapleMapObject map_object : objects) {
2 errors
BUILD FAILED (total time: 0 seconds)
How do I fix this?
 
Legendary Battlemage
Joined
May 23, 2008
Messages
628
Reaction score
4
Re: [RELEASE]Wing Boots + Binocular

Code:
init:
deps-jar:
Compiling 1 source file to C:\Documents and Settings\Administrator\Desktop\SeanPack V.5.9 Beta\SeanPack V.5.9 Beta\build\classes
C:\Documents and Settings\Administrator\Desktop\SeanPack V.5.9 Beta\SeanPack V.5.9 Beta\SeanSource V.5.9\src\net\sf\odinms\net\channel\handler\MovePetHandler.java:121: incompatible types
found   : java.lang.Object
required: net.sf.odinms.server.maps.MapleMapObject
                                for (MapleMapObject map_object : objects) {
C:\Documents and Settings\Administrator\Desktop\SeanPack V.5.9 Beta\SeanPack V.5.9 Beta\SeanSource V.5.9\src\net\sf\odinms\net\channel\handler\MovePetHandler.java:167: incompatible types
found   : java.lang.Object
required: net.sf.odinms.server.maps.MapleMapObject
                                for (MapleMapObject map_object : objects) {
2 errors
BUILD FAILED (total time: 0 seconds)
How do I fix this?

Sucks to be you.
 
LeviathanStory
Joined
Apr 21, 2007
Messages
251
Reaction score
0
Re: [RELEASE]Wing Boots + Binocular

I added Pet loot still doesnt work :[ my error
PHP:
init:
deps-jar:
Compiling 2 source files to C:Documents and SettingsuserDesktopSeanSource V.5.9buildclasses
C:Documents and SettingsuserDesktopSeanSource V.5.9srcnetsfodinmsnetchannelhandlerMovePetHandler.java:71: cannot find symbol
symbol  : method findPosition()
location: interface net.sf.odinms.server.movement.LifeMovementFragment
                                Point petPos = move.findPosition();
C:Documents and SettingsuserDesktopSeanSource V.5.9srcnetsfodinmsnetchannelhandlerMovePetHandler.java:89: removeItemFromMap(int,int,int) in net.sf.odinms.tools.MaplePacketCreator cannot be applied to (int,int,int,boolean)
                                                                                        MaplePacketCreator.removeItemFromMap(mapitem.getObjectId(), 5, c.getPlayer().getId(), true),
C:Documents and SettingsuserDesktopSeanSource V.5.9srcnetsfodinmsnetchannelhandlerMovePetHandler.java:100: removeItemFromMap(int,int,int) in net.sf.odinms.tools.MaplePacketCreator cannot be applied to (int,int,int,boolean)
                                                                                                        MaplePacketCreator.removeItemFromMap(mapitem.getObjectId(), 5, c.getPlayer().getId(), true),
C:Documents and SettingsuserDesktopSeanSource V.5.9srcnetsfodinmsnetchannelhandlerMovePetHandler.java:117: cannot find symbol
symbol  : method findPosition()
location: interface net.sf.odinms.server.movement.LifeMovementFragment
                                Point petPos = move.findPosition();
C:Documents and SettingsuserDesktopSeanSource V.5.9srcnetsfodinmsnetchannelhandlerMovePetHandler.java:135: removeItemFromMap(int,int,int) in net.sf.odinms.tools.MaplePacketCreator cannot be applied to (int,int,int,boolean)
                                                                                        MaplePacketCreator.removeItemFromMap(mapitem.getObjectId(), 5, c.getPlayer().getId(), true),
C:Documents and SettingsuserDesktopSeanSource V.5.9srcnetsfodinmsnetchannelhandlerMovePetHandler.java:146: removeItemFromMap(int,int,int) in net.sf.odinms.tools.MaplePacketCreator cannot be applied to (int,int,int,boolean)
                                                                                                        MaplePacketCreator.removeItemFromMap(mapitem.getObjectId(), 5, c.getPlayer().getId(), true),
C:Documents and SettingsuserDesktopSeanSource V.5.9srcnetsfodinmsnetchannelhandlerMovePetHandler.java:163: cannot find symbol
symbol  : method findPosition()
location: interface net.sf.odinms.server.movement.LifeMovementFragment
                                Point petPos = move.findPosition();
C:Documents and SettingsuserDesktopSeanSource V.5.9srcnetsfodinmsnetchannelhandlerMovePetHandler.java:181: removeItemFromMap(int,int,int) in net.sf.odinms.tools.MaplePacketCreator cannot be applied to (int,int,int,boolean)
                                                                                        MaplePacketCreator.removeItemFromMap(mapitem.getObjectId(), 5, c.getPlayer().getId(), true),
C:Documents and SettingsuserDesktopSeanSource V.5.9srcnetsfodinmsnetchannelhandlerMovePetHandler.java:192: removeItemFromMap(int,int,int) in net.sf.odinms.tools.MaplePacketCreator cannot be applied to (int,int,int,boolean)
                                                                                                        MaplePacketCreator.removeItemFromMap(mapitem.getObjectId(), 5, c.getPlayer().getId(), true),
9 errors
BUILD FAILED (total time: 1 second)
 
Junior Spellweaver
Joined
Jun 25, 2008
Messages
166
Reaction score
0
Re: [RELEASE]Wing Boots + Binocular

ok powerboi...
try my movepethandler..
if you still cant compile so you did something wrong with the pet loot..
Code:
/*
	This file is part of the OdinMS Maple Story Server
    Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc> 
                       Matthias Butz <matze@odinms.de>
                       Jan Christian Meyer <vimes@odinms.de>

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU Affero General Public License version 3
    as published by the Free Software Foundation. You may not use, modify
    or distribute this program under any other version of the
    GNU Affero General Public License.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU Affero General Public License for more details.

    You should have received a copy of the GNU Affero General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/

package net.sf.odinms.net.channel.handler;

import java.awt.Point;
import java.util.Arrays;
import java.util.List;

import net.sf.odinms.client.MapleCharacter;
import net.sf.odinms.client.MapleClient;
import net.sf.odinms.client.MapleInventoryType;
import net.sf.odinms.server.MapleInventoryManipulator;
import net.sf.odinms.server.maps.MapleMapItem;
import net.sf.odinms.server.maps.MapleMapObject;
import net.sf.odinms.server.maps.MapleMapObjectType;
import net.sf.odinms.server.movement.LifeMovementFragment;
import net.sf.odinms.tools.MaplePacketCreator;
import net.sf.odinms.tools.data.input.SeekableLittleEndianAccessor;
import net.sf.odinms.tools.data.input.StreamUtil;

public class MovePetHandler extends AbstractMovementPacketHandler {

	//private static org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(MovePetHandler.class);
    
	@Override
	public void handlePacket(SeekableLittleEndianAccessor slea, MapleClient c) {
		int petId = slea.readInt();
		slea.readInt();
		@SuppressWarnings("Unused")
		Point startPos = StreamUtil.readShortPoint(slea);
		List<LifeMovementFragment> res = parseMovement(slea);

		MapleCharacter player = c.getPlayer();
		player.getMap().broadcastMessage(player, MaplePacketCreator.movePet(player.getId(), petId, res), false);
                
                Boolean meso = false;
                Boolean item = false;
                Boolean boots = false;
                 Boolean bino = false;
                if (c.getPlayer().getInventory(MapleInventoryType.EQUIPPED).findById(1812001) != null) 
                        item = true;
                if (c.getPlayer().getInventory(MapleInventoryType.EQUIPPED).findById(1812000) != null)
                        meso = true;
                 if (c.getPlayer().getInventory(MapleInventoryType.EQUIPPED).findById(1812004) != null)
                        boots = true;
                  if (c.getPlayer().getInventory(MapleInventoryType.EQUIPPED).findById(1812005) != null)
                        bino = true;
                if (meso || item) {
                        List<MapleMapObject> objects = player.getMap().getMapObjectsInRange(player.getPosition(), MapleCharacter.MAX_VIEW_RANGE_SQ, Arrays.asList(MapleMapObjectType.ITEM));

                        for (LifeMovementFragment move : res) {
                                Point petPos = move.findPosition();
                                double petX = petPos.getX();
                                double petY = petPos.getY();
                                for (MapleMapObject map_object : objects) {
                                        Point objectPos = map_object.getPosition();
                                        double objectX = objectPos.getX();
                                        double objectY = objectPos.getY();
                                        if (Math.abs(petX - objectX) <= 30 || Math.abs(objectX - petX) <= 30) {
                                                if (Math.abs(petY - objectY) <= 30 || Math.abs(objectY - petY) <= 30) {
                                                        if (map_object instanceof MapleMapItem) {
                                                                MapleMapItem mapitem = (MapleMapItem)map_object;
                                                                synchronized (mapitem) {
                                                                        if (mapitem.isPickedUp() || mapitem.getOwner().getId() != player.getId()) {
                                                                                continue;
                                                                        }
                                                                        if (mapitem.getMeso() > 0 && meso) {
                                                                                c.getPlayer().gainMeso(mapitem.getMeso(), true, true);
                                                                                c.getPlayer().getMap().broadcastMessage(
                                                                                        MaplePacketCreator.removeItemFromMap(mapitem.getObjectId(), 5, c.getPlayer().getId(), true),
                                                                                        mapitem.getPosition());
                                                                                c.getPlayer().getMap().removeMapObject(map_object);
                                                                                mapitem.setPickedUp(true);
                                                                        } 
                                                                        else {
                                                                                if (item) {
                                                                                        StringBuilder logInfo = new StringBuilder("Picked up by ");
                                                                                        logInfo.append(c.getPlayer().getName());
                                                                                        if (MapleInventoryManipulator.addFromDrop(c, mapitem.getItem(), logInfo.toString())) {
                                                                                                c.getPlayer().getMap().broadcastMessage(
                                                                                                        MaplePacketCreator.removeItemFromMap(mapitem.getObjectId(), 5, c.getPlayer().getId(), true),
                                                                                                        mapitem.getPosition());
                                                                                                c.getPlayer().getMap().removeMapObject(map_object);
                                                                                                mapitem.setPickedUp(true);
                                                                                        } 
                                                                                }
                                                                        }
                                                                }
                                                        }                                         
                                                }
                                        }
                                }                        
                        }
                } if (boots && meso && item) {
                    List<MapleMapObject> objects = player.getMap().getMapObjectsInRange(player.getPosition(), MapleCharacter.MAX_VIEW_RANGE_SQ, Arrays.asList(MapleMapObjectType.ITEM));

                        for (LifeMovementFragment move : res) {
                                Point petPos = move.findPosition();
                                double petX = petPos.getX();
                                double petY = petPos.getY();
                                for (MapleMapObject map_object : objects) {
                                        Point objectPos = map_object.getPosition();
                                        double objectX = objectPos.getX();
                                        double objectY = objectPos.getY();
                                        if (Math.abs(petX - objectX) <= 200 || Math.abs(objectX - petX) <= 200) {
                                                if (Math.abs(petY - objectY) <= 200 || Math.abs(objectY - petY) <= 200) {
                                                        if (map_object instanceof MapleMapItem) {
                                                                MapleMapItem mapitem = (MapleMapItem)map_object;
                                                                synchronized (mapitem) {
                                                                        if (mapitem.isPickedUp() || mapitem.getOwner().getId() != player.getId()) {
                                                                                continue;
                                                                        }
                                                                        if (mapitem.getMeso() > 0 && meso) {
                                                                                c.getPlayer().gainMeso(mapitem.getMeso(), true, true);
                                                                                c.getPlayer().getMap().broadcastMessage(
                                                                                        MaplePacketCreator.removeItemFromMap(mapitem.getObjectId(), 5, c.getPlayer().getId(), true),
                                                                                        mapitem.getPosition());
                                                                                c.getPlayer().getMap().removeMapObject(map_object);
                                                                                mapitem.setPickedUp(true);
                                                                        } 
                                                                        else {
                                                                                if (item) {
                                                                                        StringBuilder logInfo = new StringBuilder("Picked up by ");
                                                                                        logInfo.append(c.getPlayer().getName());
                                                                                        if (MapleInventoryManipulator.addFromDrop(c, mapitem.getItem(), logInfo.toString())) {
                                                                                                c.getPlayer().getMap().broadcastMessage(
                                                                                                        MaplePacketCreator.removeItemFromMap(mapitem.getObjectId(), 5, c.getPlayer().getId(), true),
                                                                                                        mapitem.getPosition());
                                                                                                c.getPlayer().getMap().removeMapObject(map_object);
                                                                                                mapitem.setPickedUp(true);
                                                                                        } 
                                                                                }
                                                                        }
                                                                }
                                                        }                                         
                                                }
                                        }
                                }                        
                        } 
                } if (bino && boots && meso && item) {
                    List<MapleMapObject> objects = player.getMap().getMapObjectsInRange(player.getPosition(), MapleCharacter.MAX_VIEW_RANGE_SQ, Arrays.asList(MapleMapObjectType.ITEM));

                        for (LifeMovementFragment move : res) {
                                Point petPos = move.findPosition();
                                double petX = petPos.getX();
                                double petY = petPos.getY();
                                for (MapleMapObject map_object : objects) {
                                        Point objectPos = map_object.getPosition();
                                        double objectX = objectPos.getX();
                                        double objectY = objectPos.getY();
                                        if (Math.abs(petX - objectX) <= 270 || Math.abs(objectX - petX) <= 270) {
                                                if (Math.abs(petY - objectY) <= 270 || Math.abs(objectY - petY) <= 270) {
                                                        if (map_object instanceof MapleMapItem) {
                                                                MapleMapItem mapitem = (MapleMapItem)map_object;
                                                                synchronized (mapitem) {
                                                                        if (mapitem.isPickedUp() || mapitem.getOwner().getId() != player.getId()) {
                                                                                continue;
                                                                        }
                                                                        if (mapitem.getMeso() > 0 && meso) {
                                                                                c.getPlayer().gainMeso(mapitem.getMeso(), true, true);
                                                                                c.getPlayer().getMap().broadcastMessage(
                                                                                        MaplePacketCreator.removeItemFromMap(mapitem.getObjectId(), 5, c.getPlayer().getId(), true),
                                                                                        mapitem.getPosition());
                                                                                c.getPlayer().getMap().removeMapObject(map_object);
                                                                                mapitem.setPickedUp(true);
                                                                        } 
                                                                        else {
                                                                                if (item) {
                                                                                        StringBuilder logInfo = new StringBuilder("Picked up by ");
                                                                                        logInfo.append(c.getPlayer().getName());
                                                                                        if (MapleInventoryManipulator.addFromDrop(c, mapitem.getItem(), logInfo.toString())) {
                                                                                                c.getPlayer().getMap().broadcastMessage(
                                                                                                        MaplePacketCreator.removeItemFromMap(mapitem.getObjectId(), 5, c.getPlayer().getId(), true),
                                                                                                        mapitem.getPosition());
                                                                                                c.getPlayer().getMap().removeMapObject(map_object);
                                                                                                mapitem.setPickedUp(true);
                                                                                        } 
                                                                                }
                                                                        }
                                                                }
                                                        }                                         
                                                }
                                        }
                                }                        
                        } 
                }
	}
}
 
Newbie Spellweaver
Joined
Jun 19, 2008
Messages
35
Reaction score
0
Re: [RELEASE]Wing Boots + Binocular

its like a mini item vac, without the cheaters list logging. xD

Good luck on the hp/mp pouch and the magic scales.

thanks =]
 
Newbie Spellweaver
Joined
Jun 1, 2008
Messages
85
Reaction score
0
Re: [RELEASE]Wing Boots + Binocular

Mine doesn't have any of that codes at all. It's just 3 super long lines.
 
Junior Spellweaver
Joined
Jun 25, 2008
Messages
166
Reaction score
0
Re: [RELEASE]Wing Boots + Binocular

dudeman? what you mean?
 
Newbie Spellweaver
Joined
Apr 4, 2008
Messages
96
Reaction score
0
Re: [RELEASE]Wing Boots + Binocular

they work but after i bought it my skill and item all dissapear how to fix it?
 
Junior Spellweaver
Joined
Jun 25, 2008
Messages
166
Reaction score
0
Re: [RELEASE]Wing Boots + Binocular

because you try to use magic scale... i didnt made it so i dont know how to fix it
but if you want your items back remove the magic scale from your inventoryitem in your database..
 
Newbie Spellweaver
Joined
Apr 4, 2008
Messages
96
Reaction score
0
Re: [RELEASE]Wing Boots + Binocular

Okay, fixed. thx danigod =D
 
Newbie Spellweaver
Joined
Jun 1, 2008
Messages
85
Reaction score
0
Re: [RELEASE]Wing Boots + Binocular

dudeman? what you mean?

Since the code now will get flatened out here, this is my code:

/*
This file is part of the OdinMS Maple Story Server
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
Matthias Butz <matze@odinms.de>
Jan Christian Meyer <vimes@odinms.de>

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License version 3
as published by the Free Software Foundation. You may not use, modify
or distribute this program under any other version of the
GNU Affero General Public License.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

package net.sf.odinms.net.channel.handler;

import java.awt.Point;
import java.util.List;

import net.sf.odinms.client.MapleCharacter;
import net.sf.odinms.client.MapleClient;
import net.sf.odinms.server.movement.LifeMovementFragment;
import net.sf.odinms.tools.MaplePacketCreator;
import net.sf.odinms.tools.data.input.SeekableLittleEndianAccessor;
import net.sf.odinms.tools.data.input.StreamUtil;

public class MovePetHandler extends AbstractMovementPacketHandler {

//private static org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(MovePetHandler.class);

@Override
public void handlePacket(SeekableLittleEndianAccessor slea, MapleClient c) {
int petId = slea.readInt();
slea.readInt();
@SuppressWarnings("Unused")
Point startPos = StreamUtil.readShortPoint(slea);
List<LifeMovementFragment> res = parseMovement(slea);

MapleCharacter player = c.getPlayer();
//log.info("Player({}) moved their pet.");
//log.info("To send: {}", MaplePacketCreator.movePet(player.getId(), petId, res));
player.getMap().broadcastMessage(player, MaplePacketCreator.movePet(player.getId(), petId, res), false);
}
}
 
Junior Spellweaver
Joined
Jun 25, 2008
Messages
166
Reaction score
0
Re: [RELEASE]Wing Boots + Binocular

lol dudman this is the normal petmovehandler.. o.o
if you use my scripts and pet loot you can use pet item pouch and pet meso puch +wing boots +binocular
 
Elite Diviner
Joined
Jul 13, 2008
Messages
419
Reaction score
217
Re: [RELEASE]Wing Boots + Binocular

they work but after i bought it my skill and item all dissapear how to fix it?

open BuyCSItemHandler.java and find this line
Code:
                } else {
                    MapleInventoryManipulator.addById(c, item.getId(), (short) item.getCount(), "Cash Item was purchased.");
		}
change to this
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.");
		}

this prevents your users from buying magic scales from the cash shop, it says "bought successful" but nothing happens :) so they don't get bugged
 
Legendary Battlemage
Loyal Member
Joined
Dec 7, 2007
Messages
622
Reaction score
11
Re: [RELEASE]Wing Boots + Binocular

Nvm Fixed The Errors =P
 
Last edited:
Back
Top