i dont think someone did it.. o.o
credits to GROAT for pet looting
you'll need this to use wing boots and binocular
so i know its not like GMS and really easy to do, but still better then nothing..
ok. go to your movepethandler
and find this line
add after
bino = binocular
boot = wing boots..
now find those lines
add after
now find those lines o.o
add the new scripts
enjoy your new binocular and wing boots..
if you want to change the distance
change those lines
change the 30/250/270 to w/e you want..
now i try to make hp and mp pouch..
oh and can someone explain me what magic scales do in GMS?
credits to GROAT for pet looting
you'll need this to use wing boots and binocular
so i know its not like GMS and really easy to do, but still better then nothing..
ok. go to your movepethandler
and find this line
Code:
Boolean item = false;
add after
Code:
Boolean boots = false;
Boolean bino = false;
boot = wing boots..
now find those lines
Code:
if (c.getPlayer().getInventory(MapleInventoryType.EQUIPPED).findById(1812000) != null)
meso = true;
add after
Code:
if (c.getPlayer().getInventory(MapleInventoryType.EQUIPPED).findById(1812004) != null)
boots = true;
if (c.getPlayer().getInventory(MapleInventoryType.EQUIPPED).findById(1812005) != null)
bino = true;
now find those lines o.o
Code:
}
}
}
}
}
}
}
}
} <<<<< [B]add here the new scripts[/B]
}
}
add the new scripts
Code:
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);
}
}
}
}
}
}
}
}
}
}
enjoy your new binocular and wing boots..
if you want to change the distance
change those lines
Code:
if (Math.abs(petX - objectX) <= 30 || Math.abs(objectX - petX) <= 30) {
if (Math.abs(petY - objectY) <= 30 || Math.abs(objectY - petY) <= 30) {
change the 30/250/270 to w/e you want..
now i try to make hp and mp pouch..
oh and can someone explain me what magic scales do in GMS?