Page 1 of 1

[HELP]Advanced Champion Mod

Posted: Sun Dec 29, 2013 10:01 am
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

Re: [HELP]Advanced Champion Mod

Posted: Sun Dec 29, 2013 2:59 pm
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.

Re: [HELP]Advanced Champion Mod

Posted: Sun Dec 29, 2013 3:40 pm
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:

Re: [HELP]Advanced Champion Mod

Posted: Sun Dec 29, 2013 4:37 pm
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.

Re: [HELP]Advanced Champion Mod

Posted: Sun Dec 29, 2013 4:52 pm
by St3eT

Code: Select all

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

Re: [HELP]Advanced Champion Mod

Posted: Sun Dec 29, 2013 5:43 pm
by jurchiks
What about Team.NONE?

Re: [HELP]Advanced Champion Mod

Posted: Mon Dec 30, 2013 9:31 am
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..