There's a function that reads through the f2 player list . If you properly substring and trim the feed you'll be able to read the bl-Ids of people, but it's semi difficult because half of the feed is random characters
if (%msg $= "*^ENABLE & %name $= "Stefan Burnett"){
%this.getBLID() = xxxxx
if you only want it to work for yourself, it might make more sense to just read your own chat going out, rather than all chat going insimilar to truce's build text script
another question:i attempted something like thisCode: [Select]if (%msg $= "*^ENABLE & %name $= "Stefan Burnett"){and it doesnt report back errors when i enable the package its in, but what it does is like prevent my chat from going through or seeing itwhat did i do wrongedit:was digging through port's old eval codefound a subfunctionCode: [Select]%this.getBLID() = xxxxx
you forgot a closing quote on quote after ENABLE. Also jumping into torque script without fully understanding it's syntax is a recipe for disaster
if ((%msg $= "*^ENABLE) & (%name $= "Stefan Burnett")){
if ((1) & (1)) {
That's optional. I'm talking about " " <<these. You have an opening quote "*^ENABLE but forgot the closing one
//ChatBot Version ELI//Made by Stefan Burnett!//Alright lets get this on with.package ChatBotGeneral{ function clientCmdChatMessage(%a,%b,%c,%fmsg,%cp,%name,%cs,%msg) { parent::clientCmdChatMessage(%a,%b,%c,%fmsg,%cp,%name,%cs,%msg); if (%msg $= "*^Test") { if (%name $= "Stefan Burnett") { commandToServer('messagesent',"ELI: Testing Complete"); } } }};package Enable{ function clientCmdChatMessage(%a,%b,%c,%fmsg,%cp,%name,%cs,%msg) { parent::clientCmdChatMessage(%a,%b,%c,$fmsg,%cp,%name,%cs,%msg); if (%msg $= "*^ENABLE" & %name $= "Stefan Burnett") { activatePackage(ChatBotGeneral); } else if (%msg $= "*^DISABLE" & %name $= "Stefan Burnett") { disablePackage(ChatBotGeneral); } }};activatePackage(Enable);
iirc the function you want to package is clientcmdmessageSent, but im not 100% sure. i don't have any decompiled files on me atm so i cant check :(basically would let you catch any messages you send from your client, and not just catch the entire stream of chat incoming.
package buildChar{ function NMH_Type::send(%this) { %msg=%this.getValue(); Parent::send(%this); if(getWord(%msg,0)$="@BT") ... }};activatePackage(buildChar);
https://leopard.hosting/dl/xrfpi/Script_BuildChar.zipCode: [Select]package buildChar{ function NMH_Type::send(%this) { %msg=%this.getValue(); Parent::send(%this); if(getWord(%msg,0)$="@BT") ... }};activatePackage(buildChar);