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.)
Access 'moogle' anywhere
Re: Access 'moogle' anywhere
hmm, see what the nomad moogle script does (nashmau, selbina, etc)
Re: Access 'moogle' anywhere
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).
That's all it takes to get the mog menu.
Code: Select all
function onTrigger(player)
player:sendMenu (1);
end;
Hi, I run The Demiurge server.
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. - Martin Golding
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. - Martin Golding
DO NOT PRIVATE MESSAGE ME ABOUT BUGSPLS USE [ code ] CODE TAGS [ /code ] WHEN POSTING CODE
Re: Access 'moogle' anywhere
Thank you.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).
That's all it takes to get the mog menu.Code: Select all
function onTrigger(player) player:sendMenu (1); end;
I hope some servers will add this now.
Re: Access 'moogle' anywhere
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.
-
- Posts: 56
- Joined: Sun Mar 23, 2014 2:58 pm
Re: Access 'moogle' anywhere
how would one get into the Auction house this way?
Re: Access 'moogle' anywhere
look at the code for sendMenu in lua_baseentity
Re: Access 'moogle' anywhere
To make !mog
To make !ah
(this is a copy/paste of my scripts)
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
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;