Prevent unequip when changing support jobs?

Post Reply
aizenmyou
Posts: 13
Joined: Fri May 10, 2013 4:16 pm

Prevent unequip when changing support jobs?

Post by aizenmyou » Wed Jul 10, 2013 1:41 pm

What src file handles support job changes? I want to prevent streaking upon changing support jobs lol

User avatar
kjLotus
Special Guest
Posts: 1813
Joined: Sun Jul 22, 2012 2:16 pm

Re: Prevent unequip when changing support jobs?

Post by kjLotus » Wed Jul 10, 2013 1:52 pm

job change in packet_system.cpp

aizenmyou
Posts: 13
Joined: Fri May 10, 2013 4:16 pm

Re: Prevent unequip when changing support jobs?

Post by aizenmyou » Thu Jul 11, 2013 10:57 am

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);
		}

User avatar
kjLotus
Special Guest
Posts: 1813
Joined: Sun Jul 22, 2012 2:16 pm

Re: Prevent unequip when changing support jobs?

Post by kjLotus » Thu Jul 11, 2013 10:59 am

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

aizenmyou
Posts: 13
Joined: Fri May 10, 2013 4:16 pm

Re: Prevent unequip when changing support jobs?

Post by aizenmyou » Fri Jul 12, 2013 2:23 pm

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.

Post Reply