Fixed Morphs *ODIN*

Page 1 of 11 123456789 ... LastLast
Results 1 to 15 of 156
  1. #1
    Account Upgraded | Title Enabled! airflow0 is offline
    MemberRank
    Sep 2006 Join Date
    600Posts

    Fixed Morphs *ODIN*

    Thanks to AngelSL for everything but the buff broadcast. <3

    Morph Items
    ID Name Monster
    5300000 Fungus Scroll Orange Mushroom
    5300001 Oinker Delight Pig
    5300002 Zeta Nightmare Alien
    2210003 Dragon Elixer Green Cornian
    2210005 Tigun Transformation Bundle Weird Arabian Dude

    In MapleBuffStat.java
    Add
    Code:
    MORPH(0x200000000l),
    In MaplePacketCreator.java
    Change
    Code:
    public static MaplePacket giveBuff(int buffid, int bufflength, List<Pair<MapleBuffStat, Integer>> statups) {
    to
    Code:
    public static MaplePacket giveBuff(int buffid, int bufflength, List<Pair<MapleBuffStat, Integer>> statups, boolean morph) {
    Change
    Code:
    mplew.write(0); // combo 600, too
    to
    Code:
    if(!morph)
            mplew.write(0); // combo 600, too
    else
            mplew.write(1);
    In MapleStatEffect.java

    Add
    Code:
    private boolean isMorph = false;
            private int morphId = 0;
    under
    Code:
    private int moneyCon;
    Add
    Code:
    ret.morphId = MapleDataTool.getInt("morph", source, 0);
                    ret.isMorph = ret.morphId > 0 ? true : false;
    under
    Code:
    ret.mobCount = MapleDataTool.getInt("mobCount", source, 1);
    Add
    Code:
    if(ret.isMorph())
                        statups.add(new Pair<MapleBuffStat, Integer>(MapleBuffStat.MORPH, Integer.valueOf(ret.getMorph())));
    ABOVE
    Code:
    ret.monsterStatus = monsterStatus;
    Add
    Code:
    if (isMorph()) {
            List<Pair<MapleBuffStat, Integer>> stat = Collections.singletonList(new Pair<MapleBuffStat, Integer>(
                    MapleBuffStat.MORPH, morphId));
            applyto.getMap().broadcastMessage(applyto, MaplePacketCreator.giveForeignBuff(applyto.getId(), stat),
                    false);
    }
    ABOVE
    Code:
    if (isEnrage()) {
    Change
    Code:
    applyto.getClient().getSession().write(MaplePacketCreator.giveBuff((skill ? sourceid : -sourceid), localDuration, localstatups));
    to
    Code:
    applyto.getClient().getSession().write(MaplePacketCreator.giveBuff((skill ? sourceid : -sourceid), localDuration, localstatups, isMorph));
    Add
    Code:
    public boolean isMorph(){
                return isMorph;
            }
            
            public int getMorph(){
                return morphId;
            }
    above the last closing bracket at the end of the file.

    In UseCashItemHandler.java
    Add
    Code:
    } else if(itemType == 530) {
                                MapleItemInformationProvider ii = MapleItemInformationProvider.getInstance();
                                ii.getItemEffect(itemId).applyTo(c.getPlayer());
    ABOVE
    Code:
    } else if (itemType == 512) {
    In MapleCharacter.java
    Change (Theres 2 you must change.)
    Code:
    getClient().getSession().write(MaplePacketCreator.giveBuff(1111002, duration, stat));
    to
    Code:
    getClient().getSession().write(MaplePacketCreator.giveBuff(1111002, duration, stat, false));
    Last edited by airflow0; 08-07-08 at 03:51 PM.


  2. #2
    Apprentice g338815 is offline
    MemberRank
    Jan 2007 Join Date
    20Posts

    Re: [RELEASE] Fixed Morphs *ODIN*

    can u give more detail about what fixed.?
    i got my worked ..but other players cant see you ..is that the part u fixed?
    i hope ..
    good job on the organizing

  3. #3
    Account Upgraded | Title Enabled! Regurgitate is offline
    MemberRank
    Apr 2008 Join Date
    1,113Posts

    Re: [RELEASE] Fixed Morphs *ODIN*

    How can it be good job if we don't even know what he fixed?

  4. #4
    Apprentice g338815 is offline
    MemberRank
    Jan 2007 Join Date
    20Posts

    Re: [RELEASE] Fixed Morphs *ODIN*

    oh yeah ..what was i thinkin ~
    ill change it~ lol
    thx regurgitate

  5. #5
    Account Upgraded | Title Enabled! RMZero213 is offline
    MemberRank
    Apr 2008 Join Date
    Far, far awayLocation
    1,280Posts

    Re: [RELEASE] Fixed Morphs *ODIN*

    Thanks to AngelSL for everything but the buff broadcast. <3
    So I'd assume it's now 3rd party.

    Code:
    if (isMorph()) {
            List<Pair<MapleBuffStat, Integer>> stat = Collections.singletonList(new Pair<MapleBuffStat, Integer>(
                    MapleBuffStat.MORPH, 1));
            applyto.getMap().broadcastMessage(applyto, MaplePacketCreator.giveForeignBuff(applyto.getId(), stat),
                    false);
    }
    ...wasn't in the original coding.

  6. #6
    Infraction Banned Coke2008 is offline
    MemberRank
    Jun 2008 Join Date
    171Posts

    Re: [RELEASE] Fixed Morphs *ODIN*

    does this actually work..if so how do i get it from the server

  7. #7
    GoldMember XkelvinchiaX is offline
    MemberRank
    Sep 2006 Join Date
    MalaysiaLocation
    286Posts

    Re: [RELEASE] Fixed Morphs *ODIN*

    this thing really work on the seanpacks 5.9?

  8. #8
    Valued Member z0rtex is offline
    MemberRank
    Jun 2008 Join Date
    116Posts

    Re: [RELEASE] Fixed Morphs *ODIN*

    what is this Morphs?

  9. #9
    Account Upgraded | Title Enabled! PinCrackerGod is offline
    MemberRank
    Apr 2008 Join Date
    458Posts

    Re: [RELEASE] Fixed Morphs *ODIN*

    I get some crazy errors with this but if somone gets it working and is using seanpack 5.9 be a saint and upload your files

  10. #10
    Account Upgraded | Title Enabled! RMZero213 is offline
    MemberRank
    Apr 2008 Join Date
    Far, far awayLocation
    1,280Posts

    Re: [RELEASE] Fixed Morphs *ODIN*

    Quote Originally Posted by PinCrackerGod View Post
    I get some crazy errors with this but if somone gets it working and is using seanpack 5.9 be a saint and upload your files
    You aren't doing it properly, it's 100% correct =P

  11. #11
    Account Upgraded | Title Enabled! Spyker710 is offline
    MemberRank
    Apr 2008 Join Date
    ...stalker much...Location
    460Posts

    Re: [RELEASE] Fixed Morphs *ODIN*

    Thanks! I got no errors while compiling, just gotta check if it works.

    Assuming this is the client sided fix right?

    Edit : It's not client sided, it works fully! Thanks SO much for the release! (All I had to do was add the
    Code:
    if (isMorph()) {
            List<Pair<MapleBuffStat, Integer>> stat = Collections.singletonList(new Pair<MapleBuffStat, Integer>(
                    MapleBuffStat.MORPH, morphId));
            applyto.getMap().broadcastMessage(applyto, MaplePacketCreator.giveForeignBuff(applyto.getId(), stat),
                    false);
    }
    since I already had the client sided one, just a tip for you people that already have the client sided one like I did)

  12. #12
    Account Upgraded | Title Enabled! RMZero213 is offline
    MemberRank
    Apr 2008 Join Date
    Far, far awayLocation
    1,280Posts

    Re: [RELEASE] Fixed Morphs *ODIN*

    Quote Originally Posted by Spyker710 View Post
    Thanks! I got no errors while compiling, just gotta check if it works.

    Assuming this is the client sided fix right?
    I assume so since there's new coding.

    But I haven't tested.

  13. #13
    Account Upgraded | Title Enabled! airflow0 is offline
    MemberRank
    Sep 2006 Join Date
    600Posts

    Re: [RELEASE] Fixed Morphs *ODIN*

    Oh yeah, sorry this fixes the buff broadcast.. Other players will see it now.

  14. #14
    Account Upgraded | Title Enabled! boxer1480 is offline
    MemberRank
    Apr 2008 Join Date
    1,031Posts

    Re: [RELEASE] Fixed Morphs *ODIN*

    hmmm..for some reason only MUSHROOM works. WHenever i use pig/alien the ppl still see it asa mushroom xD

  15. #15
    Account Upgraded | Title Enabled! airflow0 is offline
    MemberRank
    Sep 2006 Join Date
    600Posts

    Re: [RELEASE] Fixed Morphs *ODIN*

    Hmm, I'll look into it..



Page 1 of 11 123456789 ... LastLast

Advertisement