Page 1 of 1

Certain mob/pet skills not working

Posted: Sat Oct 10, 2015 8:55 pm
by bluesolarflare
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

Re: Certain mob/pet skills not working

Posted: Mon Oct 12, 2015 10:31 pm
by kjLotus
they're offset by 256 IIRC (because the weaponskills come first)