Access 'moogle' anywhere

Post Reply
Dragomair
Posts: 12
Joined: Sun Jun 02, 2013 2:21 am

Access 'moogle' anywhere

Post by Dragomair » Wed Oct 08, 2014 2:56 am

Would it be possible for a command to be added that would have all of the functions a normal moogle has?
(Delivery box, all storage, change jobs, etc.)

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

Re: Access 'moogle' anywhere

Post by kjLotus » Wed Oct 08, 2014 3:46 am

hmm, see what the nomad moogle script does (nashmau, selbina, etc)

User avatar
TeoTwawki
Developer
Posts: 527
Joined: Mon Jul 15, 2013 9:50 pm

Re: Access 'moogle' anywhere

Post by TeoTwawki » Wed Oct 08, 2014 9:07 am

I've experimented with this before. There is some flagging in each zone (see zone settings sql table) that controls what is allowed, but calling the mog menu is 1 simple command. When called in area's it isn't supposed to be some features of it simply don't work (like job changes).

Code: Select all

function onTrigger(player)
	player:sendMenu (1);
end; 
That's all it takes to get the mog menu.
Hi, I run The Demiurge server.


Image
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. - Martin Golding
PLS USE [ code ] CODE TAGS [ /code ] WHEN POSTING CODE
DO NOT PRIVATE MESSAGE ME ABOUT BUGS

Dragomair
Posts: 12
Joined: Sun Jun 02, 2013 2:21 am

Re: Access 'moogle' anywhere

Post by Dragomair » Wed Oct 08, 2014 9:04 pm

forgottenandlost wrote:I've experimented with this before. There is some flagging in each zone (see zone settings sql table) that controls what is allowed, but calling the mog menu is 1 simple command. When called in area's it isn't supposed to be some features of it simply don't work (like job changes).

Code: Select all

function onTrigger(player)
	player:sendMenu (1);
end; 
That's all it takes to get the mog menu.
Thank you.
I hope some servers will add this now.

User avatar
atom0s
Developer
Posts: 537
Joined: Thu Oct 25, 2012 9:52 am

Re: Access 'moogle' anywhere

Post by atom0s » Thu Oct 09, 2014 12:18 am

Some zones have special moogles as well that have extended menus. However they are not invoked the same way, but instead use an event id to trigger the menu. Such as the Mog Garden Moogle that I half-coded a while back.

kennxonline
Posts: 56
Joined: Sun Mar 23, 2014 2:58 pm

Re: Access 'moogle' anywhere

Post by kennxonline » Fri Oct 23, 2015 3:45 pm

how would one get into the Auction house this way?

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

Re: Access 'moogle' anywhere

Post by kjLotus » Fri Oct 23, 2015 6:23 pm

look at the code for sendMenu in lua_baseentity

kirionet
Posts: 32
Joined: Sat May 09, 2015 9:46 am

Re: Access 'moogle' anywhere

Post by kirionet » Sat Jan 06, 2018 5:39 am

To make !mog

Code: Select all

----------------------------------------------------------------------------------------------
-- func: mog
-- desc: opens the mog house menu everywhere
----------------------------------------------------------------------------------------------

require("scripts/globals/moghouse");
require("scripts/zones/Bastok_Markets/TextIDs");
require("scripts/globals/settings");


cmdprops =
{
    permission = 0,
    parameters = ""
};


function onTrigger(player)
      player:sendMenu(1);
end

To make !ah

Code: Select all

%
----------------------------------------------------------------------------------------------
-- func: ah
-- desc: opens the Auction House menu anywhere in the world
----------------------------------------------------------------------------------------------

cmdprops =
{
    permission = 0,
    parameters = ""
};

function onTrigger(player)
    player:sendMenu(3);
end;

(this is a copy/paste of my scripts)

Post Reply