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!

Arrows picking

Newbie Spellweaver
Joined
Mar 8, 2008
Messages
17
Reaction score
0
simple fix for that the monsters drop big amount of arrows
(Randomal number * the drop rate)
most of times its drop 1000
and all your inventory is getting full so:
go to MapleMap.java which located in net.sf.odinms.maps:
replace this:
PHP:
      // Randomize quantity for certain items
      if (ii.isArrowForBow(drop) || ii.isArrowForCrossBow(drop) || ii.isThrowingStar(drop))
       idrop.setQuantity((short) (1 + ii.getSlotMax(drop) * Math.random()));
with:
PHP:
                                                 // Randomize quantity for certain items
                                                Random arrows = new Random();
                                                int randomalarrows = arrows.nextInt(16);
                                                while (randomalarrows < 6){
                                                    arrows = new Random();
                                                    randomalarrows = arrows.nextInt(16);
                                                }
      if (ii.isArrowForBow(drop) || ii.isArrowForCrossBow(drop) || ii.isThrowingStar(drop))
       idrop.setQuantity((short)randomalarrows);
add the next import in the top of the file
PHP:
import java.util.Random;
if its not in there :p
that it, your done
notice:
to cancel the throwing star effect:
replace:
if (ii.isArrowForBow(drop) || ii.isArrowForCrossBow(drop) || ii.isThrowingStar(drop))
with
if (ii.isArrowForBow(drop) || ii.isArrowForCrossBow(drop))
 
Last edited:
Elite Diviner
Loyal Member
Joined
Apr 30, 2008
Messages
414
Reaction score
0
Re: [Release/Fix] Arrows picking

Thanks for this, not sure if it's a repost.
 
Supreme Arcanarch
Loyal Member
Joined
Jul 21, 2008
Messages
969
Reaction score
1
Re: [Release/Fix] Arrows picking

Ima try it thanks =)
 
Supreme Arcanarch
Loyal Member
Joined
Jul 21, 2008
Messages
969
Reaction score
1
Re: [Release/Fix] Arrows picking

Btw just curious, does this affect the throwing stars too?
 
Experienced Elementalist
Joined
Aug 23, 2008
Messages
226
Reaction score
0
Re: [Release/Fix] Arrows picking

yay good release xD
 
Burn the land,
Loyal Member
Joined
Aug 7, 2008
Messages
1,903
Reaction score
17
Re: [Release/Fix] Arrows picking

Sweet, thanks xD
 
Newbie Spellweaver
Joined
Mar 8, 2008
Messages
17
Reaction score
0
Re: [Release/Fix] Arrows picking

oh whoops XD
this one wont:
replace:
if (ii.isArrowForBow(drop) || ii.isArrowForCrossBow(drop) || ii.isThrowingStar(drop))
with
if (ii.isArrowForBow(drop) || ii.isArrowForCrossBow(drop)))
 
Experienced Elementalist
Joined
Jul 18, 2008
Messages
232
Reaction score
0
Re: [Release/Fix] Arrows picking

Thanks for not giving odinteh credits.
 
Experienced Elementalist
Joined
Jun 15, 2008
Messages
299
Reaction score
0
Re: [Release/Fix] Arrows picking

nice ima try this
 
Newbie Spellweaver
Joined
Jun 2, 2008
Messages
28
Reaction score
0
Re: [Release/Fix] Arrows picking

cool thanks for this fix. =)
 
Newbie Spellweaver
Joined
Jul 20, 2008
Messages
73
Reaction score
0
Re: [Release/Fix] Arrows picking

Thanks for this! It works.

But, I get errors when I try to fix the star dupe glitch (Putting a random drop amount).

Code:
C:\Users\Admin\Desktop\SeanPack V.5.9 Beta\SeanSource V.5.9\src\net\sf\odinms\server\maps\MapleMap.java:348: illegal start of expression

I added the ; at the end of the line and } at the beginning, and } at the end. Help please?
 
Back
Top