How do I make the Mobs from my server drop Maple points?

Results 1 to 11 of 11
  1. #1
    Apprentice Zer0KinGz is offline
    MemberRank
    Apr 2014 Join Date
    5Posts

    smile How do I make the Mobs from my server drop Maple points?

    How do I make the Mobs from my server drop Maple points? And how I can make the Yellow Words appear on screen like : You have gained 65 NX?
    PS: Server v117


  2. #2
    Omega sunnyboy is offline
    MemberRank
    Mar 2010 Join Date
    6,108Posts

    Re: How do I make the Mobs from my server drop Maple points?

    You can add some code in killMonster or Killby doesn't matter

  3. #3
    How cool is that? sonnyeb is offline
    MemberRank
    Oct 2012 Join Date
    /f425/Location
    393Posts

    Re: How do I make the Mobs from my server drop Maple points?

    Quote Originally Posted by sunnyboy View Post
    You can add some code in killMonster or Killby doesn't matter
    Specifically, you need to do two things - drop a message to the player indicating the amount of NX gained, and add the NX gained to the player.

  4. #4
    Account Upgraded | Title Enabled! Syre is offline
    MemberRank
    Jan 2013 Join Date
    700Posts

    Re: How do I make the Mobs from my server drop Maple points?

    Make sure to use a final int for the amount or the amount will differ.

    e.g.
    final int cashgain = (int)(Math.ceil(Math.random() * put cool formula yo));

  5. #5
    Omega sunnyboy is offline
    MemberRank
    Mar 2010 Join Date
    6,108Posts

    Re: How do I make the Mobs from my server drop Maple points?

    You can always check out some sources based on celino i.e tetra/lithium ones and they have what you look for.

  6. #6
    Apprentice Zer0KinGz is offline
    MemberRank
    Apr 2014 Join Date
    5Posts

    Re: How do I make the Mobs from my server drop Maple points?

    Quote Originally Posted by sunnyboy View Post
    You can always check out some sources based on celino i.e tetra/lithium ones and they have what you look for.
    And where are these sources? Where i can check it?

  7. #7
    Member Eden Nimni is offline
    MemberRank
    Jan 2014 Join Date
    92Posts

    Re: How do I make the Mobs from my server drop Maple points?

    Quote Originally Posted by Zer0KinGz View Post
    And where are these sources? Where i can check it?
    Don`t be lazy , just try to do as they said you to do - send a message and give the nx.
    I am not exactly savvy in that source but in the function declaration there would be a parameter called - "MapleClient c"
    Then, you have many function that will give you the ability to give that character NX / Message.

  8. #8
    Apprentice Zer0KinGz is offline
    MemberRank
    Apr 2014 Join Date
    5Posts

    Re: How do I make the Mobs from my server drop Maple points?

    Going to do it...
    Last edited by Zer0KinGz; 01-05-14 at 12:52 PM.

  9. #9
    C# developer xStr0nGx is offline
    MemberRank
    Dec 2013 Join Date
    UnknownLocation
    659Posts

    Re: How do I make the Mobs from my server drop Maple points?

    Quote Originally Posted by Syre View Post
    Make sure to use a final int for the amount or the amount will differ.

    e.g.
    final int cashgain = (int)(Math.ceil(Math.random() * put cool formula yo));
    what?

    no.

    final int cashgain = Randomizer.random(mob.getLV, mob.getLV * 10) + Randomizer.random(1, 999);
    dat shud do it.

  10. #10
    Account Upgraded | Title Enabled! Syre is offline
    MemberRank
    Jan 2013 Join Date
    700Posts

    Re: How do I make the Mobs from my server drop Maple points?

    Quote Originally Posted by xStr0nGx View Post
    what?

    no.



    dat shud do it.
    Randomizer is not included in java's default packages, sir. It was implemented into sources by somebody here;
    and is it even in lithium based sources?


    That formula, the horribleness though.

  11. #11
    C# developer xStr0nGx is offline
    MemberRank
    Dec 2013 Join Date
    UnknownLocation
    659Posts

    Re: How do I make the Mobs from my server drop Maple points?

    Quote Originally Posted by Syre View Post
    Randomizer is not included in java's default packages, sir. It was implemented into sources by somebody here;
    and is it even in lithium based sources?


    That formula, the horribleness though.
    It is in Lithium based source.

    well let the TO decide..



Advertisement