Page 1 of 1

Prevent unequip when changing support jobs?

Posted: Wed Jul 10, 2013 1:41 pm
by aizenmyou
What src file handles support job changes? I want to prevent streaking upon changing support jobs lol

Re: Prevent unequip when changing support jobs?

Posted: Wed Jul 10, 2013 1:52 pm
by kjLotus
job change in packet_system.cpp

Re: Prevent unequip when changing support jobs?

Posted: Thu Jul 11, 2013 10:57 am
by aizenmyou
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);
		}

Re: Prevent unequip when changing support jobs?

Posted: Thu Jul 11, 2013 10:59 am
by kjLotus
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);
		}
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).

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?

Posted: Fri Jul 12, 2013 2:23 pm
by aizenmyou
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.