Certain mob/pet skills not working

Post Reply
bluesolarflare
Posts: 127
Joined: Wed May 27, 2015 4:23 pm

Certain mob/pet skills not working

Post by bluesolarflare » Sat Oct 10, 2015 8:55 pm

Hello,

I am implementing PUP WS's and attachments but I have run into a problem. For instance, when trying to add Armor Shatterer, I have done the following:

Code: Select all

			 if (m_PPet->getFrame() == FRAME_SHARPSHOT){
			 
			 for (int i = 0; i < m_PPet->PetSkills.size(); i++) {
                    auto PMobSkill = battleutils::GetMobSkill(m_PPet->PetSkills.at(i));
                    
                        if (PMobSkill->getID() == 2488 &&
                            raskill > 323) { //Armor Shatterer
                            SetCurrentMobSkill(PMobSkill);
                            break;
						}
						else if (PMobSkill->getID() == 2044 &&
                            raskill > 244) { //Armor Piercer
                            SetCurrentMobSkill(PMobSkill);
                            break;
                        }
						else if (PMobSkill->getID() == 1810 &&
                            raskill > 149) { //Daze
                            SetCurrentMobSkill(PMobSkill);
                            break;
                        }			
						else if (PMobSkill->getID() == 1686 &&
                            raskill > 0) { //Acruballista
                            SetCurrentMobSkill(PMobSkill);
                            break;
                        }

                    
					}
				}

I have added Armor Shatterer in the mobskill SQL's and all of the WS's work except Armor Shatterer. For extra measure i put the skill for both 363, 364, 365, and 366 families in the mob_skill_sql. FFXI Dats show Armor Shatterer as 2488 however when my auto uses the WS the game crashes because it appears that the game is trying to return a null mobskill. Can anyone help out? Thanks

User avatar
kjLotus
Lead Developer
Posts: 1813
Joined: Sun Jul 22, 2012 2:16 pm

Re: Certain mob/pet skills not working

Post by kjLotus » Mon Oct 12, 2015 10:31 pm

they're offset by 256 IIRC (because the weaponskills come first)

Post Reply