Demand - Making Your Mule Work For The Whole Ls!

Language: JP EN DE FR
2010-09-08
New Items
users online
Forum » Windower » General » Demand - making your mule work for the whole ls!
Demand - making your mule work for the whole ls!
 Asura.Aessk
Offline
Server: Asura
Game: FFXI
user: Hobbes423
Posts: 34
By Asura.Aessk 2020-04-20 15:58:37
Link | Quote | Reply
 
I'm not very good at writing code. But I threw this together after using a very clunky autoexec script for way too long.

Demand is an addon that allows players on your whitelist to boss you or your mule around automatically. for example, by saying "c1" or "cure" in any chat will make the user cast cure on the player who demanded it.

https://github.com/JamesAnBo/demand

The readme will explain further, And lists the WHM commands.

Currently I've only made commands for WHM and RDM but it'll automatically make a file for new jobs with a template inside. You can use my WHM or RDM files as a guide to creating your own.

I know about the send addon and cureplease. But I wanted other people in my ls to be able to demand ~na spells and cures whenever they were needed. Also with much shorter aliases.

I hope some of you find this useful.

some of the univeral commands are:

assistme = will assist player (targets what the player is currently engaged to)
attackit = will attack current target using /attack
shootit = will ranged attack current target using /ra <t>
leader or plead = passes party lead to player
alead = passes ally lead to player
follow = follows player

If you have any suggestions or find any bugs please let me know.
[+]
 Siren.Itachi
Offline
Server: Siren
Game: FFXI
Posts: 1016
By Siren.Itachi 2020-04-20 16:56:04
Link | Quote | Reply
 
This does sound very useful. Commenting to save for later!
 Asura.Botosi
Offline
Server: Asura
Game: FFXI
user: Botosi
Posts: 375
By Asura.Botosi 2020-04-20 18:00:39
Link | Quote | Reply
 
Very cool, will test out later tonight/tomorrow. Thank you!
Offline
Posts: 1731
By geigei 2020-04-21 01:05:11
Link | Quote | Reply
 
Or you can just onevent/react.
 Asura.Aessk
Offline
Server: Asura
Game: FFXI
user: Hobbes423
Posts: 34
By Asura.Aessk 2020-04-21 07:52:13
Link | Quote | Reply
 
geigei said: »
Or you can just onevent/react.

AM I wrong in thinking that would be a huge pain every time you wanted to let a new person make demands? And You would end up with a huge file if you want 10+ people 'whitelisted'. Also I'm not sure you can have different 'whitelists' per character using react.
Offline
Posts: 1731
By geigei 2020-04-21 07:58:24
Link | Quote | Reply
 
It is yea, only used it occasionally so my bud tank can erase himself,etc.
 Shiva.Thorny
Offline
Server: Shiva
Game: FFXI
user: Rairin
Posts: 2114
By Shiva.Thorny 2020-04-21 11:15:30
Link | Quote | Reply
 
Using a large number of commands relayed through ingame chat is questionable. Something like ashita's servo, that allows you to connect outside of the game and transmit commands directly, would be highly preferable from a safety standpoint.
Offline
Posts: 202
By malakef 2020-04-21 11:54:54
Link | Quote | Reply
 
I’m almost positive a Lua already exists for this out there. I know I have seen people use something like it for buffs on alts. All anyone has to do is type “buffs”, which fires off multiple buffs, or “haste” or whatever in chat and it executes the command.
 Shiva.Thorny
Offline
Server: Shiva
Game: FFXI
user: Rairin
Posts: 2114
By Shiva.Thorny 2020-04-21 12:34:56
Link | Quote | Reply
 
I agree, it's not very likely they'd do anything, but there's no need to use the game's chat channels to accomplish something like this. You could base it on an IRC if you want to avoid direct connections, or all sorts of other options.

Isn't that they're likely to notice or care, it's that if they did it would be very easy to pull out of logs after the fact.
Offline
Posts: 334
By Meeble 2020-04-21 12:39:23
Link | Quote | Reply
 
Request does this using the shortcuts addon, along with custom aliases, but it may allow more access to your mule than you'd want everyone in your LS to have.

If nothing else, looking at this code may help you refine what you want to do.

https://github.com/Selindrile/Request
 Asura.Aessk
Offline
Server: Asura
Game: FFXI
user: Hobbes423
Posts: 34
By Asura.Aessk 2020-04-21 12:42:22
Link | Quote | Reply
 
If there's already a lua out there that uses a whitelist for other players to give commands, I haven't seen it.
I am aware of
-send (only works between dual boxed chars as far as I know)
-react (technically will do the same thing in a very cumbersome way)
-shortcuts (does allow aliases but doesn't sent commands to other players)
-and then there's cureplease and healbot (does healbot still exist?)

In the end if I wasted my time, I learned a lot.

I made some updates:
Added weaponskills
added custom commands for scripts or your own inputs
moved the party/ally/follow/attack commands to custom commands

https://github.com/JamesAnBo/demand

If you have already created your own custom demand_<job>.luas then you'll need to make some adjustments aswell as update your demand.lua. Just replace the bottom section
Code
--general party commands /pcmd leader john
function getPartycommands()
	partycommands = {}

	partycommands["leader"] = "leader"
	partycommands["plead"] = "leader"
	return partycommands
end 


with this
Code
--weaponskills to use on enemy target /ws "savage blade" sheep
function getWeaponabilities()
	weaponabilities = {}

	--weaponabilities["alias"] = "full name"

	return weaponabilities
end

--custom commands for scripts or input that don't target the player asking.
function getSelfcustomcommands()
	selfcustomcommands = {}

	--selfcustomcommands["alias"] = "full name"
	selfcustomcommands["attackit"] = "input /attack"
	selfcustomcommands["shootit"] = "input /ra <t>"

	return selfcustomcommands
end

--custom commands for inputs that target the player asking.
function getSinglecustomcommands()
	singlecustomcommands = {}

	--singlecustomcommands["alias"] = "full name"
	singlecustomcommands["follow"] = "input /follow"
	singlecustomcommands["assistme"] = "input /assist"
	singlecustomcommands["inviteme"] = "input /pcmd add"
	singlecustomcommands["leader"] = "input /pcmd leader"
	singlecustomcommands["plead"] = "input /pcmd leader"
	singlecustomcommands["allyme"] = "input /acmd add"
	singlecustomcommands["alead"] = "input /acmd leader"

	return singlecustomcommands
end
[+]
 Asura.Aessk
Offline
Server: Asura
Game: FFXI
user: Hobbes423
Posts: 34
By Asura.Aessk 2020-04-21 12:44:22
Link | Quote | Reply
 
Meeble said: »
Request does this using the shortcuts addon, along with custom aliases, but it may allow more access to your mule than you'd want everyone in your LS to have.

If nothing else, looking at this code may help you refine what you want to do.

https://github.com/Selindrile/Request

Thats interesting, I didn't know about this one. It is very similar. Thanks for that!
[+]
 Asura.Aessk
Offline
Server: Asura
Game: FFXI
user: Hobbes423
Posts: 34
By Asura.Aessk 2020-04-21 12:52:41
Link | Quote | Reply
 
Shiva.Thorny said: »
I agree, it's not very likely they'd do anything, but there's no need to use the game's chat channels to accomplish something like this. You could base it on an IRC if you want to avoid direct connections, or all sorts of other options.

Isn't that they're likely to notice or care, it's that if they did it would be very easy to pull out of logs after the fact.


I agree it would be suspicious if you're fully controlling everything through this. I guess it was originally just for the occasional needed ~na spells and cures and such. not so much spamming commands. But I did kinda go crazy with added commands that are unnecessary.

I guess it comes with a use at your own discretion warning. I'll add that to the readme.
 Leviathan.Andret
Offline
Server: Leviathan
Game: FFXI
user: Andret
Posts: 1000
By Leviathan.Andret 2020-04-21 13:55:51
Link | Quote | Reply
 
If you can make it work from Link Shell as an option.... it would be fantastic.

One of these days I would use my character and say "HALP!" and my mule would cure V me!
 Asura.Aessk
Offline
Server: Asura
Game: FFXI
user: Hobbes423
Posts: 34
By Asura.Aessk 2020-04-21 14:19:59
Link | Quote | Reply
 
It currently works in all chats say/tell/shout/ls as long as they are on your whitelist. probably should add filters for that. I'll get to that later.
 Asura.Arico
Offline
Server: Asura
Game: FFXI
user: Tename
Posts: 535
By Asura.Arico 2020-04-21 17:42:45
Link | Quote | Reply
 
You're probably going to want to add some kind of spell/action queuing for later versions. So you don't get annoying swaps/nothing happening from it inputting a /ma regen [receiver] while it's midcast of something else.
Log in to post.