HomeHome  ­FAQFAQ  ­SearchSearch  ­MemberlistMemberlist  ­UsergroupsUsergroups  ­RegisterRegister  ­Log inLog in  
Post new topic   Reply to topicShare | 
 

 Double EXP to special hours

View previous topic View next topic Go down 
AuthorMessage
Flav



Posts: 24
Join date: 2008-08-16

PostSubject: Double EXP to special hours   Fri Jan 30, 2009 7:30 pm

Quote:
This would go under commits, but my maplemap is different than valhalla's. People that can add releases will know what to do.

Part of this was from v55.
MapleCharacter.java

Code:
    public int hasEXPCard() {
        int hr = Calendar.getInstance().get(Calendar.HOUR_OF_DAY);
        if ((haveItem(5211000) && hr > 17 && hr < 21) || (haveItem(5211014) && hr > 6 && hr < 12) || (haveItem(5211015) && hr > 9 && hr < 15) || (haveItem(5211016) && hr > 12 && hr < 18) || (haveItem(5211017) && hr > 15 && hr < 21) || (haveItem(5211018) && hr > 14) || (haveItem(5211039) && hr < 5) || (haveItem(5211042) && hr > 2 && hr < 8) || (haveItem(5211045) && hr > 5 && hr < 11)) {
            return 2;
        }
        return 1;
    }

    public int getDropMod() {
        int hr = Calendar.getInstance().get(Calendar.HOUR_OF_DAY);
        if ((haveItem(5360001) && hr > 6 && hr < 12) || (haveItem(5360002) && hr > 9 && hr < 15) || (haveItem(536000) && hr > 12 && hr < 18) || (haveItem(5360004) && hr > 15 && hr < 21) || (haveItem(536000) && hr > 18) || (haveItem(5360006) && hr < 5) || (haveItem(5360007) && hr > 2 && hr < 6) || (haveItem(5360008) && hr >= 6 && hr < 11)) {
            return 2;
        }
        return 1;
    }
In MapleMap.java
In dropFromMonster
Add
Code:

        int card = dropOwner.getDropMod();
And add a * card after each drop part.

In the mesos part add a * card as well liek this:
Code:

                                        final int mesoRate = ChannelServer.getInstance(dropOwner.getClient().getChannel()).getMesoRate() * card;





I will edit this later to make it better understanding.
Back to top Go down
View user profile
 

Double EXP to special hours

View previous topic View next topic Back to top 
Page 1 of 1

Permissions of this forum:You cannot reply to topics in this forum
 :: OdinMS :: Releases-
Post new topic   Reply to topic