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!

Adding a check to dropItems in Reactor.

Newbie Spellweaver
Joined
Nov 15, 2020
Messages
8
Reaction score
0
I am trying to block certain items from being dropped in game while still being available to be sold @ any NPC. I guess the best way to do this would be to add a check in the dropItems function with the item id's in ReactorActionManager but I am not sure. Seems like WZ editing Item.wz is not a good option for drop issues.

HeavenMS based source.
Thank you for your help!
 
Newbie Spellweaver
Joined
Nov 15, 2020
Messages
8
Reaction score
0
sounds like a reasonable approach

what are you having trouble with? it's a simple check:

if (item.getId() == XXXXXX)
continue;

I was thinking of adding something like this in the dropitems function;

if (d.itemId == 2049100) { // can't drop chaos scrolls
c.getPlayer().message("You can't drop this item.");
return;
}

Unfortunately, it doesn't give any error message in game. I must not add the check in the right place. I am close but i'm missing a little part.
 
Last edited:
Upvote 0
Newbie Spellweaver
Joined
Nov 15, 2020
Messages
8
Reaction score
0
MapleInventoryManipulator.
drop function.

Cool! Gonna take a look into that file! Thanks for the tip :)
EDIT: Easy as that. It works like a charm. Thank you!
 
Last edited:
Upvote 0
Back
Top