Not a waste of time for me. One, I'm bored. Two, I find it rude to simply reply with "Not possible without clientside code" and leave, and would rather give an alternative.
function YesNo(%client,%question)
{
messageClient(%client,'',%question);
messageClient(%client,'','Please type yes or no to reply.');
%client.isAnsweringQuestion = 1;
%client.question = %question;
}
package YesNoScript
{
function serverCmdMessageSent(%client,%text)
{
if(%client.isAnsweringQuestion == 1)
{
if(%text $= "Yes")
{
%client.isAnsweringQuestion = 0;
handleYesReply(%client);
}
else if(%text $= "No")
{
%client.isAnsweringQuestion = 0;
handleNoReply(%client);
}
else
{
messageClient(%client,'','Invalid response. Please type yes or no.');
}
return;
}
Parent::serverCmdMessageSent(%client,%text);
}
};
ActivatePackage(YesNoScript);
You will need to create handleYesReply and handleNoReply functions.