@mh

uwill99
Posts: 61
Joined: Tue Aug 12, 2014 11:28 pm

Re: @mh

Post by uwill99 » Mon Sep 14, 2015 11:52 pm

I deleted

Code: Select all

if (PChar->loc.zone->CanUseMisc(MISC_MOGMENU) || PChar->m_moghouseID
then recompiled, without error, and booted up the game. No change in my @mh functionality, sadly. Do you have anymore insight into where I could look and tool around? Is there anyway to make a normal zone have the mog house only menu (MISC_MOGMENU)?

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

Re: @mh

Post by kjLotus » Tue Sep 15, 2015 12:02 am

that's a flag in the database, under zone_settings

uwill99
Posts: 61
Joined: Tue Aug 12, 2014 11:28 pm

Re: @mh

Post by uwill99 » Tue Sep 15, 2015 12:28 am

I'm guessing it's under the "Misc." column, as all the others are self-explanatory. It looks like one of those bit codes where so many bits equals whatever. I'll start with adding 32, since Residential is 32 and Selbina is 40 and Norg is 104, and work down for a combat zone and see if it works. Seriously, kjLotus, thanks again.

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

Re: @mh

Post by kjLotus » Tue Sep 15, 2015 12:41 am

you can just look at it in the source file. You already know its called MISC_MOGMENU, so just search/grep for it

uwill99
Posts: 61
Joined: Tue Aug 12, 2014 11:28 pm

Re: @mh

Post by uwill99 » Tue Sep 15, 2015 1:03 am

Sad day. It's already activated in Bastok Markets (a zone I've been testing it in.)

Code: Select all

    
    MISC_NONE       = 0x0000,   // Able to be used in any area
    MISC_ESCAPE     = 0x0001,   // Ability to use Escape Spell
    MISC_FELLOW     = 0x0002,   // Ability to summon Fellow NPC
    MISC_CHOCOBO    = 0x0004,   // Ability to use Chocobos
    MISC_MAZURKA    = 0x0008,   // Ability to use Mazurka Spell
    MISC_TRACTOR    = 0x0010,   // Ability to use Tractor Spell
    MISC_MOGMENU    = 0x0020,   // Ability to communicate with Nomad Moogle (menu access mog house)
    MISC_COSTUME    = 0x0040,   // Ability to use a Costumes
    MISC_PET        = 0x0080,   // Ability to summon Pets
    MISC_TREASURE   = 0x0100,   // Presence in the global zone TreasurePool
    MISC_PVP        = 0x0200,   // Ability to PvP
    MISC_YELL       = 0x0400    // Send and receive /yell commands
Bastok Markets is 72, which, if I understand it correctly, could only get to by including MISC_MOGMENU. Welp, it would have been cool to have but it's not worth wasting anymore of your time on, thank you for all your help. Maybe someone will come along doing the solo player thing and figure it out using our conversation. Good night, kjLotus, and know that you're swimming in Karma Bucks, haha.

uwill99
Posts: 61
Joined: Tue Aug 12, 2014 11:28 pm

Re: @mh

Post by uwill99 » Tue Sep 15, 2015 1:23 am

Wait, I think I fucked up, 0x0040 doesn't = 40 in the misc does it? If I code a zone for 40 it works, but 72 does not work. OK, just weird stuff happening left and right - I changed the code to Bastok Markets to 40 on a whim, it worked, Port Bastok? Nope. Changed Bastok Markets back to 72, it still worked.

Edit: I'm an idiot - I didn't reload my game server. 40 works, 72 doesn't, for whatever reason.
Last edited by uwill99 on Tue Sep 15, 2015 2:00 am, edited 1 time in total.

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

Re: @mh

Post by kjLotus » Tue Sep 15, 2015 1:58 am

mogmenu is 0x20, not 0x40

0x40 is costume, which is why it's on in bastok markets

and 0x40 is hexadecimal, while the zone misc column is decimal (0x40 = 64)

edit: and 40 works because 40 is 0x28, which is 0x20 (mogmenu) + mazurka (0x08)

uwill99
Posts: 61
Joined: Tue Aug 12, 2014 11:28 pm

Re: @mh

Post by uwill99 » Tue Sep 15, 2015 2:01 am

Victory!!! Thanks kjLotus, didn't realize it was hexadecimal. Wow it works haha, oh man!!!!!

Let it be said here and now, kjLotus is the bomb diggity. I just changed my job in Mount Zhayolm using @mh. You are awesome man and thank you very much for making this cool little feature work. It took a while to change the misc section, but they are all +32 now (excluding the zones which already had moogle usage.)

Delaide
Posts: 477
Joined: Sat Jun 14, 2014 8:58 am

Re: @mh

Post by Delaide » Tue Sep 15, 2015 8:50 pm

uwill99 wrote:Victory!!! Thanks kjLotus, didn't realize it was hexadecimal. Wow it works haha, oh man!!!!!

Let it be said here and now, kjLotus is the bomb diggity. I just changed my job in Mount Zhayolm using @mh. You are awesome man and thank you very much for making this cool little feature work. It took a while to change the misc section, but they are all +32 now (excluding the zones which already had moogle usage.)
If I may recommend, is it possible to edit your first post with the working code? This would help those who look at this and would like their own @mh command. Up to you I guess, just seems like it would be helpful for those who follow in the future.

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

Re: @mh

Post by kjLotus » Tue Sep 15, 2015 8:53 pm

Delaide wrote:
uwill99 wrote:Victory!!! Thanks kjLotus, didn't realize it was hexadecimal. Wow it works haha, oh man!!!!!

Let it be said here and now, kjLotus is the bomb diggity. I just changed my job in Mount Zhayolm using @mh. You are awesome man and thank you very much for making this cool little feature work. It took a while to change the misc section, but they are all +32 now (excluding the zones which already had moogle usage.)
If I may recommend, is it possible to edit your first post with the working code? This would help those who look at this and would like their own @mh command. Up to you I guess, just seems like it would be helpful for those who follow in the future.

Code: Select all

UPDATE zone_settings SET zone_misc = zone_misc & 0x40;
should work if you run that query and use the script the OP provided

Post Reply