Prevent unequip when changing support jobs?
Prevent unequip when changing support jobs?
What src file handles support job changes? I want to prevent streaking upon changing support jobs lol
Re: Prevent unequip when changing support jobs?
job change in packet_system.cpp
Re: Prevent unequip when changing support jobs?
Wow, that was an easy fix. Tested no issues.
Moved "charutils::RemoveAllEquipment(PChar);" into the if() statement for the mjob change.
Moved "charutils::RemoveAllEquipment(PChar);" into the if() statement for the mjob change.
Code: Select all
if ((mjob > 0x00) && (mjob < MAX_JOBTYPE))
{
PChar->resetPetZoningInfo();
PChar->SetMJob(mjob);
PChar->SetMLevel(PChar->jobs.job[PChar->GetMJob()]);
PChar->SetSLevel(PChar->jobs.job[PChar->GetSJob()]);
charutils::RemoveAllEquipment(PChar);
}
Re: Prevent unequip when changing support jobs?
yeah, that's exactly what i did (i have to do a bunch of BLU stuff in there anyways, seeing it reminded me of your post).aizenmyou wrote:Wow, that was an easy fix. Tested no issues.
Moved "charutils::RemoveAllEquipment(PChar);" into the if() statement for the mjob change.
Code: Select all
if ((mjob > 0x00) && (mjob < MAX_JOBTYPE)) { PChar->resetPetZoningInfo(); PChar->SetMJob(mjob); PChar->SetMLevel(PChar->jobs.job[PChar->GetMJob()]); PChar->SetSLevel(PChar->jobs.job[PChar->GetSJob()]); charutils::RemoveAllEquipment(PChar); }
so you may have conflicts in there this weekend or something, you should be good to just revert and use mine since i'll have that functionality as well
Re: Prevent unequip when changing support jobs?
I have two repositories, one for DSP and one for "live". I always update DSP but only migrate changes I find as "stable".
It's a bit of work, but keeps the "oh shit I just compiled a broke SVN batch" events to a minimum LOL
Yeah, I forgot about /NIN so I'm writing some code to check the previous job to remove weapons from the sub slot.
It's a bit of work, but keeps the "oh shit I just compiled a broke SVN batch" events to a minimum LOL
Yeah, I forgot about /NIN so I'm writing some code to check the previous job to remove weapons from the sub slot.