JobMap

Results 1 to 8 of 8
  1. #1
    Account Upgraded | Title Enabled! ooSnowCapxx is offline
    MemberRank
    Jul 2011 Join Date
    250Posts

    thumbs up JobMap

    Uhm, how do would you make the command !jobmap so that with that command you can change the whole maps job to let's say beginner.

    Thanks! ^^


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

    Re: JobMap

    Quote Originally Posted by ooSnowCapxx View Post
    Uhm, how do would you make the command !jobmap so that with that command you can change the whole maps job to let's say beginner.

    Thanks! ^^
    Loop through every character on the map, and set their job as beginner.

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

    Re: JobMap

    Code:
    } else if (splitted[0].equals("jobmap")) {
             for (MapleCharacter player : cserv.getPlayerStorage().getAllCharacters()) {
                  if (player.getJob() != 910)
                              player.setJob(splitted[1]);
             }
    }
    Change splitted to sub or whatever your source is using. Methods may vary from source to source.

  4. #4
    Apprentice ZakuraMS141 is offline
    MemberRank
    Sep 2013 Join Date
    6Posts

    Re: JobMap

    look how other command is done. then change code.
    **MOD EDIT: Removed annoying red text**
    Last edited by retep998; 11-09-13 at 05:30 AM.

  5. #5
    Account Upgraded | Title Enabled! ooSnowCapxx is offline
    MemberRank
    Jul 2011 Join Date
    250Posts

    Re: JobMap

    Quote Originally Posted by Fraysa View Post
    Code:
    } else if (splitted[0].equals("jobmap")) {
             for (MapleCharacter player : cserv.getPlayerStorage().getAllCharacters()) {
                  if (player.getJob() != 910)
                              player.setJob(splitted[1]);
             }
    }
    Change splitted to sub or whatever your source is using. Methods may vary from source to source.
    How do i make it so that I i can make it any job?

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

    Re: JobMap

    Quote Originally Posted by ooSnowCapxx View Post
    How do i make it so that I i can make it any job?
    Usage: !jobmap [job id].

  7. #7
    Account Upgraded | Title Enabled! ooSnowCapxx is offline
    MemberRank
    Jul 2011 Join Date
    250Posts

    Re: JobMap

    Quote Originally Posted by Fraysa View Post
    Usage: !jobmap [job id].
    How do you make it so that it's there's no check for job 910?

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

    Re: JobMap

    Quote Originally Posted by ooSnowCapxx View Post
    How do you make it so that it's there's no check for job 910?
    Code:
    } else if (splitted[0].equals("jobmap")) {
             for (MapleCharacter player : cserv.getPlayerStorage().getAllCharacters()) {
                              player.setJob(splitted[1]);
    }



Advertisement