v117.2 Mechanic Prototype
I was trying to fix Mechanic Prototype, with the Buffstats from MapleCrystal (Thanks to @AngelSpirit), but apparently I was not able to get the supposedly gained WATK when I was on Prototype. This is what I have done so far, not sure if where I have did wrongly, so please guide me if I am on the wrong path.
Playerstats
PHP Code:
eff = chra.getStatForBuff(MapleBuffStat.PROTOTYPE);
if (eff != null) {
watk += eff.getEnhancedWatk();
System.out.println("handleBuffStat");
}
MapleStatEffect
PHP Code:
case 35001002:
localstatups = new EnumMap<>(MapleBuffStat.class);
localstatups.put(MapleBuffStat.PROTOTYPE, info.get(MapleStatInfo.x));
System.out.println("applyBuffEffect");
if (applyfrom.getTotalSkillLevel(35120000) > 0) {
SkillFactory.getSkill(35120000).getEffect(applyfrom.getTotalSkillLevel(35120000)).applyBuffEffect(applyfrom, applyto, primary, newDuration);
return;
}
MapleBuffStat
PHP Code:
PROTOTYPE(0x2000, 2),
Re: v117.2 Mechanic Prototype
you don't buff(send buff packet) the skill though
the buff you give to character is MONSTER_RIDING
Re: v117.2 Mechanic Prototype
Meaning I will have to work on isMonsterRiding instead of others?
Re: v117.2 Mechanic Prototype
i mean maybe you don't know what the applyBuffEffect function does
Re: v117.2 Mechanic Prototype
Quote:
Originally Posted by
ngnam87
i mean maybe you don't know what the applyBuffEffect function does
applyBuffEffect is the icon at the top right when used, correct? Hmm.
Re: v117.2 Mechanic Prototype
i have 0x2000, 4 for the mask
Re: v117.2 Mechanic Prototype
Ohgosh I still can't get that to work
I have even changed the mask to 0x2000, 4. Maybe someone can point out to me where exactly did I do wrong? So I can actually learn at the same time and learn my mistake.
Re: v117.2 Mechanic Prototype
if you cant find the accurate correct way, just do a hacky way and add code to add watk
Re: v117.2 Mechanic Prototype
Quote:
Originally Posted by
sunnyboy
if you cant find the accurate correct way, just do a hacky way and add code to add watk
Hmm, you mean something like this? Or you know of any skills that require a hacky way to do it? So I can refer to it hmm
PHP Code:
bx = SkillFactory.getSkill(35120000);
bof = chra.getTotalSkillLevel(bx);
if (bof > 0) {
eff = bx.getEffect(bof);
trueMastery += eff.getMastery();
watk += eff.getEnhancedWatk();
}