Yellow Catch Message

Results 1 to 15 of 15
  1. #1
    TranquilityStory JarrYD is offline
    MemberRank
    Jan 2010 Join Date
    764Posts

    Yellow Catch Message

    How can I broadcast a yellow "catch" message to myself/a player. So if a player gains say occupations exp they receive a yellow message above them that says gained 1 occupation exp?
    Thought it had something to do with catchmonster packet but i dunno.
    getMap().broadcastMessage(MaplePacketCreator.catchMonster(getPlayer(), 9500336, 2000017, (byte)1), false);


  2. #2
    Moongran Saii is offline
    MemberRank
    Jan 2012 Join Date
    510Posts

    Re: Yellow Catch Message

    what do you mean by catch message?
    you mean a yellow message on the top of the screen that fades away after a few seconds?
    thats the dropMessage packet. type -1 I think

  3. #3
    TranquilityStory JarrYD is offline
    MemberRank
    Jan 2010 Join Date
    764Posts

    Re: Yellow Catch Message

    Quote Originally Posted by Saii View Post
    what do you mean by catch message?
    you mean a yellow message on the top of the screen that fades away after a few seconds?
    thats the dropMessage packet. type -1 I think
    yes that one! ahah ohh ok so its type -1 ? (negative one)

  4. #4
    I'm overrated. Fraysa is offline
    MemberRank
    Apr 2008 Join Date
    4,891Posts

    Re: Yellow Catch Message

    The yellow message at the top of the screen is not dropMessage; it's a separate packet. It's called "topMsg" in OdinMS afaik.

  5. #5
    TranquilityStory JarrYD is offline
    MemberRank
    Jan 2010 Join Date
    764Posts

    Re: Yellow Catch Message

    Quote Originally Posted by Fraysa View Post
    The yellow message at the top of the screen is not dropMessage; it's a separate packet. It's called "topMsg" in OdinMS afaik.
    cant find it in v83 maplepacketcreator :S

    - - - Updated - - -

    i thought it was a notice

    - - - Updated - - -

    is it yellowtip?

  6. #6
    I'm overrated. Fraysa is offline
    MemberRank
    Apr 2008 Join Date
    4,891Posts

    Re: Yellow Catch Message

    Quote Originally Posted by JarrYD View Post
    cant find it in v83 maplepacketcreator :S

    - - - Updated - - -

    i thought it was a notice

    - - - Updated - - -

    is it yellowtip?
    Could be, try it out.

  7. #7
    Valued Member Burgundy is offline
    MemberRank
    Mar 2015 Join Date
    126Posts

    Re: Yellow Catch Message

    YellowTip is used for broadcasting mapletips

  8. #8
    TranquilityStory JarrYD is offline
    MemberRank
    Jan 2010 Join Date
    764Posts

    Re: Yellow Catch Message

    Quote Originally Posted by Burgundy View Post
    YellowTip is used for broadcasting mapletips
    Oh yeah thought so, dont think its that then:/

    Pretty much a yellow message that displays at the top for a few seconds and then dissapears, thats the one im after.

    I'll try the broadcast notice at -1

  9. #9
    Proficient Member Borlea is offline
    MemberRank
    Jan 2014 Join Date
    151Posts

    Re: Yellow Catch Message

    -1 is a Yellow Fade with Top Msg packet, which is already stated.

    Solaxia(Moople, and probably some other sources) use the method earnTitleMessage for the top message stuff.

  10. #10
    Moongran Saii is offline
    MemberRank
    Jan 2012 Join Date
    510Posts

    Re: Yellow Catch Message

    I'm sorry.
    I assumed lithium based(which has a check in dropMessage method for each type).
    so for type -1 it sends the top msg packet. structure is as follows:

    writeShort(SendPacketOpcode.TOP_MSG);
    writeMapleAsciiString(msg);

  11. #11
    Moderator Eric is offline
    ModeratorRank
    Jan 2010 Join Date
    DEV CityLocation
    3,188Posts

    Re: Yellow Catch Message

    In v83 it's called OnScriptProgressMessage, part of WvsContext. However I noticed the Odin-logic like usual named it "EARN_TITLE_MESSAGE".

    PHP Code:
    ScriptProgressMessage(0x7A), 
    PHP Code:
    public static byte[] OnScriptProgressMessage(String sMsg) {
            
    OutPacket oPacket = new OutPacket();
            
    oPacket.Encode2(CWvsContext.ScriptProgressMessage.getVal());
            
    oPacket.EncodeStr(sMsg);
            return 
    oPacket.getPacket();
        } 
    Oh, and what's a "Catch Message"? I thought the only packets dealing with catch had 3 nType bytes for success, failed, and too strong?

  12. #12
    Account Upgraded | Title Enabled! SuperLol is offline
    MemberRank
    Jun 2010 Join Date
    801Posts

    Re: Yellow Catch Message

    Quote Originally Posted by chunkarama View Post
    In v83 it's called OnScriptProgressMessage, part of WvsContext. However I noticed the Odin-logic like usual named it "EARN_TITLE_MESSAGE".

    PHP Code:
    ScriptProgressMessage(0x7A), 
    PHP Code:
    public static byte[] OnScriptProgressMessage(String sMsg) {
            
    OutPacket oPacket = new OutPacket();
            
    oPacket.Encode2(CWvsContext.ScriptProgressMessage.getVal());
            
    oPacket.EncodeStr(sMsg);
            return 
    oPacket.getPacket();
        } 
    Oh, and what's a "Catch Message"? I thought the only packets dealing with catch had 3 nType bytes for success, failed, and too strong?
    Why do you change the names of things into names that the client uses? Instead of looking at decompiled binaries and getting names from that actually use names and conventions that everyone else uses. Who names writeShort into Encode2? Any other byte stream serializer uses writeShort, writeInt, and writeLong.

    edit:
    [2:26:33 PM] angry guy that told me to post this: writeShort into encode2?
    [2:26:35 PM] angry guy that told me to post this: can u change that
    [2:26:37 PM] angry guy that told me to post this: to Encode2
    [2:26:40 PM] angry guy that told me to post this: becuse that's what it is
    [2:26:42 PM] angry guy that told me to post this: and it's even worse
    Last edited by SuperLol; 08-08-15 at 11:27 PM. Reason: changed "writeShort into encode2" to "writeShort into Encode2"

  13. #13
    I'm overrated. Fraysa is offline
    MemberRank
    Apr 2008 Join Date
    4,891Posts

    Re: Yellow Catch Message

    Quote Originally Posted by SuperLol View Post
    Why do you change the names of things into names that the client uses? Instead of looking at decompiled binaries and getting names from that actually use names and conventions that everyone else uses. Who names writeShort into Encode2? Any other byte stream serializer uses writeShort, writeInt, and writeLong.

    edit:
    [2:26:33 PM] angry guy that told me to post this: writeShort into encode2?
    [2:26:35 PM] angry guy that told me to post this: can u change that
    [2:26:37 PM] angry guy that told me to post this: to Encode2
    [2:26:40 PM] angry guy that told me to post this: becuse that's what it is
    [2:26:42 PM] angry guy that told me to post this: and it's even worse
    It's become a trend to use Neckson's naming conventions, for some reason...

  14. #14
    Omega sunnyboy is offline
    MemberRank
    Mar 2010 Join Date
    6,109Posts

    Re: Yellow Catch Message

    Quote Originally Posted by SuperLol View Post
    Why do you change the names of things into names that the client uses? Instead of looking at decompiled binaries and getting names from that actually use names and conventions that everyone else uses. Who names writeShort into Encode2? Any other byte stream serializer uses writeShort, writeInt, and writeLong.

    edit:
    [2:26:33 PM] angry guy that told me to post this: writeShort into encode2?
    [2:26:35 PM] angry guy that told me to post this: can u change that
    [2:26:37 PM] angry guy that told me to post this: to Encode2
    [2:26:40 PM] angry guy that told me to post this: becuse that's what it is
    [2:26:42 PM] angry guy that told me to post this: and it's even worse
    He recoded his src by following BMS's structure and of course the naming convention followed also

  15. #15
    Moderator Eric is offline
    ModeratorRank
    Jan 2010 Join Date
    DEV CityLocation
    3,188Posts

    Re: Yellow Catch Message

    Quote Originally Posted by SuperLol View Post
    Why do you change the names of things into names that the client uses? Instead of looking at decompiled binaries and getting names from that actually use names and conventions that everyone else uses. Who names writeShort into Encode2? Any other byte stream serializer uses writeShort, writeInt, and writeLong.

    edit:
    [2:26:33 PM] angry guy that told me to post this: writeShort into encode2?
    [2:26:35 PM] angry guy that told me to post this: can u change that
    [2:26:37 PM] angry guy that told me to post this: to Encode2
    [2:26:40 PM] angry guy that told me to post this: becuse that's what it is
    [2:26:42 PM] angry guy that told me to post this: and it's even worse
    I name all of my variables just as nexon does from their BMS source. People have a style, and this is just the style of C++ programming. My entire goal is to write my source in Java, while naming/doing everything they do.

    Also, I don't understand your edit. Why are you telling me to change that into Encode2 when it's already Encode2..? I'll assume you mean encode2? If so, Nexon does not do this and I name everything how they do. It's my style of how I'm writing my source.

    If it works the way it's supposed to, why do people care if I label something upper-case rather than lower?



Advertisement