Beastmaster AF3

The_Kuti
Posts: 28
Joined: Sat Oct 06, 2012 6:19 am

Re: Beastmaster AF3

Post by The_Kuti » Sat Feb 02, 2013 12:04 pm

Well, to be honest: i don't know, i think it should be somewhere in mob_pools maybe flag or unknown column.

The_Kuti
Posts: 28
Joined: Sat Oct 06, 2012 6:19 am

Re: Beastmaster AF3

Post by The_Kuti » Sat Feb 02, 2013 12:08 pm

azafaraht wrote:Dead end for me. Found in dsp/src/map/battleutils.cpp that absolutely NO NM can be charmed. This quest allows the two tigers to be charmed.
If u cant charm them, then leave the mobs as they are. Thats the safest way

azafaraht
Posts: 74
Joined: Thu Nov 22, 2012 11:04 am

Re: Beastmaster AF3

Post by azafaraht » Sat Feb 02, 2013 1:16 pm

I changed dsp/src/map/battleutils.cpp lines 3126-3127 so I could charm the two tigers:

Code: Select all

3126:  // cannot charm NM unless they are Taifun or Trombe
3127:                  if (((CMobEntity*)PVictim)->m_Type & MOBTYPE_NOTORIOUS & PVictim->m_OwnerID.id != 17576269 & PVictim->m_OwnerID.id != 17576270){
3128:                          ((CMobEntity*)PVictim)->PEnmityContainer->UpdateEnmity(PCharmer, 0, 0);
3129:                          return;
3120:                  }
Anyways, I don't know now many NMs can be charmed... so this will work in the meantime.

I will test the quest and post the scripts. The only c++ change I've made for this quest is this one. The rest should work. Thanks everyone for the help.
Server running on Ubuntu 12.04 Server 64-bit on VirtualBox
Client running on Windows 7 64-bit iMac

azafaraht
Posts: 74
Joined: Thu Nov 22, 2012 11:04 am

Re: Beastmaster AF3

Post by azafaraht » Sat Feb 02, 2013 6:16 pm

Here is the .zip file including all files modified and locations. The .zip includes:

1) _6t2.lua Merchant's House in Lower Jeuno to start the quest.
2) Osker.lua Kid outside Chocobo Stables in Upper Jeuno, participates in quest.
3) Sarcophagus.lua NPC in The Eldieme Necropolis to spawn NMs, final cutscene and hands in Beast Trousers. (Missing verifying inventory space)
4) All three mob scritps in The_Eldieme_Necropolis/mobs. Only one does something: Sturm.lua. If he dies, other 2 NMs will despawn. Also sets var to get final cutscene and item from Sarcophagus.
5) mob_spawn_points.sql r2489 + three NM entries for the quest.
6) Although probably not necessary, I also included the battelutils.cpp. Like I mentioned earlier, I modified the tryToCharm function, so it doesn't rule out Taifun and Trombe as eligible charm victims.
Attachments
BST AF3.zip
Beastmaster AF3 Quest Scritps
(643.08 KiB) Downloaded 304 times
Server running on Ubuntu 12.04 Server 64-bit on VirtualBox
Client running on Windows 7 64-bit iMac

Post Reply