To fix procing, haste and a few other commands first replace
Code:
GetProcChances(ProcChance, ProcBonus);
Around line 2387 in mob.cpp with
Code:
ProcChance = GetProcChances(ProcChance, ProcBonus);
Around line 213 in bonuses.cpp replace
Code:
if(common.ProcChance > 0) {
newbon->ProcChance += common.(I forgetwhat was here);
}
with
Code:
if(common.ProcRate > 0) {
newbon->ProcChance += common.ProcRate;
}
in command.cpp around line 4142/3 replace
Code:
c->Message(0, " Magic: %i SpellID: %i Proc Level: %i DBCharges: %i CurCharges: %i", item->Common.Magic, item->Common.Click.Effect, item->Common.Click.Level, item->Common.MaxCharges, inst->GetCharges());
With
Code:
c->Message(0, " Magic: %i SpellID: %i Proc Level: %i DBCharges: %i CurCharges: %i", item->Common.Magic, item->Common.Proc.Effect, item->Common.Proc.Level, item->Common.MaxCharges, inst->GetCharges());
AND Replace
Code:
c->Message(0, " EffectType: 0x%02x CastTime: %.2f", (int8) item->Common.Click.Type, (double) item->Common.CastTime/1000);
with
Code:
c->Message(0, " EffectType: 0x%02x CastTime: %.2f", (int8) item->Common.Proc.Type, (double) item->Common.CastTime/1000);
Around lines 182/183 in bonuses.cpp replace
Code:
if(common.Click.Type == ET_WornEffect) {
if(newbon->haste < (sint8)item->Common.Haste)
newbon->haste = item->Common.Haste;
WITH
Code:
if(newbon->haste < (sint8)item->Common.Haste){
newbon->haste = item->Common.Haste;
I have the feeling I'm forgetting something but I don't know what. I want to find the opcode for /assist, but I don't know how to start.