[Release] All scrolls work for GM's (OdinMS)

Page 1 of 8 12345678 LastLast
Results 1 to 15 of 110
  1. #1
    Account Upgraded | Title Enabled! Sathon is offline
    MemberRank
    Feb 2008 Join Date
    C:\Nexon\Location
    275Posts

    [Release] All scrolls work for GM's (OdinMS)

    This is somewhat-tested, so if there is a problem, let me know.

    It's four simple modifications that will make it so all scrolls, no matter what %, will work all the time for GM's. I did this because scrolling godly items that there aren't GM scrolls for (eg. Earring Int) was a pain in the ass.

    I realize this is a very simple edit, but I consider it a useful one and unexperienced server hosts might not know how to do this without help.

    So anyways,

    ---------------------------------------------------------------------------------------------

    In ScrollHandler.java, which is located in net.sf.odinms.net.channel.handler, find these lines:
    if (scroll.getQuantity() <= 0) {
    throw new InventoryException("<= 0 quantity when scrolling");
    }
    Below that, add this line:
    boolean checkIfGM = c.getPlayer().isGM();
    ---------------------------------------------------------------------------------------------

    In the same file, find this line (right below the edit you just made):
    IEquip scrolled = (IEquip) ii.scrollEquipWithId(toScroll, scroll.getItemId());
    Change it to this (the modified part is bolded):
    IEquip scrolled = (IEquip) ii.scrollEquipWithId(toScroll, scroll.getItemId(), checkIfGM);
    ---------------------------------------------------------------------------------------------

    In MapleItemInformationProvider.java, which is located in net.sf.odinms.server, find this line:
    public IItem scrollEquipWithId(IItem equip, int scrollId) {
    Change it to this (modified part in bold):
    public IItem scrollEquipWithId(IItem equip, int scrollId, boolean checkIfGM) {
    ---------------------------------------------------------------------------------------------

    Also in MapleItemInformationProvider.java, find this line (a couple of lines down):
    if (nEquip.getUpgradeSlots() > 0 && Math.ceil(Math.random() * 100.0) <= stats.get("success")) {
    Change that to this:
    if (nEquip.getUpgradeSlots() > 0 && ((Math.ceil(Math.random() * 100.0) <= stats.get("success")) || (checkIfGM == true))) {
    ---------------------------------------------------------------------------------------------

    That should do it. Like I said, if there is an error somewhere, please let me know.

    To get it to work with SeanPack and other newer repacks:
    http://forum.ragezone.com/showpost.p...4&postcount=42
    (thanks the3l0b)
    Last edited by Sathon; 09-07-08 at 06:00 AM.


  2. #2
    Account Upgraded | Title Enabled! Cuumquat is offline
    MemberRank
    May 2008 Join Date
    Graveyard..Location
    477Posts

    Re: [Release] All scrolls work for GM's (OdinMS)

    Great idea man. Can anyone code this for Rev007 please? Love the idea :D

    I did this because scrolling godly items that there aren't GM scrolls for (eg. Earring Int) was a pain in the ass.
    I feel the same way lol. Great work.

  3. #3
    Enthusiast iCarot is offline
    MemberRank
    Apr 2008 Join Date
    West ComptonLocation
    40Posts

    Re: [Release] All scrolls work for GM's (OdinMS)

    Theres a Red circle with a exclamation mark on the line i put this

    IEquip scrolled = (IEquip) ii.scrollEquipWithId(toScroll, scroll.getItemId(), checkIfGM);

  4. #4
    Proficient Member crackbaby is offline
    MemberRank
    Apr 2008 Join Date
    152Posts

    Re: [Release] All scrolls work for GM's (OdinMS)

    Quote Originally Posted by Cuumquat View Post
    Great idea man. Can anyone code this for Rev007 please? Love the idea :D



    I feel the same way lol. Great work.
    Java and C++ are way different I don't think that it would work... Plus it's for OdinMS.

  5. #5
    Account Upgraded | Title Enabled! Cuumquat is offline
    MemberRank
    May 2008 Join Date
    Graveyard..Location
    477Posts

    Re: [Release] All scrolls work for GM's (OdinMS)

    I didn't say it would work for C++. and i know its for OdinMS. im asking if anyone can use this kinda as a base, or use this idea, and code this for Rev007. O.o
    Where did you get
    Java and C++ are way different I don't think that it would work... Plus it's for OdinMS.
    from. O.o

  6. #6
    Proficient Member shaun166 is offline
    MemberRank
    Jun 2008 Join Date
    159Posts

    Re: [Release] All scrolls work for GM's (OdinMS)

    so u mean by adding all this things gm scroll whatever scroll will always pass?

  7. #7
    Account Upgraded | Title Enabled! Cuumquat is offline
    MemberRank
    May 2008 Join Date
    Graveyard..Location
    477Posts

    Re: [Release] All scrolls work for GM's (OdinMS)

    YEs, only for GM's though. As you can see the SCRIPT.

    IEquip scrolled = (IEquip) ii.scrollEquipWithId(toScroll, scroll.getItemId(), checkIfGM);
    It says, CheckifGM.

  8. #8
    Account Upgraded | Title Enabled! theonendonly is offline
    MemberRank
    Apr 2008 Join Date
    411Posts

    Re: [Release] All scrolls work for GM's (OdinMS)

    its not really a pain it takes me usually only 50 white scrolls and i have a perfect one .
    its quite easy .

  9. #9
    Account Upgraded | Title Enabled! Cuumquat is offline
    MemberRank
    May 2008 Join Date
    Graveyard..Location
    477Posts

    Re: [Release] All scrolls work for GM's (OdinMS)

    LOL. 50 white scrolls, you know, thats not a pain :P

  10. #10
    Proficient Member crackbaby is offline
    MemberRank
    Apr 2008 Join Date
    152Posts

    Re: [Release] All scrolls work for GM's (OdinMS)

    Quote Originally Posted by theonendonly View Post
    its not really a pain it takes me usually only 50 white scrolls and i have a perfect one .
    its quite easy .
    Not when you have to use 30% earring scrolls for dex and use them. My hand gets all sore and sometimes 4 of them work on an earring and the last slot BOOM.

  11. #11
    Account Upgraded | Title Enabled! Cuumquat is offline
    MemberRank
    May 2008 Join Date
    Graveyard..Location
    477Posts

    Re: [Release] All scrolls work for GM's (OdinMS)

    Lol? O.o Well yea, it is true, having this is great to have. :D

  12. #12
    Account Upgraded | Title Enabled! theonendonly is offline
    MemberRank
    Apr 2008 Join Date
    411Posts

    Re: [Release] All scrolls work for GM's (OdinMS)

    Quote Originally Posted by crackbaby View Post
    Not when you have to use 30% earring scrolls for dex and use them. My hand gets all sore and sometimes 4 of them work on an earring and the last slot BOOM.
    still painless for me
    i've done it countless times .
    plus its only 5 slots so its not too hard .
    patience is key .

  13. #13
    Account Upgraded | Title Enabled! Cuumquat is offline
    MemberRank
    May 2008 Join Date
    Graveyard..Location
    477Posts

    Re: [Release] All scrolls work for GM's (OdinMS)

    some people arnt patient, such as myself :P

  14. #14
    Enthusiast Itachi08 is offline
    MemberRank
    Dec 2007 Join Date
    31Posts

    Re: [Release] All scrolls work for GM's (OdinMS)

    humm i can't find some of the lines up there.. i looked very closely are you sure its there?
    can you upload the edited files please?

  15. #15
    Enthusiast usazn2proforu is offline
    MemberRank
    May 2008 Join Date
    36Posts

    Re: [Release] All scrolls work for GM's (OdinMS)

    Heyy dam.... if this works Thanks man i hope my server in future if i have one >.> will be happy with tis =P



Page 1 of 8 12345678 LastLast

Advertisement