[HELP]Advanced Champion Mod

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
Kryptik
Posts: 3
Joined: Thu Dec 26, 2013 5:39 pm

[HELP]Advanced Champion Mod

Post by Kryptik »

If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision Number: Latest BETA
L2JDP Revision Number: Latest BETA


Hello everyone .. i am new in this community..I used Advanced Champion Mod by VlLight
and i got many errors .. I fixed all of them except from one and i want your opinion...Here is the error.. I give u the quick fix too just to consider the problem to where it is located
com.l2j.gameserver.model.actor.L2Attackable.java

Code: Select all

{        _championType = champType;        setTeam(ChampionData.getInstance().getGlow(champType));    }
The problem is the setTeam i get error..here is the quickfix

The method setTeam(Team) in the type L2Npc is not applicable for the arguments (int)

I appreciate any help!!

[EDIT] Build Full Error

Code: Select all

[javac]         setTeam(ChampionData.getInstance().getGlow(champType));    [javac]         ^    [javac]     method L2Npc.setTeam(Team) is not applicable    [javac]       (actual argument int cannot be converted to Team by method invocation conversion)    [javac]     method L2Character.setTeam(Team) is not applicable    [javac]       (actual argument int cannot be converted to Team by method invocation conversion)    [javac] 1 error
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: [HELP]Advanced Champion Mod

Post by jurchiks »

getTeam/setTeam were recently rewritten from int to Team enum: http://trac.l2jserver.com/changeset/6313
If you fixed all the other errors, pretty sure you can fix this one too, with the help of that changeset.
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
Kryptik
Posts: 3
Joined: Thu Dec 26, 2013 5:39 pm

Re: [HELP]Advanced Champion Mod

Post by Kryptik »

hmmm all these are fixed the only possible soluton i think is just to import the enum
in L2Attackable
But the problem is it annt be imported i save it and it just erase it :evil:
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: [HELP]Advanced Champion Mod

Post by jurchiks »

The method setTeam(Team) in the type L2Npc is not applicable for the arguments (int)
This error for this code:

Code: Select all

setTeam(ChampionData.getInstance().getGlow(champType));
means that ChampionData.getInstance().getGlow() returns an int, not a Team enum.
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
User avatar
St3eT
Posts: 961
Joined: Sun Mar 07, 2010 6:50 pm

Re: [HELP]Advanced Champion Mod

Post by St3eT »

Code: Select all

setTeam(ChampionData.getInstance().getGlow(champType) == 1 ? Team.BLUE : Team.RED)
;)
If i should be black sheep for sure no as punishment
Image
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: [HELP]Advanced Champion Mod

Post by jurchiks »

What about Team.NONE?
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
Kryptik
Posts: 3
Joined: Thu Dec 26, 2013 5:39 pm

Re: [HELP]Advanced Champion Mod

Post by Kryptik »

St3eT wrote:

Code: Select all

setTeam(ChampionData.getInstance().getGlow(champType) == 1 ? Team.BLUE : Team.RED)
;)

thank you for your help but there is 1 problem..
with this code i get all mobs with blue aura..All mobs not only champions..
Post Reply