Few Suggestions

Discussion in 'Closed' started by Tomex, Aug 30, 2013.

  1. Tomex
    Offline

    Tomex Banned

    Joined:
    Aug 24, 2013
    Messages:
    59
    Likes Received:
    11
    Location:
    Croatia
    IGN:
    Tomex009
    Level:
    30
    Guild:
    Leaf
    Suggestions to add some commands:

    - @checkdrop - NPC pop-up showing you what drops that monster on your map drop, or you enter Mob name and it show you what drops that Mob Drop..
    Very usefull for hunting and etc..


    More here: http://forum.ragezone.com/f427/npc-method-check-drops-2-a-801104/

    - @event - Open up Event NPC,
    btw. You should organise some events with unique prices..




    Aaaaand 1 more suggestions:

    Add Guild Level Up Message, so when someone from your guild level up, everyone in guild get message

    Go to MapleCharacter.java and search/add for public void guildUpdate() {
    Code: ( This is code from Lithium Source )
    Code:
    World.Guild.memberLevelJobUpdate(mgc);  
     
  2. Matt
    Offline

    Matt Administrator

    Joined:
    May 8, 2013
    Messages:
    15,349
    Likes Received:
    19,450
    Gender:
    Male
    Location:
    United Kingdom
    Country Flag:
    IGN:
    Matt
    Level:
    N/A
    Guild:
    Staff

    I won't be implementing this feature at this time.
    http://royals.ms/forum/showthread.php?t=623&highlight=whodrops

    We are working on an ~event command that will allow players to be warped to events and so on...

    We already have a similar code added, and it is for updating the guild box with players new levels and jobs whenever they level up.

    For guild notices I would need to add code to the public void levelup and add an 'if in guild then send notice' blah blah.

    Thanks for the feedback nonetheless!
     
  3. Tomex
    Offline

    Tomex Banned

    Joined:
    Aug 24, 2013
    Messages:
    59
    Likes Received:
    11
    Location:
    Croatia
    IGN:
    Tomex009
    Level:
    30
    Guild:
    Leaf


    I think this code will show message when someone level up
    Code in: world/guild/mapleguild.jar


    Code:
        public void memberLevelJobUpdate(MapleGuildCharacter mgc) {
            for (MapleGuildCharacter member : members) {
                if (mgc.equals(member)) {
                    member.setJobId(mgc.getJobId());
                    member.setLevel(mgc.getLevel());
                    this.broadcast(MaplePacketCreator.guildMemberLevelJobUpdate(mgc));
                    break;
                }
            }
        }
    
    

    and this in Maple Character
    Code:
        public void guildUpdate() {
            if (this.guildid <= 0) {
                return;
            }
            mgc.setLevel(this.level);
            mgc.setJobId(this.job.getId());
            try {
                this.client.getChannelServer().getWorldInterface().memberLevelJobUpdate(this.mgc);
            } catch (RemoteException re) {
                log.error("RemoteExcept while trying to update level/job in guild.", re);
            }
        }
    
    





    and idk is this code in maplecharachter, so everyone can upgrade guild capacity or just leader


    Code:
        public void increaseGuildCapacity() {
            if (this.getMeso() < MapleGuild.INCREASE_CAPACITY_COST) {
                client.getSession().write(MaplePacketCreator.serverNotice(1, "You do not have enough mesos."));
                return;
            }
            if (this.guildid <= 0) {
                log.info(this.name + " is trying to increase guild capacity without being in the guild.");
                return;
            }
            try {
                client.getChannelServer().getWorldInterface().increaseGuildCapacity(this.guildid);
            } catch (Exception e) {
                log.error("Error while increasing capacity.", e);
                return;
            }
            this.gainMeso(-MapleGuild.INCREASE_CAPACITY_COST, true, false, true);
        }
    
     
    Last edited: Aug 31, 2013
  4. Matt
    Offline

    Matt Administrator

    Joined:
    May 8, 2013
    Messages:
    15,349
    Likes Received:
    19,450
    Gender:
    Male
    Location:
    United Kingdom
    Country Flag:
    IGN:
    Matt
    Level:
    N/A
    Guild:
    Staff
    We already have this code. As I said, that code updates the level and job in the guild window. It doesn't do a notice to guild. It would need to be a code added to public void levelup.
     
  5. Tomex
    Offline

    Tomex Banned

    Joined:
    Aug 24, 2013
    Messages:
    59
    Likes Received:
    11
    Location:
    Croatia
    IGN:
    Tomex009
    Level:
    30
    Guild:
    Leaf

    Add this everything to levelUp


    Code:
            guildUpdate();
            if (this.guildid > 0) { // to do, make it not show to self
                this.getGuild().broadcast(MaplePacketCreator.serverNotice(5, "[Guild] " + name + " has reached Lv. " + level + "."));
            }

    and same code you can use when someone in guild change job
    just modify this code...
    * * *
    Code:
     * if (this.guildid > 0) { // to do, make it not show to self
    * * * * * * this.getGuild().broadcast(MaplePacketCreator.serverNotice(5, "[Guild] " + name + " has finished Job Advance, he is now " + job + "."));
    * * * * }






    and add this when someone reach lvl 30/70/120/200


    Code:
    
            if (level == 30)	{
            client.getChannelServer().broadcastPacket(MaplePacketCreator.serverNotice(6, "[Congrats] " + name + " has reached Level 30 !" + name + ", that's quite alot already!"));
            }
            if (level == 70)	{
            client.getChannelServer().broadcastPacket(MaplePacketCreator.serverNotice(6, "[Congrats] " + name + " has reached Level 70 !" + name + " is such a hard working trainer!"));
            }
            if (level == 120)	{
            client.getChannelServer().broadcastPacket(MaplePacketCreator.serverNotice(6, "[Congrats] " + name + " has reached Level 120 !" + name + " come on this insane!"));
            }
            if (level == 200)	{
            client.getChannelServer().broadcastPacket(MaplePacketCreator.serverNotice(6, "[Congrats] " + name + " has reached Level 200 ! You are unbelievable!!"));
            }
        }
     
    Last edited: Aug 31, 2013

Share This Page