ganjaradio Posted September 29, 2016 Posted September 29, 2016 Hello this the code from my project to buff someone: SkillTable.getInstance().getInfo(6777, SkillTable.getInstance().getMaxLevel(6777)).getEffects(this, _boat, AutoLootHerbs, AutoLootHerbs); public final void getEffects(Creature effector, Creature effected, boolean calcChance, boolean applyOnCaster) { getEffects(effector, effected, calcChance, applyOnCaster, false); } But it has autoloot etc and cant change nth at true or false, how cna i fix this :3
0 Tessa Posted September 29, 2016 Posted September 29, 2016 AutoLootHerbs handles a boolean value, I suspect...
0 ganjaradio Posted September 29, 2016 Author Posted September 29, 2016 i turn it to true etc but it gives me error
0 ganjaradio Posted September 29, 2016 Author Posted September 29, 2016 That it isnt used like the statement and give the autocorrect or tells me to creat a new statement
0 Onix Posted October 8, 2016 Posted October 8, 2016 Put full error log from console or line where errors appears.
0 Tessa Posted October 8, 2016 Posted October 8, 2016 Put full error log from console or line where errors appears. I think that he expect you to guess what exactly the exception is, by throwing dices.
0 Red-Hair-Shanks Posted October 8, 2016 Posted October 8, 2016 I think that he expect you to guess what exactly the exception is, by throwing dices. darling stop make useless posts :P on post..put your log to see the error
0 Reborn12 Posted October 8, 2016 Posted October 8, 2016 (edited) This line is your problem im not working with h5 but this seems wrong SkillTable.getInstance().getInfo(6777, SkillTable.getInstance().getMaxLevel(6777)).getEffects(this, _boat, AutoLootHerbs, AutoLootHerbs);Must be like this i think SkillTable.getInstance().getInfo(buffid, bufflevel).getEffects(this, player); Edited October 8, 2016 by Reborn12
0 Tessa Posted October 8, 2016 Posted October 8, 2016 darling stop make useless posts :P on post..put your log to see the error The only useless post here is this one: That it isnt used like the statement and give the autocorrect or tells me to creat a new statement So, why don't you give a useful answer, if you are so professional? :D
0 Reborn12 Posted October 8, 2016 Posted October 8, 2016 The only useless post here is this one: So, why don't you give a useful answer, if you are so professional? :D I think with my reply he have the fix getmaxlevel 6777 he can replace with the buff level or im wrong?
0 Tessa Posted October 8, 2016 Posted October 8, 2016 I think with my reply he have the fix getmaxlevel 6777 he can replace with the buff level or im wrong? Without proper error report it's like shooting in the dark... you can only guess (by throwing dices) what kind of crap he made.
0 ganjaradio Posted October 8, 2016 Author Posted October 8, 2016 (edited) This is the error: From the one Reborn12 shared The method getEffects(Creature, Creature, boolean, boolean) in the type Skill is not applicable for the arguments (Player, Player) And from the one i had: The method getEffects(Creature, Creature, boolean, boolean) in the type Skill is not applicable for the arguments (Player, boolean, boolean, boolean) Edited October 8, 2016 by ganjaradio
0 Reborn12 Posted October 8, 2016 Posted October 8, 2016 Did you add buff id and buff level in my line? And is this from a buffer or what?
Question
ganjaradio
Hello this the code from my project to buff someone:
public final void getEffects(Creature effector, Creature effected, boolean calcChance, boolean applyOnCaster) { getEffects(effector, effected, calcChance, applyOnCaster, false); }But it has autoloot etc and cant change nth at true or false, how cna i fix this :3
52 answers to this question
Recommended Posts