View unanswered posts | View active topics It is currently Sun Feb 25, 2018 12:16 pm



Reply to topic  [ 8 posts ] 
 Access 'moogle' anywhere 
Author Message

Joined: Sun Jun 02, 2013 2:21 am
Posts: 12
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.)


Wed Oct 08, 2014 2:56 am
Profile
Lead Developer
User avatar

Joined: Sun Jul 22, 2012 2:16 pm
Posts: 1813
hmm, see what the nomad moogle script does (nashmau, selbina, etc)


Wed Oct 08, 2014 3:46 am
Profile
Developer
User avatar

Joined: Mon Jul 15, 2013 9:50 pm
Posts: 486
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:
function onTrigger(player)
   player:sendMenu (1);
end;


That's all it takes to get the mog menu.

_________________
Hi, I run The Demiurge server.

Image
Code:
[code]PLS USE CODE TAGS[/code]
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 BUGS


Wed Oct 08, 2014 9:07 am
Profile WWW

Joined: Sun Jun 02, 2013 2:21 am
Posts: 12
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:
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.


Wed Oct 08, 2014 9:04 pm
Profile
Developer
User avatar

Joined: Thu Oct 25, 2012 9:52 am
Posts: 537
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.


Thu Oct 09, 2014 12:18 am
Profile

Joined: Sun Mar 23, 2014 2:58 pm
Posts: 56
how would one get into the Auction house this way?


Fri Oct 23, 2015 3:45 pm
Profile
Lead Developer
User avatar

Joined: Sun Jul 22, 2012 2:16 pm
Posts: 1813
look at the code for sendMenu in lua_baseentity


Fri Oct 23, 2015 6:23 pm
Profile

Joined: Sat May 09, 2015 9:46 am
Posts: 32
To make !mog
Code:
----------------------------------------------------------------------------------------------
-- 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:
%
----------------------------------------------------------------------------------------------
-- 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)


Sat Jan 06, 2018 5:39 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 8 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.


Flag Counter