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!

java structure...

Experienced Elementalist
Joined
Oct 9, 2013
Messages
214
Reaction score
10
Code:
[COLOR=#666666] public void setPlayerClass(PlayerClass playerClass) {[/COLOR]		Player player = getPlayer();
		if(playerClass == PlayerClass.WARRIOR || playerClass == PlayerClass.SCOUT || playerClass == PlayerClass.MAGE || playerClass == PlayerClass.PRIEST) {
        this.playerClass = playerClass;
		}

		if(playerClass == PlayerClass.GLADIATOR) {
		ItemService.addItem(player, 100900684, 1); //WEAPON
		ItemService.addItem(player, 182400001, 1000000); // KINAH
		this.playerClass = playerClass;
		SkillLearnService.addMissingSkills(player);
		}
[COLOR=#666666] }[/COLOR]
need help someone good in java..
PlayerCommonData.java ,i did follow this instruction from here
no luck on compile keep failing...any advice?
 
Newbie Spellweaver
Joined
Oct 30, 2013
Messages
34
Reaction score
3
You must be doing something wrong. It should work fine. Post possible errors maybe? More infos else I cannot help you.
 
Upvote 0
Experienced Elementalist
Joined
Oct 9, 2013
Messages
214
Reaction score
10
I did some other adjustments on the structure but still not luck to compile it ..

Here is the picture..
 
Upvote 0
Newbie Spellweaver
Joined
Oct 30, 2013
Messages
34
Reaction score
3
I did some other adjustments on the structure but still not luck to compile it ..

Here is the picture..
Possible Capitalization of the identifiers.
The error means it doesn't know what you are referring to.
Make sure you have import everything.
 
Upvote 0
Experienced Elementalist
Joined
Oct 9, 2013
Messages
214
Reaction score
10


same problem,import everything no luck to compile it..check it up.
 
Last edited:
Upvote 0
Newbie Spellweaver
Joined
May 5, 2017
Messages
20
Reaction score
14
The compiler is telling you that it can't find the ItemService and SkillLearnService classes added in the setPlayerClass method.
You should import the called classes by adding these lines on the the PlayerCommonData class. :):

import com.aionemu.gameserver.services.item.ItemService;
import com.aionemu.gameserver.services.SkillLearnService;
 
Upvote 0
Back
Top