A few things I'm hoping to find help with (open door commands etc)
A few things I'm hoping to find help with (open door commands etc)
I created my own server and I'm looking to add a few things that I've seen around other places.
Is there any chance anyone can help me with the following:
1) A script to open all doors etc when anyone types !open
2) A player can free warp to their HP once every hour or so using the command !hp
3) New characters are given a server linkshell upon character creation. (i did find a guide here on this, but it was several years old and didn't work?)
4) Mog house functions (storage/dbox etc) in towns using a command such as !mog
5) How to remove craft guild test requirements for every 10 levels and also how to allow all crafts to 100
6) Also !capskill 51 (goldsmithing) for example does not work. Is there any way to cap crafts like you can other skills?
If anyone can help with any/all of these that'd be greatly appreciated. Thanks
Is there any chance anyone can help me with the following:
1) A script to open all doors etc when anyone types !open
2) A player can free warp to their HP once every hour or so using the command !hp
3) New characters are given a server linkshell upon character creation. (i did find a guide here on this, but it was several years old and didn't work?)
4) Mog house functions (storage/dbox etc) in towns using a command such as !mog
5) How to remove craft guild test requirements for every 10 levels and also how to allow all crafts to 100
6) Also !capskill 51 (goldsmithing) for example does not work. Is there any way to cap crafts like you can other skills?
If anyone can help with any/all of these that'd be greatly appreciated. Thanks
Re: A few things I'm hoping to find help with (open door commands etc)
Sorry, the only one I can answer is the 100 cap.
DSP currently allows all to max level with no changes needed. It does not have the main crafting skill only restriction.
DSP currently allows all to max level with no changes needed. It does not have the main crafting skill only restriction.
Re: A few things I'm hoping to find help with (open door commands etc)
Thanks, didn't realise that. Just need to find out how to remove the cap every 10 levels. I've seen another server where they said they run a script that unlocks the caps every 10 levels if you've got even 0.1 skill in a craft.
Re: A few things I'm hoping to find help with (open door commands etc)
Create a script to set the animation ID for the door that makes it open. I'm sure if you find a door that requires the user to click on something (or trade something) you can see how it's done.
Create a script that makes a char_var with a timestamp, then compare that timestamp to the current time and allow the warp if at least an hour has passedSkyballer wrote:
2) A player can free warp to their HP once every hour or so using the command !hp
I think you can add it in player.luaSkyballer wrote: 3) New characters are given a server linkshell upon character creation. (i did find a guide here on this, but it was several years old and didn't work?)
Create a script to send the mog house menu to the playerSkyballer wrote: 4) Mog house functions (storage/dbox etc) in towns using a command such as !mog
Answered!Skyballer wrote: If anyone can help with any/all of these that'd be greatly appreciated. Thanks
-- Whasf
Re: A few things I'm hoping to find help with (open door commands etc)
Appreciate the replies but I have no idea how to create any of these scripts, my knowledge of lua is not great, i'm learning as I go.
If you can help with one then maybe I can get an idea of what I'm looking at?
If you can help with one then maybe I can get an idea of what I'm looking at?
Re: A few things I'm hoping to find help with (open door commands etc)
Ok, so I got a !warp command working by editing the !homepoint command on a new lua called warp using this code:
But how do I add a cooldown of 1 hour to it? XD
Code: Select all
cmdprops =
{
permission = 0,
parameters = "s"
};
function error(player, msg)
player:PrintToPlayer(msg);
player:PrintToPlayer("!warp {player}");
end;
function onTrigger(player, target)
-- validate target
local targ;
if (target == nil) then
targ = player;
end
targ:warp();
if (targ:getID() ~= player:getID()) then
player:PrintToPlayer(string.format("Sent %s to their homepoint.",targ:getName()));
end
end
But how do I add a cooldown of 1 hour to it? XD
Re: A few things I'm hoping to find help with (open door commands etc)
Read up on how to get the current OS date&time in lua, then save the timestamp of when they use the command, and have it compare current date&time to when they last used itSkyballer wrote: ↑Wed Apr 24, 2019 10:05 amOk, so I got a !warp command working by editing the !homepoint command on a new lua called warp using this code:
Code: Select all
cmdprops = { permission = 0, parameters = "s" }; function error(player, msg) player:PrintToPlayer(msg); player:PrintToPlayer("!warp {player}"); end; function onTrigger(player, target) -- validate target local targ; if (target == nil) then targ = player; end targ:warp(); if (targ:getID() ~= player:getID()) then player:PrintToPlayer(string.format("Sent %s to their homepoint.",targ:getName())); end end
But how do I add a cooldown of 1 hour to it? XD
You'll be creating complex scripts in no time
-- Whasf
Re: A few things I'm hoping to find help with (open door commands etc)
Can you point me in the direction of where to read up on lua code for timestamps and also other things specific to FFXI like opening the MH menu so I can try do this? I don't mind putting in the work but I can't seem to find the info relevant to FFXI specifically.
For example, there is 100's of lua files in the DSP folder, I could spend weeks trying to find any code relating to opening the MH menu or saving time stamps.
Thanks
**to add, i believe this will get the MH menu up, was just comparing the ah.lua:
But again, like the more technical part of the !warp lua i am trying to make (adding time check) i can't see how to add a check if the player is in a city.
For example, there is 100's of lua files in the DSP folder, I could spend weeks trying to find any code relating to opening the MH menu or saving time stamps.
Thanks
**to add, i believe this will get the MH menu up, was just comparing the ah.lua:
Code: Select all
cmdprops =
{
permission = 0,
parameters = ""
};
function onTrigger(player)
player:sendMenu(1)
end;
Re: A few things I'm hoping to find help with (open door commands etc)
been trying to work with dsp.zoneType but that's not doing anything? any ideas?
Re: A few things I'm hoping to find help with (open door commands etc)
Lua os.time searchSkyballer wrote: ↑Wed Apr 24, 2019 12:17 pmCan you point me in the direction of where to read up on lua code for timestamps and also other things specific to FFXI like opening the MH menu so I can try do this? I don't mind putting in the work but I can't seem to find the info relevant to FFXI specifically.
For example, there is 100's of lua files in the DSP folder, I could spend weeks trying to find any code relating to opening the MH menu or saving time stamps.
Thanks
**to add, i believe this will get the MH menu up, was just comparing the ah.lua:
But again, like the more technical part of the !warp lua i am trying to make (adding time check) i can't see how to add a check if the player is in a city.Code: Select all
cmdprops = { permission = 0, parameters = "" }; function onTrigger(player) player:sendMenu(1) end;
os.difftime
-- Whasf