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!

[HeavenMS] Sell with a check

Initiate Mage
Joined
Oct 15, 2020
Messages
35
Reaction score
10
Hello, I am trying to make the sell functions check if enhancement is more than 1, then it will skip the items.

What i have done is.
Code:
public int sellAllItemsFromName(byte invTypeId, String name,Item item) {

then added
Code:
 Equip e = (Equip) item; if (e.vicious >= 1) {                return (-1);            }


No compile errors but I am getting errors from bat.
Code:
Caused by: <eval>:58 TypeError: Can not invoke method [jdk.internal.dynalink.beans.SimpleDynamicMethod int client.MapleCharacter.sellAllItemsFromName(byte,String,Item)] with the passed arguments; they do not match any of its method signatures.

I been trying to figure it out but no luck...
 
Last edited:
Joined
Dec 21, 2010
Messages
59
Reaction score
2
I guess the issue is in the calling of the function sellAllItemsFromName(). The error tells you that they do not match any of its method signatures, which means you didn't pass in the correct parameters when calling the function?
 
Upvote 0
Initiate Mage
Joined
Oct 15, 2020
Messages
35
Reaction score
10
Yea thats the problem but I am still figuring it out how to fix that.
 
Upvote 0
Back
Top