Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Ver75 Medal Reward System ( Automactic ) Tested And It Really Works

Newbie Spellweaver
Joined
Dec 21, 2009
Messages
43
Reaction score
9
open maplecharacter.java

Add this anywhere

PHP:
    public boolean gainItem(int id, short quantity, boolean randomStats, boolean show) {
        if (quantity >= 0) {
            MapleItemInformationProvider ii = MapleItemInformationProvider.getInstance();
            IItem item = ii.getEquipById(id);
            MapleInventoryType type = ii.getInventoryType(id);
            if (type.equals(MapleInventoryType.EQUIP) && !ii.isThrowingStar(item.getItemId()) && !ii.isBullet(item.getItemId())) {
                if (!getInventory(type).isFull()) {
                    if (randomStats) {
                        MapleInventoryManipulator.addFromDrop(getClient(), ii.randomizeStats(getClient(), (Equip) item), false);
                    } else {
                        MapleInventoryManipulator.addFromDrop(getClient(), (Equip) item, false);
                    }
                } else {

                    dropMessage(1, "Your inventory is full. Please remove an item from your " + type.name().toLowerCase() + " inventory.");
                    return false;
                }
            } else if (MapleInventoryManipulator.checkSpace(getClient(), id, quantity, "")) {
                if (id >= 5000000 && id <= 5000100) {
                    if (quantity > 1) {
                        quantity = 1;
                    }
                    int petId = MaplePet.createPet(id);
                    MapleInventoryManipulator.addById(getClient(), id, (short) 1, null, petId);
                    if (show) {
                        this.getClient().getSession().write(MaplePacketCreator.getShowItemGain(id, quantity));
                    }
                } else {
                    MapleInventoryManipulator.addById(getClient(), id, quantity, "");
                }
            } else {

                dropMessage(1, "Your inventory is full. Please remove an item from your " + type.name().toLowerCase() + " inventory.");
                return false;
            }
            if (show) {
                this.getClient().getSession().write(MaplePacketCreator.getShowItemGain(id, quantity, true));
            }
        } else {
            MapleInventoryManipulator.removeById(getClient(), MapleItemInformationProvider.getInstance().getInventoryType(id), id, -quantity, false, false);
        }
        return true;
    }

find
PHP:
setHp(maxhp);
setMp(maxmp);
client.getSession().write(MaplePacketCreator.updatePlayerStats(statup));
getMap().broadcastMessage(this, MaplePacketCreator.showForeignEffect(getId(), 0), false);
recalcLocalStats();
silentPartyUpdate();
guildUpdate();

below It Put
PHP:
if (level == 10 && isCygnus()) {
            this.gainItem(1142066, (short) 1, false, false);
            dropMessage("You have obtained an Training Knight Medal for reaching level 10");
        }

        if (level == 30 && isCygnus()) {
            this.gainItem(1142067, (short) 1, false, false);
            dropMessage("You have obtained an Official Cygnus Medal for reaching level 30");
        }

        if (level == 70 && isCygnus()) {
            this.gainItem(1142068, (short) 1, false, false);
            dropMessage("You have obtained an Advanced Cygnus Medal for reaching level 70");
        }

        if (level == 120 && isCygnus()) {
            this.gainItem(1142069, (short) 1, false, false);
            dropMessage("You have obtained a Captain Knight Medal for reaching level 120");
    }
}



For Add Buddy And Gain Medal Open BuddylistModifyHandler.java


find
PHP:
c.getSession().write(MaplePacketCreator.updateBuddylist(buddylist.getBuddies()));

Below it Put
PHP:
if (!c.getPlayer().haveItem(1142073, 1, true, true)) {
                            c.getPlayer().gainItem(1142073, (short) 1, false, false);
                            c.getPlayer().dropMessage("You have obtained the 'Be my Friend Medal'");
 
Last edited:
Newbie Spellweaver
Joined
Jun 24, 2008
Messages
63
Reaction score
7
Re: Ver75 Medal Reward System ( Automactic )

Very nice. I don't plan on using it, but I think others will find it useful.
 
Newbie Spellweaver
Joined
Apr 30, 2009
Messages
54
Reaction score
12
Re: Ver75 Medal Reward System ( Automactic )

[/COLOR]not really impressive. its simple but i doubt that he made it considering he has divinelight source which im guessing pandemicMS is rocketboy/ravanateam most of his release came from the source
 
Newbie Spellweaver
Joined
Oct 3, 2009
Messages
23
Reaction score
1
Re: Ver75 Medal Reward System ( Automactic )

its a good release, thxs
 
Elite Diviner
Loyal Member
Joined
Feb 1, 2009
Messages
497
Reaction score
75
Re: Ver75 Medal Reward System ( Automactic )

Fail. Not even the way you gain the medals.
 
Newbie Spellweaver
Joined
Dec 21, 2009
Messages
43
Reaction score
9
Re: Ver75 Medal Reward System ( Automactic )

[/COLOR]not really impressive. its simple but i doubt that he made it considering he has divinelight source which im guessing pandemicMS is rocketboy/ravanateam most of his release came from the source


wth is ravanteam / rocketboy zz i got it from vibrantms i downloaded it at , idk whats divinelight is, so don't anyhow blaming others ...
 
Newbie Spellweaver
Joined
Feb 4, 2009
Messages
28
Reaction score
1
hey a little typo with this part

Code:
if (level == 10 && isCygnus()) {
            this.gainItem(1142066, (short) 1, false, false);
            dropMessage("You have obtained an Training Knight Medal for reaching level 70");

shouldn't it be level 10 instead?
 
Newbie Spellweaver
Joined
Dec 21, 2008
Messages
11
Reaction score
7
PHP:
if (level == 10 && isCygnus()) {
            this.gainItem(1142066, (short) 1, false, false);
            dropMessage("You have obtained an Training Knight Medal for reaching level 70");
        }

        if (level == 30 && isCygnus()) {
            this.gainItem(1142067, (short) 1, false, false);
            dropMessage("You have obtained an Official Cygnus Medal for reaching level 30");
        }

        if (level == 70 && isCygnus()) {
            this.gainItem(1142068, (short) 1, false, false);
            dropMessage("You have obtained an Advanced Cygnus Medal for reaching level 70");
        }

        if (level == 120 && isCygnus()) {
            this.gainItem(1142069, (short) 1, false, false);
            dropMessage("You have obtained a Captain Knight Medal for reaching level 120");
    }
}

So if the guy reaches lvl 10 and does not have inventory slot he be scammed :p

PHP:
if (level > 10 && isCygnus()&& !haveItem(1142066, 1, true, true)) {
            this.gainItem(1142066, (short) 1, false, false);
            dropMessage("You have obtained an Training Knight Medal for reaching level 70");
        }

        if (level > 30 && isCygnus() && !haveItem(1142067, 1, true, true)) {
            this.gainItem(1142067, (short) 1, false, false);
            dropMessage("You have obtained an Official Cygnus Medal for reaching level 30");
        }

        if (level > 70 && isCygnus() && !haveItem(1142068, 1, true, true)) {
            this.gainItem(1142068, (short) 1, false, false);
            dropMessage("You have obtained an Advanced Cygnus Medal for reaching level 70");
        }

        if (level > 120 && isCygnus() && !haveItem(1142067, 1, true, true)) {
            this.gainItem(1142069, (short) 1, false, false);
            dropMessage("You have obtained a Captain Knight Medal for reaching level 120");
    }
}

If he had full inventory he can gain it next level up. You can actually add a variable to cache the item but then again you can also use a npc to talk to and get the medal in case he have full inventory. I'm not sure how GMS does it though. I have it this way
 
Newbie Spellweaver
Joined
Dec 21, 2009
Messages
43
Reaction score
9
hey a little typo with this part

Code:
if (level == 10 && isCygnus()) {
            this.gainItem(1142066, (short) 1, false, false);
            dropMessage("You have obtained an Training Knight Medal for reaching level 70");

shouldn't it be level 10 instead?

PHP:
Omg 

you have obtained an Training Knight Medal for reaching level 70

change to

you have obtained an Training Knight Medal for reaching level 10 lol
 
Last edited:
I'm sexy and I know it :)
Joined
Oct 21, 2008
Messages
811
Reaction score
350
When will you stop these goddamn fail releases, and they say the shootsource release is killing this community... damn.
Like god you have NO idea what you are doing, seriously, add gainitem? What kind of goddamn failure source does NOT have gainItem? (or a version of it)

Oh and they can just continue achieving these medals if your server has rebirths, because there's no check for equipped items, stored items PLUS they can even give it to their friends for the time being.
But sure, you got this from the vibrantms source didn't you? You wouldn't know better.
 
Newbie Spellweaver
Joined
Jul 28, 2009
Messages
89
Reaction score
10
PandemicMS can only release leeched stuff and barely knows how to do that well. Release is for something you made otherwise it is a leak or leeched

Pandemic you have earned this, i think it will fit your epenis.

PandemicMS - Ver75 Medal Reward System ( Automactic ) Tested And It Really Works - RaGEZONE Forums
 
Last edited:
Experienced Elementalist
Joined
Dec 22, 2008
Messages
215
Reaction score
31
When will you stop these goddamn fail releases, and they say the shootsource release is killing this community... damn.
Like god you have NO idea what you are doing, seriously, add gainitem? What kind of goddamn failure source does NOT have gainItem? (or a version of it)

Oh and they can just continue achieving these medals if your server has rebirths, because there's no check for equipped items, stored items PLUS they can even give it to their friends for the time being.
But sure, you got this from the vibrantms source didn't you? You wouldn't know better.

by googling vibrantms - first link that appears is this :lol:
 
Junior Spellweaver
Joined
Jan 12, 2010
Messages
101
Reaction score
4
open maplecharacter.java

Add this anywhere

PHP:
    public boolean gainItem(int id, short quantity, boolean randomStats, boolean show) {
        if (quantity >= 0) {
            MapleItemInformationProvider ii = MapleItemInformationProvider.getInstance();
            IItem item = ii.getEquipById(id);
            MapleInventoryType type = ii.getInventoryType(id);
            if (type.equals(MapleInventoryType.EQUIP) && !ii.isThrowingStar(item.getItemId()) && !ii.isBullet(item.getItemId())) {
                if (!getInventory(type).isFull()) {
                    if (randomStats) {
                        MapleInventoryManipulator.addFromDrop(getClient(), ii.randomizeStats(getClient(), (Equip) item), false);
                    } else {
                        MapleInventoryManipulator.addFromDrop(getClient(), (Equip) item, false);
                    }
                } else {

                    dropMessage(1, "Your inventory is full. Please remove an item from your " + type.name().toLowerCase() + " inventory.");
                    return false;
                }
            } else if (MapleInventoryManipulator.checkSpace(getClient(), id, quantity, "")) {
                if (id >= 5000000 && id <= 5000100) {
                    if (quantity > 1) {
                        quantity = 1;
                    }
                    int petId = MaplePet.createPet(id);
                    MapleInventoryManipulator.addById(getClient(), id, (short) 1, null, petId);
                    if (show) {
                        this.getClient().getSession().write(MaplePacketCreator.getShowItemGain(id, quantity));
                    }
                } else {
                    MapleInventoryManipulator.addById(getClient(), id, quantity, "");
                }
            } else {

                dropMessage(1, "Your inventory is full. Please remove an item from your " + type.name().toLowerCase() + " inventory.");
                return false;
            }
            if (show) {
                this.getClient().getSession().write(MaplePacketCreator.getShowItemGain(id, quantity, true));
            }
        } else {
            MapleInventoryManipulator.removeById(getClient(), MapleItemInformationProvider.getInstance().getInventoryType(id), id, -quantity, false, false);
        }
        return true;
    }

find
PHP:
setHp(maxhp);
setMp(maxmp);
client.getSession().write(MaplePacketCreator.updatePlayerStats(statup));
getMap().broadcastMessage(this, MaplePacketCreator.showForeignEffect(getId(), 0), false);
recalcLocalStats();
silentPartyUpdate();
guildUpdate();

below It Put
PHP:
if (level == 10 && isCygnus()) {
            this.gainItem(1142066, (short) 1, false, false);
            dropMessage("You have obtained an Training Knight Medal for reaching level 10");
        }

        if (level == 30 && isCygnus()) {
            this.gainItem(1142067, (short) 1, false, false);
            dropMessage("You have obtained an Official Cygnus Medal for reaching level 30");
        }

        if (level == 70 && isCygnus()) {
            this.gainItem(1142068, (short) 1, false, false);
            dropMessage("You have obtained an Advanced Cygnus Medal for reaching level 70");
        }

        if (level == 120 && isCygnus()) {
            this.gainItem(1142069, (short) 1, false, false);
            dropMessage("You have obtained a Captain Knight Medal for reaching level 120");
    }
}



For Add Buddy And Gain Medal Open BuddylistModifyHandler.java


find
PHP:
c.getSession().write(MaplePacketCreator.updateBuddylist(buddylist.getBuddies()));

Below it Put
PHP:
if (!c.getPlayer().haveItem(1142073, 1, true, true)) {
                            c.getPlayer().gainItem(1142073, (short) 1, false, false);
                            c.getPlayer().dropMessage("You have obtained the 'Be my Friend Medal'");

COOL poop

and lol i changed the drop message to broadcast message =) thx and nice release!

PHP:
MaplePacket packet = MaplePacketCreator.serverNotice(5, "[System]: " + getName() + " have obtained an MedalName for reaching level Anylevel");
        try {
            getClient().getChannelServer().getWorldInterface().broadcastMessage(getName(), packet.getBytes());
        } catch (RemoteException e) {
            getClient().getChannelServer().reconnectWorld();
        }

ouh and you forgot this

PHP:
if (!c.getPlayer().haveItem(1142073, 1, true, true)) {

just incase if you rebirth, it stop gaining the item again
 
Last edited:
Junior Spellweaver
Joined
Jan 12, 2010
Messages
101
Reaction score
4
Wtf nice release? where do you come from.

Lol Why ??

---------- Post added at 06:09 PM ---------- Previous post was at 06:06 PM ----------

Ouh rofl i just realize he rip this from vibrantms ... bad pandemic you very very bad.. BAD RELEASE!

---------- Post added at 06:11 PM ---------- Previous post was at 06:09 PM ----------

you want a cookie?

You need milk too..
 
Back
Top